Mordicus.Modules.sorbonne.IO.GmshMeshReader module

Mordicus.Modules.sorbonne.IO.GmshMeshReader.CheckAndConvertMeshFFtoGMSH(meshFileName, meshFileNameGMSH, dimension)[source]

Functional API

Convert the mesh from FreeFem++ to Gmsh mesh format “meshFileName” (.msh)

Parameters

meshFileName (str) – Gmsh or FF++ mesh file

Returns

mesh of the HF computation

Return type

GMSH mesh

Mordicus.Modules.sorbonne.IO.GmshMeshReader.ConvertFFtoGMSH(meshFileName, meshFileNameGMSH, dimension)[source]
class Mordicus.Modules.sorbonne.IO.GmshMeshReader.GmshMeshReader(meshFileName)[source]

Bases: MeshReaderBase

Class containing a reader for Z-set mesh file

meshFileName

name of the GMSH mesh file (.msh)

Type

str

ReadGmshBase()[source]
ReadMesh()[source]

Read the HF GMSH mesh

Returns

mesh of the HF computation

Return type

BasicToolsUnstructuredMesh

Mordicus.Modules.sorbonne.IO.GmshMeshReader.ReadGMSHBase(meshFileName)[source]

Functional API

Reads the file “meshFileName” VTK (.vtu)

Parameters

meshFileName (str) – VTK mesh and fields file

Returns

mesh and fields of the HF computation

Return type

VTK data structure (UnstructuredMesh)

Mordicus.Modules.sorbonne.IO.GmshMeshReader.ReadMesh(meshFileName)[source]

Functional API

Reads the mesh defined the Gmsh mesh file “meshFileName” (.msh)

Parameters

meshFileName (str) – Gmsh mesh file

Returns

mesh of the HF computation

Return type

BasicToolsUnstructuredMesh