Modifications for a \(1/r^2\) Plane-Parallel Basestate
In the plane parallel assumption, we model a layer of thickness \(\Delta R`\) a distance \(R_\mathrm{base}`\) from the center of a star, under the assumption the \(\Delta R \ll R_\mathrm{base}`\). In this assumption, we can neglect the curvature of the atmosphere. Here, we extend that basic assumption to allow for the gravitational acceleration to still fall off as \(1/r^2`\) as we move outward in the envelope. We assume that the mass of the envelope is insignificant, and that only the mass of the underlying star contributes to the gravitational acceleration.
Constraint Equation
We begin with the \(w_0\) constraint equation (derived elsewhere), including the volume-discrepancy term:
where
In Cartesian geometry, the divergence on the left hand side is simply \(\partialw_0 / \partial r\). Let us now define \(\ow\) and \(\dw\) such that
We take \(\ow\) to satisfy
leaving the equation
If we multiply by \(\gammabar p_0\), differentiate by r, then switch the order of \(\partial t\) and \(\partial r\) where they appear in the same term, we get
We then substitute in the equation of hydrostatic equilibrium:
We will assume that the mass of the atmosphere is negligible relative to the mass of the core, which is outside of the simulation domain. This simplifies the equation by allowing us to assume that \(m\), the enclosed mass, is constant. So we now have
We now recall Equation 29 from Paper III:
which is, in Cartesian geometry,
Substituting this expression yields
We then differentiate the gravitational acceleration:
Substituting in this expression gives our final result:
Uniform \(\dr\) Discretization
Collecting all of the \(\dw\) terms on the left side, our constraint equation appears as:
On a uniform mesh (constant \(\dr\), we would discretize this as:
Expanding the \(\partial \dw / \partial r\) terms, we have:
As with the spherical case (multilevel paper, appendix B), we write this in the form:
then:
Non-Uniform \(\dr\) Discretization
centering ![image](planeinvsqfigpath/grid2){width=”4in”}
Consider the above non-uniform grid spacing, where \(\dr_c = 2 \dr_f\). Here, the discretization of the Laplacian-like term is more complex. We want to compute
This is to be centered at \(j-\half\), which we accomplish by averaging the two fine grids and then differencing:
Expanding the \(\partial \dw / \partial r\) terms results in a equation depending on \(\dw\) at 4 different edge locations—this no longer fits into the tri-diagonal format used in the uniform grid case. In detail, it becomes:
which has terms proportional to \((\dw)_{j-\thalf}\), \((\dw)_{j-\half}\), \((\dw)_{j+\half}\), and \((\dw)_{j+\thalf}\)
Boundary Conditions
Together with the assumption that the mass of the envelope does not contribute to the gravitational acceleration, we assume that as we move a fluid element in the atmosphere, it does not drive a velocity at the very base of the layer. Therefore, we take \(w_0(r_\mathrm{base}) = 0\).