How to fill a container with particles in STL format?
Hi everyone,
I have a single particle (irregular geometry) which is in STL format and I want to use it as a replacement for spheres to fill a container. Similar to the makecloud function.
I am aware that STL format can only be imported as facets.
The input command I used to import the single particle in STL format is as follows:
particle1 = O.bodies.
The script below is a sample for generating spheres in a container. Greatly appreciate if anyone could provide some guidance on how to fill the container with the single particle, which is in STL format.
#Particle Generation Script
O=Omega()
# add a material type FrictMat
O.materials.
# Corners of the box
x_min, y_min, z_min = 0.0, 0.0, 0.0
x_max, y_max, z_max = 0.5, 0.2, 0.3
## Generate a container
# top wall
O.bodies.
x_max)/2, (-y_min + y_max)/2, 0], fixed = True, wire=True))
# bottom wall
O.bodies.
x_max)/2, (-y_min + y_max)/2, 0], fixed=True, wire=True))
# left wall
O.bodies.
+ y_max)/2, (-z_min + z_max)/2], fixed=True, wire=True))
# right wall
O.bodies.
+ y_max)/2, (-z_min + z_max)/2], fixed=True, wire=True))
# front wall
O.bodies.
x_max)/2, 0, (-z_min + z_max)/2], fixed=True, wire=True))
# behind wall
O.bodies.
x_max)/2, 0, (-z_min + z_max)/2], fixed=True, wire=True))
# Generate a cloud of spheres
sp=yade.
sp.makeCloud(
O.bodies.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Irfaan Peerun
- Solved:
- Last query:
- Last reply: