I want to distribute axons (more than 100) in my geometry (a cylinder) to investigate the interaction between my electric fields and axons and determine the activated axons in my model. How can I do that automatically?
Thanks a lot.
you can use Python scripts to do that quickly and precisely. The first thing to do is to write a script that sample N=100 (x,y) coordinates within the radius of the cylinder according to a distribution that you want (random, uniform, etc.). Then you can create trajectories as polylines for each sampled point. Something like that:
import s4l_v1 as s4l
import numpy as np
from s4l_v1 import Vec3
R=10 # Radius (mm)
Z=100 # length of the cylinder (mm)
N=100 # N axons
## Creates a folder in the Model Panel
# Creates Randomly Distributed Points