Re: [Gmsh] Adding second-order nodes to tet4

2020-03-19 Thread Jeremy Theler
On Thu, 2020-03-19 at 13:02 +0100, Christophe Geuzaine wrote: > In a .geo file: > > Merge "file.msh"; > SetOrder 2; > Save "file2.msh"; Great! I was close, but it is always wise to ask the boss. Thanks. -- jeremy theler www.seamplex.com ___ gmsh

Re: [Gmsh] Adding second-order nodes to tet4

2020-03-19 Thread Christophe Geuzaine
> On 19 Mar 2020, at 12:56, Jeremy Theler 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

Re: [Gmsh] Adding second-order nodes to tet4

2020-03-19 Thread Max Orok
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

Re: [Gmsh] Adding second-order nodes to tet4

2020-03-19 Thread jeremy theler
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. -- jeremy theler www.seamplex.com On Thu, Mar 19, 2020,

[Gmsh] Adding second-order nodes to tet4

2020-03-19 Thread Jeremy Theler
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?