> On 19 Mar 2020, at 12:56, Jeremy Theler <jer...@seamplex.com> wrote: > > Yes, but the difficult part here is to know if a new node needs to be added > or another element already added it, and in such case what is the > already-added node id. > > Maybe Gmsh already has this somewhere near the "refine by splitting" tool. >
In a .geo file: Merge "file.msh"; SetOrder 2; Save "file2.msh"; Similar in the API, with the gmsh/model/mesh/setOrder function. Christophe > -- > jeremy theler > www.seamplex.com > > On Thu, Mar 19, 2020, 08:51 Max Orok <mo...@mevex.com> wrote: > Hi Jeremy, > > Going through the API shouldn't be too bad.. > • going over the triangle elements > • find midpoint nodes > • either use addElements or find the element format and make them on > the fly > Could you maybe send a small piece of the mesh file to try out? > > Max > > On Thu, Mar 19, 2020 at 7:10 AM Jeremy Theler <jer...@seamplex.com> wrote: > Hi All > > Say I have a .msh file with first-order tetrahedra and triangles. How > can I ask Gmsh to convert these tet4 and tria3 to tet10 and tria6 by > adding mid-edge nodes? Something like "refine by splitting" but for p > instead for h. > > I only have the .msh file, not the original geometry. > > Any ideas? > > Regards > -- > jeremy theler > www.seamplex.com > > > > > _______________________________________________ > gmsh mailing list > gmsh@onelab.info > http://onelab.info/mailman/listinfo/gmsh > > > -- > Max Orok > Contractor > www.mevex.com > > > _______________________________________________ > gmsh mailing list > gmsh@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 _______________________________________________ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh