include/meltpooldg/compressible_flow/eos_utils.hpp Source File
|
Developer Documentation
|
eos_utils.hpp
Go to the documentation of this file.
A base class for a collection of thermodynamic helper functions, which depend on the equation of stat...
Definition eos_utils.hpp:18
virtual DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > calculate_thermodynamic_pressure(const ConservedVariablesType< dim, number > &conserved_variables) const =0
Calculate the pressure from the conserved variables for a specific equation of state.
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 (pressu...
Definition eos_utils.hpp:105
virtual 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 =0
Calculate the gradient of the temperature from the conserved variables and their gradients for a spec...
virtual DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > calculate_temperature(const ConservedVariablesType< dim, number > &conserved_variables) const =0
Calculate the temperature for a specific equation of state.
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...
Definition eos_utils.hpp:84
virtual ~EquationOfStateUtils()=default
virtual DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > calculate_speed_of_sound(const ConservedVariablesType< dim, number > &conserved_variables) const =0
Calculate the speed of sound for a specific equation of state.
virtual DEAL_II_ALWAYS_INLINE ConservedVariablesType< dim, number > convert_primitive_into_conservative_variables(const ConservedVariablesType< dim, number > &u_prim) const =0
Convert the given primitive variables (pressure, velocity, temperature) to conservative variables (rh...
virtual DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > compute_inner_energy_from_pressure(const dealii::VectorizedArray< number > &pressure, const dealii::VectorizedArray< number > &density) const =0
Calculate the inner energy from a given pressure.
A class for a collection of thermodynamic helper functions for the ideal gas equation of state.
Definition eos_utils.hpp:156
const MaterialPhaseData< number > & material_data
Material data object providing all relevant material parameters.
Definition eos_utils.hpp:301
IdealGas(const MaterialPhaseData< number > &material_data_in)
Constructor.
Definition eos_utils.hpp:164
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 an ideal gas.
Definition eos_utils.hpp:177
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 (rh...
Definition eos_utils.hpp:265
DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > calculate_temperature(const ConservedVariablesType< dim, number > &conserved_variables) const override
Calculate the temperature for an ideal gas.
Definition eos_utils.hpp:246
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 an ideal gas.
Definition eos_utils.hpp:228
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 an ide...
Definition eos_utils.hpp:199
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.
Definition eos_utils.hpp:293
A class for a collection of thermodynamic helper functions for the Noble-Abel stiffened gas equation ...
Definition eos_utils.hpp:310
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 (rh...
Definition eos_utils.hpp:429
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 Nobl...
Definition eos_utils.hpp:358
const MaterialPhaseData< number > & material_data
Material data object providing all relevant material parameters.
Definition eos_utils.hpp:476
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 Noble-Abel stiffened ideal gas.
Definition eos_utils.hpp:388
DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > compute_inner_energy_from_pressure(const dealii::VectorizedArray< number > &pressure, const dealii::VectorizedArray< number > &density) const override
Calculate the inner energy from a given pressure.
Definition eos_utils.hpp:465
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 Noble-Abel stiffened ideal gas.
Definition eos_utils.hpp:332
DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > calculate_temperature(const ConservedVariablesType< dim, number > &conserved_variables) const override
Calculate the temperature for a Noble-Abel stiffened ideal gas.
Definition eos_utils.hpp:408
NobleAbelStiffenedGas(const MaterialPhaseData< number > &material_data_in)
Constructor.
Definition eos_utils.hpp:318
A class for a collection of thermodynamic helper functions for the stiffened gas equation of state.
Definition eos_utils.hpp:485
const MaterialPhaseData< number > & material_data
Material data object providing all relevant material parameters.
Definition eos_utils.hpp:639
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 stif...
Definition eos_utils.hpp:529
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.
Definition eos_utils.hpp:559
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.
Definition eos_utils.hpp:630
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 (rh...
Definition eos_utils.hpp:598
StiffenedGas(const MaterialPhaseData< number > &material_data_in)
Constructor.
Definition eos_utils.hpp:493
DEAL_II_ALWAYS_INLINE dealii::VectorizedArray< number > calculate_temperature(const ConservedVariablesType< dim, number > &conserved_variables) const override
Calculate the temperature for a stiffened gas.
Definition eos_utils.hpp:578
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.
Definition eos_utils.hpp:506
Definition eos_utils.hpp:11
DEAL_II_ALWAYS_INLINE dealii::Tensor< 1, dim, dealii::Tensor< 1, dim, dealii::VectorizedArray< number > > > viscous_stress_tensor(const dealii::Tensor< 1, dim, dealii::Tensor< 1, dim, dealii::VectorizedArray< number > > > &grad_velocity, const dealii::VectorizedArray< number > dynamic_viscosity)
Definition kernels.hpp:51
dealii::Tensor< 1, n_conserved_variables< dim, n_species >, dealii::Tensor< 1, dim, VectorizedArrayType > > ConservedVariablesGradientType
Definition data_types.hpp:44
dealii::Tensor< 1, n_conserved_variables< dim, n_species >, VectorizedArrayType > ConservedVariablesType
Definition data_types.hpp:35
dealii::VectorizedArray< number, N > scalar_product(const dealii::VectorizedArray< number, N > &scalar, const dealii::Tensor< 1, 1, dealii::VectorizedArray< number, N > > &vec)
Definition dealii_tensor.hpp:60
Collection of material parameters for a specific fluid phase.
Definition material.hpp:119
Generated by