ryujin 2.1.1 revision d1a5601757449924e68a428cfd892dfe8915810d
|
#include <source/euler_aeos/equation_of_state.h>
Public Member Functions | |
EquationOfState (const std::string &name, const std::string &subsection) | |
virtual double | pressure (double rho, double e) const =0 |
virtual void | pressure (const dealii::ArrayView< double > &p, const dealii::ArrayView< double > &rho, const dealii::ArrayView< double > &e) const |
virtual double | specific_internal_energy (double rho, double p) const =0 |
virtual void | specific_internal_energy (const dealii::ArrayView< double > &e, const dealii::ArrayView< double > &rho, const dealii::ArrayView< double > &p) const |
virtual double | temperature (double rho, double e) const =0 |
virtual void | temperature (const dealii::ArrayView< double > &T, const dealii::ArrayView< double > &rho, const dealii::ArrayView< double > &e) const |
virtual double | speed_of_sound (double rho, double e) const =0 |
virtual void | speed_of_sound (const dealii::ArrayView< double > &c, const dealii::ArrayView< double > &rho, const dealii::ArrayView< double > &e) const |
Protected Attributes | |
double | interpolation_b_ |
bool | prefer_vector_interface_ |
A small abstract base class to group configuration options for an equation of state.
Definition at line 29 of file equation_of_state.h.
|
inline |
Constructor taking EOS name name
and a subsection subsection
as an argument. The dealii::ParameterAcceptor is initialized with the subsubsection subsection + "/" + name
.
Definition at line 37 of file equation_of_state.h.
References interpolation_b_, and prefer_vector_interface_.
|
pure virtual |
Return the pressure given density rho
and specific internal energy e
.
Implemented in ryujin::EquationOfStateLibrary::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::VanDerWaals, and ryujin::EquationOfStateLibrary::Sesame.
Referenced by pressure().
|
inlinevirtual |
Variant of above function operating on a contiguous range of values. The result is stored in the first argument p
, overriding previous contents.
Definition at line 71 of file equation_of_state.h.
References pressure().
|
pure virtual |
Return the specific internal energy e
for a given density rho
and pressure p
.
Implemented in ryujin::EquationOfStateLibrary::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::VanDerWaals, and ryujin::EquationOfStateLibrary::Sesame.
Referenced by specific_internal_energy().
|
inlinevirtual |
Variant of above function operating on a contiguous range of values. The result is stored in the first argument p
, overriding previous contents.
Definition at line 102 of file equation_of_state.h.
References specific_internal_energy().
|
pure virtual |
Return the temperature T
for a given density rho
and specific internal energy e
.
Implemented in ryujin::EquationOfStateLibrary::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::VanDerWaals, ryujin::EquationOfStateLibrary::PolytropicGas, and ryujin::EquationOfStateLibrary::Sesame.
Referenced by temperature().
|
inlinevirtual |
Variant of above function operating on a contiguous range of values. The result is stored in the first argument T
, overriding previous contents.
Definition at line 134 of file equation_of_state.h.
References temperature().
|
pure virtual |
Return the sound speed c
for a given density rho
and specific internal energy e
.
Implemented in ryujin::EquationOfStateLibrary::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::VanDerWaals, ryujin::EquationOfStateLibrary::PolytropicGas, and ryujin::EquationOfStateLibrary::Sesame.
Referenced by speed_of_sound().
|
inlinevirtual |
Variant of above function operating on a contiguous range of values. The result is stored in the first argument p
, overriding previous contents.
Definition at line 165 of file equation_of_state.h.
References speed_of_sound().
|
protected |
Return the interpolation co-volume constant (b). Return a boolean indicating whether the dealii::ArrayView<double> variants for the pressure(), specific_internal_energy(), and speed_of_sound() functions should be preferred.
Ordinarily we use the single-valued signatures for pre-computation because this leads to slightly better throughput (due to better memory locality with how we store precomputed values) and less memory consumption. On the other hand, some tabulated equation of state libraries work best with a single call and a large dataset. Return the name of the EOS as (const reference) std::string
Definition at line 204 of file equation_of_state.h.
Referenced by EquationOfState(), ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas::NobleAbelStiffenedGas(), and ryujin::EquationOfStateLibrary::VanDerWaals::VanDerWaals().
|
protected |
Definition at line 205 of file equation_of_state.h.
Referenced by EquationOfState().