SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
evaluateNetwork.py
Go to the documentation of this file.
1from serif.network.approx8 import Approx8Network
2from serif.network import NetIn
3from serif.composition import Composition
4
6 ["H-1", "He-3", "He-4", "C-12", "N-14", "O-16", "Ne-20", "Mg-24"]
7)
8comp.setMassFraction(
9 ["H-1", "He-3", "He-4", "C-12", "N-14", "O-16", "Ne-20", "Mg-24"],
10 [0.708, 2.94e-5, 0.276, 0.003, 0.0011, 9.62e-3, 1.62e-3, 5.16e-4]
11)
12comp.finalize(True)
13
14netIn = NetIn()
15netIn.composition = comp
16netIn.temperature = 1e7
17netIn.density = 1e2
18netIn.energy = 0.0
19netIn.tMax = 3.15e17
20netIn.dt0 = 1e12
21
23netOut = net.evaluate(netIn)
24
25print(netIn)
26print(netOut)
27print(net)
Manages the composition of elements.
Class for the Approx8 nuclear reaction network.
Definition approx8.h:294
Input structure for the network evaluation.
Definition network.h:65