Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
EquationsOfState::PolytropicFluid< IsRelativistic > Class Template Reference

Equation of state for a polytropic fluid. More...

#include <PolytropicFluid.hpp>

Classes

struct  PolytropicConstant
 
struct  PolytropicExponent
 

Public Types

using options = tmpl::list< PolytropicConstant, PolytropicExponent >
 
- Public Types inherited from EquationsOfState::EquationOfState< IsRelativistic, 1 >
using creatable_classes = typename detail::DerivedClasses< IsRelativistic, 1 >::type
 

Public Member Functions

 PolytropicFluid (const PolytropicFluid &)=default
 
PolytropicFluidoperator= (const PolytropicFluid &)=default
 
 PolytropicFluid (PolytropicFluid &&)=default
 
PolytropicFluidoperator= (PolytropicFluid &&)=default
 
 PolytropicFluid (double polytropic_constant, double polytropic_exponent) noexcept
 
 WRAPPED_PUPable_decl_base_template (SINGLE_ARG(EquationOfState< IsRelativistic, 1 >), PolytropicFluid)
 
- Public Member Functions inherited from EquationsOfState::EquationOfState< IsRelativistic, 1 >
 EquationOfState (const EquationOfState &)=default
 
EquationOfStateoperator= (const EquationOfState &)=default
 
 EquationOfState (EquationOfState &&)=default
 
EquationOfStateoperator= (EquationOfState &&)=default
 
 WRAPPED_PUPable_abstract (EquationOfState)
 
virtual Scalar< double > pressure_from_density (const Scalar< double > &) const noexcept=0
 
virtual Scalar< DataVectorpressure_from_density (const Scalar< DataVector > &) const noexcept=0
 
virtual Scalar< double > rest_mass_density_from_enthalpy (const Scalar< double > &) const noexcept=0
 
virtual Scalar< DataVectorrest_mass_density_from_enthalpy (const Scalar< DataVector > &) const noexcept=0
 
virtual Scalar< double > specific_enthalpy_from_density (const Scalar< double > &) const noexcept=0
 
virtual Scalar< DataVectorspecific_enthalpy_from_density (const Scalar< DataVector > &) const noexcept=0
 
virtual Scalar< double > specific_internal_energy_from_density (const Scalar< double > &) const noexcept=0
 
virtual Scalar< DataVectorspecific_internal_energy_from_density (const Scalar< DataVector > &) const noexcept=0
 
virtual Scalar< double > chi_from_density (const Scalar< double > &) const noexcept=0
 
virtual Scalar< DataVectorchi_from_density (const Scalar< DataVector > &) const noexcept=0
 
virtual Scalar< double > kappa_times_p_over_rho_squared_from_density (const Scalar< double > &) const noexcept=0
 
virtual Scalar< DataVectorkappa_times_p_over_rho_squared_from_density (const Scalar< DataVector > &) const noexcept=0
 

Static Public Attributes

static constexpr size_t thermodynamic_dim = 1
 
static constexpr bool is_relativistic = IsRelativistic
 
static constexpr Options::String help
 
- Static Public Attributes inherited from EquationsOfState::EquationOfState< IsRelativistic, 1 >
static constexpr bool is_relativistic = IsRelativistic
 
static constexpr size_t thermodynamic_dim = 1
 

Detailed Description

template<bool IsRelativistic>
class EquationsOfState::PolytropicFluid< IsRelativistic >

Equation of state for a polytropic fluid.

A polytropic equation of state \(p=K\rho^{\Gamma}\) where \(K\) is the polytropic constant and \(\Gamma\) is the polytropic exponent. The polytropic exponent is related to the polytropic index \(N_p\) by \(N_p=1/(\Gamma-1)\).

Member Data Documentation

◆ help

template<bool IsRelativistic>
constexpr Options::String EquationsOfState::PolytropicFluid< IsRelativistic >::help
staticconstexpr
Initial value:
= {
"A polytropic fluid equation of state.\n"
"The pressure is related to the rest mass density by p = K rho ^ Gamma, "
"where p is the pressure, rho is the rest mass density, K is the "
"polytropic constant, and Gamma is the polytropic exponent. The "
"polytropic index N is defined as Gamma = 1 + 1 / N."}

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