![]() |
Peano
|
Go to the source code of this file.
Data Structures | |
struct | eos_parameters |
The parameters of the equation of state for the gas. More... | |
Functions | |
__attribute__ ((always_inline, const)) INLINE static float gas_internal_energy_from_entropy(float density | |
Returns the internal energy given density and entropy. | |
static INLINE void | eos_init (struct eos_parameters *e, const struct phys_const *phys_const, const struct unit_system *us, struct swift_params *params) |
Initialize the eos parameters. | |
static INLINE void | eos_print (const struct eos_parameters *e) |
Print the equation of state. | |
Variables | |
struct eos_parameters | eos |
float | entropy |
float | pressure |
float | u |
float | P |
__attribute__ | ( | (always_inline, const) | ) |
Returns the internal energy given density and entropy.
Returns the sound speed given density and pressure.
Returns the sound speed given density and internal energy.
Returns the internal energy given density and pressure.
Returns the pressure given density and internal energy.
Returns the entropy given density and internal energy.
Returns the sound speed given density and entropy.
Returns the entropy given density and pressure.
Returns the pressure given density and entropy.
Computes \(u = \frac{A\rho^{\gamma-1} }{\gamma - 1}\).
density | The density \(\rho\). |
entropy | The entropy \(A\). |
Computes \(P = A\rho^\gamma\).
density | The density \(\rho\). |
entropy | The entropy \(A\). |
Computes \(A = \frac{P}{\rho^-\gamma}\).
density | The density \(\rho\). |
pressure | The pressure \(P\). |
Computes \(c = \sqrt{\gamma A \rho^{\gamma-1}}\).
density | The density \(\rho\). |
entropy | The entropy \(A\). |
Computes \(A = \frac{(\gamma - 1)u}{\rho^{\gamma-1}}\).
density | The density \(\rho\) |
u | The internal energy \(u\) |
Computes \(P = (\gamma - 1)u\rho\).
density | The density \(\rho\) |
u | The internal energy \(u\) |
Computes \(u = \frac{1}{\gamma - 1}\frac{P}{\rho}\).
density | The density \(\rho\). |
pressure | The pressure \(P\). |
Computes \(c = \sqrt{\gamma (\gamma - 1) u }\).
density | The density \(\rho\) |
u | The internal energy \(u\) |
Computes \(c = \sqrt{\frac{\gamma P}{\rho} }\).
density | The density \(\rho\) |
P | The pressure \(P\) |
|
static |
Initialize the eos parameters.
Nothing to do here since this EoS is parameter-free.
e | The eos_parameters. |
phys_const | The physical constants in the internal unit system. |
us | The internal unit system. |
params | The parsed parameters. |
Definition at line 179 of file equation_of_state.h.
|
static |
Print the equation of state.
e | The eos_parameters |
Definition at line 188 of file equation_of_state.h.
float entropy |
Definition at line 49 of file equation_of_state.h.
|
extern |
Definition at line 46 of file equation_of_state.c.
float P |
Definition at line 164 of file equation_of_state.h.
Referenced by toolbox::blockstructured::internal::createInterpolationMatrixFrom1dTemplateByInsertingZeroColsAndRows(), toolbox::blockstructured::internal::createInterpolationMatrixFrom1dTemplateByLinearInterpolationAlongNormal(), toolbox::blockstructured::interpolateHaloLayer_AoS_linear_with_constant_extrapolation(), toolbox::blockstructured::interpolateHaloLayer_AoS_linear_with_constant_extrapolation_and_linear_normal_interpolation(), toolbox::blockstructured::interpolateHaloLayer_AoS_linear_with_linear_extrapolation(), toolbox::blockstructured::interpolateHaloLayer_AoS_linear_with_linear_extrapolation_and_linear_normal_interpolation(), toolbox::blockstructured::interpolateHaloLayer_AoS_piecewise_constant(), and tarch::la::tests::DynamicMatrixTest::testBatchedMultiplyAoS().
p force pressure |
Definition at line 79 of file equation_of_state.h.
Referenced by applications::exahype2::CompressibleNavierStokes::NavierStokesSolver::boundaryConditions(), applications::exahype2::CompressibleNavierStokes::NavierStokesSolver::calculateDerivatives(), applications::exahype2::CompressibleNavierStokes::NavierStokesSolver::flux(), swift2::kernels::legacy::hydro_predict_extra(), swift2::kernels::legacy::hydro_reset_predicted_values(), applications::exahype2::CompressibleNavierStokes::NavierStokesSolver::initialCondition(), benchmarks::swift2::hydro::kernel_throughput::initNohProblemIC(), applications::exahype2::CompressibleNavierStokes::NavierStokesSolver::maxEigenvalue(), and applications::exahype2::CompressibleNavierStokes::NavierStokesSolver::sourceTerm().
const struct cosmology const struct pressure_floor_props const float u |
Definition at line 107 of file equation_of_state.h.
Referenced by examples::exahype2::mgccz4::admconstraints(), applications::exahype2::ccz4::admconstraints(), TP::Utilities::chebft_Extremes(), TP::Utilities::chebft_Zeros(), applications::exahype2::swe::frictionlaws::coulombFriction(), TP::Utilities::fourder(), TP::Utilities::fourder2(), TP::Utilities::fourev(), TP::Utilities::fourft(), tarch::multicore::getNumberOfUnmaskedThreads(), swift2::kernels::legacy::kernelHydro::kernel_deval(), swift2::kernels::legacy::kernelHydro::kernel_eval(), main(), applications::exahype2::swe::frictionlaws::materialDependentBasalFriction(), applications::exahype2::ccz4::ncp(), examples::exahype2::mgccz4::ncp(), tarch::multicore::printUnmaskedThreads(), Numerics::rotate_dofs(), Numerics::rotate_dofs_inverse(), petsc::LinearEquationSystem::solve(), applications::exahype2::ccz4::source(), examples::exahype2::mgccz4::source(), applications::exahype2::ccz4::TestingOutput(), and applications::exahype2::ccz4::ThetaOutputNCP().