Navigation

Operators and Keywords

Function List:

C++ API

msh

Create and manage triangular and tetrahedral meshes for Finite Element or Finite Volume PDE solvers. Use a mesh data structure compatible with PDEtool. Rely on gmsh for unstructured mesh generation.

Select category:

Structured mesh creation

msh2m_structured_mesh
Construct a structured triangular 2D mesh on a rectangular domain.
msh3m_structured_mesh
Construct a structured tetrahedral 3D mesh on a parallelepipedal domain.
msh2m_mesh_along_spline
Generate a structured mesh in a thin layer of size SIGMA sitting on a natural Catmull-Rom type cubic spline with control points XC, YC.

Unstructured mesh creation

msh2m_gmsh
Construct an unstructured triangular 2D mesh making use of the free software gmsh.
msh3m_gmsh
Construct an unstructured tetrahedral 3D mesh making use of the free software gmsh.

Mesh manipulation

msh2m_join_structured_mesh
Join the two structured meshes MESH1 and MESH2 into one single mesh.
msh3m_join_structured_mesh
Join the two structured meshes MESH1 and MESH2 into one single mesh.

Mesh properties

msh2m_geometrical_properties
Compute MESH geometrical properties identified by input strings.
msh3m_geometrical_properties
Compute MESH geometrical properties identified by input strings.
msh2m_topological_properties
Compute MESH topological properties identified by input strings.
msh2m_nodes_on_sides
Return a list of MESH nodes lying on the sides specified in SIDELIST.
msh3m_nodes_on_faces
Return a list of MESH nodes lying on the faces specified in FACELIST.

Mesh adaptation

msh2m_equalize_mesh
Apply a baricentric regularization to equalize the size of triangle edges, i.e.
msh2m_displacement_smoothing
Displace the boundary of a 2D mesh setting a spring with force/length constant K along each edge and enforcing equilibrium.
msh2m_jiggle_mesh
Equalize the size of triangle edges setting a spring of rest length FACTOR*AREA along each edge of the mesh and solving for static equilibrium.
mshm_refine
Refine a mesh * The MESH is a PDE-tool like structures with matrix field (p,e,t).

Mesh extraction

msh3e_surface_mesh
Extract the plane surface NSRF delimited by NSIDES from MESH.
msh2m_submesh
Extract the subdomain(s) in SDL from IMESH.
msh3m_submesh
Extract the subdomain(s) in SDL from IMESH.

Mesh plotting

msh2p_mesh
Plot MESH with the line specification in LINESPEC using `triplot'.

Mesh conversion from DOLFIN

mshm_dolfin_read
Read a mesh from a dolfin .xml.gz file.
mshm_dolfin_write
Write a mesh to a dolfin .xml file.

Mesh export to gmsh

msh2m_gmsh_write
See also: msh3m_gmsh_write.
msh3m_gmsh_write
See also: msh2m_gmsh_write.

Package: msh