Chemistry · function
ambientCellMass
Mass of each tracked species in one cell of ambient air, kg.
Explained in Chemistry.
function ambientCellMass(registry: SpeciesRegistry, fieldSpecies: Int32Array, ambient: AmbientState, volume: number, out: Float64Array): voidimport { ambientCellMass } from '@driftengine/chemistry';Parameters
| Parameter | Type | Description |
|---|---|---|
registry | SpeciesRegistry | |
fieldSpecies | Int32Array | |
ambient | AmbientState | |
volume | number | |
out | Float64Array |
In depth
From the ideal gas law at the ambient temperature and pressure, with the humidity turned into
water vapour by its partial pressure. Writes into out, one entry per field species.