astronomix._modules._time_integrator_sources

astronomix._modules._time_integrator_sources#

Right-hand-side source terms entering the hydro integrator.

Assembles the physics source terms that are added to the conserved state inside the time integrator (rather than as a discrete per-step update): stellar wind, cooling, self-gravity, viscosity and thermal conduction. Which terms are active depends on the configuration and the solver mode. Its counterpart is _iteration_level_updates, which applies physics as a discrete update on the primitive state at the start of every step.

TODO: streamline the finite-difference and finite-volume code paths.