*
Cococubed.com


Fermi-Dirac Functions

Home

Astronomy research
Software instruments
   Stellar equation of states
   EOS with ionization
   EOS for supernovae
   Chemical potentials
   Stellar atmospheres
   Voigt Function
   Jeans escape
   Polytropic stars
   Cold white dwarfs
   Hotter white dwarfs
   Cold neutron stars
   Stellar opacities
   Neutrino energy loss rates
   Ephemeris routines
   Fermi-Dirac functions
   Galactic chemical evolution

   Nuclear reaction networks
   Nuclear statistical equilibrium
   Laminar deflagrations
   CJ detonations
   ZND detonations
   Fitting to conic sections
   Unusual linear algebra
   Derivatives on uneven grids
   Pentadiagonal solver
   Quadratics, Cubics, Quartics
   Supernova light curves
   Exact Riemann solutions
   1D PPM Hydrodynamics
   Verification problems
   Plane - Cube Intersection

   MESA
   MESA-Web
   FLASH

   Zingale's software
   Brown's dStar
   GR1D code
   Iliadis' STARLIB database
   Herwig's NuGRID
   Meyer's NetNuc
Presentations
Illustrations
Videos
Bicycle adventures

AAS Journals
2017 MESA Summer School
ASU+EdX AST111x
Teaching materials
Education and Public Outreach
2016 NSF SI2 PI Workshop


Contact: F.X.Timmes
my one page vitae,
full vitae,
research statement, and
teaching statement.

The monikers "Fermi-Dirac", "generalized Fermi-Dirac", and "Fermi" function haven't received uniform usage in the literature. I'll use the term "Fermi-Dirac" function for the two parameter integral:

png image of fermi-dirac function

where k is the order of the function, θ = kBT / mc2 is the relativity parameter, and η = μ/kBT is the normalized chemical potential energy μ, which is sometimes called the degeneracy parameter. I'll reserve the term "Fermi" function as a special case, θ=0, of the Fermi-Dirac function:

png image of fermi function
The Fermi function can be obtained from some remarkable rational function fits from H.M. Antia (ApJS 84, 101, 1993 and private communication 1995). These rational function approximations are compared to the exact answers given by the Fermi-Dirac quadratures in the code contained in this bzip2 tarball fermi.tbz.

The Fermi-Dirac function may be solved by two methods. The first uses an exact-as-you-like direct simpson integration on nested grids in tandem with some integral transformations. I've called this Cloutman's method (ApJS 71, 677, 1989). Some of my trivial additions were to generalize from the Fermi functions to the Fermi-Dirac functions in the code contained in this bzip2 tarball fermi_dirac.tbz. The second method solves the Fermi-Dirac functions by an as-exact-as-you-like quadrature method. You may be very pleasantly suprised at how efficiently it runs for the accuracy achieved. The original idea and code comes from Josep Aparicio (ApJS 117, 627, 1998). My trivial contributions have been to add the first and second derivatives, and gather the various quadrature accuracies under one roof in the code contained in this bzip2 tarball fermi_dirac_with_derivatives.tbz.

Fk(η,θ) and its derivatives
*
* *


If you want to see how the Fermi-Dirac functions are used in a bare knuckle stellar equation of state, take a look at the Timmes eos routine.
 



Please cite the relevant references if you publish a piece of work that use these codes, pieces of these codes, or modified versions of them. Offer co-authorship as appropriate.