Public Member Functions | Public Attributes | List of all members
o2scl::fermion_tl< fp_t > Class Template Reference

Fermion class. More...

#include <fermion.h>

Inheritance diagram for o2scl::fermion_tl< fp_t >:
o2scl::part_tl< double >

Detailed Description

template<class fp_t = double>
class o2scl::fermion_tl< fp_t >

This class adds two member data variables, kf and del, for the Fermi momentum and the gap, respectively.

Definition at line 55 of file fermion.h.

Public Member Functions

 fermion_tl (fp_t mass=0, fp_t dof=0)
 Create a fermion with mass mass and degeneracy dof.
 
virtual const char * type ()
 Return string denoting type ("fermion_tl")
 
 fermion_tl (const fermion_tl &f)
 Copy constructor.
 
fermion_tloperator= (const fermion_tl &f)
 Copy construction with operator=()
 
- Public Member Functions inherited from o2scl::part_tl< double >
 part_tl (const part_tl &p)
 Copy constructor.
 
 part_tl (double mass=0.0, double dof=0.0)
 Make a particle of mass mass and degeneracy dof.
 
part_tloperator= (const part_tl &p)
 Copy construction with operator=()
 
virtual void init (double mass, double dof)
 Set the mass mass and degeneracy dof.
 
virtual void anti (part_tl &ax)
 Make ap an anti-particle with the same mass and degeneracy. More...
 

Public Attributes

fp_t kf
 Fermi momentum.
 
fp_t del
 Gap.
 
- Public Attributes inherited from o2scl::part_tl< double >
double g
 Degeneracy (e.g. spin and color if applicable)
 
double m
 Mass.
 
double n
 Number density.
 
double ed
 Energy density.
 
double pr
 Pressure.
 
double mu
 Chemical potential.
 
double en
 Entropy density.
 
double ms
 Effective mass (Dirac unless otherwise specified)
 
double nu
 Effective chemical potential.
 
bool inc_rest_mass
 If true, include the mass in the energy density and chemical potential (default true)
 
bool non_interacting
 True if the particle is non-interacting (default true)
 

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).