carmapy.Group#
- class carmapy.Group(igroup, name, rmin)#
An object representing a cloud species
- Parameters:
igroup (
int) – The index of the group in the Carma simulationname (
str) – A name for the group. The typical naming convention is “Pure <Species>” (ie “Pure TiO2”) for homogeneously nucleating groups and “<Mantle> on <Core>” (ie “Mg2SiO4 on TiO2”) for heterogeneously nucleating groupsrmin (
float) – The minimum size of the condensate
Notes
1. The
group.boundarydescribes the boundary conditions of the particulate matter in the atmosphere. Currently, CARMApy only supports non-zero boundary conditions for single element groups (ex. homogeneously nucleated groups). Noting that each of these entries is either 0 or an array of NBIN elements, the structure of the dictionary is as follows:- [“bot_conc”] describes the concentration of the group at the base
of the atmosphere (only used if the bottom cloud boundary condition is set to “fixed_conc”). [particles/cm^3] If not set, defaults to 0.
- [“top_conc”] describes the concentration of the group at the top
of the atmosphere (only used if the top cloud boundary condition is set to “fixed_conc”). [particles/cm^3] If not set, defaults to 0.
- [“bot_flux”] describes the upwards flux of the group to the base
of the atmosphere (only used if the bottom cloud boundary condition is set to “fixed_flux”) [particles/cm^2/s]. Defaults to 0 if not set.
- [“top_flux”] describes the downwards flux of the group at the top
of the atmosphere (only used if the top cloud boundary condition is set to “fixed_flux”). [particles/cm^2/s] Defaults to 0 if not set.
Methods
coreify(…)Create a core element from the only element of the current group.
Attributes
boundaryThe boundary conditions for the group (see note 1).
coreThe element which represents the original seed particle.
mantleThe element on the surface of the cloud particle.
- Group.coreify(ielem, group, gas_name)#
Create a core element from the only element of the current group. Used to create the core element of a heterogeneously nucleating group where this group serves as the seed particles. Adds the created element as the core of the provided group
- Parameters:
ielem (
int) – The index of the new element in the Carma simulationgroup (
Group) – The group to which the new element belongsgas_name (
str) – Name of the gas resevoir corresponding to the new element
- Returns:
The newly created element initialized as the core of a heterogeneous group
- Return type: