PLUTO
|
PVTE_LAW for a partially ionized gas. More...
#include "pluto.h"
Go to the source code of this file.
Macros | |
#define | DIFF_ORDER |
#define | INTE_EXACT 1 /* Compute internal energy exactly in Gamma1() */ |
Functions | |
static double | SahaXFrac (double T, double rho) |
double | InternalEnergyFunc (double *v, double T) |
void | GetMu (double T, double rho, double *mu) |
double | Gamma1 (double *v) |
PVTE_LAW for a partially ionized gas.
Compute the internal energy for a partially ionized hydrogen gas.
Reference
Definition in file pvte_law_H+.c.
#define DIFF_ORDER |
Definition at line 19 of file pvte_law_H+.c.
#define INTE_EXACT 1 /* Compute internal energy exactly in Gamma1() */ |
Definition at line 21 of file pvte_law_H+.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.
[in] | v | 1D array of primitive quantities |
Definition at line 113 of file pvte_law_H+.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 96 of file pvte_law_H+.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_H+.c.
|
static |
Use Saha equation to compute the degree of ionization.
Definition at line 72 of file pvte_law_H+.c.