Ideal (constant gamma) EOS.
More...
|
void | SoundSpeed2 (const State *p, int beg, int end, int pos, Grid *grid) |
|
void | Enthalpy (double **v, double *h, int beg, int end) |
|
void | Entropy (double **v, double *s, int beg, int end) |
|
Implements essential functions for the constant-gamma law for hydro/MHD, relativistic hydro/relativistic MHD.
- Author
- A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
- Date
- Sep 30, 2018
◆ Enthalpy()
void Enthalpy |
( |
double ** |
v, |
|
|
double * |
h, |
|
|
int |
beg, |
|
|
int |
end |
|
) |
| |
Compute the enthalpy.
- Parameters
-
[in] | v | 1D array of primitive quantities |
[in] | h | 1D array of enthalpy values |
[in] | beg | initial index of computation |
[in] | end | final index of computation |
- Returns
- This function has no return value.
◆ Entropy()
void Entropy |
( |
double ** |
v, |
|
|
double * |
s, |
|
|
int |
beg, |
|
|
int |
end |
|
) |
| |
Compute the entropy.
- Parameters
-
[in] | v | 1D array of primitive quantities |
[in] | s | 1D array of entropy values |
[in] | is | initial index of computation |
[in] | ie | final index of computation |
- Returns
- This function has no return value.
◆ SoundSpeed2()
void SoundSpeed2 |
( |
const State * |
p, |
|
|
int |
beg, |
|
|
int |
end, |
|
|
int |
pos, |
|
|
Grid * |
grid |
|
) |
| |
Define the square of the sound speed.
- Parameters
-
[in] | p | pointer to a state structure |
[in] | beg | initial index of computation |
[in] | end | final index of computation |
[in] | pos | an integer specifying the spatial position inside the cell (only for spatially-dependent EOS) |
[in] | grid | pointer to an array of Grid structures |
- Returns
- This function has no return value.