------------------------------------------------------------ revno: 3757 committer: Klaus Thoeni <[email protected]> timestamp: Fri 2015-12-11 16:43:09 +1100 message: update doc modified: py/gridpfacet.py
-- lp:yade https://code.launchpad.net/~yade-pkg/yade/git-trunk Your team Yade developers is subscribed to branch lp:yade. To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'py/gridpfacet.py' --- py/gridpfacet.py 2015-12-10 12:18:07 +0000 +++ py/gridpfacet.py 2015-12-11 05:43:09 +0000 @@ -34,6 +34,8 @@ In order to build a correct chain, last point of element of rank N must correspond to first point of element of rank N+1 in the same chain (with some tolerance, since bounding boxes will be used to create connections. :return: Body object with the :yref:`ChainedCylinder` :yref:`shape<Body.shape>`. + + .. note:: :yref:`ChainedCylinder` is deprecated and might be removed in the future, use :yref:`GridConnection` instead. """ segment=end-begin b=Body() @@ -61,13 +63,13 @@ """ b=Body() b.shape=GridNode(radius=radius,color=color if color else utils.randomColor(),wire=wire,highlight=highlight) - #V=(4./3)*math.pi*radius**3 # will be overriden by the connection + #V=(4./3)*math.pi*radius**3 # will be overwritten by the connection V=0. - geomInert=(2./5.)*V*radius**2 # will be overriden by the connection + geomInert=(2./5.)*V*radius**2 # will be overwritten by the connection utils._commonBodySetup(b,V,Vector3(geomInert,geomInert,geomInert),material,pos=center,dynamic=dynamic,fixed=fixed) b.aspherical=False b.bounded=False - b.mask=0 #avoid contact detection with the nodes. Manual interaction will be set for them in "gridConnection" below. + b.mask=0 # avoid contact detection with the nodes. Manual interaction will be set for them in "gridConnection" below. return b @@ -75,17 +77,15 @@ """ Create a :yref:`GridConnection` by connecting two :yref:`GridNodes<GridNode>`. - :param id1,id2: already with :yref:`GridConnections<GridConnection>` connected :yref:`GridNodes<GridNode>` - :param bool wire: if ``True``, top and bottom facet are shown as skeleton; otherwise facets are filled. - :param Vector3-or-None color: color of the PFacet; random color will be assigned if ``None``. + :param id1,id2: the two :yref:`GridNodes<GridNode>` forming the cylinder. + :param float radius: radius of the cylinder. Note that the radius needs to be the same as the one for the :yref:`GridNodes<GridNode>`. :param Vector3 cellDist: for periodic boundary conditions, see :yref:`Interaction.cellDist`. Note: periodic boundary conditions are not yet implemented! See documentation of :yref:`yade.utils.sphere` for meaning of other parameters. - :return: Body object with the :yref:`PFacet<PFacet>` :yref:`shape<Body.shape>`. - - .. note:: :yref:`GridNodes<GridNode>` and :yref:`GridConnections<GridConnection>` need to have the same radius. This is also the radius used to create the :yref:`PFacet<PFacet>` - + :return: Body object with the :yref:`GridConnection` :yref:`shape<Body.shape>`. + + .. note:: The material of the :yref:`GridNodes<GridNode>` will be used to set the constitutive behaviour of the internal connection, i.e., the constitutive behaviour of the cylinder. The material of the :yref:`GridConnection` is used for interactions with other bodies. """ b=Body() b.shape=GridConnection(radius=radius,color=color if color else utils.randomColor(),wire=wire,highlight=highlight)
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

