yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #16721
Re: [Question #664138]: Change interaction during two spheres during the simulation process
Question #664138 on Yade changed:
https://answers.launchpad.net/yade/+question/664138
Sophie posted a new comment:
If I change my interaction depending on K1:
#Function Change Position
def ChangePosition():
pairs = [(i.id1,i.id2) for i in O.interactions]
for i in range(0,2,1):
k1n = O.bodies[i].material.k1 * 0.9
O.bodies[i].mat = LudingMat(frictionAngle=fr, density=rho, k1=k1, kp=kp, ks=ks, kc=kc, PhiF=PhiF1, G0 = 0.0)
if k1n <= 800:
checker.dead = True
O.interactions.clear()
for id1,id2 in pairs: utils.createInteraction(id1,id2)
then I get the following error:
O.interactions.clear()
^
IndentationError: unindent does not match any outer indentation level
I appreciate you help, guys!!
--
You received this question notification because your team yade-users is
an answer contact for Yade.