Class classical_thermo_tl (o2scl)¶
-
template<class
fp_t
= double>
classo2scl
::
classical_thermo_tl
¶ Classical particle class.
- Note
Note that it makes no sense to include \( T=0 \) functions here
Public Functions
-
classical_thermo_tl
()¶ Create a classical particle with mass
m
and degeneracy
g
.- Note
This class attempts to handle zero temperature limit somewhat gracefully, even though the classical limit doesn’t necessarily make physical sense there.
-
~classical_thermo_tl
()¶
-
void
calc_mu
(part_tl<fp_t> &p, fp_t temper)¶ Calculate properties as function of chemical potential.
If the temperature is less than zero, the error handler will be called.
-
void
calc_density
(part_tl<fp_t> &p, fp_t temper)¶ Calculate properties as function of density.
If the density or the temperature is less than zero, the error handler will be called. In the case of zero density, the chemical potential is set to the mass and the energy density, pressure, and entropy are set to zero.
-
const char *
type
()¶ Return string denoting type (“classical_thermo”)