palmmeteo.library.PalmPhysics(3)

NAME
palmmeteo.library.PalmPhysics

SYNOPSIS

Inherited by palmmeteo_stdplugins.wrf_utils.WrfPhysics.

  Public Member Functions
barom_lapse0_pres (cls, p0, gp, gp0, t0)
barom_lapse0_gp (cls, gp0, p, p0, t0)
barom_ptn_pres (cls, p0, z, t0)
exner (cls, p)
exner_inv (cls, p)
rho_air_ideal_gas (cls, p, pt)

  Public Attributes
d_p0

  Static Public Attributes
float g = 9.81
int c_p = 1005.
int r_d = 287.
int p0 = 1e5
float sigma_sb = 5.67037e-08
int d_p0 = 1e-5
float g_d_cp = g / c_p
int cp_d_rd = c_p / r_d
int rd_d_cp = r_d / c_p
int radius = 6371.
float R = 8.314

Detailed Description

Physics calculations with defined constants
This class contains various physics calculations, implemented as class
methods, which use defined physical constants. It can be subclassed with
different constants to suit processing of data related to models with
constants defined otherwise.

Member Function Documentation

  palmmeteo.library.PalmPhysics.barom_lapse0_gp ( cls, gp0, p, p0, t0)

Converts geopotential based on pressure using barometric equation

  palmmeteo.library.PalmPhysics.barom_lapse0_pres ( cls, p0, gp, gp0, t0)

Converts pressure based on geopotential using barometric equation

  palmmeteo.library.PalmPhysics.barom_ptn_pres ( cls, p0, z, t0)

PALM's barometric_formula( z, t_0, p_0 )
The calculation is based on the assumption of a polytropic atmosphere
and neutral stratification, where the temperature lapse rate is g/cp.

  palmmeteo.library.PalmPhysics.exner ( cls, p)

Exner function

  palmmeteo.library.PalmPhysics.exner_inv ( cls, p)

Reciprocal of the Exner function

  palmmeteo.library.PalmPhysics.rho_air_ideal_gas ( cls, p, pt)

Air density according to ideal gas law from PALM's function
ideal_gas_law_rho_pt( p, t )

Member Data Documentation

  int palmmeteo.library.PalmPhysics.c_p = 1005. [static]

  int palmmeteo.library.PalmPhysics.cp_d_rd = c_p / r_d [static]

  int palmmeteo.library.PalmPhysics.d_p0 = 1e-5 [static]

  palmmeteo.library.PalmPhysics.d_p0

  float palmmeteo.library.PalmPhysics.g = 9.81 [static]

  float palmmeteo.library.PalmPhysics.g_d_cp = g / c_p [static]

  int palmmeteo.library.PalmPhysics.p0 = 1e5 [static]

  float palmmeteo.library.PalmPhysics.R = 8.314 [static]

  int palmmeteo.library.PalmPhysics.r_d = 287. [static]

  int palmmeteo.library.PalmPhysics.radius = 6371. [static]

  int palmmeteo.library.PalmPhysics.rd_d_cp = r_d / c_p [static]

  float palmmeteo.library.PalmPhysics.sigma_sb = 5.67037e-08 [static]

Author

Generated automatically by Doxygen for PALM-meteo from the source code.