yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #28525
Re: [Question #703571]: How to reset the stiffness of the particles at a later stage?
Question #703571 on Yade changed:
https://answers.launchpad.net/yade/+question/703571
孙灿 posted a new comment:
shuzu=[]
circleRadius=2
circleCenter = Vector3(0.05,15,6)
for b in O.bodies:
d = (b.state.pos - circleCenter).norm()
if d < circleRadius:
shuzu.append(b.id)
def printInfo():
print("=============")
print("step",O.iter)
for i,body in enumerate(O.bodies):
print("body",i,"young",body.mat.young)
for i,intr in enumerate(O.interactions):
print("interaction",intr.id1,intr.id2,"kn",intr.phys.kn)
O.step()
printInfo()
def li():
for i in shuzu:
O.bodies[i].mat = Mat2
for intr in body.intrs():
O.interactions.erase(intr.id1,intr.id2)
printInfo()
I have changed the relevant code, but there is still the error 'Omega'
object has no attribute 'bodise'.
--
You received this question notification because your team yade-users is
an answer contact for Yade.