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
marpaia
force-pushed
the
marpaia/microfluidics-experimental-coupling
branch
from
August 29, 2026 15:24
7dc6c0d to
47f4c33
Compare
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 PR depends on the native flow fields introduced by #3 and defines how those fields move rod-shaped cells and how models replace spatial reaction fields during a run. It is the first stack layer that couples solved flow to cell geometry.
Coupling method
dt; rotation isdt * (axis cross (v2 - v1)) / length, capped by the mechanics rotation limit. Degenerate rods do not rotate.Simulation. Drift consumes the committed field through the common simulation contract, so the kinematic rule is identical across backends.flow_driftis validated and restored with the mechanics configuration. A regression test compares uninterrupted motion with save, load, and resume.Simulation.set_signal_reactionvalidates and atomically replaces affine grid source and loss fields, allowing a controller to update colony-dependent sinks during a run.Scientific scope
max_speed * dtsmall relative to a cell radius and report timestep sensitivity.Stack
PR 3 of 5.
Base: #3 (
marpaia/microfluidics-flow-solvers).Next: #5 (
marpaia/microfluidics-device-assets).Validation at
47f4c33