yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #21382
Re: [Question #685862]: About transverse strain
Question #685862 on Yade changed:
https://answers.launchpad.net/yade/+question/685862
Status: Answered => Open
AnnaMaria is still having a problem:
Hello everyone again:
I have created the hollow cylinder as Jan Stransky suggested, (MWE):
for p in O.bodies:
x=p.state.refPos[0]
z=p.state.refPos[2]
d=sqrt(pow(x,2)+pow(z,2))
if d>r1 and d<r2:
p.shape.color=(1,1,1)
#Mesure state.refPos of the particles, within this domain.
xnew=p.state.refPos[0]
znew=p.state.refPos[2]
dnew=sqrt(pow(xnew,2)+pow(znew,2))
Then I am trying to record the lateral strain:
def recorder():
global d
global dnew
elat=((d)-(dnew))/(d)
but it does not work. I am not getting any values!
I can’t understand what i have been doing wrong all this time.
Could you help me. Thanks in advance.
--
You received this question notification because your team yade-users is
an answer contact for Yade.