Chemistry · interface
SubstanceReactions
A substance's reactions, localised and packed.
Explained in Chemistry.
interface SubstanceReactionsimport type { SubstanceReactions } from '@driftengine/chemistry';In depth
Species are local indices into the substance's own set, so a shell's composition is a dense
run of the few species it can actually hold rather than a row over all sixty-eight. Reactants and
products are CSR, the layout physics/faces.ts uses and for the same reason: traversal allocates
nothing.
Properties
| Name | Type | Description |
|---|---|---|
countreadonly | number | |
speciesCountreadonly | number | |
molarMassreadonly | Float64Array | kg/mol for each local species. |
cpAreadonly | Float64Array | J/(kg·K) at the standard state, and its rise per kelvin, for each local species. |
cpBreadonly | Float64Array | |
minTemperaturereadonly | Float64Array | K below and above which each reaction does not run, and the band the lower gate opens over. |
maxTemperaturereadonly | Float64Array | |
gateWidthreadonly | Float64Array | |
transportLimitreadonly | Float64Array | The ceiling transport puts on each reaction in still air, per second. Zero means none. |
reactantStartreadonly | Int32Array | |
reactantLocalreadonly | Int32Array | |
reactantMolesreadonly | Float64Array | |
productStartreadonly | Int32Array | |
productLocalreadonly | Int32Array | |
productMolesreadonly | Float64Array | |
enthalpyreadonly | Float64Array | J per unit extent, derived by Hess's law at registration. |
tablereadonly | readonly (RateTable | null)[] | null for an instant reaction: the clamp is its only limit. |