Dayonly#

class abcmodel.atmos.dayonly.DayOnlyAtmosphereState(surface, mixed, clouds)[source]#

Bases: AbstractAtmosphereState, Generic[SurfT, MixedT, CloudT]

Atmosphere state aggregating surface layer, mixed layer, and clouds.

surface: SurfT#
mixed: MixedT#
clouds: CloudT#
property theta: Array#

Potential temperature [K].

property q: Array#

Specific humidity [kg/kg].

property co2: Array#

CO2 concentration [ppmv].

property surf_pressure: Array#

Surface pressure [Pa].

property u: Array#

Zonal wind speed [m/s].

property v: Array#

Meridional wind speed [m/s].

property ra: Array#

Aerodynamic resistance [s/m].

property thetasurf: Array#

Surface potential temperature [K].

property h_abl: Array#

Boundary layer height [m].

property ustar: Array#

Friction velocity [m/s].

property uw: Array#

Zonal momentum flux [m²/s²].

property vw: Array#

Meridional momentum flux [m²/s²].

property wstar: Array#

Convective velocity scale [m/s].

property thetav: Array#

Mixed-layer virtual potential temperature [K].

property top_T: Array#

Temperature at top of mixed layer [K].

property top_p: Array#

Pressure at top of mixed layer [Pa].

property cc_mf: Array#

Cloud core mass flux [kg/kg/s].

property cc_qf: Array#

Cloud core moisture flux [kg/kg/s].

property wCO2M: Array#

Cloud core CO2 mass flux [mgC/m²/s].

property cc_frac: Array#

Cloud core fraction [-].

property wthetav: Array#

Virtual potential temperature flux at surface [K m/s].

property wqe: Array#

Entrainment moisture flux [kg/kg m/s].

property dq: Array#

Specific humidity jump at h [kg/kg].

property dz_h: Array#

Transition layer thickness [m].

property deltaCO2: Array#

CO2 jump at h [ppm].

property wCO2e: Array#

Entrainment CO2 flux [mgC/m²/s].

class abcmodel.atmos.dayonly.DayOnlyAtmosphereModel(surface_layer, mixed_layer, clouds)[source]#

Bases: AbstractAtmosphereModel[DayOnlyAtmosphereState]

Atmosphere model aggregating surface layer, mixed layer, and clouds during the day-time.

init_state(surface, mixed, clouds)[source]#

Initialize the model state.

Parameters:
Returns:

The initial atmosphere state.

run(state)[source]#
statistics(state, t)[source]#

Update statistics.

warmup(radmodel, landmodel, state, t, dt, tstart)[source]#

Warmup the atmos by running it for a few timesteps.

integrate(state, dt)[source]#