MshReader
What is MshReader?
MshReader is a minimal package for reading GMSH mesh files. The input files are assumed to be given by the msh version 4.1 format, explained in this web.
The goal of this package is to obtain nodal coordinates and element connectivities, as well as physical properties assigned to each element.
Who is writing MshReader?
By the moment, only Jorge Pérez Zerpa. Any contribution is welcome.
Functions list
MshReader.MshFileReader
— MethodFunction for reading gmsh's mesh format files http://gmsh.info/doc/texinfo/gmsh.html#MSH-file-format
Input:
- mshFilename: the name of the .msh file to be read
Output:
- nodesMat: matrix with 3 columns: [x y z]
- conecMat: vector with the connectivity of the elements: [ [n1 n2 n3], [n1 n2 n3 n4] ... ]
- physicalNames: vector with strings of physical names.
- elemPhysNums: vector with indexes
Assumptions:
- physical names are saved as strings
- maximum of one physical tag per entity
- maximum number of nodes per element: 4 (linear tetrahedron)