Add experimental kinematic flow coupling - #4
Open
marpaia wants to merge 2 commits into
Open
Conversation
marpaia
force-pushed
the
marpaia/microfluidics-experimental-coupling
branch
from
August 20, 2026 17:08
7d9191a to
b3610b8
Compare
marpaia
force-pushed
the
marpaia/microfluidics-experimental-coupling
branch
from
August 20, 2026 17:10
b3610b8 to
885bd38
Compare
This was referenced Aug 20, 2026
marpaia
force-pushed
the
marpaia/microfluidics-experimental-coupling
branch
from
August 20, 2026 20:52
885bd38 to
668b93a
Compare
marpaia
force-pushed
the
marpaia/microfluidics-experimental-coupling
branch
from
August 20, 2026 22:05
934a484 to
7dc6c0d
Compare
marpaia
marked this pull request as ready for review
August 20, 2026 23:48
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 experimental layer defines how a solved fluid velocity moves rod-shaped cells and how a model updates spatial reaction fields during a run. It is the first stack layer that couples flow to cell geometry.
Key methodological contributions
dt; rotation isdt * (axis cross (v2 - v1)) / length, capped by the mechanics rotation limit. Degenerate rods do not rotate.flow_driftis validated and restored with the closed mechanics configuration. A regression test compares uninterrupted uniform-flow motion with save/load/resume and requires identical simulation and controller state.Simulation.set_signal_reactionvalidates and atomically replaces affine grid source and loss fields, enabling models to refresh spatial sinks such as colony-dependent degradation.Scientific scope
max_speed * dtmust remain small relative to a cell radius, and timestep sensitivity is required for quantitative use.Stack
PR 3 of 5.
Base: #3 (
marpaia/microfluidics-flow-solvers)Next: #5 (
marpaia/microfluidics-device-assets)Validation