yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #20620
Re: [Question #683336]: Yade-OpenFoam-coupling delete the particles outside the fluid cells
Question #683336 on Yade changed:
https://answers.launchpad.net/yade/+question/683336
Anqi H gave more information on the question:
The part of the script where I disabled particle motions is
proppant_assembly = O.bodies.append(ymport.textExt('new_prop.txt','x_y_z_r',shift=Vector3(0,0,0),scale=1,material=proppant,color=(1.00,0.67,0.50)))
print ('length of bodies proppant '+str(len(O.bodies)))
for b in proppant_assembly:
O.bodies[b].groupMask=2
O.bodies[b].dynamic = False
O.bodies[b].state.vel=(0, 0, 0)
if O.bodies[b].state.pos[0] < 0:
print("found it ")
O.bodies.erase(b)
sphereIDs = [b.id for b in O.bodies if (type(b.shape)==Sphere and b.material.label=='proppant')]
--
You received this question notification because your team yade-users is
an answer contact for Yade.