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 ParcelSpecimport type { ParcelSpec } from '@driftengine/chemistry';Properties
| Name | Type | Description |
|---|---|---|
substancereadonly | number | |
massreadonly | number | |
temperaturereadonly | number | K. Every shell starts here. |
areareadonlyoptional | number | Exposed 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. |
xreadonlyoptional | number | |
yreadonlyoptional | number | |
zreadonlyoptional | number |