Chemistry · interface

ParcelSpec

What a parcel is made of and how big it is. An object rather than seven positional arguments, which is how PhysicsWorld.addBody takes a body and for the same reason.

Explained in Chemistry.

interface ParcelSpec
import type { ParcelSpec } from '@driftengine/chemistry';

Properties

NameTypeDescription
substancereadonlynumber
massreadonlynumber
temperaturereadonlynumberK. Every shell starts here.
areareadonlyoptionalnumberExposed surface area, m². Optional, and conduction refuses a parcel without one, naming it: a characteristic depth is volume over area, so a parcel with no area has no depth and there is no honest default to invent. parcelFromBounds supplies it from a bounding box in CH-9.
xreadonlyoptionalnumber
yreadonlyoptionalnumber
zreadonlyoptionalnumber