![]() |
Peano
|
Defines the adiabatic index (polytropix index) \(\gamma\) of the problem and (fast) mathematical functions involving it. More...
Go to the source code of this file.
Functions | |
__attribute__ ((always_inline, const)) INLINE static float pow_gamma(float x) | |
Returns the argument to the power given by the adiabatic index. | |
Defines the adiabatic index (polytropix index) \(\gamma\) of the problem and (fast) mathematical functions involving it.
Definition in file adiabatic_index.h.
__attribute__ | ( | (always_inline, const) | ) |
Returns the argument to the power given by the adiabatic index.
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.
Approximate version of exp(x) using a 6th order Taylor expansion.
Approximate version of expf(x) using a 6th order Taylor expansion.
Return the argument to the power three (adiabatic index - 1).
Return the argument to the power three adiabatic index minus five over two.
Return the argument to the power three adiabatic index minus two.
Return the argument to the power one over the adiabatic index.
Return the inverse argument to the power given by the adiabatic index plus one divided by two times the adiabatic index.
Return the argument to the power given by the adiabatic index minus one divided by two times the adiabatic index.
Return the argument to the power given by two times the adiabatic index divided by the adiabatic index minus one.
Return the argument to the power given by two divided by the adiabatic index minus one.
Returns one over the argument to the power given by the adiabatic index.
Returns one over the argument to the power given by the adiabatic index minus one.
Returns the argument to the power given by the adiabatic index minus one.
Computes \(x^\gamma\).
Computes \(x^{(\gamma-1)}\).
Computes \(x^{-(\gamma-1)}\).
Computes \(x^{-\gamma}\).
x | Argument |
Computes \(x^{\frac{2}{\gamma - 1}}\).
x | Argument |
Computes \(x^{\frac{2\gamma}{\gamma - 1}}\).
x | Argument |
Computes \(x^{\frac{\gamma - 1}{2\gamma}}\).
x | Argument |
Computes \(x^{-\frac{\gamma + 1}{2\gamma}}\).
x | Argument |
Computes \(x^{\frac{1}{\gamma}}\).
x | Argument |
Computes \(x^{3\gamma - 2}\).
x | Argument |
Computes \(x^{(3\gamma - 5)/2}\).
x | Argument |
Computes \(x^{3(\gamma - 1)}\).
x | Argument |
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\) |
Definition at line 112 of file adiabatic_index.h.