Public Member Functions | List of all members
o2scl::classical Class Reference

Classical particle class. More...

#include <classical.h>

Public Member Functions

 classical ()
 Create a classical particle with mass m and degeneracy g. More...
 
virtual void calc_mu (part &p, double temper)
 Calculate properties as function of chemical potential. More...
 
virtual void calc_density (part &p, double temper)
 Calculate properties as function of density. More...
 
virtual const char * type ()
 Return string denoting type ("classical")
 

Detailed Description

Idea for Future:
Write a calc_density_zerot() function for completeness?

Definition at line 48 of file classical.h.

Constructor & Destructor Documentation

◆ classical()

o2scl::classical::classical ( )
Note
This class attempts to handle zero temperature limit somewhat gracefully, even though the classical limit doesn't necessarily make physical sense there.

Member Function Documentation

◆ calc_density()

virtual void o2scl::classical::calc_density ( part p,
double  temper 
)
virtual

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.

◆ calc_mu()

virtual void o2scl::classical::calc_mu ( part p,
double  temper 
)
virtual

If the temperature is less than zero, the error handler will be called.

Idea for Future:
Handle the case $ \mu/T>308 $ properly.

The documentation for this class was generated from the following file:

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).