<div dir="ltr"><div>Hi Nick, <br></div><div><br></div><div>gmshToFoam is an OpenFOAM community tool and not supported by the Gmsh team. <br></div><div>That said, have you tried setting <code>Mesh.MshFileVersion=2.2</code> in your geo file? <br></div><div><br></div><div>There was a somewhat recent mesh major version change from 2 to 4, perhaps your mesh is version 4? <br></div><div>There are some old issues that might be helpful: <br></div><div><br></div><div><a href="https://gitlab.onelab.info/gmsh/gmsh/issues/687" target="_blank">https://gitlab.onelab.info/gmsh/gmsh/issues/687</a></div><div><a href="https://gitlab.onelab.info/gmsh/gmsh/issues/672" target="_blank">https://gitlab.onelab.info/gmsh/gmsh/issues/672</a></div><div>  <br></div><div>Sincerely, <br></div><div>Max <br>

</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 13, 2020 at 10:48 AM Nick Barra <<a href="mailto:nb17010@bristol.ac.uk" target="_blank">nb17010@bristol.ac.uk</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">





<div lang="EN-GB">
<div>
<p class="MsoNormal">Hi, <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am trying to model an aerofoil by creating a hybrid mesh in Gmsh and solving it in OpenFoam. When I try to run the ‘gmshToFoam’ converter I get warnings which are then presented as errors when using checkMesh. I have copied the first
 few error lines below:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">FOAM Warning :                                                                                                                                                                                                    
<u></u><u></u></p>
<p class="MsoNormal">From function Foam::polyMesh::polyMesh(const Foam::IOobject&, Foam::pointField&&, const cellShapeList&, const faceListList&, const wordList&, const wordList&, const Foam::word&, const Foam::word&, const wordList&, bool)                                                                                 
                                                                                                                          in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 592                                                                           
                                                                             Found 3653 undefined faces in mesh; adding to default patch.                                                                                                                       
                            Finding faces of patch 0                                                                                                                                                                                          
<u></u><u></u></p>
<p class="MsoNormal">Finding faces of patch 1                                                                                                                                                                                          
<u></u><u></u></p>
<p class="MsoNormal">--> FOAM Warning : Not using gmsh face 4(4 414 446 16) since zero vertex is not on boundary of polyMesh                                                                                                            --> FOAM Warning :                                                                                         
                                                                                                            <u></u><u></u></p>
<p class="MsoNormal">From function int main(int, char**)                                                                                                                                                                                <u></u><u></u></p>
<p class="MsoNormal">in file gmshToFoam.C at line 1549                                                                                                                                                                                  Could not match gmsh face
 4(4 414 446 16) to any of the interior or exterior faces that share the same 0th point                                                                                               --> FOAM Warning : Not using gmsh face 4(414 415 447 446) since zero vertex
 is not on boundary of polyMesh                                                                                                         --> FOAM Warning :                                                                                                                                                                                                     <u></u><u></u></p>
<p class="MsoNormal">From function int main(int, char**)                                                                                                                                                                                <u></u><u></u></p>
<p class="MsoNormal">in file gmshToFoam.C at line 1549                                                                                                                                                                                  Could not match gmsh face
 4(414 415 447 446) to any of the interior or exterior faces that share the same 0th point<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This error then repeats several times, and then it seems to successfully find faces for the rest of the patches.
<u></u><u></u></p>
<p class="MsoNormal">The checkMesh error is ‘Unused points found in the mesh, number unused faces:...’<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My geometry file is attached to this email.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Kind Regards,<u></u><u></u></p>
<p class="MsoNormal">Nick<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="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">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>