fermion Class Reference

Fermion class. More...

#include <fermion.h>

Inheritance diagram for fermion:

part fermion_T nonrel_fermion_zerot eff_fermion nonrel_fermion quark rel_fermion sn_fermion sn_nr_fermion eff_quark eff_quark

Detailed Description

Fermion class.

This is a base class for the computation of fermionic statistics at zero temperature. The more general case of finite temperature is taken care of by fermion_T objects. The primary functions are calc_mu_zerot() and calc_density_zerot() which compute all the thermodynamic quantities as a function of the chemical potential, or the density, respectively.

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

Idea for future:
Use hypot() and other more accurate functions for the analytic expressions for the zero temperature integrals. [Progress has been made, but there are probably other functions which may break down for small but finite masses and temperatures]

Definition at line 63 of file fermion.h.


Public Member Functions

 fermion (double mass=0, double dof=0)
 Create a fermion with mass mass and degeneracy dof.
virtual const char * type ()
 Return string denoting type ("fermion").
Zero-temperature fermions
int kf_from_density ()
 Calculate the Fermi momentum from the density.
int energy_density_zerot ()
 Energy density at T=0 from kf and ms.
int pressure_zerot ()
 Pressure at T=0 from kf and ms.
virtual int calc_mu_zerot ()
 Zero temperature fermions from nu and ms.
virtual int calc_density_zerot ()
 Zero temperature fermions from n and ms.

Data Fields

double kf
 Fermi momentum.
double del
 Gap.

Member Function Documentation

virtual int calc_density_zerot (  )  [virtual]

Zero temperature fermions from n and ms.

This function always returns gsl_success.

Reimplemented in nonrel_fermion, and nonrel_fermion_zerot.

virtual int calc_mu_zerot (  )  [virtual]

Zero temperature fermions from nu and ms.

This function always returns gsl_success.

Reimplemented in nonrel_fermion, and nonrel_fermion_zerot.

int energy_density_zerot (  ) 

Energy density at T=0 from kf and ms.

Calculates the integral

\[ \varepsilon = \frac{g}{2 \pi^2} \int_0^{k_F} k^2 \sqrt{k^2+m^{* 2}} d k \]

int kf_from_density (  ) 

Calculate the Fermi momentum from the density.

Uses the relation $ k_F = ( 6 \pi^2 n /g )^{1/3} $

int pressure_zerot (  ) 

Pressure at T=0 from kf and ms.

Calculates the integral

\[ P=\frac{g}{6 \pi^2} \int_0^{k_F} \frac{k^4}{\sqrt{k^2+m^{* 2}}} d k \]


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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page