Skip to content

nh_p_grad

NonHydrostaticPressureGradient

Apply nonhydrostatic pressure gradient force in the horizontal.

Fully implicit with beta = 0.

Documented in Lin 97, Section 6.6 of FV3 documentation.

Fortran name is nh_p_grad.

__call__(u, v, pp, gz, pk3, delp, dt, ptop, akap)

Updates the U and V winds due to pressure gradients, accounting for both the hydrostatic and nonhydrostatic contributions.

Parameters:

Name Type Description Default
u inout

wind in x-direction

required
v inout

wind in y-direction

required
pp inout

pressure, gets updated to B-grid

required
gz inout

height of the model grid cells, gets updated to B-grid

required
pk3 inout

gets updated to B-grid

required
delp in

vertical delta in pressure

required
dt in

model atmospheric timestep

required
ptop in

pressure at top of atmosphere

required
akap in

Kappa

required

calc_u(u, wk, wk1, gz, pk3, pp, rdx, dt)

Parameters:

Name Type Description Default
u inout
required
wk in
required
wk1 in
required
gz in
required
pk3 in
required
pp in
required
rdx in
required

calc_v(v, wk, wk1, gz, pk3, pp, rdy, dt)

Parameters:

Name Type Description Default
v inout
required
wk in
required
wk1 in
required
gz in
required
pk3 in
required
pp in
required
rdy in
required

set_k0_and_calc_wk(pp, pk3, wk, top_value)

Parameters:

Name Type Description Default
pp inout
required
pk3 inout
required
wk out

delta (pressure to the kappa) computed on corners

required