myogen.simulator.Muscle.generate_muscle_fiber_centers#
- Muscle.generate_muscle_fiber_centers()[source]#
Generate muscle fiber center positions using a pre-computed Voronoi distribution.
This method creates the spatial distribution of muscle fiber centers within the circular muscle cross-section. The distribution is based on a Voronoi tessellation pattern that mimics the natural packing of muscle fibers observed in histological studies.
- Results are stored in the following properties after execution:
mf_centers: Array of shape (n_fibers, 2) with fiber positions [x, y] in mm
number_of_muscle_fibers: Total number of muscle fibers
muscle_border: Array of border points for visualization
Notes
This method should be called after distribute_innervation_centers() and before assign_mfs2mns(). The Voronoi-based distribution provides more realistic fiber spacing compared to regular grids or purely random distributions.
The reference dataset (‘voronoi_pi1e5.csv’) contains 100,000 pre-computed Voronoi cell centers optimized for circular domains, ensuring efficient and consistent fiber distributions across simulations.
- Return type:
None