HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions
eos.c File Reference

Equation of State general functions. More...

#include "decs.h"
#include "coldeos.c"
#include "idealgaseos.c"
#include "mignoneeos.c"
#include "grbpwf99eos.c"
#include "kazfulleos.c"
Include dependency graph for eos.c:

Go to the source code of this file.

Macros

#define OLDCALC   0
 

Functions

FTYPE pressure_rho0_u (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE u)
 p(rho0, u) (needed to get initial guess for W) More...
 
FTYPE u_rho0_p (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE p)
 u(rho0, p) (used for initial conditions) More...
 
FTYPE u_rho0_T (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE T)
 u(rho0, T) (used for initial conditions) More...
 
FTYPE dpdu_rho0_u (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE u)
 dp(rho0, u)/du More...
 
FTYPE dpdrho0_rho0_u (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE u)
 dp(rho0, u)/drho0 More...
 
FTYPE cs2_compute (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE u)
 sound speed squared (for vchar.c) More...
 
FTYPE compute_dSdrho (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE u)
 used for dudp_calc More...
 
FTYPE compute_dSdu (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE u)
 used for dudp_calc More...
 
FTYPE compute_specificentropy_wmrho0 (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
 specific entropy as function of rho0 and internal energy (wmrho0) specificS(rho0,wmrho0) More...
 
FTYPE compute_dspecificSdrho_wmrho0 (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
 used for utoprim_jon entropy inversion More...
 
FTYPE compute_dspecificSdwmrho0_wmrho0 (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
 used for utoprim_jon entropy inversion More...
 
FTYPE pressure_wmrho0 (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
 p(rho0, w-rho0 = u+p) More...
 
FTYPE compute_idwmrho0dp (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
 1 / (d(u+p)/dp) holding rho0 fixed More...
 
FTYPE compute_idrho0dp (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
 1 / (drho0/dp) holding wmrho0 fixed More...
 
FTYPE compute_qdot (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE u)
 radiation rate More...
 
void compute_EOS_parms_full (int whicheos, FTYPE(*EOSextra)[NSTORE2][NSTORE3][NUMEOSGLOBALS], FTYPE(*prim)[NSTORE2][NSTORE3][NPR])
 compute EOS all parameters More...
 
void store_EOS_parms (int whicheos, int numparms, FTYPE *EOSextra, FTYPE *parlist)
 store EOS parameters More...
 
void get_EOS_parms (int whicheos, int *numparms, FTYPE *EOSextra, FTYPE *parlist)
 get EOS parameters More...
 
FTYPE pressure_rho0_w (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE w)
 old function p(rho0,w) More...
 

Detailed Description

Equation of State general functions.

//////////////////////////

IMPLEMENT EOS

u_rho0_p : used by initial conditions

u_rho0_T : used by initial conditions

pressure_rho0_u : used by inversion for initial guess and by rest of code to set pressure as functions of rho0 and u

dpdu_rho0_u dpdrho0_rho0_u : used by sources or other such derivatives

cs2_compute : used by vchar.c for characteristics

pressure_wmrho0 : used by inversion

compute_idwmrho0dp : used by 2D inversion

compute_entropy and compute_u_from_entropy : used by entropy evolution and inversion

//////////////////////////

Definition in file eos.c.

Macro Definition Documentation

#define OLDCALC   0

Definition at line 31 of file eos.c.

Function Documentation

FTYPE compute_dSdrho ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  u 
)

used for dudp_calc

Definition at line 115 of file eos.c.

FTYPE compute_dSdu ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  u 
)

used for dudp_calc

Definition at line 122 of file eos.c.

FTYPE compute_dspecificSdrho_wmrho0 ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  wmrho0 
)

used for utoprim_jon entropy inversion

Definition at line 138 of file eos.c.

FTYPE compute_dspecificSdwmrho0_wmrho0 ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  wmrho0 
)

used for utoprim_jon entropy inversion

Definition at line 144 of file eos.c.

void compute_EOS_parms_full ( int  whicheos,
FTYPE(*)  EOSextra[NSTORE2][NSTORE3][NUMEOSGLOBALS],
FTYPE(*)  prim[NSTORE2][NSTORE3][NPR] 
)

compute EOS all parameters

Definition at line 213 of file eos.c.

Here is the caller graph for this function:

FTYPE compute_idrho0dp ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  wmrho0 
)

1 / (drho0/dp) holding wmrho0 fixed

Definition at line 167 of file eos.c.

FTYPE compute_idwmrho0dp ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  wmrho0 
)

1 / (d(u+p)/dp) holding rho0 fixed

Definition at line 160 of file eos.c.

FTYPE compute_qdot ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  u 
)

radiation rate

Definition at line 174 of file eos.c.

FTYPE compute_specificentropy_wmrho0 ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  wmrho0 
)

specific entropy as function of rho0 and internal energy (wmrho0) specificS(rho0,wmrho0)

Definition at line 132 of file eos.c.

Here is the caller graph for this function:

FTYPE cs2_compute ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  u 
)

sound speed squared (for vchar.c)

Definition at line 96 of file eos.c.

FTYPE dpdrho0_rho0_u ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  u 
)

dp(rho0, u)/drho0

Definition at line 90 of file eos.c.

FTYPE dpdu_rho0_u ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  u 
)

dp(rho0, u)/du

Definition at line 84 of file eos.c.

void get_EOS_parms ( int  whicheos,
int *  numparms,
FTYPE EOSextra,
FTYPE parlist 
)

get EOS parameters

Definition at line 225 of file eos.c.

FTYPE pressure_rho0_u ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  u 
)

p(rho0, u) (needed to get initial guess for W)

Definition at line 66 of file eos.c.

Here is the caller graph for this function:

FTYPE pressure_rho0_w ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  w 
)

old function p(rho0,w)

Definition at line 252 of file eos.c.

Here is the call graph for this function:

FTYPE pressure_wmrho0 ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  wmrho0 
)

p(rho0, w-rho0 = u+p)

Definition at line 153 of file eos.c.

Here is the caller graph for this function:

void store_EOS_parms ( int  whicheos,
int  numparms,
FTYPE EOSextra,
FTYPE parlist 
)

store EOS parameters

Definition at line 219 of file eos.c.

FTYPE u_rho0_p ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  p 
)

u(rho0, p) (used for initial conditions)

Definition at line 72 of file eos.c.

FTYPE u_rho0_T ( int  whicheos,
FTYPE EOSextra,
FTYPE  rho0,
FTYPE  T 
)

u(rho0, T) (used for initial conditions)

Definition at line 78 of file eos.c.