|
PLUTO
|
Templeate file for the PVTE_LAW EoS.
More...
#include "pluto.h"
Go to the source code of this file.
Functions | |
| double | InternalEnergyFunc (double *v, double T) |
| void | GetMu (double T, double rho, double *mu) |
| double | Gamma1 (double *v) |
Templeate file for the PVTE_LAW EoS.
Collect the basic set of functions required by the PVTE_LAW equation of state:
Definition in file pvte_law_template.c.
| double Gamma1 | ( | double * | v | ) |
Calculate the value of the first adiabatic index:
where p and rho are in c.g.s units. Note that if species are evolved explicitly (non-equilibrium chemistry), we set chi=1.
The heat capacity at constant volume, cV, is defined as the derivative of specific internal energy with respect to temperature:
and it is computed numerically using a centered derivative.
This function is needed (at present) only when computing the sound speed in the Riemann solver. Since this is only needed for an approximated value, 5/3 (upper bound) should be ok.
Reference
| [in] | v | 1D array of primitive quantities |
Definition at line 56 of file pvte_law_template.c.
| void GetMu | ( | double | T, |
| double | rho, | ||
| double * | mu | ||
| ) |
Calculate the mean molecular weight for the case in which hydrogen fractions are estimated using Saha Equations.
| [in] | T | Gas temperature in Kelvin. |
| [in] | rho | Gas density (code units) |
| [out] | mu | Mean molecular weight |
Definition at line 42 of file pvte_law_template.c.
| double InternalEnergyFunc | ( | double * | v, |
| double | T | ||
| ) |
Compute the gas internal energy as a function of temperature and fractions (or density):
rhoe = rhoe(T,rho) in LTE or CIE; rhoe = rhoe(T,X) in non-equilibrium chemistry.| [in] | v | 1D Array of primitive variables containing density and species. Other variables are ignored. |
| [in] | T | Gas temperature |
rhoe) in code units. Definition at line 24 of file pvte_law_template.c.