Skip to content

forest-stl

English | Japanese

« Home · « Laminar flow and analytic verification

Flow around an ARBITRARY STL body on the FOREST (block-AMR) solver -- the auto-voxelization driver (docs/design/stl-voxelization-design.md §5.2). Cloned from benchmarks/forest_sphere.cpp with exactly one thing swapped: the analytic SphereGeom predicate is replaced by StlGeom (BVH + angle-weighted pseudonormal signed distance over a user STL). Because StlGeom exposes the SAME implicit interface, EVERYTHING downstream -- forest_build_wall_data (solid mask + Bouzidi qlink bisection), the surface-band sensor, MRT/RR/HRR collide, the momentum-exchange force, the y=0 slice dump, time-averaging and the mass-drift monitor -- is IDENTICAL to the sphere driver (the design's whole point: the STL path exercises byte-identical, already-validated code).

Build & run

cmake -S native -B native/build && cmake --build native/build -j
./native/build/orheo-forest-stl

Validation

Tier T3 — demo (no quantitative gate)
QoI Cd (identity of the STL path)
Reference Judged by byte-identity with forest_sphere
Gate — no gate

Source & run details

View source

Item Value
Target orheo-forest-stl
Source native/benchmarks/forest_stl.cpp
Lattice —
GPU twin yes (orheo-forest-stl-gpu)
Modules ahmed_solver.hpp, forest_mesh_spec.hpp, forest_regrid.hpp, forest_step.hpp, stl_geom.hpp
Gallery run not run yet (no figures or log)