facets erase time
Hello,
following a previous post on how to erase the faces of a cylinder, I managed to do it using the recommended function O.bodies.erase () . This works perfectly without problems, except when I have a lot of particles in the system. In this case, when reaching the imposed condition the system freezes for a while (about 1 hour) and then continues as usual (deleting the cylinder facets). I don't know if this is normal, or I am making a basic error. Maybe there is a way to optimize this easily.
--------------
CODE
--------------
...
cylinderFacetsIds = O.bodies.
sp=pack.
sp.makeCloud(
pred=pack.
sp2 = pack.filterSphe
# add the sphere pack to the simulation
sp2.toSimulatio
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
# handle sphere+sphere and facet+sphere collisions
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
# call the checkUnbalanced function
PyRunner(
]
def checkUnbalanced():
if O.iter==15000:
for f in cylinderFacetsIds:
O.bodies.
-------
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: