pynucastro.mesa_utils module#
A collection of methods for accessing data from a MESA models as read by py_mesa_reader, and putting them into a form that pynucastro can use.
- pynucastro.mesa_utils.get_all_data(model)[source]#
Return a dictionary keyed by MESA zone index containing the thermodynamic information (rho, T, composition) for all the zones in the model.
- pynucastro.mesa_utils.get_nuclei(model)[source]#
Return a list of nuclei contained in the MESA model.
- pynucastro.mesa_utils.get_zone_data(model, i, *, nuclei=None)[source]#
Return a tuple of (rho, T, composition) for a single zone from the MESA model. These are the thermodynamic conditions needed to evaluate a pynucastro network’s rates.
- Parameters:
model (
mesa_reader.MesaData) – The MESA model as read bymesa_reader.MesaDatai (int) – The MESA zone index
nuclei (list(Nucleus)) – The list of nuclei in the MESA model. This will be read from the model if not provided, but if you are looping over multiple zones in succession, passing a cached list in can speed up the reading.
- Return type: