Implementation of the isothermal EOS.
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) |
|
Implementation of the isothermal EOS.
- 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 63 of file eos.c.
75 print (
"! Enthalpy: enthalpy not defined in isothermal EOS\n");
void print(const char *fmt,...)
#define QUIT_PLUTO(e_code)
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 80 of file eos.c.
92 print (
"Entropy: entropy not defined for isothermal EOS\n");
void print(const char *fmt,...)
#define QUIT_PLUTO(e_code)
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 == HD || PHYSICS == MHD
43 for (i = beg; i <= end; i++) cs2[i] = g_isoSoundSpeed*g_isoSoundSpeed;
48 for (j = beg; j <= end; j++) cs2[j] = g_isoSoundSpeed*g_isoSoundSpeed;
53 for (k = beg; k <= end; k++) cs2[k] = g_isoSoundSpeed*g_isoSoundSpeed;
57 print (
"! SoundSpeed2: not defined for this EoS\n");
int g_i
x1 grid index when sweeping along the x2 or x3 direction.
int g_dir
Specifies the current sweep or direction of integration.
int g_j
x2 grid index when sweeping along the x1 or x3 direction.
void print(const char *fmt,...)
int g_k
x3 grid index when sweeping along the x1 or x2 direction.
#define QUIT_PLUTO(e_code)