pynucastro.networks.helper module#
- pynucastro.networks.helper.network_helper(nuclei, *, network_type='python', use_detailed_balance=True, use_tabular_rates=True, tabular_ordering=None)[source]#
A simple helper function to generate a basic network connecting all of the input nuclei using all of the rates known to pynucastro.
- Parameters:
nuclei (Iterable(Nucleus)) – the nuclei to use for the network
network_type (str) –
the type of network to create. Allowed values are:
”python” : create a
PythonNetwork
”cxx” : create a
SimpleCxxNetwork
”fortran” : create a
FortranNetwork
”amrex” : create a
AmrexAstroCxxNetwork
use_detailed_balanace (bool) – do we rederive inverse rates using detailed balance?
use_tabular_rates (bool) – do we include tabulated weak rates?
tabular_ordering (Iterable(str)) – if we are including tabular rates, a list of sources can be provided to specify which rate sources are used, and the priority that each source should have.
- Return type:
PythonNetwork, SimpleCxxNetwork, AmrexAstroCxxNetwork, FortranNetwork