← Back to team overview

yade-users team mailing list archive

Re: [Question #404048]: plot does not work correctly

 

Question #404048 on Yade changed:
https://answers.launchpad.net/yade/+question/404048

xjin posted a new comment:
thanks Jan Stránský ! 
 I rewrite the codes of the polt like this:

def  plotAddData(): 
f1=sum(O.forces.f(b.id)[2] for b in top)
f2=sum(O.forces.f(b.id)[2] for b in bot)
f=.5*(f2-f1)
s= f/(pi*.25*width*width)
e=(top[0].state.displ()[2]-bot[0].state.displ()[2])/(height-rParticle*2*bcCoeff)
plot.addData(
	       i=O.iter,
	       s=s,
	       e=e,
)


###### to use the bodies directly.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.