Modifications for a 1/r2 Plane-Parallel Basestate

In the plane parallel assumption, we model a layer of thickness ΔR a distance Rbase from the center of a star, under the assumption the ΔRRbase. 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/r2 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 w0 constraint equation (derived elsewhere), including the volume-discrepancy term:

(303)(w0er)=S¯1Γ1p0ψfΓ1p0p0p0EOSΔt

where

(304)ψ=D0p0Dt=p0t+w0p0t.

In Cartesian geometry, the divergence on the left hand side is simply \partialw0/r. Let us now define w0 and δw0 such that

(305)w0=w0+δw0

We take w0 to satisfy

(306)w0r=S¯fΓ1p0p0p0EOSΔt,

leaving the equation

(307)δw0r=1Γ1p0(p0t+w0p0r).

If we multiply by Γ1p0, differentiate by r, then switch the order of t and r where they appear in the same term, we get

(308)r[Γ1p0δw0r]=tp0rr(w0p0r).

We then substitute in the equation of hydrostatic equilibrium:

(309)p0r=ρ0gwhereg=Gmr2.

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

(310)r[Γ1p0r(δw0)]=t(ρ0g)+r(w0ρ0g)=ρ0(tg+w0rg)+g(tρ0+r(w0ρ0)).

We now recall Equation 29 from Paper III:

(311)tρ0=(w0ρ0er)(ηρer),

which is, in Cartesian geometry,

(312)ρ0t=r(w0ρ0)ηρr.

Substituting this expression yields

(313)r[Γ1p0r(δw0)]=ρ0D0gDt+g(r(w0ρ0)ηρr+r(w0ρ0))=ρ0D0gDtgηρr.

We then differentiate the gravitational acceleration:

(314)D0gDt=D0Dt(Gmr2)=Gm(t(r2)+w0r(r2))=2Gmw0r3=2w0gr.

Substituting in this expression gives our final result:

(315)r[Γ1p0r(δw0)]=2w0ρ0grgηρr

Uniform Δr Discretization

Collecting all of the δw0 terms on the left side, our constraint equation appears as:

(316)r[Γ1p0δw0r]+2ρ0gδw0r=2ρ0gw0rgηρr

On a uniform mesh (constant Δr, we would discretize this as:

(317)1Δr{[Γ1p0δw0r]j[Γ1p0δw0r]j1}+[2ρ0grδw0]j12=[2ρ0grw0]j12gj12Δr[ηρjηρj1]

Expanding the δw0/r terms, we have:

(318)1(Δr)2{[(Γ1p0)j(δw0j+12δw0j12)][(Γ1p0)j1(δw0j12δw0j32)]}+[2ρ0grδw0]j12=[2ρ0grw0]j12gj12Δr[ηρjηρj1]

As with the spherical case (multilevel paper, appendix B), we write this in the form:

(319)Aj(δw0)j32+Bj(δw0)j12+Cj(δw0)j+12=Fj,

then:

(320)Aj=1Δr2(Γ1p0)j1,Bj=1Δr2[(Γ1p0)j+(Γ1p0)j1]+2rj12(ρ0g)j12,Cj=1Δr2(Γ1p0)j,Fj=2rj12(ρ0g)j12(w0)j12gj12Δr[(ηρ)j(ηρ)j1]

Non-Uniform Δr Discretization

centering ![image](planeinvsqfigpath/grid2){width=”4in”}

Consider the above non-uniform grid spacing, where Δrc=2Δrf. Here, the discretization of the Laplacian-like term is more complex. We want to compute

(321)r[Γ1p0δw0r]j12

This is to be centered at j12, which we accomplish by averaging the two fine grids and then differencing:

(322)r[Γ1p0δw0r]j12=1Δrc{12[(Γ1p0δw0r)j+1+(Γ1p0δw0r)j](Γ1p0δw0r)j1}

Expanding the δw0/r terms results in a equation depending on δw0 at 4 different edge locations—this no longer fits into the tri-diagonal format used in the uniform grid case. In detail, it becomes:

(323)r[Γ1p0δw0r]j12=1Δrc{12[(Γ1p0)j+1(δw0)j+32(δw0)j+12Δrf+(Γ1p0)j(δw0)j+12(δw0)j12Δrf](Γ1p0)j1(δw0)j12(δw0)j32Δrc}

which has terms proportional to (δw0)j32, (δw0)j12, (δw0)j+12, and (δw0)j+32

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 w0(rbase)=0.