Chemistry · function
reactShell
Run one shell's reactions for dt seconds.
Explained in Chemistry.
function reactShell(composition: Float64Array, offset: number, enthalpy: Float64Array, enthalpyIndex: number, model: SubstanceReactions, shellMass: number, dt: number,import { reactShell } from '@driftengine/chemistry';Parameters
| Parameter | Type | Description |
|---|---|---|
composition | Float64Array | |
offset | number | |
enthalpy | Float64Array | |
enthalpyIndex | number | |
model | SubstanceReactions | |
shellMass | number | |
dt | number | |
/** * How much faster than still air the reactants are reaching a surface. * * One in still air | | |
rising with the gas moving past — which is why blowing on embers makes them * brighter | | |
and why it stops when you stop. */ transportFactor?: number | |
In depth
composition holds this shell's species masses in kilograms at offset; enthalpy holds its
joules at enthalpyIndex. Both are written in place.