Python Mock Microphysics Module

class libs.mock_microphys.mock_microphysics_scheme.MicrophysicsScheme[source]

Bases: object

A class representing a Python microphysics scheme which is a mock-up of the ICON AES one-moment microphysics scheme.

finalize()[source]

Finalize the microphysics scheme.

This method performs the finalization steps for the microphysics scheme.

initialize()[source]

Initialize the microphysics scheme.

This method performs the initialization steps necessary for the microphysics scheme.

run(nvec, ke, ivstart, dt, dz, t, rho, p, qv, qc, qi, qr, qs, qg, qnc)[source]

Run the microphysics computations.

This method executes the microphysics computations.

Parameters:
nvec (int):

Number of horizontal points.

ke (int):

Number of grid points in vertical direction.

ivstart (int):

Start index for horizontal direction.

dt (np.ndarray):

Times-tep for integration of microphysics (s)

dz (np.ndarray):

Layer thickness of full levels (m).

t (np.ndarray):

Temperature (K).

rho (np.ndarray):

Density of moist air (kg/m3)

p (np.ndarray):

Pressure (Pa).

qv (np.ndarray):

Specific water vapor content (kg/kg)

qc (np.ndarray):

Specific cloud water content (kg/kg)

qi (np.ndarray):

Specific cloud ice content (kg/kg)

qr (np.ndarray):

Specific rain content (kg/kg)

qs (np.ndarray):

Specific snow content kg/kg)

qg (np.ndarray):

Specific graupel content (kg/kg)

qnc (np.ndarray):

Cloud number concentration.

Returns:

Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray, np.ndarray, np.ndarray, np.ndarray, np.ndarray, np.ndarray]:

  • Updated temperature (K).

  • Updated specific water vapor content (kg/kg)

  • Updated specific cloud water content (kg/kg)

  • Updated specific cloud ice content (kg/kg)

  • Updated specific rain content (kg/kg)

  • Updated specific snow content kg/kg)

  • Updated specific graupel content kg/kg)

  • Updated precipitation rate of rain, grid-scale (kg/(m2*s))

  • Updated total precipitation flux