porespy.beta.fibers_2D#
- porespy.beta.fibers_2D(shape, r, n=None, porosity=None)#
Generates randomly located fibers which are randomly oriented in the x-y plane but aligned in the z-plane
- Parameters:
shape (list) – The shape of the image to generate. This must be 3D.
r (int) – The radius of the fibers to generate
porosity (float) – The radius of the fibers
- Returns:
im – An ndarray of the given shape with fibers indicated by False and void by True.
- Return type:
ndarray
Notes
Drawing randomly oriented fibers with a uniform density is a surprizingly tricky task. The problem was recently discussed and a solution proposed by Beckman et al [1].