A custom integrator is required to handle the theta^n term in the lane emden equation, that is written as NonlinearPowerIntegrator which is a mfem::NonlinearFormIntegrator and defines methods to assemble its element vector (function value) and element gradient matrix (jacobian). This is then, along with built in mfem vectors for M Q and D, incorporated into the PolytropeOperator which defines methods for Mult (calculate the residuals of the variational form) and GetGradient (find the jacobian of the system)
26 lines
511 B
Meson
26 lines
511 B
Meson
# Build the main source code in the correct order
|
|
# Unless you know what you are doing, do not change the order of the subdirectories
|
|
# as there are dependencies which exist between them.
|
|
|
|
# Utility Libraries
|
|
subdir('types')
|
|
subdir('misc')
|
|
subdir('config')
|
|
subdir('probe')
|
|
subdir('dobj')
|
|
|
|
# Physically Informed Libraries
|
|
subdir('const')
|
|
subdir('composition')
|
|
|
|
# Asset Libraries
|
|
subdir('eos')
|
|
subdir('meshIO')
|
|
|
|
# Resouce Manager Libraries
|
|
subdir('resource')
|
|
|
|
# Physics Libraries
|
|
subdir('network')
|
|
subdir('poly')
|