Divooka Reference

Smoke

32 nodes

On this page 32

Add Embers

Function

The scene with embers: glowing specks born over a fire that ride its gas upwards, swirl with it, cool from yellow to red and go out. They show in pictures and in flipbooks.

Signature
AddEmbers -> Smoke Scene Description
    scene: Smoke Scene Description
    name: Text
    position: Vector3d
    size: Vector3d
    rate: Number
    lifetime: Number
    start: Number
    end: Number
SmokeSceneDescription AddEmbers(
    SmokeSceneDescription scene,
    string name,
    Vector3d position,
    Vector3d size,
    double rate = 3000,
    double lifetime = 4,
    double start = 0,
    double end = 0)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
nameText—The embers' name, by which a session moves them (Move Source) and bursts them.
positionVector3d—The middle of the box they are born in (m): just over the fire.
sizeVector3d—That box's size (m) along X, Y and Z: the fire's width, and a few centimetres high.
rateNumber3000Embers per second.
lifetimeNumber4How long an ember glows (s) at most.
startNumber0When they start (s).
endNumber0When they stop (s); 0: never.

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Add Fire

Function

The scene with a fire: a flat burner that gives off fuel, which burns above it into flame, heat and smoke.

Signature
AddFire -> Smoke Scene Description
    scene: Smoke Scene Description
    name: Text
    position: Vector3d
    size: Vector3d
    fuel: Number
    start: Number
    end: Number
    behaveAsFire: Truth
SmokeSceneDescription AddFire(
    SmokeSceneDescription scene,
    string name,
    Vector3d position,
    Vector3d size,
    double fuel = 0.7,
    double start = 0,
    double end = 0,
    bool behaveAsFire = true)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
nameText—The fire's name.
positionVector3d—The burner's centre (m).
sizeVector3d—The burner's size (m) along X, Y and Z; a pan is wide and a few centimetres high.
fuelNumber0.7How much fuel it gives (0.5 to 1 is a strong fire).
startNumber0When it lights (s).
endNumber0When it goes out (s); 0: never.
behaveAsFireTruthTrueGive the scene's gas the behaviour that suits a fire: it rises less hard than plain hot smoke, cools faster, its smoke fades and it swirls more (Set Smoke Behaviour 0.4, 1.6, 0.3, 3). Off keeps the scene's own.

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Add Obstacle Box

Function

The scene with a solid box that the gas flows round.

Signature
AddObstacleBox -> Smoke Scene Description
    scene: Smoke Scene Description
    name: Text
    position: Vector3d
    size: Vector3d
SmokeSceneDescription AddObstacleBox(
    SmokeSceneDescription scene,
    string name,
    Vector3d position,
    Vector3d size)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
nameText—The solid's name.
positionVector3d—Its centre (m).
sizeVector3d—Its size (m) along X, Y and Z.

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Add Obstacle Sphere

Function

The scene with a solid ball that the gas flows round.

Signature
AddObstacleSphere -> Smoke Scene Description
    scene: Smoke Scene Description
    name: Text
    position: Vector3d
    radius: Number
SmokeSceneDescription AddObstacleSphere(
    SmokeSceneDescription scene,
    string name,
    Vector3d position,
    double radius)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
nameText—The solid's name.
positionVector3d—Its centre (m).
radiusNumber—Its radius (m).

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Add Smoke Body

Function

The scene with a rigid body in the box, made by the Box, Sphere, Capsule and the other body nodes. The gas flows round it and pushes it: a light body is lifted and blown about, a heavy one stands and parts the plume. Bodies fall, collide with each other and with the scene's solids, and rest on the box's floor; the box's sides are open, to bodies as to gas. The gas feels a sphere, a box and a capsule as they are and any other shape as the box round it.

Signature
AddSmokeBody -> Smoke Scene Description
    scene: Smoke Scene Description
    body: Body Description
SmokeSceneDescription AddSmokeBody(
    SmokeSceneDescription scene,
    BodyDescription body)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
bodyBody Description—The body. A static one stands where it is, as an obstacle does; a kinematic one is moved by a session's Move Solid.

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Add Smoke Source

Function

The scene with a ball that gives off smoke: it holds its volume at a density and a temperature, and what is hot rises.

Signature
AddSmokeSource -> Smoke Scene Description
    scene: Smoke Scene Description
    name: Text
    position: Vector3d
    radius: Number
    density: Number
    Temperature (K): Number
    start: Number
    end: Number
