Frozen#

class abcmodel.atmos.residual_layer.frozen.FrozenResidualState(theta, q, co2, u, v, h, delta_theta, delta_q, delta_co2, dz_h, thetav=<factory>, deltathetav=<factory>)[source]#

Bases: AbstractState

Residual layer state — the “frozen” daytime mixed layer aloft at night.

Captured from the convective mixed layer at sunset, preserved unchanged through the night, and used to re-arm the mixed layer at the next sunrise.

theta: Array#
q: Array#
co2: Array#
u: Array#
v: Array#
h: Array#
delta_theta: Array#
delta_q: Array#
delta_co2: Array#
dz_h: Array#
thetav: Array#
deltathetav: Array#
class abcmodel.atmos.residual_layer.frozen.FrozenResidualModel[source]#

Bases: object

Residual layer model — a passive container for the frozen daytime mixed layer.

The residual layer is captured from the convective mixed layer at the day→night transition and released back at the night→day transition.

init_state(theta=288.0, q=0.008, co2=422.0, u=6.0, v=-4.0, h=200.0, delta_theta=1.0, delta_q=-0.001, delta_co2=-44.0, dz_h=150.0)[source]#

Initialize the residual layer state.

Parameters:
  • theta (float) – Residual layer potential temperature [K].

  • q (float) – Residual layer specific humidity [kg/kg].

  • co2 (float) – Residual layer CO2 [ppm].

  • u (float) – Residual layer zonal wind [m/s].

  • v (float) – Residual layer meridional wind [m/s].

  • h (float) – Residual layer depth [m].

  • delta_theta (float) – Potential temperature jump at top [K].

  • delta_q (float) – Specific humidity jump at top [kg/kg].

  • delta_co2 (float) – CO2 jump at top [ppm].

  • dz_h (float) – Transition layer thickness [m].

Returns:

The initial residual layer state.

run(state)[source]#

Run the residual layer model.