Skip to content

Commit

Permalink
improve the docs on general_null
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Aug 17, 2023
1 parent 9ecfd8d commit dde32c5
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions sphinx_docs/source/networks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,49 @@ and :math:`\edotnu` is the neutrino loss term.
general_null
============

``general_null`` is a bare interface for a nuclear reaction network;
no reactions are enabled, and no auxiliary variables are accepted. The
``general_null`` is a bare interface for a nuclear reaction network --
no reactions are enabled. The
data in the network is defined at compile type by specifying an
inputs file. For example,
``Networks/general_null/triple_alpha_plus_o.net`` would describe the
``networks/general_null/triple_alpha_plus_o.net`` would describe the
triple-:math:`\alpha` reaction converting helium into carbon, as
well as oxygen and iron.
well as oxygen and iron. This has the form:

.. code::
# name short name aion zion
helium-4 He4 4.0 2.0
carbon-12 C12 12.0 6.0
oxygen-16 O16 16.0 8.0
iron-56 Fe56 56.0 26.0
The four columns give the long name of the species, the short form that will be used
for plotfile variables, and the mass number, :math:`A`, and proton number, :math:`Z`.

The name of the inputs file by one of two make variables:

* ``NETWORK_INPUTS`` : this is simply the name of the "`.net`" file, without
any path. The build system will look for it in the current directory
and then in ``$(MICROPHYSICS_HOME)/networks/general_null/``.

For the example above, we would set:

::

NETWORK_INPUTS := triple_alpha_plus_o.net

* ``GENERAL_NET_INPUTS`` : this is the full path to the file. For example
we could set:

::

GENERAL_NET_INPUTS := /path/to/file/triple_alpha_plus_o.net

At compile time, the "`.net`" file is parsed and a network header
``network_properties.H`` is written using the python script
``write_network.py``. The make rule for this is contained in
``Make.package``.

At compile time, the network header ``network_properties.H``
is written using the python script ``write_network.py``. The make rule
for this is contained in ``Make.package``. The name of the inputs file
is specified by the variable ``GENERAL_NET_INPUTS``.


ignition_chamulak
Expand Down

0 comments on commit dde32c5

Please sign in to comment.