An Equation of State (\textit{EoS}) closes the set of fluid equations.
Although an ideal EoS with a constant \textit{adiabatic index} Γ is the
preferred choice due to its simplistic implementation, many astrophysical fluid
simulations may benefit from a more sophisticated treatment that can account
for diverse chemical processes. Here, we first review the basic thermodynamic
principles of a gas mixture in terms of its thermal and caloric EoS by
including effects like ionization, dissociation as well as temperature
dependent degrees of freedom such as molecular vibrations and rotations. The
formulation is revisited in the context of plasmas that are either in
equilibrium conditions (local thermodynamic- or collisional excitation-
equilibria) or described by non-equilibrium chemistry coupled to optically thin
radiative cooling. We then present a numerical implementation of thermally
ideal gases obeying a more general caloric EoS with non-constant adiabatic
index in Godunov-type numerical schemes.We discuss the necessary modifications
to the Riemann solver and to the conversion between total energy and pressure
(or vice-versa) routinely invoked in Godunov-type schemes. We then present two
different approaches for computing the EoS.The first one employs root-finder
methods and it is best suited for EoS in analytical form. The second one leans
on lookup table and interpolation and results in a more computationally
efficient approach although care must be taken to ensure thermodynamic
consistency. A number of selected benchmarks demonstrate that the employment of
a non-ideal EoS can lead to important differences in the solution when the
temperature range is 500−104 K where dissociation and ionization occur. The
implementation of selected EoS introduces additional computational costs
although using lookup table methods can significantly reduce the overhead by a
factor 3∼4.Comment: 17 pages, 10 figures, Accepted for publication in A&