pynucastro.networks.sympy_network_support module#
Support functions for interpreting the rates, ydots, and Jacobian through SymPy.
- class pynucastro.networks.sympy_network_support.SympyRates[source]#
- Bases: - object- A collection of rates stored as SymPy objects. - cxxify(s)[source]#
- Given string s, generated from a SymPy expression, replace the placeholder symbols with the values maintained in the symbol_ludict dictionary. 
 - jacobian_term_symbol(rate, ydot_j, y_i)[source]#
- Construct a SymPy expression containing a single rate’s contribution to the Jacobian matrix element d(dY_j/dt)/dY_i. We return both the SymPy expression and a bool indicating whether the term is null. 
 - specific_rate_symbol(rate)[source]#
- Construct a SymPy expression containing this rate’s term in a dY/dt equation, e.g. ρ Y(A)Y(B) <σv> / (1 + ẟ_AB) for a rate A + B - Also enter the symbol and substitution in the lookup table. - Parameters:
- rate (Rate) – the reaction rate to consider 
- Return type:
 
 
