Add microfluidic geometry and transport primitives - #2
Open
marpaia wants to merge 17 commits into
Open
Conversation
The coupled step's obstacle and velocity-field buffers size themselves from the grid specification, which was declared below them, so no CUDA build of this branch compiled. The declaration moves above its first use. `scripts/run_cuda_compile_check.sh` now passes and registers all 21 tests. Hardware conformance still needs an NVIDIA host.
marpaia
marked this pull request as ready for review
August 20, 2026 23:47
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.
Purpose
This first stack layer defines the CellModeller2 contracts needed to represent device walls, spatial flow, and washout. These are new modeling primitives beyond the legacy CellModeller mechanics and signal logic.
Key methodological contributions
INSIDEandOUTSIDEadmissible regions. Outside-sphere contact projects the obstacle center onto the complete rod centerline; finite boxes and cylinders minimize their analytic signed-distance functions along the complete centerline after an expanded-bounds rejection test. Contacts carry the minimizing centerline location into the existing one-sided seven-degree-of-freedom mechanics operator, so a rod crossing a wall at mid-span produces the correct translational and rotational constraint. CPU, Metal, and CUDA implement the same geometry; checkpoints, scenes, and the viewer preserve it.Scientific scope and merge boundary
Stack
PR 1 of 5, based directly on
master.Next: #3 (
marpaia/microfluidics-flow-solvers).Validation