13 void SoundSpeed2 (
double **v,
double *cs2,
double *h,
int beg,
int end,
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");
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);
78 void Entropy (
double **v,
double *
s,
int beg,
int end)
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 Enthalpy(double **v, real *h, int beg, int end)
void SoundSpeed2(double **v, double *cs2, double *h, int beg, int end, int pos, Grid *grid)
void Entropy(double **v, double *s, int beg, int end)
void print(const char *fmt,...)
#define QUIT_PLUTO(e_code)