pynucastro.reduction.reduction module#

class pynucastro.reduction.reduction.NetInfo(y, ydot, z, a, ebind, m)#

Bases: tuple

a#

Alias for field number 3

ebind#

Alias for field number 4

m#

Alias for field number 5

y#

Alias for field number 0

ydot#

Alias for field number 1

z#

Alias for field number 2

pynucastro.reduction.reduction.abar_dot(net_info)[source]#

Calculate the time rate of change of mean molecular weight.

pynucastro.reduction.reduction.enuc_dot(net_info)[source]#

Calculate the nuclear energy generation rate.

pynucastro.reduction.reduction.get_errfunc_enuc(net_old, conds)[source]#

Function for computing error in nuclear energy generation.

pynucastro.reduction.reduction.get_net_info(net, comp, rho, T)[source]#
pynucastro.reduction.reduction.main()[source]#
pynucastro.reduction.reduction.map_comp(comp, net)[source]#

Create new composition object with nuclei in net, and copy their mass fractions over.

pynucastro.reduction.reduction.rel_err(x, x0)[source]#

Compute the relative error between two NumPy arrays.

pynucastro.reduction.reduction.ye_dot(net_info)[source]#

Calculate the time rate of change of electron fraction.