SmokeSceneDescription AddSmokeSource(
    SmokeSceneDescription scene,
    string name,
    Vector3d position,
    double radius = 0.2,
    double density = 1,
    double temperature = 450,
    double start = 0,
    double end = 0)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
nameText—The source's name.
positionVector3d—Its centre (m).
radiusNumber0.2Its radius (m).
densityNumber1The smoke it gives (1 is thick).
Temperature (K)Number450Its temperature (K); air is at 293, and 450 rises briskly.
startNumber0When it starts (s).
endNumber0When it stops (s); 0: never.

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Add Smoke Trigger

Function

The scene with a trigger for its bodies, made by the Triggers nodes: at a time, at every interval, or when a body touches something, rises or falls past a height or moves faster than a speed, it pushes a body, releases one that was held, spawns a copy of one or removes one. Triggers are looked at after every step of the bodies, in the order they were added; what they did is in the events of Smoke Bodies. A real-time scene does not take Water In Region, Detonate, Set Wind or Unpin Cloth, and says so here.

Signature
AddSmokeTrigger -> Smoke Scene Description
    scene: Smoke Scene Description
    trigger: Trigger Description
SmokeSceneDescription AddSmokeTrigger(
    SmokeSceneDescription scene,
    TriggerDescription trigger)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
triggerTrigger Description—The trigger. A spawn that repeats has room for 32 bodies the gas flows round; later ones still fall and collide.

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Add Sparks

Function

The scene with sparks: glowing streaks thrown from a point that fly free of the gas, fall and bounce off the floor and the solids. A fire spitting, a grinder, a fuse. They show in pictures and in flipbooks.

Signature
AddSparks -> Smoke Scene Description
    scene: Smoke Scene Description
    name: Text
    position: Vector3d
    direction: Vector3d
    rate: Number
    spread: Number
    lifetime: Number
    start: Number
    end: Number
SmokeSceneDescription AddSparks(
    SmokeSceneDescription scene,
    string name,
    Vector3d position,
    Vector3d direction,
    double rate = 4000,
    double spread = 1,
    double lifetime = 1.5,
    double start = 0,
    double end = 0)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
nameText—The sparks' name, by which a session moves them (Move Source) and bursts them.
positionVector3d—Where they come from (m).
directionVector3d—The velocity they are thrown with (m/s).
rateNumber4000Sparks per second.
spreadNumber1The speed of the random part of their velocity (m/s).
lifetimeNumber1.5How long a spark glows (s).
startNumber0When they start (s).
endNumber0When they stop (s); 0: never.

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Export Smoke Flipbook

Function

Runs the scene and writes a flipbook of it as a PNG with transparency, with its layout beside it as a text file (the grid, the frame size, the frame rate, the camera). Returns the PNG's path.

Signature
ExportSmokeFlipbook -> Text
    scene: Smoke Scene Description
    path: Text
    duration: Number
    eye: Vector3d
    target: Vector3d
    columns: Integer
    rows: Integer
    frameSize: Integer
    fieldOfView: Number
string ExportSmokeFlipbook(
    SmokeSceneDescription scene,
    string path,
    double duration,
    Vector3d eye,
    Vector3d target,
    int columns = 8,
    int rows = 8,
    int frameSize = 256,
    double fieldOfView = 40)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
pathText—The PNG to write; its folder is created if missing.
durationNumber—How long to run (s).
eyeVector3d—Where the camera stands (m).
targetVector3d—What it looks at (m).
columnsInteger8Frames in a row.
rowsInteger8Rows of frames.
frameSizeInteger256A frame's width and height in pixels.
fieldOfViewNumber40The camera's vertical field of view in degrees.

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Export Smoke Flipbook With Motion

Function

Runs the scene and writes a flipbook of it with its motion: the frames as a PNG with transparency, the motion as a second PNG beside it (the same name ending in .motion.png), and a text file with the layout, the motion's scale and how a player uses it. Returns the two PNGs' paths, the frames first.

Signature
ExportSmokeFlipbookWithMotion -> Text Array
    scene: Smoke Scene Description
    path: Text
    duration: Number
    eye: Vector3d
    target: Vector3d
    columns: Integer
    rows: Integer
    frameSize: Integer
    fieldOfView: Number
string[] ExportSmokeFlipbookWithMotion(
    SmokeSceneDescription scene,
    string path,
    double duration,
    Vector3d eye,
    Vector3d target,
    int columns = 8,
    int rows = 8,
    int frameSize = 256,
    double fieldOfView = 40)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
