jan 12
The top boundary is characterized by the quantity , if we want to set a
dirichlet (i.e. point value) boundary condition. This is needed for cancellation of terms in
an integration-by-parts needed for energy conservation.
However, there are several problems with this. is a prognostic variable at
the model top in shallow atmosphere homme. We therefore cannot constrain it directly.
The discrete averaging scheme used in HOMME
states that we can extrapolate the model-level quantity to the model top
using
.
I don't think this actually agrees with how the calculation of
is handled in shallow HOMME.
In shallow HOMME,
which disagrees with this averaging identity.
In any case, the equation of state
implies that if we know
,
( and thus
), and
then we know non-hydrostatic
at the top model level. Combining this equation of state with the
discrete averaging, this constrains the value of
at the top interface level. Therefore,
we actually cannot constrain the boundary values
at the top interface level
(for example setting
) without forcing
to be a value that
violates the discrete averaging/extrapolation that is used elsewhere, or by setting the value of
at the model top which is not consistent with the prognostic equation for
.
There is another alternative boundary condition that we could try to use.
measures the
deviation of physical pressure from hydrostatic balance. The importance
of this term shows up in the prognostic equation for vertical velocity:
If
at the top boundary, then a benign atmosphere in hydrostatic balance with no wind begins to experience vertical acceleration.
In the deep atmosphere we have defined
and if we so desire we can set
to get
This gives us a Neumann boundary condition (i.e. a constraint on the vertical derivative) for pressure.
As I just discovered an hour ago, this is the recommended upper boundary condition for the height vertical coordinate
in Taylor et al, 2020. However, it turns out that a Neumann boundary condition also runs into the same
problem as the Dirichlet boundary condition
, which is that
the EOS (and the constraint
on
) combined with discrete averaging
already determines the values of
at the top boundary.
There are two strategies to fix this problem. The more suspicious one is as follows.
If we sacrifice energy conservation at the upper boundary, we can solve all of these issues.
If we allow to vary, then we can change the EOS such that our boundary condition is satisfied.
This preserves mass conservation of the model, and gives us the ability to implement either a Neumann or Dirichlet boundary condition.
My current strategy is to use this approach to implement a Neumann (i.e.
)
boundary condition at the expense of energy conservation near the model top.
I believe this is unobjectionable for two reasons. Firstly, models almost always have damping mechanisms
near the model top which are not energy preserving. Secondly,
in the lagrangian mass coordinate, HOMME does not use an energy-conserving remap
(according to Chris Eldred, because using an energy preserving remap tended to result in
spurious generation of circulation). Therefore, using an upper boundary condition which is not
energy preserving should be an acceptable concession. Furthermore, I'm not actually sure that
the method of calculating
at the in shallow HOMME is necessarily correct.
The second strategy is less fleshed out. I mentioned above that the boundary condition
is similar to what is recommended in the paper for height coordinates. However, they
use the slightly different condition
and make the somewhat confusing observation that although
should be satisfied for
the top boundary, "here we retain this term to allow for the
possibility that the discretized vertical transport term may not vanish." They do this in order
to allow for the possibility that the discretized vertical transport may be non-zero. In their case,
they are using the condition on
to constrain discrete violations of
,
but we could go in the opposite direction and use the
term to ensure that
This concisely shows that we can either fiddle with
(i.e. energy conservation) or
(i.e. mass conservation) to
enforce a Neumann boundary condition.
What's actually happening in initialization:
If we rootfind progressively from the surface to the model top such that the atmosphere satisfies ,
what is actually happening is that for hydrostatically balanced initial conditions,
we can use the hydrostatic equation to back out
from pressure,
and initialize the model such that
for
externally provided
. In the more general (i.e. nonhydrostatic) case,
the rootfinding and/or interpolation must be provided the form of
and
.
If we are provided these fields, then we can use monotonicity
of the discrete analogue of
and the sum
to map initial conditions from, e.g.,
data onto the deep mass coordinates.