This notebook shows off the interactive RateCollection
network plot.
You must have widgets enabled, e.g., via:
jupyter nbextension enable --py --user widgetsnbextension
for a user install or
jupyter nbextension enable --py --sys-prefix widgetsnbextension
for a system-wide installation
In [1]:
%matplotlib inline
In [2]:
import pynucastro as pyrl
This collection of rates has the main CNO rates plus a breakout rate into the hot CNO cycle
In [3]:
files = ["c12-pg-n13-ls09",
"c13-pg-n14-nacr",
"n13--c13-wc12",
"n13-pg-o14-lg06",
"n14-pg-o15-im05",
"n15-pa-c12-nacr",
"o14--n14-wc12",
"o15--n15-wc12",
"o14-ap-f17-Ha96c",
"f17-pg-ne18-cb09",
"ne18--f18-wc12",
"f18-pa-o15-il10"]
rc = pyrl.RateCollection(files)
To evaluate the rates, we need a composition. This is defined using a list of Nuceli objects.
In [4]:
comp = pyrl.Composition(rc.get_nuclei())
comp.set_solar_like()
Interactive exploration is enabled through the Explorer class, which takes a RateCollection and a Composition
In [5]:
re = pyrl.Explorer(rc, comp)
re.explore()
In [ ]: