SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
runPolytrope.py
Go to the documentation of this file.
1from serif import config
2from serif.polytrope import PolySolver
3from serif.mfem import Matrix
4from serif.mfem import Operator
5from serif.mfem.forms import BilinearForm
6
7config.loadConfig('../../testsConfig.yaml')
8n = config.get("Tests:Poly:Index", 0.0)
9
10polytrope = PolySolver(n, 1)
11polytrope.solve()
12theta = polytrope.get_theta()
13print(theta)
14
15FESpace = theta.FESpace()
16print(FESpace)
17
18print(theta.as_numpy())
Solves the Lane-Emden equation for a polytropic star using a mixed finite element method.
Definition polySolver.h:203