Skip to content

document use_number_densities #1567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions sphinx_docs/source/integrators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,27 @@ energy. This allows us to easily call the EOS during the burn to obtain the temp
to the energy release from the changing binding energy of the
fusion products.

.. index:: integrator.use_number_densities

.. note::

By setting ``integrator.use_number_densities=1``, number densities will be
integrated instead of mass fractions. This makes the system:

.. math::
\frac{dn_k}{dt} = \dot{\omega}_k(\rho,n_k,T)
:label: eq:spec_n_integrate

.. math::
\frac{de}{dt} = f(\rho,n_k,T)
:label: eq:enuc_n_integrate

The effect of this flag in the integrators is that we don't worry
about converting between mass and molar fractions when calling the
righthand side function and Jacobian, and we don't do any normalization
requiring $\sum_k X_k = 1$.


While this is the most common way to construct the set of
burn equations, and is used in most of our production networks,
all of them are ultimately implemented by the network itself, which
Expand All @@ -43,10 +64,10 @@ are always explicitly done by the individual networks rather than
being handled by the integration backend. This allows you to write a
new network that defines the RHS in whatever way you like.

.. index:: react_boost
.. index:: integrator.react_boost

The standard reaction rates can all be boosted by a constant factor by
setting the ``react_boost`` runtime parameter. This will simply
setting the ``integrator.react_boost`` runtime parameter. This will simply
multiply the righthand sides of each species evolution equation (and
appropriate Jacobian terms) by the specified constant amount.

Expand Down
Loading