Peano
Loading...
Searching...
No Matches
exaparty::kernels::legacy::eos Namespace Reference

Functions

 __attribute__ ((always_inline, const)) inline static double gas_internal_energy_from_entropy(double density
 Returns the internal energy given density and entropy.
 

Variables

double entropy
 
double pressure
 
double u
 
double P
 

Function Documentation

◆ __attribute__()

exaparty::kernels::legacy::eos::__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}\).

Parameters
densityThe density \(\rho\).
entropyThe entropy \(A\).

Computes \(P = A\rho^\gamma\).

Parameters
densityThe density \(\rho\).
entropyThe entropy \(A\).

Computes \(A = \frac{P}{\rho^-\gamma}\).

Parameters
densityThe density \(\rho\).
pressureThe pressure \(P\).
Returns
The entropy \(A\).

Computes \(c = \sqrt{\gamma A \rho^{\gamma-1}}\).

Parameters
densityThe density \(\rho\).
entropyThe entropy \(A\).

Computes \(A = \frac{(\gamma - 1)u}{\rho^{\gamma-1}}\).

Parameters
densityThe density \(\rho\)
uThe internal energy \(u\)

Computes \(P = (\gamma - 1)u\rho\).

Parameters
densityThe density \(\rho\)
uThe internal energy \(u\)

Computes \(u = \frac{1}{\gamma - 1}\frac{P}{\rho}\).

Parameters
densityThe density \(\rho\).
pressureThe pressure \(P\).
Returns
The internal energy \(u\).

Computes \(c = \sqrt{\gamma (\gamma - 1) u }\).

Parameters
uThe internal energy \(u\)

Computes \(c = \sqrt{\frac{\gamma P}{\rho} }\).

Parameters
densityThe density \(\rho\)
PThe pressure \(P\)

Definition at line 136 of file equation_of_state.h.

References u.

Variable Documentation

◆ entropy

double exaparty::kernels::legacy::eos::entropy
Initial value:
{
return entropy * adiabaticIndex::pow_gamma_minus_one(density) * hydro_one_over_gamma_minus_one

Definition at line 31 of file equation_of_state.h.

◆ P

double exaparty::kernels::legacy::eos::P
Initial value:
{
return std::sqrt(hydro_gamma * P / density)

Definition at line 150 of file equation_of_state.h.

◆ pressure

double exaparty::kernels::legacy::eos::pressure
Initial value:
{
return pressure * adiabaticIndex::pow_minus_gamma(density)

Definition at line 62 of file equation_of_state.h.

◆ u

double exaparty::kernels::legacy::eos::u
Initial value:
{
return hydro_gamma_minus_one * u * adiabaticIndex::pow_minus_gamma_minus_one(density)

Definition at line 92 of file equation_of_state.h.

Referenced by __attribute__().