Pre-1.0: signatures are not frozen. Generated from rustdoc JSON of the compiled crate; rustdoc JSON format version 60. Only public items are listed.
Graph nodes over the fluid kernel: core.fluid.*.v1.
core.fluid.sim.v1(Motion / Temporal): the simulation. Itstimeinput (normally acore.clock.v1) drives it: each evaluation advances the sim from the time it last saw to the newtimein fixed 1/60 s steps (at most 8 per evaluation; a longer gap skips ahead). Its previous value is its state: the runtime keeps it in the node's slot, so a [crate::runtime::Candidate] that is dropped leaves the state untouched and a committed one adopts it. Atimethat goes backwards restarts the sim. Inputs add a splat and an emitter. Output: aFluidvalue (ValueType::Fluid).core.fluid.dye.v1(Visual / Pure):Fluid->Surface(a one-image recording,width x height).core.fluid.velocity.v1,core.fluid.speed.v1,core.fluid.density.v1(Motion / Pure): sample the flow at a point0..1so other nodes can be driven by it.
Positions are 0..1 across the domain, lengths and velocities in domain widths (see
[crate::fluid]).
Structs
structaster_blueprint::fluid_nodes::Port
pub struct Port { /* see fields */ }One declared input.
Public fields
| field | type | |
|---|---|---|
name | &'static str | |
value_type | model::ValueType | |
default | Dflt |
Trait implementations: Clone, Copy, Debug
Enums
enumaster_blueprint::fluid_nodes::Dflt
pub enum Dflt { Required, Scalar, Length, Bool, Color }Default of an optional input.
Variants
RequiredScalarLengthBoolColor
Trait implementations: Clone, Copy, Debug, PartialEq, StructuralPartialEq
enumaster_blueprint::fluid_nodes::FluidKind
pub enum FluidKind { Sim, Dye, Velocity, Speed, Density }The fluid node kinds.
Methods
const ALL: [FluidKind; 5]fn name(self) -> &'static strfn from_name(name: &str) -> Option<Self>fn inputs(self) -> &'static [Port]fn output(self) -> ValueTypefn domain(self) -> Domainfn effect(self) -> Effect
Variants
SimDyeVelocitySpeedDensity
Trait implementations: Clone, Copy, Debug, Eq, PartialEq, StructuralPartialEq
Functions
fnaster_blueprint::fluid_nodes::evaluate
pub fn evaluate(kind: FluidKind, inputs: &[prepared::RuntimeValue], prev: Option<&prepared::RuntimeValue>) -> Result<prepared::RuntimeValue, aster_ui::Error>Evaluate one fluid node. prev is the node's previous output (its state), when it has one.
Constants
constaster_blueprint::fluid_nodes::DENSITY
pub const DENSITY: &strconstaster_blueprint::fluid_nodes::DYE
pub const DYE: &strconstaster_blueprint::fluid_nodes::MAX_STEPS_PER_EVAL
pub const MAX_STEPS_PER_EVAL: usizeLargest number of fixed steps one evaluation advances.
constaster_blueprint::fluid_nodes::SIM
pub const SIM: &strconstaster_blueprint::fluid_nodes::SPEED
pub const SPEED: &strconstaster_blueprint::fluid_nodes::VELOCITY
pub const VELOCITY: &str