Add microfluidic device and biology tutorials - #6
Open
marpaia wants to merge 2 commits into
Open
Conversation
marpaia
force-pushed
the
marpaia/microfluidics-tutorials
branch
from
August 20, 2026 17:08
18ec62b to
8d78d1f
Compare
marpaia
force-pushed
the
marpaia/microfluidics-tutorials
branch
from
August 20, 2026 17:10
8d78d1f to
27a3c97
Compare
marpaia
force-pushed
the
marpaia/microfluidics-tutorials
branch
2 times, most recently
from
August 20, 2026 21:14
11fd9a5 to
8a21217
Compare
marpaia
force-pushed
the
marpaia/microfluidics-tutorials
branch
from
August 20, 2026 21:38
8a21217 to
d130f70
Compare
marpaia
force-pushed
the
marpaia/microfluidics-tutorials
branch
from
August 20, 2026 22:05
d130f70 to
84c95bb
Compare
marpaia
marked this pull request as ready for review
August 20, 2026 23:48
marpaia
force-pushed
the
marpaia/microfluidics-tutorials
branch
from
August 29, 2026 15:34
84c95bb to
1ffe2d3
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 final stack layer provides runnable reference models that compose the earlier contributions: #2 supplies wall and transport geometry, #3 supplies native CPU, Metal, and CUDA flow solvers, #4 supplies kinematic cell drift and runtime feedback, and #5 supplies the Prindle source drawings. This PR adds the compositions and their documentation; it introduces no new flow discretization.
Reference models
microfluidic_trap.pycouples nutrient delivery, consumption, growth, flow, colony-dependent resistance, and outlet washout.danino_clock.pyplaces the SimBOL quorum clock and a state-dependent AHL loss field in the trap device.biopixel_trap.pymodels one Prindle trapping region while keeping publication-derived dimensions, CAD-derived layout facts, and numerical model choices distinct.pillar_channel.pycombines cylindrical walls, conservative voxelization, adhered founders, released daughters, colony feedback, and washout.Backend selection
Each model first creates its
Simulationwith the requested backend and then asks the device helper to solve the initial flow field through that same simulation. Feedback updates also pass the active simulation to the flow solver. Initial and repeated solves therefore execute on CPU, Metal, or CUDA consistently with the rest of the model; importing a tutorial module does not perform an implicit CPU solve.Model construction
Simulation.set_velocity_fieldreplaces the live field. The field then transports signals and kinematically moves released cells.Scientific scope
Stack
PR 5 of 5.
Base: #5 (
marpaia/microfluidics-device-assets).This is the top of the five-PR stack.
Validation at
1ffe2d3