Repository navigation
Add MRT-3D, porous media, geometry import, wind tunnel, DLPack, and CI - #1
Merged
Merged
Conversation
Delivers the M1 (dynamics), M2 (geometry & I/O), and remaining M4 (multiphysics) milestones as a set of validated, spec-driven capabilities. Dynamics & stencils - D3Q19 MRT collision (MRTdynamics3D / ForcedMRTdynamics3D) with the d'Humieres moment basis; BGK-reduction is bit-exact and the forced variant is validated against a 3D Poiseuille parabola. Physical models - Porous media via partial bounce-back (PorousForcedBGKdynamics): ns=1 is exact node bounce-back, ns=0 is BGK, graded in between. Validated with an analytic Darcy oracle and a self-contained forced-box test. Geometry & I/O - STL/OBJ import + voxelization behind an optional CyberMeshGenerator component (CYBERFLUIDS_GEOMETRY); the core stays dependency-free. Signed-distance grids are re-indexed into the lattice's cell order and drive off-lattice no-slip through the porous operator (voxel_field / cmg_loader). Solvers, bindings & interop - WindTunnel3D: external flow past an imported obstacle (far-field inlet + walls, zero-gradient outlet, voxelized body). Exposed through the C ABI and a Python WindTunnel class; examples/wind_tunnel.py runs a mesh end-to-end, writes VTK for ParaView, and renders side/top slice figures with a live progress readout. - Zero-copy DLPack interop for lattice fields (numpy/torch from_dlpack). Infrastructure - GitHub Actions CI: Linux build + full ctest (with libstdc++ par_unseq linked), a macOS Metal build, and an OpenSpec validation job. Docs & licensing - README showcase of the wind-tunnel result; Feature Status and Backends moved to docs/features.md and docs/backends.md. Project licensed under MIT. All 36 tests pass; every capability was reviewed and archived through OpenSpec.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Delivers the M1 (dynamics), M2 (geometry & I/O), and remaining M4 (multiphysics) milestones
as validated, spec-driven capabilities. All 36 tests pass; each capability was reviewed and
archived through OpenSpec.
What's included
is bit-exact, forced variant validated against the analytic 3D Poiseuille parabola.
PorousForcedBGKdynamics) with an analytic Darcy oracle.CYBERFLUIDS_GEOMETRY),re-indexed onto the lattice and driving off-lattice no-slip through the porous operator. Core
stays dependency-free.
WindTunnelclass;examples/wind_tunnel.pyruns a mesh end-to-end, writes VTK for ParaView,and renders side/top slice figures.
from_dlpack).docs/; project licensed under MIT.Validation
oracle, bindings).
Poiseuille parabola, wind-tunnel wake/stagnation/deflection signatures); Palabos oracle for
the 2D + 3D cavity.