helper function to generate templates for hydro simulations
- Enzo template files are in the enzo-templates/templates
- the templates can be generated with Jinja2 with
generateEnzoTemplates.py
- sample enzo parameter is
music_input.enzo
-
Initialize an
Dengo
ChemicalNetwork
object with all the reactions and rates -
Based on the reactions and chemical cooling/ heating, the required scripts are generated from pre-written enzo templates files. (Currently it works with the particular commit:
git checkout d84c2415b7914c7bab729c2d818b5af8c85c1918
. Checkout this particular commit for a working integration. We will work to incorporate it to more recent versions of Enzo). -
The templates written based on
Dengo
are placed intemplatedir
-
They can then be placed in the directory
enzo-dev/src/enzo
-
Dengo-enabled enzo can be built by
make dengo-yes grackle-no
, below shows the example snippit frommake show-config
.
CONFIG_GRACKLE [grackle-{yes,no}] : no
CONFIG_DENGO [dengo-{yes,no}] : yes
- Specify the paths to various libraries in respective
Make.mach.linux-gnu
, by defaultDengo
would fill them out automatically if the paths are specified already in the enviroment or in theChemicalNetwork
object.
LOCAL_DENGO_INSTALL = {{network._dengo_install_path}}
LOCAL_CVODE_INSTALL = {{network._cvode_path}}
LOCAL_SUITESPARSE_INSTALL = {{network._suitesparse_path}}
- Now try making
enzo
! Make sure thempic++
is built with the samegcc
you use to buildDengo