pynucastro.screening.screening_util module

pynucastro.screening.screening_util module#

Some helper functions for determining which rates need screening

class pynucastro.screening.screening_util.ScreeningPair(name, nuc1, nuc2, rate=None)[source]#

Bases: object

A pair of nuclei that will have rate screening applied. We store a list of all rates that match this pair of nuclei

add_rate(rate)[source]#

Add a new rate to the screening pair.

Parameters:

rate (Rate) – The rate to add.

pynucastro.screening.screening_util.get_screening_map(rates, *, symmetric_screening=False)[source]#

Create a screening map—this is just a list of ScreeningPair objects containing the information about nuclei pairs for screening If symmetric_screening=True, then for reverse rates, we screen using the forward rate nuclei (assuming that we got here via detailed balance).

Parameters:
  • rates (Iterable(Rate)) – A list of the rates in our network.

  • symmetric_screening (bool) – Do we use the same screening factor for the forward and reverse rate of a single reaction process?

Return type:

list(ScreeningPair)