Skip to content

Blocks Fluid Gen 2 ​

Flare Live 3.0 · System · API type simexp.blocks_fluid.gen2.solver.

Blocks Fluid Gen 2 is the recommended fluid solver for new projects. Its advantages include:

  • Efficient GPU fluid simulation for interactive control and scripted experiments.
  • Integrated FluidBoundary handling for rigid and skinned meshes, without a separate boundary coupling System.
  • Support for large static terrain and obstacles.
  • A simulation region that adapts to flow and moving objects, with capacity growing as needed.
  • Configurable wall models and two-way coupling, with per-mesh overrides through Fluid Boundary Settings.

Actuator Surface and Virtual Propeller are supported through their shared coupling Systems. See fluid setup, parameter selection and boundary selection to configure a scene.

Properties ​

Values below are defaults for new objects. See common properties for shared fields, case-sensitive API paths and conditional visibility.

Blocks ​

API pathConstructor default / enum choicesMeaning / unitsEditable in Simulation
blocks.block_edge25Cells along each cubic block edge, not physical meters.No
blocks.create_criteria_type2; 0=VelocityMagnitude, 1=VorticityMagnitude, 2=VorticityMagnitudeLbmFlow-activity measure used for block demand. VelocityMagnitude uses speed relative to background in m/s. VorticityMagnitude uses vorticity in 1/s. VorticityMagnitudeLbm uses vorticity in lattice units.No
blocks.need_criteria0.04High-demand activity threshold in the selected criterion units; low threshold is half this value.No
blocks.center_targetNoneOptional scene object whose current world position centers the region where flow activity can request blocks.No
blocks.max_distance_to_target1.0Maximum distance in meters from Center target to a block's center for flow-driven requests. Boundary and coupling requests can still extend beyond that region.No
blocks.advanced.initial_capacity32Initially allocated block slots; capacity can grow.No
blocks.advanced.max_block_count8192Upper block-count bound, not preallocated capacity or available GPU memory.No
blocks.advanced.need_border_size5Width in cells of the margin near block faces where flow activity can request adjacent blocks. Keep it at or below Block edge.No
blocks.advanced.update_interval5Periodic flow-demand update interval in simulation steps; boundary demand can trigger additional updates.No
blocks.advanced.retire_delay_steps50Grace period in simulation steps after a block loses demand. Keeping unused blocks briefly reduces repeated allocation. The solver can reclaim those slots sooner if new requests need them.No
blocks.advanced.create_jacobi_iterations8Number of initialization iterations for newly created blocks.No

Fluid ​

API pathConstructor default / enum choicesMeaning / unitsEditable in Simulation
fluid.resolution0.01Cell spacing, m; finer cells increase domain and boundary cost.No
fluid.max_velocity50.0Velocity scale, m/s; raises temporal resolution/cost when increased. Keep above expected relevant flow speeds.No
fluid.initial_density1.225Fluid density, kg/m³; scales physical momentum exchange.No
fluid.initial_velocity(0.0, 0.0, 0.0)Initial background velocity in world coordinates, m/s.No
fluid.kinematic_shear_viscosity1.8e-05Kinematic viscosity, m²/s; not dynamic viscosity.No

Boundary ​

API pathConstructor default / enum choicesMeaning / unitsEditable in Simulation
boundary.enabledtrueEnable Gen 2 FluidBoundary handling; independent of separate actuator coupling Systems.No
boundary.dynamic_two_way_couplingtrueDefault load computation/body feedback for dynamic meshes. Shown when sibling enabled = True.No
boundary.static_two_way_couplingfalseDefault load computation/body feedback for static meshes. Shown when sibling enabled = True.No
boundary.refilltrueRefill cells exposed by moving boundaries. Can be disabled for diagnostics. Shown when sibling enabled = True.No
boundary.create_border_size5Margin in fluid cells around dynamic boundaries when requesting blocks. Keep it at or below Block edge. Shown when sibling enabled = True.No
boundary.wall_model.model1 (CappedNavierSlip)Solver default wall relation. Choose 0 for NoSlip or 1 for capped local-plane Navier slip.No
boundary.wall_model.slip_length_cells2.0Slip length in lattice cells; physical length changes with resolution. Shown when sibling model = CappedNavierSlip.No
boundary.wall_model.maximum_slip_ratio1.0Cap on the tangential relative velocity fraction in the effective wall speed, in [0, 1]. Shown when sibling model = CappedNavierSlip.No
boundary.wall_model.side0; 0=NormalSide, 1=OppositeSide, 2=BothSidesWhich oriented geometric side receives slip; the other retains no-slip boundary handling. Shown when sibling model = CappedNavierSlip.No

Visualization ​

API pathConstructor default / enum choicesMeaning / unitsEditable in Simulation
visualization.velocity_range_min0.0Lower displayed disturbance-speed range, m/s; raising it can suppress faint background.Yes
visualization.velocity_range_max10.0Upper displayed disturbance-speed range, m/s.Yes
visualization.opacity_scale1.0Dimensionless volume opacity multiplier; changes appearance only.Yes
visualization.sample_rate_multiplier1.0Volume rendering sample density. Ray samples are spaced one fluid cell width divided by this multiplier. Larger values sample more densely and cost more to render.Yes

Export ​

API pathConstructor default / enum choicesMeaning / unitsEditable in Simulation
export.enabledfalseInclude Gen 2 fluid data in world export requests. Files are written under the world's export directory in fluid_gen2.No
export.type1; 0=FullDataVdb, 1=LimitedRangeVtkFullDataVdb writes the active domain's velocity and density at native cell spacing. LimitedRangeVtk writes interpolated velocity on a world-aligned grid centered on Center target. Velocity is in m/s and density is in kg/m³. Shown when sibling enabled = True.No
export.resolution(100, 100, 100)Sample counts along world X, Y and Z for LimitedRangeVtk. Use positive counts with a product no greater than 100 million. The span along an axis is (count − 1) times the output sample spacing. Shown when sibling enabled = True.No
export.down_sample_factor0Coarsening for LimitedRangeVtk. Samples are spaced at (factor + 1) × fluid cell size. Zero keeps native spacing. Shown when sibling enabled = True.No
export.center_targetNoneScene object whose world position centers the LimitedRangeVtk output grid. Its rotation has no effect. Required for this format. Shown when sibling enabled = True.No

Simulation input/output: none.