<div dir="auto">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.<div dir="auto"><br></div><div dir="auto">Maybe Gmsh already has this somewhere near the "refine by splitting" tool.<br><br><div data-smartmail="gmail_signature" dir="auto">--<br>jeremy theler<br><a href="http://www.seamplex.com">www.seamplex.com</a></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 19, 2020, 08:51 Max Orok <<a href="mailto:morok@mevex.com">morok@mevex.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Jeremy, <br></div><div><br></div><div>Going through the API shouldn't be too bad..</div><div><ul><li>going over the triangle elements</li><li>find midpoint nodes</li><li>either use addElements or find the element format and make them on the fly</li></ul><div>Could you maybe send a small piece of the mesh file to try out? <br></div><div><br></div><div>Max <br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 19, 2020 at 7:10 AM Jeremy Theler <<a href="mailto:jeremy@seamplex.com" target="_blank" rel="noreferrer">jeremy@seamplex.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi All<br>
<br>
Say I have a .msh file with first-order tetrahedra and triangles. How<br>
can I ask Gmsh to convert these tet4 and tria3 to tet10 and tria6 by<br>
adding mid-edge nodes? Something like "refine by splitting" but for p<br>
instead for h.<br>
<br>
I only have the .msh file, not the original geometry.<br>
<br>
Any ideas?<br>
<br>
Regards<br>
--<br>
jeremy theler<br>
<a href="http://www.seamplex.com" rel="noreferrer noreferrer" target="_blank">www.seamplex.com</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank" rel="noreferrer">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Max Orok</div><div>Contractor<br></div></div><div dir="ltr"><a href="http://www.mevex.com" target="_blank" rel="noreferrer">www.mevex.com</a><br><br><img src="https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ" width="164" height="42"><br></div></div></div></div></div></div>
</blockquote></div>