import { SubstanceRegistry } from '@driftengine/chemistry' ; copy
Constructor
constructor (species: SpeciesRegistry , reactions ?: ReactionRegistry | undefined )
Properties
Accessors
Name Type Description
countget number
Methods
define (substance: SubstanceThermal): number
indexOf (id: string): number
Parameter Type Description
idstring
idOf (substance: number): string
Parameter Type Description
substancenumber
conductionOf (substance: number): ConductionModel
Parameter Type Description
substancenumber
conductionAt (substance: number , shells: number): ConductionModel
The conduction model for a substance resolved to shells, which a tier may have reduced it to.
Parameter Type Description
substancenumber
shellsnumber
More Precomputed at registration; see byShellCount for why it is not derived on demand.
densityOf (substance: number): number
Parameter Type Description
substancenumber
porosityOf (substance: number): number
Void fraction, 0..1. Zero means it exchanges no gas with the air at all.
Parameter Type Description
substancenumber
emissivityOf (substance: number): number
How readily it radiates and absorbs, 0..1.
Parameter Type Description
substancenumber
ignitionOf (substance: number): IgnitionModel | null
When this material catches, or null where nobody said it does.
Parameter Type Description
substancenumber
appearanceOf (substance: number): AppearanceModel | null
What it looks like, or null where nobody said.
Parameter Type Description
substancenumber
More null rather than a grey default: present/ writes nothing for a substance with no appearance
rather than inventing one, so a consumer sees their own material unchanged instead of finding
the engine has quietly recoloured it.
definitionOf (substance: number): SubstanceThermal
Parameter Type Description
substancenumber
speciesSetOf (substance: number): Int32Array
Global species indices this substance's parcels carry, ascending.
Parameter Type Description
substancenumber
localSlotOf (substance: number , species: number): number
The local slot a global species occupies for this substance, or -1.
Parameter Type Description
substancenumber
speciesnumber
reactionsOf (substance: number): SubstanceReactions
Parameter Type Description
substancenumber