gts import and predicates
https:/
Hi guys,
I'm importing a gts surface created by Abaqus to YADE. Loading the file and filling it like the example given in dicumentation works well, as expected.
I also define all the imported facets as one single clump, which this one also works with no peoblem.
However, I'd like to fill a cubic space (preferably by makecloud). The cube includes the imported gts surface. Generated spheres are supposed to be outside the gts surface (in contrary to the given example). This thing, seems to be problematic!
I'm using the following script. You can also access the gts file here:
https:/
There're two problems:
1- There're still many spheres inside the gts surface.
2- Is there any way to to this with random packing?
Thanks for sharing ideas and experience.
cheers,
Behzad
O.reset()
from yade import utils, plot
from yade import pack, qt
O.engines=[
ForceResetter(),
InsertionSortCo
InteractionLoop(
[Ig2_Sphere_
[Ip2_FrictMat_
[Law2_ScGeom_
),
NewtonIntegrato
]
O.dt=1e-7
#======
O.materials.
#======
walls=aabbWalls
wallIds=
bed=gts.
O.bodies.
for x in range(len(
if (O.bodies[x]):
if isinstance(
O.bodies[
O.bodies[
myList1=[]
for x in range(len(
if (O.bodies[x]):
if isinstance(
myList1.
for x in myList1:
O.bodies[
idClump1=
for x in range(len(
if (O.bodies[x]):
if O.bodies[
clId=x
O.bodies[
#========Generating the binder=========
bedPred1=
mainPred=
pred=mainPred-
O.bodies.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask behzad for more information if necessary.