Documentation ¶
Overview ¶
Package simplechem contains a simplified atmospheric chemistry mechanism.
Index ¶
- Constants
- type Mechanism
- func (m Mechanism) AddEmisFlux(c *inmap.Cell, name string, val float64) error
- func (m Mechanism) Chemistry() inmap.CellManipulator
- func (m Mechanism) DryDep(name string) (inmap.CellManipulator, error)
- func (m Mechanism) Len() int
- func (m Mechanism) Species() []string
- func (m Mechanism) Units(variable string) (string, error)
- func (m Mechanism) Value(c *inmap.Cell, variable string) (float64, error)
- func (m Mechanism) WetDep(name string) (inmap.CellManipulator, error)
Constants ¶
const ( // Chemical mass conversions [ratios] NOxToN = mwN / mwNOx NtoNO3 = mwNO3 / mwN SOxToS = mwS / mwSO2 StoSO4 = mwSO4 / mwS NH3ToN = mwN / mwNH3 NtoNH4 = mwNH4 / mwN )
physical constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mechanism ¶
type Mechanism struct{}
Mechanism fulfils the github.com/spatialmodel/inmap.Mechanism interface.
func (Mechanism) AddEmisFlux ¶
AddEmisFlux adds emissions flux to Cell c based on the given pollutant name and amount in units of μg/s. The units of the resulting flux are μg/m3/s.
func (Mechanism) Chemistry ¶
func (m Mechanism) Chemistry() inmap.CellManipulator
Chemistry returns a function that calculates the secondary formation of PM2.5. It explicitly calculates formation of particulate sulfate from gaseous and aqueous SO2. It partitions organic matter ("gOrg" and "pOrg"), the nitrogen in nitrate ("gNO and pNO"), and the nitrogen in ammonia ("gNH" and "pNH) between gaseous and particulate phase based on the spatially explicit partioning present in the baseline data. The function arguments represent the array indices of each chemical species.
func (Mechanism) DryDep ¶
func (m Mechanism) DryDep(name string) (inmap.CellManipulator, error)
DryDep returns a dry deposition function of the type indicated by name that is compatible with this chemical mechanism. Currently, the only valid option is "simple".
func (Mechanism) Species ¶
Species returns the names of the emission and concentration pollutant species that are used by this chemical mechanism.
func (Mechanism) Units ¶
Units returns the units of the given variable, or an error if the variable name is invalid.