SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::model::FixedCentralDensity Class Referencefinal

Prescribe central density with an independently dimensioned enthalpy phase equation. More...

#include <fixed_central_density.hpp>

Classes

struct  Parameters
 

Public Types

using ScalarDescription
 
using TargetValue = ScalarDescription::TargetValue
 
using ModelDefinition
 

Public Member Functions

 FixedCentralDensity (TargetValue density)
 Require a positive finite central density.
 
 FixedCentralDensity (Parameters parameters)
 Construct from named physical parameters.
 
TargetValue target () const noexcept
 Inspect the prescribed central density rather than the residual's enthalpy units.
 

Private Attributes

TargetValue m_target
 

Detailed Description

Prescribe central density with an independently dimensioned enthalpy phase equation.

Member Typedef Documentation

◆ ModelDefinition

Initial value:
ScalarConstraint< dimensions::AngularMomentum, dimensions::AngularVelocity, dimensions::AngularMomentum, "fixed_angular_momentum.angular_velocity", "Omega", "fixed_angular_momentum.residual", "R_J"> ScalarDescription
Definition fixed_angular_momentum.hpp:22
FixedCentralDensity(TargetValue density)
Require a positive finite central density.
Definition specifications.cpp:32
utils::types::TypeList< Fields... > Reads
Definition specification.hpp:43
utils::types::TypeList< Equations... > Changes
Definition specification.hpp:46
@ phase_condition
Definition specification.hpp:18
@ solver_border
Definition specification.hpp:24
Declare a prescription once; numerical providers and normalization consume this metadata.
Definition specification.hpp:52

◆ ScalarDescription

Initial value:
"fixed_central_density.border", "lambda_rho_c", "fixed_central_density.residual", "R_rho_c">
Dimension of Mass Density.
Definition dimensions.hpp:100
Dimension of Specific Enthalpy.
Definition dimensions.hpp:199
Declare independent target, unknown and residual units and stable descriptive identities.
Definition specification.hpp:31

◆ TargetValue

using serif::model::FixedCentralDensity::TargetValue = ScalarDescription::TargetValue

Constructor & Destructor Documentation

◆ FixedCentralDensity() [1/2]

serif::model::FixedCentralDensity::FixedCentralDensity ( TargetValue density)
explicit

Require a positive finite central density.

Store a physically admissible central density.

◆ FixedCentralDensity() [2/2]

serif::model::FixedCentralDensity::FixedCentralDensity ( Parameters parameters)
explicit

Construct from named physical parameters.

Delegate named central-density parameters to the dimensional constructor.

Member Function Documentation

◆ target()

TargetValue serif::model::FixedCentralDensity::target ( ) const
inlinenodiscardnoexcept

Inspect the prescribed central density rather than the residual's enthalpy units.

Member Data Documentation

◆ m_target

TargetValue serif::model::FixedCentralDensity::m_target
private

The documentation for this class was generated from the following files: