← Back to team overview

yade-users team mailing list archive

Re: Contact forces

 

> /home/nhadda/Documents/YADE/lib/yade-unknown/gui/PythonUI_rc.py in
> <module>()
>      11         if not i.isReal: continue
>      12         norm=i.geom['normal']
> ---> 13         angle=atan(norm[ax2]/norm[ax1])
>      14         force=i.phys['normalForce'].Length()
>      15         angles.append(angle)
Where is this code from? Always attach scripts you run. This is obvious
error in the code; you can replace that line with

	angle=atan(norm[ax2]/norm[ax1]) if norm[ax1]!=0 else pi/2






References