16 void SoundSpeed2 (
double **v,
double *cs2,
double *h,
int beg,
int end,
35 #if PHYSICS == HD || PHYSICS == MHD
36 for (i = beg; i <= end; i++) cs2[i] =
g_gamma*v[i][PRS]/v[i][
RHO];
37 #elif PHYSICS == RHD || PHYSICS == RMHD
40 for (i = beg; i <= end; i++) {
41 theta = v[
i][PRS]/v[
i][
RHO];
69 #if PHYSICS == HD || PHYSICS == MHD
70 for (i = beg; i <= end; i++) h[i] = gmmr*v[i][PRS]/v[i][
RHO];
71 #elif PHYSICS == RHD || PHYSICS == RMHD
72 for (i = beg; i <= end; i++) {
73 theta = v[
i][PRS]/v[
i][
RHO];
74 h[
i] = 1.0 + gmmr*theta;
80 void Entropy (
double **v,
double *
s,
int beg,
int end)
95 #if PHYSICS == HD || PHYSICS == MHD
96 for (i = beg; i <= end; i++){
100 #elif PHYSICS == RHD || PHYSICS == RMHD
101 for (i = beg; i <= end; i++) {
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)