Taub-Matthews (TM) EOS for relativistic hydro and MHD.
More...
Go to the source code of this file.
|
void | SoundSpeed2 (double **v, double *cs2, double *h, int beg, int end, int pos, Grid *grid) |
|
void | Enthalpy (double **v, real *h, int beg, int end) |
|
void | Entropy (double **v, double *s, int beg, int end) |
|
Taub-Matthews (TM) EOS for relativistic hydro and MHD.
- Author
- A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
- Date
- April 14, 2014
Definition in file eos.c.
void Enthalpy |
( |
double ** |
v, |
|
|
real * |
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.
Definition at line 50 of file eos.c.
65 #if PHYSICS == RHD || PHYSICS == RMHD
66 for (i = beg; i <= end; i++) {
67 theta = v[
i][PRS]/v[
i][
RHO];
69 h[
i] = 1.0 + gmmr*theta;
71 h[
i] = 2.5*theta + sqrt(2.25*theta*theta + 1.0);
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.
Definition at line 78 of file eos.c.
93 #if PHYSICS == RHD || PHYSICS == RMHD
94 for (i = beg; i <= end; i++) {
100 s[
i] = v[
i][PRS]/pow(rho,5./3.)*(1.5*th + sqrt(2.25*th*th + 1.0));
void SoundSpeed2 |
( |
double ** |
v, |
|
|
double * |
cs2, |
|
|
double * |
h, |
|
|
int |
beg, |
|
|
int |
end, |
|
|
int |
pos, |
|
|
Grid * |
grid |
|
) |
| |
Define the square of the sound speed.
- Parameters
-
[in] | v | 1D array of primitive quantities |
[out] | cs2 | 1D array containing the square of the sound speed |
[in] | h | 1D array of enthalpy values |
[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.
Definition at line 13 of file eos.c.
33 #if PHYSICS == RHD || PHYSICS == RMHD
35 for (i = beg; i <= end; i++) {
36 theta = v[
i][PRS]/v[
i][
RHO];
40 cs2[
i] = theta/(3.0*h[
i])*(5.0*h[i] - 8.0*theta)/(h[
i] - theta);
44 print (
"! SoundSpeed2: Taub EOS not defined for this physics module.\n");
void Enthalpy(double **v, real *h, int beg, int end)
void print(const char *fmt,...)
#define QUIT_PLUTO(e_code)