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

Equation of State function declarations. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

FTYPE pressure_rho0_u_simple_forcheckinversion (int i, int j, int k, int loc, FTYPE rho, FTYPE u)
 wrapper [assumed not called by utoprim_jon.c that could change EOS type] used for inversion check More...
 
FTYPE compute_entropy_simple_forcheckinversion (int i, int j, int k, int loc, FTYPE rho, FTYPE u)
 wrapper this function should NOT be called by utoprim_jon.c inversion More...
 
int ufromentropy_calc (struct of_geom *ptrgeom, FTYPE entropy, FTYPE *pr)
 u from entropy (uses pr[RHO]) wrapper More...
 
int entropy_calc (struct of_geom *ptrgeom, FTYPE *pr, FTYPE *entropy)
 entropy wrapper this function should NOT be called by utoprim_jon.c inversion More...
 
int entropy_calc_forcheckinversion (struct of_geom *ptrgeom, FTYPE *pr, FTYPE *entropy)
 entropy wrapper this function should NOT be called by utoprim_jon.c inversion More...
 
int invertentropyflux_calc (struct of_geom *ptrgeom, FTYPE entropyflux, int dir, struct of_state *q, FTYPE *pr)
 ptrgeom->i,ptrgeom->j,ptrgeom->k,ptrgeom->p More...
 
FTYPE pressure_rho0_w (int whicheos, FTYPE *EOSextra, FTYPE rho0, FTYPE w)
 old function p(rho0,w) More...
 
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 u)
 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...
 

Detailed Description

Equation of State function declarations.

Definition in file eos.funcdeclare.h.

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.

FTYPE compute_entropy_simple_forcheckinversion ( int  i,
int  j,
int  k,
int  loc,
FTYPE  rho,
FTYPE  u 
)

wrapper this function should NOT be called by utoprim_jon.c inversion

Definition at line 3886 of file phys.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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  u 
)

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.

int entropy_calc ( struct of_geom ptrgeom,
FTYPE pr,
FTYPE entropy 
)

entropy wrapper this function should NOT be called by utoprim_jon.c inversion

Definition at line 3793 of file phys.tools.c.

int entropy_calc_forcheckinversion ( struct of_geom ptrgeom,
FTYPE pr,
FTYPE entropy 
)

entropy wrapper this function should NOT be called by utoprim_jon.c inversion

Definition at line 3803 of file phys.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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

get EOS parameters

Definition at line 225 of file eos.c.

int invertentropyflux_calc ( struct of_geom ptrgeom,
FTYPE  entropyflux,
int  dir,
struct of_state q,
FTYPE pr 
)

ptrgeom->i,ptrgeom->j,ptrgeom->k,ptrgeom->p

Definition at line 2334 of file phys.tools.c.

Here is the call graph for this function:

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_u_simple_forcheckinversion ( int  i,
int  j,
int  k,
int  loc,
FTYPE  rho,
FTYPE  u 
)

wrapper [assumed not called by utoprim_jon.c that could change EOS type] used for inversion check

Definition at line 3823 of file phys.tools.c.

Here is the call graph for this function:

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.

int ufromentropy_calc ( struct of_geom ptrgeom,
FTYPE  entropy,
FTYPE pr 
)

u from entropy (uses pr[RHO]) wrapper

Definition at line 2347 of file phys.tools.c.

Here is the caller graph for this function: