Skip to content

Coupling for Blocks Fluid (Legacy) ​

Flare Live 3.0 · System · API type simexp.blocks_fluid.coupling.

Ordinary immersed-boundary coupling for the legacy Blocks Fluid solver. It densely samples participating rigid surfaces; selecting FluidBoundary does not make Box/Cylinder samplers implemented. A large floor can create extreme sampling/memory costs even with few triangles.

Slip ratio is the old IB tangential correction setting, not Gen 2 Navier slip length/cap. Correct iterations/spread kernel/thickness affect correction and stability. Use with the old solver intentionally, not alongside Gen 2 boundary handling on the same surfaces.

Properties ​

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

Coupling ​

API pathConstructor default / enum choicesMeaning / unitsEditable in Simulation
coupling.cache_directory"sample_cache"Subdirectory of the world's working directory for cached rigid-body surface samples. Use a separate folder to regenerate samples for a comparison.No
coupling.target_sample_area_lbm0.1Target surface area represented by one sample, in cell². With cell spacing h meters, physical area is this value × h² m². Smaller values use more samples and memory.No
coupling.sample_seed0Seed for random generation of candidate samples on a mesh. Used when samples are generated. A valid cache may be reused after this setting changes.No
coupling.pre_sample_multiplier10.0Candidate sample density relative to 1 ÷ target sample area. Increasing it gives the spacing filter more candidates and makes uncached sampling take longer.No
coupling.estimated_disk_fill_rate0.3Dimensionless initial estimate used to choose the spacing of the sampled points. A larger value gives a larger exclusion radius for the same target area.No
coupling.two_way_couplingtrueApply the opposite of the fluid correction force to the rigid body. The boundary still corrects the fluid when this option is off.No
coupling.correct_iterations2Number of fluid-velocity correction passes per simulation step. Higher values repeat the correction and increase work per step.No
coupling.spread_kernel1; 0=Nearest, 1=Phi2, 2=Phi4FastWeighting for sampling fluid velocity and density and distributing corrective forces. Nearest uses one node, Phi2 uses a compact neighborhood, and Phi4Fast uses a wider neighborhood.No
coupling.block_need_set_size_factor1.0Capacity multiplier for the GPU set of block requests from coupling samples. The capacity is based on the fluid solver's Max block count.No
coupling.create_border_size5Margin in fluid cells used when requesting blocks around the coupling samples.No
coupling.slip_ratio0.0Fraction of the tangential velocity mismatch to omit from the correction. At 0 the full mismatch is corrected. At 1 only the normal component is corrected.No
coupling.boundary_thickness_lbm1.0Effective thickness assigned to each sample, in cell widths. The sample area times this thickness scales the resulting force.No
coupling.max_velocity_difference_lbm0.02Magnitude limit for the wall-to-fluid velocity mismatch used in each correction pass, in lattice velocity units (cell widths per step).No
coupling.exceed_warn_ratio0.1Threshold for reporting frequent clamping when exporting. The reported ratio uses the number of clamped corrections divided by sample count times the number of steps since the previous export. Multiple correction passes can count the same sample more than once per step.No

Export ​

API pathConstructor default / enum choicesMeaning / unitsEditable in Simulation
export.enabledfalseInclude coupling sample data in world export requests. Also enables the clamping warning evaluated during export.No
export.type0; 0=VtkVtk writes sample positions, surface normals, body indices and sample force vectors. Shown when sibling enabled = True.No

Simulation input/output: none.