StiffenedGas< dim, number > Class Template Reference
|
Developer Documentation
|
A class for a collection of thermodynamic helper functions for the stiffened gas equation of state. More...
#include <eos_utils.hpp>
Public Member Functions | |
| StiffenedGas (const MaterialPhaseData< number > &material_data_in) | |
| Constructor. | |
| DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > | calculate_thermodynamic_pressure (const ConservedVariablesType< dim, number > &conserved_variables) const override |
| Calculate the pressure from the conserved variables for a stiffened gas. | |
| DEAL_II_ALWAYS_INLINE dealii::Tensor< 1, dim, dealii::VectorizedArray< number > > | calculate_grad_T (const ConservedVariablesType< dim, number > &conserved_variables, const ConservedVariablesGradientType< dim, number > &grad_conserved_variables) const override |
| Calculate the gradient of the temperature from the conserved variables and their gradients for a stiffened gas. | |
| DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > | calculate_speed_of_sound (const ConservedVariablesType< dim, number > &conserved_variables) const override |
| Calculate the speed of sound for a stiffened gas. | |
| DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > | calculate_temperature (const ConservedVariablesType< dim, number > &conserved_variables) const override |
| Calculate the temperature for a stiffened gas. | |
| DEAL_II_ALWAYS_INLINE ConservedVariablesType< dim, number > | convert_primitive_into_conservative_variables (const ConservedVariablesType< dim, number > &u_prim) const override |
| Convert the given primitive variables (pressure, velocity, temperature) to conservative variables (rho, momentum, total energy). | |
| DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > | compute_inner_energy_from_pressure (const dealii::VectorizedArray< number > &pressure, const dealii::VectorizedArray< number > &) const override |
| Calculate the inner energy from a given pressure. | |
Public Member Functions inherited from MeltPoolDG::CompressibleFlow::EOS::EquationOfStateUtils< dim, number > | |
| virtual | ~EquationOfStateUtils ()=default |
| DEAL_II_ALWAYS_INLINE dealii::Tensor< 2, dim, dealii::VectorizedArray< number > > | calculate_stress_tensor (const ConservedVariablesType< dim, number > &conserved_variables, const dealii::Tensor< 2, dim, dealii::VectorizedArray< number > > &viscous_stress_tensor) const |
| Calculate the total stress tensor from pressure contribution and viscous stress contribution sigma_ij = tau_ij - p * delta_ij. | |
| DEAL_II_ALWAYS_INLINE ConservedVariablesType< dim, number > | convert_conservative_into_primitive_variables (const ConservedVariablesType< dim, number > &u_cons) const |
| Convert the given conservative variables (rho, momentum, total energy) to primitive variables (pressure, velocity, temperature). | |
Private Attributes | |
| const MaterialPhaseData< number > & | material_data |
| Material data object providing all relevant material parameters. | |
Detailed Description
class MeltPoolDG::CompressibleFlow::EOS::StiffenedGas< dim, number >
A class for a collection of thermodynamic helper functions for the stiffened gas equation of state.
Constructor & Destructor Documentation
◆ StiffenedGas()
|
inlineexplicit |
Constructor.
- Parameters
-
material_data_in Reference to a material data object providing all relevant material parameters.
Member Function Documentation
◆ calculate_grad_T()
|
inlineoverridevirtual |
Calculate the gradient of the temperature from the conserved variables and their gradients for a stiffened gas.
- Parameters
-
conserved_variables Current values of the conserved variables. grad_conserved_variables Current gradient of the conserved variables.
- Returns
- Current gradient of the temperature field.
Implements MeltPoolDG::CompressibleFlow::EOS::EquationOfStateUtils< dim, number >.
◆ calculate_speed_of_sound()
|
inlineoverridevirtual |
Calculate the speed of sound for a stiffened gas.
- Parameters
-
conserved_variables Current values of the conserved variables.
- Returns
- Speed of sound resulting from the values of the conserved variables.
Implements MeltPoolDG::CompressibleFlow::EOS::EquationOfStateUtils< dim, number >.
◆ calculate_temperature()
|
inlineoverridevirtual |
Calculate the temperature for a stiffened gas.
- Parameters
-
conserved_variables Current values of the conserved variables.
- Returns
- Temperature resulting from the values of the conserved variables.
Implements MeltPoolDG::CompressibleFlow::EOS::EquationOfStateUtils< dim, number >.
◆ calculate_thermodynamic_pressure()
|
inlineoverridevirtual |
Calculate the pressure from the conserved variables for a stiffened gas.
- Parameters
-
conserved_variables Current values of the conserved variables.
- Returns
- Pressure resulting from the values of the conserved variables.
Implements MeltPoolDG::CompressibleFlow::EOS::EquationOfStateUtils< dim, number >.
◆ compute_inner_energy_from_pressure()
|
inlineoverridevirtual |
Calculate the inner energy from a given pressure.
- Parameters
-
pressure Given pressure value.
- Returns
- Inner energy resulting from the given pressure and density values.
Implements MeltPoolDG::CompressibleFlow::EOS::EquationOfStateUtils< dim, number >.
◆ convert_primitive_into_conservative_variables()
|
inlineoverridevirtual |
Convert the given primitive variables (pressure, velocity, temperature) to conservative variables (rho, momentum, total energy).
- Parameters
-
u_prim Current values in primitive variables formulation.
- Returns
- Current values in conservative variables formulation.
Implements MeltPoolDG::CompressibleFlow::EOS::EquationOfStateUtils< dim, number >.
Member Data Documentation
◆ material_data
|
private |
Material data object providing all relevant material parameters.
The documentation for this class was generated from the following file:
- include/meltpooldg/compressible_flow/eos_utils.hpp
Generated by
Public Member Functions inherited from