ParcelFlight class final

A stream's parcels for FluidSolver.flyParcels: each falls for dt under gravity, in pieces no longer than its radius against walls, running along what it meets; held to a wall it has come off while it is slower than medium's cling speed for its thickness; its ripples grown while it is in the air. Where it lands and whether it parts is the Jet's to say, after.

Constructors

ParcelFlight({required Float64List parcels, required double dt, required Vector3 gravity, required FluidMedium medium, List<JetObstacle> walls = const <JetObstacle>[]})
The parcels in parcels and what their flight reads; no walls unless given. Copies nothing: parcels is moved in place.

Properties

count → int
How many parcels parcels holds.
no setter
dt → double
How long the parcels fly for, in seconds.
final
gravity → Vector3
The gravity the parcels fall under, in metres per second squared, in the world.
final
hashCode → int
The hash code for this object.
no setterinherited
medium → FluidMedium
The stream's liquid, which the cling speed answers for.
final
parcels → Float64List
parcelFloats doubles a parcel, laid out as the offsets below say; the position, velocity, previous position, age, growth and whether it is on a wall are moved in place.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
walls → List<JetObstacle>
The walls the parcels could reach this step, which they run along.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

age → const int
Offset of the parcel's age, in seconds since it left the lip.
density → const int
Offset of its liquid's density, in kilograms per cubic metre.
emittedIn → const int
Offset of the length of the step the parcel left the lip in, in seconds: its volume over this and its speed is its section.
growth → const int
Offset of how far its ripples have grown, in e-foldings.
onWall → const int
Offset of the wall flag: one while the parcel is on a wall, nought when not.
parcelFloats → const int
Doubles a parcel takes in parcels.
position → const int
Where each part of a parcel is in its record: position xyz, velocity xyz, the position it started the step at xyz (written), its volume, the step it left the lip in, its age, how far its ripples have grown, one when it is on a wall and nought when not, and its own liquid's density, surface tension and viscosity.
previous → const int
Offset of the position xyz the parcel started the step at, in metres; written by the flight.
tension → const int
Offset of its liquid's surface tension, in newtons per metre.
velocity → const int
Offset of the velocity xyz, in metres per second.
viscosity → const int
Offset of its liquid's dynamic viscosity, in pascal seconds.
volume → const int
Offset of the parcel's volume, in cubic metres.