ryujin 2.1.1 revision 0348cbb53a3e4b1da2a4c037e81f88f2d21ce219
|
#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_ |
double | interpolation_pinfty_ |
double | interpolation_q_ |
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_, interpolation_pinfty_, interpolation_q_, 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::Pressureless, ryujin::EquationOfStateLibrary::VanDerWaals, ryujin::EquationOfStateLibrary::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::Pressureless, ryujin::EquationOfStateLibrary::Sesame, 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.
Reimplemented in ryujin::EquationOfStateLibrary::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::Pressureless, ryujin::EquationOfStateLibrary::Sesame, and ryujin::EquationOfStateLibrary::VanDerWaals.
Definition at line 83 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::Pressureless, ryujin::EquationOfStateLibrary::VanDerWaals, ryujin::EquationOfStateLibrary::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::Pressureless, ryujin::EquationOfStateLibrary::Sesame, 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.
Reimplemented in ryujin::EquationOfStateLibrary::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::Pressureless, ryujin::EquationOfStateLibrary::Sesame, and ryujin::EquationOfStateLibrary::VanDerWaals.
Definition at line 114 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::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::Pressureless, ryujin::EquationOfStateLibrary::Sesame, ryujin::EquationOfStateLibrary::VanDerWaals, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::Pressureless, 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.
Reimplemented in ryujin::EquationOfStateLibrary::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::Pressureless, ryujin::EquationOfStateLibrary::Sesame, and ryujin::EquationOfStateLibrary::VanDerWaals.
Definition at line 146 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::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::Pressureless, ryujin::EquationOfStateLibrary::Sesame, ryujin::EquationOfStateLibrary::VanDerWaals, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::Pressureless, 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.
Reimplemented in ryujin::EquationOfStateLibrary::Function, ryujin::EquationOfStateLibrary::JonesWilkinsLee, ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas, ryujin::EquationOfStateLibrary::PolytropicGas, ryujin::EquationOfStateLibrary::Pressureless, ryujin::EquationOfStateLibrary::Sesame, and ryujin::EquationOfStateLibrary::VanDerWaals.
Definition at line 177 of file equation_of_state.h.
References speed_of_sound().
|
protected |
Return the interpolation covolume constant (b). Return the interpolation reference pressure (pinfty). Return the interpolation reference specific internal energy (q). 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 226 of file equation_of_state.h.
Referenced by EquationOfState(), ryujin::EquationOfStateLibrary::Function::Function(), ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas::NobleAbelStiffenedGas(), and ryujin::EquationOfStateLibrary::VanDerWaals::VanDerWaals().
|
protected |
Definition at line 227 of file equation_of_state.h.
Referenced by EquationOfState(), ryujin::EquationOfStateLibrary::Function::Function(), and ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas::NobleAbelStiffenedGas().
|
protected |
Definition at line 228 of file equation_of_state.h.
Referenced by EquationOfState(), ryujin::EquationOfStateLibrary::Function::Function(), and ryujin::EquationOfStateLibrary::NobleAbelStiffenedGas::NobleAbelStiffenedGas().
|
protected |
Definition at line 229 of file equation_of_state.h.
Referenced by EquationOfState().