read_gmsh
- nrv.fmod.FEM.fenics_utils.read_gmsh(mesh, comm=<MagicMock name='mock.MPI.COMM_WORLD' id='139958333671376'>, rank=0, gdim=3)[source]
Given a mesh_file or a MeshCreator returns mesh cell_tags and facet_tags (see dolfinx.io.gmshio.model_to_mesh for more details) NB: copy of dolfinx.io.gmshio.read_from_msh verbose from gmsh
- Parameters:
mesh_file (str,) – Path and name of mesh file NB: extention is not required but must be a .msh file
comm (tupple (str, int)) – The MPI communicator to use for mesh creation
rank (tupple (str, int)) – The rank the Gmsh model is initialized on
gdim (int) – dimension of the mesh, by default 3
- Returns:
output – (domain, cell_tag, facet_tag)
- Return type:
tuple(3)