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): void
import { ambientCellMass } from '@driftengine/chemistry';

Parameters

ParameterTypeDescription
registrySpeciesRegistry
fieldSpeciesInt32Array
ambientAmbientState
volumenumber
outFloat64Array

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.