Question #701699 on Yade changed: https://answers.launchpad.net/yade/+question/701699
Status: Open => Answered Jérôme Duriez proposed the following answer: Which shape would you like to describe in the end ? A cylinder or a superellipsoid, or sthg else ? For a cylinder, O.bodies.append(levelSetBody('disk',radius=1)) should do the trick, providing you a disk in (x,y) space (while being obviously z-invariant) For a superllipsoid O.bodies.append(levelSetBody('superellipsoid',extents = (1,2,3),epsilons = (0.5,1.5))) will work. In both cases, you do not need to use phiIniPy (which is to reserve for cases not already handled by the shape attribute of levelSetBody) PS: in the levelSetBody function, spacing and nSurfNodes are very important parameters of LS shape description in YADE and are omitted in the above only for simplicty, assuming default values are fine -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp