chem_pot.f90 File Reference

Subroutine chempot to compute chemical potentials of electrons and positrons. More...

Go to the source code of this file.

Functions/Subroutines

subroutine chempot (temp, den, ye, etaele, etapos)
 Given a temperature temp [K], density den [g/cm**3], and a composition characterized by y_e, this routine returns the electron and positron chemical potentials. derivatives with respect to temperature and density are computed, but not returned. More...
 

Detailed Description

Subroutine chempot to compute chemical potentials of electrons and positrons.

The error file code for this file is W13. This file originates from Cococubed. The chemical potentials are only used if parameter_class::use_timmes_mue is enabled or heating is turned on.

Definition in file chem_pot.f90.

Function/Subroutine Documentation

◆ chempot()

subroutine chempot ( real(r_kind), intent(in)  temp,
real(r_kind), intent(in)  den,
real(r_kind), intent(in)  ye,
real(r_kind), intent(out)  etaele,
real(r_kind), intent(out)  etapos 
)

Given a temperature temp [K], density den [g/cm**3], and a composition characterized by y_e, this routine returns the electron and positron chemical potentials. derivatives with respect to temperature and density are computed, but not returned.

References: Timmes & Arnett ApJS 1999

Edited:

  • 02.02.21 - MR - gave intent(in/out) and let it crash when it does not work
Parameters
[in]tempTemperature [K]
[in]denDensity [g/ccm]
[in]yeElectron fraction
[out]etaeleElectron chemical potential
[out]etaposPositron chemical potential

Definition at line 24 of file chem_pot.f90.

Here is the call graph for this function: