Skip to content

Add microfluidic geometry and transport primitives - #2

Open
marpaia wants to merge 18 commits into
codex/biomass-accountingfrom
marpaia/microfluidics-primitives
Open

Add microfluidic geometry and transport primitives#2
marpaia wants to merge 18 commits into
codex/biomass-accountingfrom
marpaia/microfluidics-primitives

Conversation

@marpaia

@marpaia marpaia commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Add finite box/cylinder device walls, solid transport masks, face-staggered velocity fields, and cell removal so one device description can constrain cells and route solutes. Sampling and scattering retain only the face-connected fluid component of the strongest interpolation weight, preventing exchange between regions that merely touch at a corner.

The PR is stacked on the conserved-biomass prerequisite. Validation covers obstacle isolation, amount conservation, periodic advection-diffusion refinement, and native CPU/Metal conformance. Focused transport checks passed (43 Python tests; CUDA cases skipped locally). The revised native CUDA sources also compile in CUDA 12.8.1.

@marpaia
marpaia marked this pull request as ready for review August 20, 2026 23:47
@marpaia
marpaia force-pushed the marpaia/microfluidics-primitives branch 2 times, most recently from 12f8201 to 0b5a55f Compare September 10, 2026 08:57
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
marpaia force-pushed the marpaia/microfluidics-primitives branch from 0b5a55f to d13df44 Compare September 10, 2026 10:29
@marpaia
marpaia removed this pull request from stack #7 September 10, 2026 10:33
@marpaia
marpaia changed the base branch from master to codex/biomass-accounting September 10, 2026 10:34
@marpaia
marpaia added this pull request to stack #10 September 10, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant