Helper functions for creating cylinders, grids and membranes. For more details on this type of elements see [Effeindzourou2016], [Effeindzourou2015a], [Bourrier2013],.
For examples using GridConnections, see
For examples using PFacets, see
Create and connect a chainedCylinder with given parameters. The shape generated by repeted calls of this function is the Minkowski sum of polyline and sphere.
Parameters: |
|
---|
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.
Returns: | Body object with the ChainedCylinder shape. |
---|
Note
ChainedCylinder is deprecated and will be removed in the future, use GridConnection instead. See gridpfacet.cylinder and gridpfacet.cylinderConnection.
Create a cylinder with given parameters. The shape corresponds to the Minkowski sum of line-segment and sphere, hence, the cylinder has rounded vertices. The cylinder (GridConnection) and its corresponding nodes (yref:GridNodes<GridNode>) are automatically added to the simulation. The lists with nodes and cylinder ids will be updated automatically.
Parameters: |
|
---|
See utils.sphere‘s documentation for meaning of other parameters.
Create a chain of cylinders with given parameters. The cylinders (GridConnection) and its corresponding nodes (yref:GridNodes<GridNode>) are automatically added to the simulation. The lists with nodes and cylinder ids will be updated automatically.
Parameters: | vertices ([[Vector3]]) – coordinates of vertices to connect in the global coordinate system. |
---|
See gridpfacet.cylinder documentation for meaning of other parameters.
Imports mesh geometry from .mesh file and automatically creates connected PFacet elements. For an example see examples/pfacet/mesh-pfacet.py.
Parameters: |
|
---|
See documentation of utils.sphere for meaning of other parameters.
Returns: | lists of GridNode ids nodesIds, GridConnection ids cylIds, and PFacet ids pfIds |
---|
mesh files can easily be created with GMSH.
Additional examples of mesh-files can be downloaded from http://www-roc.inria.fr/gamma/download/download.php
Create a GridConnection by connecting two GridNodes.
Parameters: |
|
---|
See documentation of utils.sphere for meaning of other parameters.
Returns: | Body object with the GridConnection shape. |
---|
Note
The material of the GridNodes will be used to set the constitutive behaviour of the internal connection, i.e., the constitutive behaviour of the cylinder. The material of the GridConnection is used for interactions with other (external) bodies.
Create a GridNode which is needed to set up GridConnections.
See documentation of utils.sphere for meaning of parameters.
Returns: | Body object with the gridNode shape. |
---|
Imports mesh geometry from .gts file and automatically creates connected PFacet3 elements. For an example see examples/pfacet/gts-pfacet.py.
Parameters: |
|
---|
See documentation of utils.sphere for meaning of other parameters.
Returns: | lists of GridNode ids nodesIds, GridConnection ids cylIds, and PFacet ids pfIds |
---|
Create a PFacet element from 3 GridNodes which are already connected via 3 GridConnections:
Parameters: |
|
---|
See documentation of utils.sphere for meaning of other parameters.
Returns: | Body object with the PFacet shape. |
---|
Note
GridNodes and GridConnections need to have the same radius. This is also the radius used to create the PFacet
Create a PFacet element from 3 vertices and automatically append to simulation. The function uses the vertices to create GridNodes and automatically checks for existing nodes.
Parameters: |
|
---|
See documentation of utils.sphere for meaning of other parameters.
Create a PFacet element from 2 already existing and connected GridNodes and one vertex. The element is automatically appended to the simulation.
Parameters: |
|
---|
See documentation of gridpfacet.pfacetCreator1 for meaning of other parameters.
Create a PFacet element from 3 already existing GridNodes which are not yet connected. The element is automatically appended to the simulation.
Parameters: | id1,id2,id3 (int) – id of the 3 GridNodes forming the PFacet. |
---|
See documentation of gridpfacet.pfacetCreator1 for meaning of other parameters.
Create a PFacet element from 3 already existing GridConnections. The element is automatically appended to the simulation.
Parameters: | id1,id2,id3 (int) – id of the 3 GridConnections forming the PFacet. |
---|
See documentation of gridpfacet.pfacetCreator1 for meaning of other parameters.