Non-local initialization

If we assume a Neumann upper boundary condition (i.e., μ1\mu \approx 1) as described elsewhere, the most obvious way to translate a shallow-atmosphere state described in pressure coordinates is to use TT and some method of calculating physical density ρ\rho, such as pp (which is physical pressure) and the DA HOMME EOS: pk=RdTv,k dp3dkr^2Δϕk=Rdθv,kΠ dp3dkr^2Δϕk p_k = \frac{R_d T_{v, k} \textrm{ dp3d}_k}{\hat{r}^2 \Delta \phi_k} = \frac{R_d \theta_{v, k} \Pi \textrm{ dp3d}_k}{\hat{r}^2 \Delta \phi_k} and I have previously been enforcing this pointwise at model levels starting from the lower boundary where ϕK+1=ϕsurf\phi_{K+1} = \phi_{\textrm{surf}} and we rootfind on ϕk\phi_{k} for k=K,,1k = K, \ldots, 1. This results in a very slightly imbalanced vertical structure in the atmosphere. In the DCMIP 2016 steady state test case in ne30 resolution with 30 levels, this results in initial vertical motion on the order of 10310^{-3} m/s for around 500 seconds, after which point μ1\mu \equiv 1. A rough analysis of the change in zz is that there is an approximately 100 m adjustment in vertical levels in the uppermost levels of the atmosphere.

My current assumption is that this adjustment is due to the fact that initializing the atmosphere such that pressure agrees at model levels does not guarantee that the discrete averaging used to reconstruct pressure at interfaces, namely pk+12=(dp3dk)pk+(dp3dk+1)pk+1dp3dk+dp3dk+1 p_{k+\frac{1}{2}} = \frac{(\textrm{dp3d}_k)p_k + (\textrm{dp3d}_{k+1})p_{k+1}}{\textrm{dp3d}_{k} + \textrm{dp3d}_{k+1}} is satisfied. That is, suppose we have profiles T(z),p(z)T(z), p(z) given by a {data file, analytic sounding}. Then having pk=p(zk)p_k = p(z_k) and pk+1=p(zk+1)p_{k+1} = p(z_{k+1}) does not guarantee pk+12=p(zk+12)p_{k+\frac{1}{2}} = p(z_{k+\frac{1}{2}}). Note here that zk,zk+1z_k, z_{k+1} are actually determined via (purely arithmetic) averaging, as geopotential lives on interfaces.

This makes it clear why this was not an issue when dp3d\textrm{dp3d} did not include an implicit dependence on height, i.e., in SA HOMME. In all previous analytic initializations within SA HOMME, dp3d\textrm{dp3d} and pp agree and satsify HOMME's averaging relations by construction. In my mind, this justifies my current attempt to initialize geopotential levels such that pk+12=p(zk+12) p_{k+\frac{1}{2}} = p(z_{k+ \frac{1}{2}}).

This can follow a similar form as previous rootfinding code when you note that μK+1=1\mu_{K+1} = 1 determines pK p_{K}, which therefore determines ϕK\phi_{K}. This means that both ϕK+1\phi_{K+1} and ϕK\phi_{K} can be determined from boundary conditions, and so enforcing the averaging condition for pK12p_{K-\frac{1}{2}} involves only one unknown: ϕK1\phi_{K-1}.

It's possible that the systematic way to do this is to treat $$

misc garbage

and we integrate (assume no surface topo for the moment) to find (r^2ϕr^sfc2ϕsfc)=RdTpη[gr^2ρdz]dη=[RdTpgr^2ρdz]sfcηdηη[RdTp]η[gr^2ρdz]dη \begin{align*} (\hat{r}^2 \phi - \hat{r}_{\textrm{sfc}}^2 \phi_{\textrm{sfc}}) &= -\int \frac{R_d T}{p} \pder{}{\eta} \left[\int g\hat{r}^2 \rho \intd{z} \right]\intd{\eta} \\ &= \left[\frac{R_d T}{p} \int g\hat{r}^2 \rho \intd{z} \right]_{\textrm{sfc}}^{\eta}\intd{\eta} - \int \pder{}{\eta} \left[ \frac{R_d T}{p} \right] \cdot \pder{}{\eta} \left[\int g\hat{r}^2 \rho \intd{z} \right]\intd{\eta} \end{align*}

Other relevant constraints: levelρgdz=dp3d \int_{\textrm{level}} \rho g \intd{z} = \textrm{dp3d} ps=idp3dp_s = \sum_i \textrm{dp3d}

Parent post: