pynucastro.screening.screen module#
Python implementations of common electron screening routines.
- class pynucastro.screening.screen.NseState(*args, **kwargs)[source]#
Bases:
NseState
Store precomputed values that are reused in the NSE state screening calculations
- Parameters:
- class_type = jitclass.NseState#7f02c810c790<temp:float64,dens:float64,ye:float64,gamma_e_fac:float64>#
- class pynucastro.screening.screen.PlasmaState(*args, **kwargs)[source]#
Bases:
PlasmaState
Store precomputed values that are reused for all screening correction factor calculations.
- class_type = jitclass.PlasmaState#7f03098b4c50<temp:float64,dens:float64,qlam0z:float64,taufac:float64,aa:float64,abar:float64,zbar:float64,z2bar:float64,n_e:float64,gamma_e_fac:float64>#
- class pynucastro.screening.screen.ScreenFactors(*args, **kwargs)[source]#
Bases:
ScreenFactors
Store values that will be used to calculate the screening correction factor for a specific pair of nuclei.
- class_type = jitclass.ScreenFactors#7f02c810d3d0<z1:int64,z2:int64,a1:int64,a2:int64,zs13:float64,zhat:float64,zhat2:float64,lzav:float64,aznut:float64,ztilde:float64>#
- pynucastro.screening.screen.chugunov_2007(state, scn_fac)[source]#
Calculate screening factors based on Chugunov et al. [2007].
Follows the approach in Yakovlev et al. [2006] to extend to a multi-component plasma.
- Parameters:
state (PlasmaState) – the precomputed plasma state factors
scn_fac (ScreenFactors) – the precomputed ion pair factors
- Return type:
- pynucastro.screening.screen.chugunov_2009(state, scn_fac)[source]#
Calculate screening factors based on Chugunov and DeWitt [2009].
- Parameters:
state (PlasmaState) – the precomputed plasma state factors
scn_fac (ScreenFactors) – the precomputed ion pair factors
- Return type:
- pynucastro.screening.screen.debye_huckel(state, scn_fac)[source]#
Calculate the Debye-Huckel enhancement factor for weak Coloumb coupling, following the appendix of Chugunov and DeWitt [2009].
- Parameters:
state (PlasmaState) – the precomputed plasma state factors
scn_fac (ScreenFactors) – the precomputed ion pair factors
- Return type:
- pynucastro.screening.screen.f0(gamma)[source]#
Calculate the free energy per ion in a OCP from Chugunov and DeWitt [2009] eq. 24
- pynucastro.screening.screen.make_plasma_state(temp, dens, molar_fractions)[source]#
Construct a PlasmaState object from simulation data.
- Parameters:
temp (float) – temperature in K
dens (float) – density in g/cm^3
molar_fractions (dict(Nucleus)) – dictionary of molar abundances for each ion, as returned by
Composition.get_molar()
- Return type:
- pynucastro.screening.screen.make_screen_factors(n1, n2)[source]#
Construct a ScreenFactors object from a pair of nuclei.
- Parameters:
- Return type:
- pynucastro.screening.screen.potekhin_1998(state, scn_fac)[source]#
Calculate screening factors based on Chabrier and Potekhin [1998].
- Parameters:
state (PlasmaState) – the precomputed plasma state factors
scn_fac (ScreenFactors) – the precomputed ion pair factors
- Return type:
- pynucastro.screening.screen.screen5(state, scn_fac)[source]#
Calculate screening factors following the appendix of Wallace et al. [1982].
Based on Graboske et al. [1973] for weak screening. Based on Alastuey and Jancovici [1978] with plasma parameters from Itoh et al. [1979], for strong screening.
- Parameters:
state (PlasmaState) – the precomputed plasma state factors
scn_fac (ScreenFactors) – the precomputed ion pair factors
- Return type:
- pynucastro.screening.screen.screening_check(check_func=CPUDispatcher(<function debye_huckel>), threshold=1.01)[source]#
Create a decorator factory that wraps a screening function with a check that determines whether that function can be skipped for a given plasma state and screening pair.
- Parameters:
func – the function to check against the threshold
threshold – the threshold to check against. If screen_check is less than the threshold, skip screen_func
- Returns:
a decorator for wrapping screening functions