Version 2 (modified by 12 years ago) ( diff ) | ,
---|
FUNCTION Press(REAL[] q, [REAL kappa], [REAL chi], [REAL[] dpdq])
Defined In:
Inputs:
REAL[]
q. An array of field variables for a single cell.
REAL kappa
. An optional INTENT(OUT)
value. What gets returned here is dependent on the iEOS
setting. The default return value is gamma - 1
.
REAL chi
. An optional INTENT(OUT)
value. What gets returned here is dependent on the iEOS
setting. The default return value is 0.0
.
REAL[] dpdq
. A 1D array. If present, it will be returned with pressure's derivative with respect to each field variable in q
.
Returns:
A floating-point value representing Pressure.
Description:
Returns the pressure calculated from the values in q
. Depending on the equation of state EOS
option, this can be calculated any number of ways. Currently, the ideal gas case and the Tomas-Fermi case are implemented.
If the dpdq
array is present, then the derivatives of the pressure with respect to each variable in q
will be returned. It is assumed that LENGTH(dpdq) = LENGTH(q)
.
Called In:
ODEs :: Cyl2DJac()
ODEs :: DMCoolJac()
ODEs :: AnalyticCoolingSlope()
hydro_physflux :: physflux_hydro()
Modules Used:
COOL
TF
Files Included:
None.