Meshing
iota.mesh
This method give access to Mesh generation and manipulation methods in Iota.
Classes
Mesh: class containing mesh objectMeshSearch: auxiliar class for spatial searches over a mesh
Methods
Enum
iota.mesh.export_format types of mesh formats for export
Methods
Load a mesh list from file
*Returns a list of meshes
Arguments
filename: (str) file containing the meshes to me readedsplit: (bool) split meshes by connectivities (default: True)
Example
Export a mesh to file
Arguments
mesh: (iota.mesh.Mesh) mesh object to be exportedfilename: (str) file to write the meshformat: (iota.mesh.export_format) mesh format for to written (default: P4S)
Example
Create a linear mesh of edges
Arguments
start: (iota.Vector3d) point representing the origin of the lineend: (iota.Vector3d) point representing the end of the lineelement_size: (float) size of the triangular elementsname: (str) name of the mesh (default: 'line')
Example
Create a circular mesh of triangles
Arguments
centre: (iota.Vector3d) point representing the centre of the circleradius: (float) radius of the circlenormal: (iota.Vector3d) normal vector representing the plane of the circleelement_size: (float) size of the triangular elementsname: (str) name of the mesh (default: 'circle')
Example
Create a rectangular mesh of triangles
Arguments
origin: (iota.Vector3d) point representing the origin of the rectanglenormal: (iota.Vector3d) normal vector representing the plane of the rectanglelength: (float) length of the rectanglewidth: (float) width of the rectangleelement_size: (float) size of the triangular elementsname: (str) name of the mesh (default: 'rectangle')
Example
Create a cuboid mesh of tetrahedra
Arguments
origin: (iota.Vector3d) point representing the origin of the cuboidup: (iota.Vector3d) vector representing the up direction of the cuboidlength: (float) length of the cuboidwidth: (float) width of the cuboidheight: (float) height of the cuboidelement_size: (float) size of the elementsname: (str) name of the mesh (default: 'cuboid')skin: (bool) generate the surface instead of volume (default: False)
Example
Create a cylinder mesh of tetrahedra
Arguments
origin: (iota.Vector3d) point representing the origin of the cylinderup: (iota.Vector3d) vector representing the up direction of the cylinderradius: (float) radius of the cylinderheight: (float) height of the cylinderelement_size: (float) size of the elementsname: (str) name of the mesh (default: 'cylinder')skin: (bool) generate the surface instead of volume (default: False)
Example
Last updated
Was this helpful?