Appearance
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 path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
|---|---|---|---|
blocks.block_edge | 25 | Cells along each cubic block edge, not physical meters. | No |
blocks.create_criteria_type | 2; 0=VelocityMagnitude, 1=VorticityMagnitude, 2=VorticityMagnitudeLbm | Flow-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_criteria | 0.04 | High-demand activity threshold in the selected criterion units; low threshold is half this value. | No |
blocks.center_target | None | Optional scene object whose current world position centers the region where flow activity can request blocks. | No |
blocks.max_distance_to_target | 1.0 | Maximum 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_capacity | 32 | Initially allocated block slots; capacity can grow. | No |
blocks.advanced.max_block_count | 8192 | Upper block-count bound, not preallocated capacity or available GPU memory. | No |
blocks.advanced.need_border_size | 5 | Width 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_interval | 5 | Periodic flow-demand update interval in simulation steps; boundary demand can trigger additional updates. | No |
blocks.advanced.retire_delay_steps | 50 | Grace 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_iterations | 8 | Number of initialization iterations for newly created blocks. | No |
Fluid
| API path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
|---|---|---|---|
fluid.resolution | 0.01 | Cell spacing, m; finer cells increase domain and boundary cost. | No |
fluid.max_velocity | 50.0 | Velocity scale, m/s; raises temporal resolution/cost when increased. Keep above expected relevant flow speeds. | No |
fluid.initial_density | 1.225 | Fluid 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_viscosity | 1.8e-05 | Kinematic viscosity, m²/s; not dynamic viscosity. | No |
Boundary
| API path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
|---|---|---|---|
boundary.enabled | true | Enable Gen 2 FluidBoundary handling; independent of separate actuator coupling Systems. | No |
boundary.dynamic_two_way_coupling | true | Default load computation/body feedback for dynamic meshes. Shown when sibling enabled = True. | No |
boundary.static_two_way_coupling | false | Default load computation/body feedback for static meshes. Shown when sibling enabled = True. | No |
boundary.refill | true | Refill cells exposed by moving boundaries. Can be disabled for diagnostics. Shown when sibling enabled = True. | No |
boundary.create_border_size | 5 | Margin 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.model | 1 (CappedNavierSlip) | Solver default wall relation. Choose 0 for NoSlip or 1 for capped local-plane Navier slip. | No |
boundary.wall_model.slip_length_cells | 2.0 | Slip length in lattice cells; physical length changes with resolution. Shown when sibling model = CappedNavierSlip. | No |
boundary.wall_model.maximum_slip_ratio | 1.0 | Cap on the tangential relative velocity fraction in the effective wall speed, in [0, 1]. Shown when sibling model = CappedNavierSlip. | No |
boundary.wall_model.side | 0; 0=NormalSide, 1=OppositeSide, 2=BothSides | Which oriented geometric side receives slip; the other retains no-slip boundary handling. Shown when sibling model = CappedNavierSlip. | No |
Visualization
| API path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
|---|---|---|---|
visualization.velocity_range_min | 0.0 | Lower displayed disturbance-speed range, m/s; raising it can suppress faint background. | Yes |
visualization.velocity_range_max | 10.0 | Upper displayed disturbance-speed range, m/s. | Yes |
visualization.opacity_scale | 1.0 | Dimensionless volume opacity multiplier; changes appearance only. | Yes |
visualization.sample_rate_multiplier | 1.0 | Volume 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 path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
|---|---|---|---|
export.enabled | false | Include Gen 2 fluid data in world export requests. Files are written under the world's export directory in fluid_gen2. | No |
export.type | 1; 0=FullDataVdb, 1=LimitedRangeVtk | FullDataVdb 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_factor | 0 | Coarsening for LimitedRangeVtk. Samples are spaced at (factor + 1) × fluid cell size. Zero keeps native spacing. Shown when sibling enabled = True. | No |
export.center_target | None | Scene 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.