We carry around three different 1D radial quantities:
The Mixing Term,
The base state evolves in response to heating and mixing in the star. The density evolution is governed by
with
designed to keep the average value of the full density,
In paper III, we introduced a mixing term,
where
Recall from Paper III that if initially
written in a slightly different form:
We integrate this over a spherical shell of thickness
where we have used the divergence theorem in spherical coordinates to transform
the volume integral on the right hand side into an area integral over
again using the divergence theorem, extracting the time derivative from the spatial integral, and switching the order of operations as appropriate.
In short,
and thus,
We need both
Therefore, we take a different approach. We compute
Instead of differencing
where we have made use of the fact that
Flow Chart
Enter
advance_timestep
with .Call
make_w0
. The spherical version uses uses and .Call
density_advance
. The plane-parallel version computes .Call
make_etarho
to compute . The plane-parallel version uses .Call
make_psi
. The plane-parallel version uses .Call
make_w0
. The spherical version uses uses and .Call
density_advance
. The plane-parallel version computes .Call
make_etarho
to compute . The plane-parallel version uses .Call
make_psi
. The plane-parallel version uses .
Computing and
This is done in make_eta.f90
.
Plane-Parallel
We first compute a radial edge-centered multifab,
Spherical
First, construct
Then,
On interior faces,
At the upper and lower boundaries, we use
Using
Plane-Parallel
NOT USED.
Spherical
In make_w0
,
Using
Plane-Parallel
In make_psi
,
Spherical
In make_w0
,