yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #23481
Re: [Question #691702]: About periodic simple shear example in the yade documentation
Question #691702 on Yade changed:
https://answers.launchpad.net/yade/+question/691702
Status: Answered => Open
Lei Hang is still having a problem:
Thank you for your quick answers!
Some questions still confuse me. The script of periodic simple shear is as following:
https://gitlab.com/yade-dev/trunk/blob/master/doc/sphinx/tutorial/04-periodic-simple-shear.py
1. Why it add"!" behind the "stress[2,2]"? (If it means factorial, non-
negative factorial is greater than or equal to one)
2.In my opinion, the script in line 116
(b.shape.color=scalarOnColorScale(b.state.rot().norm(),0,pi/2.)) means
the color of the variable will change according to the value of the
variable compared to 0 and pi/2. But I can't relate it to the
specification(yade._utils.scalarOnColorScale((float)x[, (float)xmin=0[,
(float)xmax=1]]) → Vector3)[1]. What's the meaning of "((float)x[,
(float)xmin=0[, (float)xmax=1]]) "
Many thanks!!!
[1]https://yade-
dem.org/doc/yade.utils.html?highlight=scalaroncolorscale#yade._utils.scalarOnColorScale
--
You received this question notification because your team yade-users is
an answer contact for Yade.