wiki:Press

Version 2 (modified by trac, 12 years ago) ( diff )

FUNCTION Press(REAL[] q, [REAL kappa], [REAL chi], [REAL[] dpdq])


Defined In:

contrib/astro/problem.f90


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:

Problem :: problemIO()

i_protect :: Protect()

i_qinit :: qinit()

ODEs :: Cyl2D()

ODEs :: Cyl2DJac()

ODEs :: Cyl2DJacMHD()

ODEs :: DMCoolJac()

ODEs :: AnalyticCoolJac()

ODEs :: AnalyticCoolingRate()

ODEs :: AnalyticCoolingSlope()

hydro_physflux :: physflux_hydro()

Source :: src()

Source :: SrcProtect()


Modules Used:

COOL

TF


Files Included:

None.

Note: See TracWiki for help on using the wiki.