SpECTRE  v2025.03.17
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
VariableFixing::FixToAtmosphere< Dim >::VelocityLimitingOptions Struct Reference

Limit the velocity in and near the atmosphere. More...

#include <FixToAtmosphere.hpp>

Classes

struct  AtmosphereDensityCutoff
 
struct  AtmosphereMaxVelocity
 
struct  NearAtmosphereMaxVelocity
 
struct  TransitionDensityBound
 

Public Types

using options = implementation defined
 

Public Member Functions

void pup (PUP::er &p)
 
bool operator== (const VelocityLimitingOptions &rhs) const
 
bool operator!= (const VelocityLimitingOptions &rhs) const
 

Public Attributes

double atmosphere_max_velocity
 
double near_atmosphere_max_velocity
 
double atmosphere_density_cutoff
 
double transition_density_bound
 

Static Public Attributes

static constexpr Options::String help
 

Detailed Description

template<size_t Dim>
struct VariableFixing::FixToAtmosphere< Dim >::VelocityLimitingOptions

Limit the velocity in and near the atmosphere.

Let vmax be the maximum magnitude of the velocity near the atmosphere, which we typically set to 104. We let vatm be the maximum magnitude of the velocity in the atmosphere, which we typically set to 0. We then define the maximum magnitude of the spatial velocity to be

v~={vatm,ifρ<ρv  vatm+(vmaxvatm)ρρvρv+ρv,ifρvρ<ρv+

We then rescale the velocity by

viviv~viγijvj.

Member Data Documentation

◆ atmosphere_density_cutoff

template<size_t Dim>
double VariableFixing::FixToAtmosphere< Dim >::VelocityLimitingOptions::atmosphere_density_cutoff

◆ atmosphere_max_velocity

template<size_t Dim>
double VariableFixing::FixToAtmosphere< Dim >::VelocityLimitingOptions::atmosphere_max_velocity

◆ help

template<size_t Dim>
constexpr Options::String VariableFixing::FixToAtmosphere< Dim >::VelocityLimitingOptions::help
staticconstexpr
Initial value:
= {
"Limit the velocity in and near the atmosphere."}

◆ near_atmosphere_max_velocity

template<size_t Dim>
double VariableFixing::FixToAtmosphere< Dim >::VelocityLimitingOptions::near_atmosphere_max_velocity

◆ transition_density_bound

template<size_t Dim>
double VariableFixing::FixToAtmosphere< Dim >::VelocityLimitingOptions::transition_density_bound

The documentation for this struct was generated from the following file: