Meshing

iota.mesh

This method give access to Mesh generation and manipulation methods in Iota.

Classes

  • Mesh : class containing mesh object

  • MeshSearch : 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 readed

  • split: (bool) split meshes by connectivities (default: True)

Example

Export a mesh to file

Arguments

  • mesh: (iota.mesh.Mesh) mesh object to be exported

  • filename: (str) file to write the mesh

  • format: (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 line

  • end: (iota.Vector3d) point representing the end of the line

  • element_size: (float) size of the triangular elements

  • name: (str) name of the mesh (default: 'line')

Example

Create a circular mesh of triangles

Arguments

  • centre: (iota.Vector3d) point representing the centre of the circle

  • radius: (float) radius of the circle

  • normal: (iota.Vector3d) normal vector representing the plane of the circle

  • element_size: (float) size of the triangular elements

  • name: (str) name of the mesh (default: 'circle')

Example

Create a rectangular mesh of triangles

Arguments

  • origin: (iota.Vector3d) point representing the origin of the rectangle

  • normal: (iota.Vector3d) normal vector representing the plane of the rectangle

  • length: (float) length of the rectangle

  • width: (float) width of the rectangle

  • element_size: (float) size of the triangular elements

  • name: (str) name of the mesh (default: 'rectangle')

Example

Create a cuboid mesh of tetrahedra

Arguments

  • origin: (iota.Vector3d) point representing the origin of the cuboid

  • up: (iota.Vector3d) vector representing the up direction of the cuboid

  • length: (float) length of the cuboid

  • width: (float) width of the cuboid

  • height: (float) height of the cuboid

  • element_size: (float) size of the elements

  • name: (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 cylinder

  • up: (iota.Vector3d) vector representing the up direction of the cylinder

  • radius: (float) radius of the cylinder

  • height: (float) height of the cylinder

  • element_size: (float) size of the elements

  • name: (str) name of the mesh (default: 'cylinder')

  • skin: (bool) generate the surface instead of volume (default: False)

Example

Last updated

Was this helpful?