These classes in the library O2scl_part calculate the thermodynamic properties of interacting and non-interacting quantum and classical particles.
The class o2scl::part is the basic structure for a particle:
The data members o2scl::part::ms and o2scl::part::nu allow one to specify modifications to the mass and the chemical potential due to interactions. This allows one to calculate the properties of particle due to interactions so long as the basic form of the free-particle dispersion relation is unchanged, i.e.
If the particle is non-interacting, then o2scl::part::nu and o2scl::part::ms are sometimes used by O2scl_part functions for temporary storage.
If o2scl::part::inc_rest_mass is true
(as is the default in all of the classes except o2scl::nucleus), then all functions include the rest mass (stored in o2scl::part::m) energy density in the energy density, the "mu" functions expect that the rest mass is included in o2scl::part::mu or o2scl::part::nu as input and the "density" functions output o2scl::part::mu or o2scl::part::nu including the rest mass. Note that it is assumed that o2scl::part::m contains the rest mass even if the particle is interacting and an effective mass is stored in o2scl::part::ms .
When o2scl::part::inc_rest_mass is true, antiparticles are implemented by choosing the antiparticle chemical potential to be . When o2scl::part::inc_rest_mass is false, there is an ambiguity in the relative definitions of the rest mass contribution for the antiparticles and the combination of both particles and antiparticles. Define energy density for particles including the rest mass contribution as
, and the energy density without the rest mass contribution as
. Similarly, for antiparticles, we have
. The total energy density including the rest mass contribution is then
and without the rest mass contribution
. Then,
Similarly, for the chemical potentials, we have
thus . This bookkeeping is handled by o2scl::part::anti(), the o2scl::fermion_eval_thermo::pair_mu(), and the o2scl::fermion_eval_thermo::pair_density(), functions.
The thermodynamic identity used to compute the pressure for interacting particles is
where o2scl::part::nu is used. This way, the particle class doesn't need to know about the structure of the interactions to ensure that the thermodynamic identity is satisfied. Note that in the O2scl_eos library, where in the equations of state the normal thermodynamic identity is used
Frequently, the interactions which create an effective chemical potential which is different than o2scl::part::mu thus create extra terms in the pressure and the energy density for the given equation of state.
The o2scl::fermion class is a child of o2scl::part which contains data members for the Fermi momentum and energy gap. The o2scl::boson class contains an extra data member for the condensate. The o2scl::quark class is a descendant of the o2scl::fermion class which contains extra data members for the quark condensate and the contribution to the bag constant. Nuclei are represented by the o2scl::nucleus class and documented in Nuclei and nuclear masses.
Units:
Factors of and
have been removed everywhere, so that mass, energy, and temperature all have the same units. Number and entropy densities have units of mass cubed (or energy cubed). The particle classes can be used with any system of units which is based on powers of one unit, i.e.
, etc.
At zero temperature, the thermodynamic properties of fermions can be computed using o2scl::fermion_zerot. The class o2scl::classical computes the properties of particles in the classical limit.
At finite temperature, there are different classes corresponding to different approaches to computing the integrals over the distribution functions. The approximation scheme from Johns96 is used in o2scl::boson_eff and o2scl::fermion_eff. An exact method employing direct integration of the distribution functions is used in o2scl::boson_rel and o2scl::fermion_rel, but these are necessarily quite a bit slower. All of these classes use expansions to give ensure comparably accurate results in the degenerate and non-degenerate limits.
The class o2scl::fermion_eff usually works to within about 1 part in , but can be as bad as 1 part in
in some more extreme cases. The default settings for o2scl::fermion_rel give an accuracy of at least 1 part in
(and frequently better than this). For o2scl::fermion_rel, the accuracy can be improved to 1 part in
by decreasing the integration tolerances.
The class o2scl::fermion_nonrel assumes a non-relativistic dispersion relation for fermions. It uses an exact method for both zero and finite temperatures. The non-relativistic integrands are much simpler and o2scl::fermion_nonrel uses the appropriate GSL functions (which are nearly exact) to compute them.
Sometimes it is useful to know derivatives like in addition to the energy and pressure. The new data classes are children of o2scl::part_deriv . The three classes which compute these derivatives for fermions and classical particles. The class o2scl::classical_deriv handles the nondegenerate limit, o2scl::fermion_deriv_rel handles fermions and o2scl::fermion_deriv_nr handles nonrelativistic fermions. These classes compute the derivatives
All other first derivatives of the thermodynamic functions can be written in terms of these three.
Other derivatives with respect to chemical potential and temperature:
There is a Maxwell relation
The pressure derivatives are trivial
The energy density derivatives are related through the thermodynamic identity:
Other derivatives:
Most of the other common derivatives which are used are those which can be obtained by second derivatives of the Gibbs free energy, .
Other common derivatives are the heat capacity per particle at constant volume, , and the speed of sound,
.
It is useful to write these derivatives in terms of the three derivatives determined above. The heat capacity per particle at constant volume is defined by
This quantity is sometimes defined as
but these definitions are identical as can be seen by taking the derivative of . As noted in Particles in the User's Guide for O2scl_part , we work in units so that
, so
is unitless. To compute
in terms of the derivatives above, note that the descendants of o2scl::part_deriv provide all of the three thermodynamic derivatives in terms of
and
, so we have
We can then construct a function
and then write the required derivative directly
Now we use the identity
and the Maxwell relation above to give
which expresses the heat capacity in terms of the three derivatives which are given.
The isothermal compressibility is
In a single-component system, this can also be written as
This quantity can be computed from :
The chemical potential derivative can be computed from a Maxwell relation
Using
we obtain the result
The coefficient of thermal expansion is
We can rewrite the derivative
The second derivative was already computed above, and the first derivative can be computed from the Maxwell relation
In turn, the entropy derivative can be computed using
to get
and
The result is
The heat capacity per particle at constant pressure, , is defined as
The equivalence of these two derivatives can be obtained either from or by taking the derivative of the function
. In O2scl , the quantity
is unitless. (which is also unitless) we can write functions
which imply
Thus we require the derivatives
To compute the new entropy derivatives, we can write
to get
and
These require the chemical potential derivatives which have associated Maxwell relations
Finally, we can rewrite the derivatives on the right hand sides in terms of derivatives of functions of and
,
and
The volume derivative,
is related to the coefficient of thermal expansion, sometimes called ,
We can rewrite the derivative
The first term can be computed from the Maxwell relation
where the entropy derivative was computed above. The second term (related to the inverse of the isothermal compressibility, can be computed from the function
where the chemical potential derivative was computed above.
The results above can be collected to give
which implies
This derivation also gives the well-known relationship between the heat capacities at constant volume and constant pressure,
In the case where the particle is interacting, the derivative of the density with respect to the effective mass is
This relation holds whether or not the mass is included in the chemical potential , as the rest mass is held constant even though the effective mass is varying. This relation also holds in the case where the particle is non-interacting, so long as one does not allow the rest mass in the chemical potential to vary. This derivative is useful, for example, in models of quark matter where the quark mass is dynamically generated.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).