Auto multimesh
auto_multimeshBuild a multi-mesh deck from obstruction geometry, measuring fluid gaps and sizing cells; refuses overlapping, gapped, or misaligned meshes.
Instructions
Build a multi-mesh deck from the OBSTRUCTION geometry. It measures the fluid gap everywhere (obstacles minus HOLEs, so doorways stay open), gives narrow places 3+ cells across and open places the default wide cell, then merges equal-size regions into boxes cut on obstacle faces so walls stay on mesh boundaries. Wall slabs up to 2 cells thick are absorbed into a neighbour. Cell sizes are quantised to min_cell x 2^k; an overlapping, gapped or misaligned deck is refused, not committed. The domain may grow to a multiple of the coarsest cell; OPEN vents follow. Engine constraints (engine multimesh ratio_union_grid): (1) every mesh must use CUBIC cells whose size is the finest cell x 2^k (k in 1,2,4,8,16); (2) every mesh boundary and the union extent must land on a fine-grid index that is a multiple of the LARGEST ratio actually used; (3) meshes must tile the domain with no overlap and no gap; (4) a 1:4 or larger ratio makes the engine print an experimental-feature warning and switches it to per-mesh storage (MM2) plus the composite block-CG v2 pressure solve, both automatically. Verify the result with list_meshes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_cell | Yes | Coarsest cell size (m), e.g. 0.2. Rounded DOWN to min_cell x 2^k. | |
| min_cell | Yes | Finest cell size (m), e.g. 0.05. Must be > 0; it is the bottom of the 2^k ladder. |