SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
VariableFixing::RadiallyFallingFloor< Dim > Class Template Reference

Applies a pressure and density floor dependent on the distance to the origin. More...

#include <RadiallyFallingFloor.hpp>

Classes

struct  MinimumRadius
 The minimum radius at which to begin applying the floors on the density and pressure. More...
struct  PowerDensityFloor
 The power of the radius of the floor of the rest mass density. More...
struct  PowerPressureFloor
 The power of the radius of the floor of the pressure. More...
struct  ScaleDensityFloor
 The scale of the floor of the rest mass density. More...
struct  ScalePressureFloor
 The scale of the floor of the pressure. More...

Public Types

using options
using return_tags
using argument_tags

Public Member Functions

 RadiallyFallingFloor (double minimum_radius_at_which_to_apply_floor, double rest_mass_density_scale, double rest_mass_density_power, double pressure_scale, double pressure_power)
 RadiallyFallingFloor (const RadiallyFallingFloor &)=default
RadiallyFallingFlooroperator= (const RadiallyFallingFloor &)=default
 RadiallyFallingFloor (RadiallyFallingFloor &&)=default
RadiallyFallingFlooroperator= (RadiallyFallingFloor &&)=default
void pup (PUP::er &p)
template<size_t ThermodynamicDim>
void operator() (gsl::not_null< Scalar< DataVector > * > density, gsl::not_null< Scalar< DataVector > * > pressure, gsl::not_null< Scalar< DataVector > * > specific_internal_energy, gsl::not_null< Scalar< DataVector > * > temperature, gsl::not_null< Scalar< DataVector > * > electron_fraction, const tnsr::I< DataVector, Dim, Frame::Inertial > &coords, const EquationsOfState::EquationOfState< true, ThermodynamicDim > &equation_of_state) const

Static Public Attributes

static constexpr Options::String help

Friends

template<size_t LocalDim>
bool operator== (const RadiallyFallingFloor< LocalDim > &lhs, const RadiallyFallingFloor< LocalDim > &rhs)

Detailed Description

template<size_t Dim>
class VariableFixing::RadiallyFallingFloor< Dim >

Applies a pressure and density floor dependent on the distance to the origin.

Applies the floors: \(\rho(r) \geq \rho_{\mathrm{fl}}(r) = C_\rho r^{k_\rho}\) and \(P(r) \geq P_{\mathrm{fl}}(r) = C_p r^{k_p}\) when \( r > r_{min}\), where \(C_\rho\) is given by the option ScaleDensityFloor, \(k_\rho\) is given by the option PowerDensityFloor, \(C_p\) is given by the option ScalePressureFloor, \(k_p\) is given by the option PowerPressureFloor, and \(r_{min}\) is given by the option MinimumRadius.

Note
In [173], the following floors are applied: \(\rho(r) \geq \rho_{\mathrm{fl}}(r) = 10^{-5}r^{-3/2}\) and \(P(r) \geq P_{\mathrm{fl}}(r) = \frac{1}{3} \times 10^{-7}r^{-5/2}\)
For 3d equations of state we treat the product \(\rho T\) as the "pressure" that we floor and then compute the pressure from the temperature. The floor is applied after flooring the density.

Member Typedef Documentation

◆ argument_tags

template<size_t Dim>
using VariableFixing::RadiallyFallingFloor< Dim >::argument_tags
Initial value:
tmpl::list<domain::Tags::Coordinates<Dim, Frame::Inertial>,
The equation of state retrieved from the analytic solution / data in the input file.
Definition Tags.hpp:343

◆ options

template<size_t Dim>
using VariableFixing::RadiallyFallingFloor< Dim >::options
Initial value:
The minimum radius at which to begin applying the floors on the density and pressure.
Definition RadiallyFallingFloor.hpp:73
The power of the radius of the floor of the rest mass density.
Definition RadiallyFallingFloor.hpp:89
The power of the radius of the floor of the pressure.
Definition RadiallyFallingFloor.hpp:103
The scale of the floor of the rest mass density.
Definition RadiallyFallingFloor.hpp:81
The scale of the floor of the pressure.
Definition RadiallyFallingFloor.hpp:96

◆ return_tags

template<size_t Dim>
using VariableFixing::RadiallyFallingFloor< Dim >::return_tags
Initial value:
tmpl::list<hydro::Tags::RestMassDensity<DataVector>,
The electron fraction .
Definition Tags.hpp:105
The fluid pressure .
Definition Tags.hpp:234
The specific internal energy .
Definition Tags.hpp:286
The temperature of the fluid.
Definition Tags.hpp:292

Member Data Documentation

◆ help

template<size_t Dim>
Options::String VariableFixing::RadiallyFallingFloor< Dim >::help
staticconstexpr
Initial value:
= {
"Applies a pressure and density floor dependent on the distance to the "
"origin."}

The documentation for this class was generated from the following file:
  • src/Evolution/VariableFixing/RadiallyFallingFloor.hpp