Go to the documentation of this file.
23 #ifndef O2SCL_CLASSICAL_DERIV_H
24 #define O2SCL_CLASSICAL_DERIV_H
35 #include <o2scl/constants.h>
36 #include <o2scl/part_deriv.h>
37 #include <o2scl/classical.h>
39 #ifndef DOXYGEN_NO_O2NS
45 template<
class fp_t=
double>
75 p.
dndT=-p.
nu/temper/temper*p.
n+1.5*p.
n/temper;
88 cl.calc_density(p,temper);
91 if (p.
n==0.0 || temper==0.0) {
98 p.
dndT=-p.
nu/temper/temper*p.
n+1.5*p.
n/temper;
106 virtual const char *
type() {
return "classical_deriv_thermo"; };
115 #ifndef DOXYGEN_NO_O2NS
fp_t dsdT
Derivative of entropy density with respect to temperature.
fp_t dndT
Derivative of number density with respect to temperature.
Base quantities for thermodynamic derivatives.
virtual const char * type()
Return string denoting type ("classical_deriv_thermo")
fp_t dndmu
Derivative of number density with respect to chemical potential.
A part with derivative information.
Classical particle class.
classical_thermo_tl< fp_t > cl
For computing non-derivative properties.
virtual void calc_density(part_deriv &p, fp_t temper)
Compute the properties of particle p at temperature temper from its density.
fp_t nu
Effective chemical potential.
virtual void calc_mu(part_deriv &p, fp_t temper)
Compute the properties of particle p at temperature temper from its chemical potential.
Equation of state for a classical particle with derivatives.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).