Subsections
17.2 Gamma Law and Multigamma
FLASH uses the method of Colella & Glaz (1985) to handle general
equations of state. General equations of state contain 4 adiabatic
indices (Chandrasekhar 1939), but the method of Colella & Glaz
parameterizes the EOS and requires only two of the adiabatic
indices. The first is necessary to calculate
the adiabatic sound speed and is given by
|
(17.1) |
The second relates the pressure to the energy and is given by
|
(17.2) |
These two adiabatic indices are stored as the mesh-based variables GAMC_VAR and
GAME_VAR.
All EOS routines must return , and is calculated from
(17.2).
The gamma-law EOS models a simple
ideal gas with a constant adiabatic index . Here we have
dropped the subscript on , because for an ideal gas, all
adiabatic indices are equal. The relationship between pressure ,
density , and specific internal energy is
|
(17.3) |
We also have an expression relating pressure to the temperature
|
(17.4) |
where is the Avogadro number, is the Boltzmann
constant, and is the average atomic mass, defined as
|
(17.5) |
where is the mass fraction of the th element.
Equating these expressions for pressure yields an expression for the
specific internal energy as a function of temperature
|
(17.6) |
The relativistic variant of the ideal gas equation is explained in more detail
in Sec:RHD.
Simulations are not restricted to a single ideal gas; the multigamma
EOS provides routines for
simulations with several species of ideal gases each with its own
value of . In this case the above expressions hold, but
represents the weighted average adiabatic index calculated
from
|
(17.7) |
We note that the analytic expressions apply to both the forward
(internal energy as a function of density, temperature, and
composition) and backward (temperature as a function of density,
internal energy and composition) relations. Because the backward
relation requires no iteration in order to obtain the temperature,
this EOS is quite inexpensive to evaluate. Despite its fast performance,
use of the gamma-law EOS is limited, due to its restricted range of
applicability for astrophysical problems.
17.2.1 Ideal Gamma Law for Relativistic Hydrodynamics
The relativistic variant of the ideal gas equation is explained in more detail
in Sec:RHD.