[Gmsh] how to use splitQuadrangles

Christophe Geuzaine cgeuzaine at uliege.be
Tue Jul 23 20:48:19 CEST 2019



> On 16 Jul 2019, at 15:58, Lei Cao <leicao at unr.edu> wrote:
> 
> Hi all,
> 
> I have an existing .msh file which contains quad4 and tri3 elements in the same physical group. I wonder how can I use splitQuadrangles to split the quad4 elements such that there are only tri3 elements in this physical group.

In Python you would simply do

gmsh.merge("file.msh")
gmsh.model.mesh.splitQuadrangles(1.0)

Christophe


> 
> Thanks in advance!
> 
> Lei
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list