pathText—The frames' PNG to write; its folder is created if missing.
durationNumber—How long to run (s).
eyeVector3d—Where the camera stands (m).
targetVector3d—What it looks at (m).
columnsInteger8Frames in a row.
rowsInteger8Rows of frames.
frameSizeInteger256A frame's width and height in pixels.
fieldOfViewNumber40The camera's vertical field of view in degrees.

Returns

resultText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Export Smoke Vdb

Function

Runs the scene and writes the gas at every frame as an OpenVDB file, which Houdini, Blender and other renderers read: three volumes named density, temperature and flame, in metres and Divooka's axes (+Z up), air left out. Nothing is kept in memory, so a long run of a large box costs only its files. Returns the files written.

Signature
ExportSmokeVdb -> Text Array
    scene: Smoke Scene Description
    folder: Text
    duration: Number
    framesPerSecond: Number
    prefix: Text
string[] ExportSmokeVdb(
    SmokeSceneDescription scene,
    string folder,
    double duration = 2,
    double framesPerSecond = 24,
    string prefix = "smoke")

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
folderText—The folder; created if missing.
durationNumber2How long to run (s).
framesPerSecondNumber24Frames per second of simulated time.
prefixTextsmokeFile name prefix: files are prefix.0001.vdb and on.

Returns

resultText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Export Smoke Vdb Frame

Function

Writes one frame of a recorded run as an OpenVDB file with its three volumes (density, temperature, flame) and returns the path.

Signature
ExportSmokeVdbFrame -> Text
    result: Smoke Result
    frame: Integer
    path: Text
string ExportSmokeVdbFrame(
    SmokeResult result,
    int frame,
    string path)

Parameters

nametypedefaultdescription
resultSmoke Result—The run.
frameInteger—The recorded frame, from 0.
pathText—The file to write; its folder is created if missing.

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Flipbook Colour

Function

A flipbook's frames: one picture with transparency, frames from the left and rows from the top, the colour premultiplied by the alpha.

Signature
FlipbookColour(sheet: Flipbook Sheet) -> Pixel Image
PixelImage FlipbookColour(FlipbookSheet sheet)

Parameters

nametypedefaultdescription
sheetFlipbook Sheet—A flipbook made with its motion.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Flipbook Motion

Function

A flipbook's motion, pixel for pixel with its frames: red is how far what the pixel shows moves to the right until the next frame and green how far down, as 0.5 + 0.5 × shift / scale, in frame widths and heights (so mid grey in both is still). Flipbook Motion Scale is the scale. Between frames A and B at a share t, a player reads A at uv − t × shift and B at uv + (1 − t) × shift, each by its own shift, and blends the two by t.

Signature
FlipbookMotion(sheet: Flipbook Sheet) -> Pixel Image
PixelImage FlipbookMotion(FlipbookSheet sheet)

Parameters

nametypedefaultdescription
sheetFlipbook Sheet—A flipbook made with its motion.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Flipbook Motion Scale

Function

The shift a flipbook's motion picture has at the ends of its range (red or green of 0 or 255), in frame widths or heights from a frame to the next.

Signature
FlipbookMotionScale(sheet: Flipbook Sheet) -> Number
double FlipbookMotionScale(FlipbookSheet sheet)

Parameters

nametypedefaultdescription
sheetFlipbook Sheet—A flipbook made with its motion.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Is Realtime Available

Function

Whether this machine can run the real-time solvers: it needs a graphics card that speaks Vulkan.

Signature
IsRealtimeAvailable() -> Truth
bool IsRealtimeAvailable()

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

New Smoke

Function

A box of still air for smoke and fire to live in, standing on the ground: open at its sides and top, closed at its floor.

Signature
NewSmoke -> Smoke Scene Description
    size: Vector3d
    position: Vector3d
    cellSize: Number
    sparse: Truth
    halfPrecision: Truth
SmokeSceneDescription NewSmoke(
    Vector3d size,
    Vector3d position,
    double cellSize = 0.05,
    bool sparse = false,
    bool halfPrecision = false)

Parameters

nametypedefaultdescription
sizeVector3d—The box's size (m) along X, Y and Z (up). It is made of whole cells counted in eights, so each side is rounded up to the next multiple of eight cells.
positionVector3d—The middle of the box's floor (m).
cellSizeNumber0.05The size of a cell (m): the smallest detail the gas has. Halving it is eight times the cells.
sparseTruthFalseWork on and store only the parts of the box that hold something: for a large box that is mostly empty.
halfPrecisionTruthFalseStore the gas in 16-bit numbers: two thirds of the memory and a faster step.

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Realtime Device

