randomdensepack exclusion from walls
Good evening,
Previously, i had asked how to create a group of particles and exclude those that are inside the walls.
This was the solution
pred = inGtsSurface(s)
sp=pack.
sp.makeCloud(
# remove spheres completely inside walls
for c,r in sp:
if pred(c,0):
continue
O.
# remove spheres partially inside walls
O.dt = 0
O.step() # interactions are created afterwards
toErase = set()
for i in O.interactions:
b1,b2 = [O.bodies[i] for i in (i.id1,i.id2)]
if any(isinstance(
toErase = [b for b in toErase if isinstance(
for b in toErase: # delete the spheres
O.bodies.
O.engines=[
However, a much denser particle cloud is needed
To that effect i subsituted
sp=pack.
sp.makeCloud(
with
sp=pack.
ln: failed to create symbolic link 'yadeimport.py': File exists
False
True
Found suitable packing in /tmp/triaxPackC
/usr/lib/
warnings.
Killed
Any help is appreciated
Thank you for your time
John
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- JOHN
- Solved:
- Last query:
- Last reply: