How stokesianpynamics/stokesmfs works
StokesMFS is a Python solver for three-dimensional Stokes flow around discretized particles, using the Method of Fundamental Solutions. The principal workflow supplies boundary nodes and interior sites, builds the linear system and boundary-velocity vector, solves for site forces, then uses the result for force/torque calculations or flow visualization. Examples also demonstrate resistance and conditioning studies and particle motion. The examples excerpt is partial, so links for unsampled example details are limited to capabilities documented in the README.
Main entry points: examples.py Example runner · pythonMFS.py Oseen matrix
Components 16
Particle geometry
- Sphere points
pythonMFS.py - Spheroid points
pythonMFS.py - Interior sites
pythonMFS.py
MFS solver
- Oseen matrix
pythonMFS.py - Boundary velocities
pythonMFS.py - Site forces
pythonMFS.py - Force and torque
pythonMFS.py
Analysis workflows
- Example runner
examples.py - Flow evaluation
examples.py - Flow plots
examples.py - Resistance study
examples.py - Numerics study
examples.py - Particle motion
examples.py
Other components
- Engineer
- NumPy
- Matplotlib
Connections 22
- Engineer → Example runner: runs
- Example runner → Sphere points: requests points
- Example runner → Spheroid points: requests points
- Example runner → Interior sites: finds sites
- Example runner → Oseen matrix: builds system
- Example runner → Boundary velocities: builds conditions
- Example runner → Site forces: solves forces
- Example runner → Force and torque: calculates torque
- Oseen matrix → NumPy: array operations
- Boundary velocities → NumPy: array operations
- Site forces → NumPy: pseudoinverse
- Force and torque → Site forces: uses forces
- Example runner → Flow evaluation: evaluates velocity
- Flow evaluation → Oseen matrix: builds evaluation matrix
- Example runner → Flow plots: plots results
- Flow plots → Matplotlib: renders plots
- Example runner → Resistance study: demonstrates
- Resistance study → Force and torque: uses force results
- Example runner → Numerics study: demonstrates
- Example runner → Particle motion: demonstrates
- Particle motion → Oseen matrix: rebuilds system
- Particle motion → Site forces: solves forces