API documentation for the constants
module
This submodule contains dataclasses containing core constants used across the Virtual Ecosystem. This includes universal constants but also constants that may be shared across model.
Note that true universal constants are defined as class variables of dataclasses. This prevents them being changed by user specified configuration.
Classes:
|
Core constants for use across the Virtual Ecosystem modules. |
- class virtual_ecosystem.core.constants.CoreConsts(placeholder: float = 123.4, standard_pressure: float = 101.325, standard_mole: float = 44.642, molar_heat_capacity_air: float = 29.19, gravity: float = 6.6743e-11, stefan_boltzmann_constant: float = 5.670374419e-08, von_karmans_constant: float = 0.4, depth_of_active_soil_layer: float = 0.25, meters_to_mm: float = 1000.0, molecular_weight_air: float = 28.96, gas_constant_water_vapour: float = 461.51, seconds_to_day: float = 86400.0, characteristic_dimension_leaf: float = 0.01)
Core constants for use across the Virtual Ecosystem modules.
Attributes:
Characteristic dimension of leaf, typically around 0.7 * leaf width, [m].
Depth of the biogeochemically active soil layer [m].
Gas constant for water vapour, [J kg-1 K-1]
Newtonian constant of gravitation, [m s-1].
Factor to convert variable unit from meters to millimeters.
Molar heat capacity of air, [J mol-1 K-1].
Molecular weight of air, [g mol-1].
A placeholder configurable constant.
Factor to convert variable unit from seconds to day.
Moles of ideal gas in 1 m^3 air at standard atmosphere.
Standard atmospheric pressure, [kPa]
Stefan-Boltzmann constant, [W m-2 K-4].
Von Karman's constant, [unitless].
Conversion constant from Kelvin to Celsius (°).
- characteristic_dimension_leaf: float = 0.01
Characteristic dimension of leaf, typically around 0.7 * leaf width, [m].
- depth_of_active_soil_layer: float = 0.25
Depth of the biogeochemically active soil layer [m].
The soil model considered a homogenous layer in which all significant nutrient processes take place. This is a major assumption of the model. The value is taken from Fatichi et al. (2019). No empirical source is provided for this value.
- stefan_boltzmann_constant: float = 5.670374419e-08
Stefan-Boltzmann constant, [W m-2 K-4].
The Stefan-Boltzmann constant relates the energy radiated by a black body to its temperature.