pyxfem.core.gmsh_mesh_model_interface module

Created on Tue Feb 20 10:14:29 2024 @author: nchevaug This module is an interface to gmsh. gmsh must be initialized for the function to work.

pyxfem.core.gmsh_mesh_model_interface.get_group_name2dim_phys_tag(*args, **kwargs)[source]
pyxfem.core.gmsh_mesh_model_interface.get_toplevel_elements_on_phys_tag(*args, **kwargs)[source]
pyxfem.core.gmsh_mesh_model_interface.get_toplevel_elements_vertices_on_phys_tag(*args, **kwargs)[source]
pyxfem.core.gmsh_mesh_model_interface.get_triangles(*args, **kwargs)[source]
pyxfem.core.gmsh_mesh_model_interface.get_vertices_coord(*args, **kwargs)[source]
pyxfem.core.gmsh_mesh_model_interface.get_vertices_on_phys_tag(*args, **kwargs)[source]
pyxfem.core.gmsh_mesh_model_interface.gmshTypeTag2DimTypeNbv = {1: (1, 'edge', 2), 2: (2, 'tri', 3), 3: (2, 'quad', 4), 4: (3, 'tet', 4), 15: (0, 'point', 1)}

a dictionnary to translate gmsh element type tag to a triplet (dim, elementtypename, nbvertex) othergmsh elem type can be or in gmsh documentation or there : https://docs.juliahub.com/GmshTools/9rYp5/0.4.2/element_types/

pyxfem.core.gmsh_mesh_model_interface.nb_triangles(*args, **kwargs)[source]
pyxfem.core.gmsh_mesh_model_interface.nb_vertices(*args, **kwargs)[source]
pyxfem.core.gmsh_mesh_model_interface.renumber(*args, **kwargs)[source]
pyxfem.core.gmsh_mesh_model_interface.set_model(func)[source]

a decorator for function (func) that query gmsh

the first argument of these func is supposed to be the modelName the warper set gmsh current model to modelName, then call func then reset the model name to the previous one.