Function

The graphics card the real-time solvers run on, or what is missing when there is none.

Signature
RealtimeDevice() -> Text
string RealtimeDevice()

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Set Smoke Behaviour

Function

The scene with the gas behaving differently.

Signature
SetSmokeBehaviour -> Smoke Scene Description
    scene: Smoke Scene Description
    buoyancy: Number
    cooling: Number
    fading: Number
    swirl: Number
SmokeSceneDescription SetSmokeBehaviour(
    SmokeSceneDescription scene,
    double buoyancy = 1,
    double cooling = 0.5,
    double fading = 0,
    double swirl = 2)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
buoyancyNumber1How strongly hot gas rises (1 is air's own).
coolingNumber0.5How fast the gas loses its heat (per second).
fadingNumber0How fast smoke fades (per second; 0: it stays).
swirlNumber2How much small swirls are kept alive (0: none; 2 to 4: lively).

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Set Smoke Look

Function

The scene with the gas looking differently in pictures and flipbooks.

Signature
SetSmokeLook -> Smoke Scene Description
    scene: Smoke Scene Description
    thickness: Number
    brightness: Number
    sunDirection: Vector3d
SmokeSceneDescription SetSmokeLook(
    SmokeSceneDescription scene,
    double thickness,
    double brightness,
    Vector3d sunDirection)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
thicknessNumber—How thick the smoke looks: what a metre of it takes from the light.
brightnessNumber—How bright the fire looks.
sunDirectionVector3d—Where the sun stands, as a direction towards it.

Returns

resultSmoke Scene Description
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Simulate Smoke

Function

Runs the scene for a time and records the gas at every frame: its smoke, its temperature and its flame, for the volume nodes to read. A frame of a box of a million cells is 12 MB, so record few frames of a large box (Keep Every).

Signature
SimulateSmoke -> Smoke Result
    scene: Smoke Scene Description
    duration: Number
    framesPerSecond: Number
    keepEvery: Integer
SmokeResult SimulateSmoke(
    SmokeSceneDescription scene,
    double duration = 2,
    double framesPerSecond = 30,
    int keepEvery = 1)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
durationNumber2How long to run (s).
framesPerSecondNumber30Frames per second of simulated time.
keepEveryInteger1Record every frame (1), every second one (2) and so on; the last frame is always recorded.

Returns

resultSmoke Result
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Amount

Function

All the smoke a recorded frame holds: the volume of smoke of density 1 (m³).

Signature
SmokeAmount(result: Smoke Result, frame: Integer) -> Number
double SmokeAmount(SmokeResult result, int frame)

Parameters

nametypedefaultdescription
resultSmoke Result—The run.
frameInteger—The recorded frame, from 0.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Bodies

Function

The motion of the scene's bodies and solids over a recorded run, as a result the Results nodes read (Body Position, Body Path, Bodies Mesh) and the 3D view plays. Its frames are the run's own: frame 3 here is the moment of Smoke Density Volume's frame 3.

Signature
SmokeBodies(result: Smoke Result) -> Simulation Result
SimulationResult SmokeBodies(SmokeResult result)

Parameters

nametypedefaultdescription
resultSmoke Result—The run of a scene that has bodies.

Returns

resultSimulation Result
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Density Volume

Function

The smoke of a recorded frame as a volume: one voxel per cell, in metres and Divooka's axes, cells without smoke left out.

Signature
SmokeDensityVolume -> VdbFloatGrid
    result: Smoke Result
    frame: Integer
VdbFloatGrid SmokeDensityVolume(SmokeResult result, int frame)

Parameters

nametypedefaultdescription
resultSmoke Result—The run.
frameInteger—The recorded frame, from 0.

Returns

resultVdbFloatGrid
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Flame Volume

Function

How brightly a recorded frame's gas burns, as a volume; cells without flame are left out.

Signature
SmokeFlameVolume -> VdbFloatGrid
    result: Smoke Result
    frame: Integer
VdbFloatGrid SmokeFlameVolume(SmokeResult result, int frame)

Parameters

nametypedefaultdescription
resultSmoke Result—The run.
frameInteger—The recorded frame, from 0.

Returns

resultVdbFloatGrid
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Flipbook

Function

Runs the scene and takes frames of the gas by itself, evenly over the run, into one picture with transparency: a flipbook, the sprite sheet a game plays smoke and fire back from. Frames run from the left, rows from the top; the colour is premultiplied by the alpha.

Signature
SmokeFlipbook -> Pixel Image
    scene: Smoke Scene Description
    duration: Number
    eye: Vector3d
    target: Vector3d
    columns: Integer
    rows: Integer
    frameSize: Integer
    fieldOfView: Number
PixelImage SmokeFlipbook(
    SmokeSceneDescription scene,
    double duration,
    Vector3d eye,
    Vector3d target,
    int columns = 4,
    int rows = 4,
    int frameSize = 128,
    double fieldOfView = 40)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
durationNumber—How long to run (s).
eyeVector3d—Where the camera stands (m).
targetVector3d—What it looks at (m).
columnsInteger4Frames in a row.
rowsInteger4Rows of frames.
frameSizeInteger128A frame's width and height in pixels.
fieldOfViewNumber40The camera's vertical field of view in degrees.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Flipbook With Motion

Function

Runs the scene and makes a flipbook of it together with its motion: beside each frame, how far what each pixel shows moves across the frame until the next frame, taken from the gas's own velocity. A game that plays the flipbook slower than it was taken slides each frame towards the next by it, where fading one into the other would ghost. Flipbook Colour and Flipbook Motion read the two pictures; both come from one run, which is why they are made together.

Signature
SmokeFlipbookWithMotion -> Flipbook Sheet
    scene: Smoke Scene Description
    duration: Number
    eye: Vector3d
    target: Vector3d
    columns: Integer
    rows: Integer
    frameSize: Integer
    fieldOfView: Number
FlipbookSheet SmokeFlipbookWithMotion(
    SmokeSceneDescription scene,
    double duration,
    Vector3d eye,
    Vector3d target,
    int columns = 4,
    int rows = 4,
    int frameSize = 128,
    double fieldOfView = 40)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
durationNumber—How long to run (s).
eyeVector3d—Where the camera stands (m).
targetVector3d—What it looks at (m).
columnsInteger4Frames in a row.
rowsInteger4Rows of frames.
frameSizeInteger128A frame's width and height in pixels.
fieldOfViewNumber40The camera's vertical field of view in degrees.

Returns

resultFlipbook Sheet
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Frame Count

Function

How many frames a run recorded.

Signature
SmokeFrameCount(result: Smoke Result) -> Integer
int SmokeFrameCount(SmokeResult result)

Parameters

nametypedefaultdescription
resultSmoke Result—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Frame Time

Function

The simulated time of a recorded frame (s).

Signature
SmokeFrameTime(result: Smoke Result, frame: Integer) -> Number
double SmokeFrameTime(SmokeResult result, int frame)

Parameters

nametypedefaultdescription
resultSmoke Result—
frameInteger—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Height

Function

How high a recorded frame's smoke has risen: the height (m) of the highest cell with visible smoke, above the box's floor.

Signature
SmokeHeight(result: Smoke Result, frame: Integer) -> Number
double SmokeHeight(SmokeResult result, int frame)

Parameters

nametypedefaultdescription
resultSmoke Result—The run.
frameInteger—The recorded frame, from 0.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Picture

Function

Runs the scene for a time and takes a picture of it: the ground, the solids and the gas, lit by the sun.

Signature
SmokePicture -> Pixel Image
    scene: Smoke Scene Description
    time: Number
    eye: Vector3d
    target: Vector3d
    width: Integer
    height: Integer
    fieldOfView: Number
PixelImage SmokePicture(
    SmokeSceneDescription scene,
    double time,
    Vector3d eye,
    Vector3d target,
    int width = 640,
    int height = 480,
    double fieldOfView = 40)

Parameters

nametypedefaultdescription
sceneSmoke Scene Description—The scene.
timeNumber—How long to run before the picture (s).
eyeVector3d—Where the camera stands (m).
targetVector3d—What it looks at (m).
widthInteger640The picture's width in pixels.
heightInteger480The picture's height in pixels.
fieldOfViewNumber40The camera's vertical field of view in degrees.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation

Smoke Temperature Volume

Function

How much hotter than the air around a recorded frame's gas is (K), as a volume; cells at the air's temperature are left out.

Signature
SmokeTemperatureVolume -> VdbFloatGrid
    result: Smoke Result
    frame: Integer
VdbFloatGrid SmokeTemperatureVolume(
    SmokeResult result,
    int frame)

Parameters

nametypedefaultdescription
resultSmoke Result—The run.
frameInteger—The recorded frame, from 0.

Returns

resultVdbFloatGrid
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Smoke
Package
Physics Simulation