<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello everyone,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am have been experiencing an odd issue with Gmsh recently. Essentially, in one of my meshes sometimes when I export it as a *.msh file, there is a reference to a 0 node in the $Elements list – there is no 0 node in the $Nodes list and
 this causes gmshToFoam to fail when converting the mesh.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am constrained to using 2.2 mesh format since that’s all that gmshToFoam can handle, as far as I can tell. Here is a snippet from the $Elements list in a mesh file that is indicative of the problem:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-CA"><img width="453" height="114" id="Picture_x0020_1" src="cid:image001.png@01D4D8BF.ABACD1D0"></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So element 925908 is of type 4, is of dimension 2, belongs to physical 601 and elementary 65, and is composed of nodes 0 (!!), 320410, 321806, and 321926. This is not an isolated instance either, there are many such elements in the mesh
 with 0 nodes. I tried google searches to find information but as far as I can tell, no-one has ever experienced this before?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The other bizarre thing is this: to make the mesh construct faster to make debugging easier, I increased the size of my smallest elements to greatly reduce the number of nodes in the mesh, and the problem went away. When the mesh has in
 the range of 10s of millions of cells it occurs, but when I reduce to hundreds of thousands, no references to node 0 in any elements.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can anyone please tell me what the meaning is of a node 0 in an element? Does it simply mean that that element failed to construct, or reflect some kind of quality issue with the mesh? Is it a bug with gmsh?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have attached the geo file that created the situation, unfortunately it is a quite complicated file (probably poorly scripted in terms of performance). It compiles with Gmsh 4.0.1, but when I tried to load the script with the newest version
 of Gmsh it failed, due to what I can only assume were changes to the ordering of elements from either the Boundary or Extrude function breaking my dynamically generated line loops. So the geo file may be of limited investigative value. I also would have created
 a smaller script that reproduces the issue if I could, but I have no idea how to reproduce this issue.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If anyone could give me any advice or insight into this issue I would appreciate it.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="line-height:105%"><span lang="EN-US" style="mso-fareast-language:EN-CA">Nathan Neeteson, M.Sc.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:105%"><span lang="EN-US" style="mso-fareast-language:EN-CA">Flow Control Research Engineer<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:105%"><b><span lang="EN-US" style="mso-fareast-language:EN-CA">RGL Reservoir Management Inc.<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:105%"><span lang="EN-US" style="mso-fareast-language:EN-CA">Corporate Head Office<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:105%"><span lang="EN-US" style="mso-fareast-language:EN-CA">P 780.851.8243 | C 613.929.6283<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:105%"><u><span lang="EN-US" style="color:#0563C1;mso-fareast-language:EN-CA"><a href="mailto:nneeteson@rglinc.com"><span style="color:#0563C1">nneeteson@rglinc.com</span></a></span></u><span lang="EN-US" style="mso-fareast-language:EN-CA">
 | <u><span style="color:#0563C1"><a href="http://rglinc.com/"><span style="color:#0563C1">rglinc.com</span></a></span></u><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:105%"><span lang="EN-US" style="mso-fareast-language:EN-CA">API Q1™ and ISO 9001:2015 certified facilities.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
Email disclaimer located at http://rglinc.com/disclaimer
</body>
</html>