Finally, I use NekMesh to read the .msh file and convert to an .xml format with:
NekMesh -v -m linkcheck wmc.msh wmcMesh.xml
This doesn't return any errors, but it seems that the mesh is not generated properly since the wmcMesh.xml file shows the boundaries as having zero faces:
12 <COMPOSITE>
13 <C ID="1"> F[0] </C>
14 <C ID="2"> F[0] </C>
15 <C ID="3"> F[0] </C>
16 <C ID="4"> F[0] </C>
17 <C ID="5"> F[0] </C>
18 <C ID="6"> F[0] </C>
19 <C ID="7"> F[0] </C>
20 <C ID="8"> H[0-972399] </C>
21 </COMPOSITE>
22 <DOMAIN> C[8] </DOMAIN>
23 </GEOMETRY>
24 <Metadata>
25 <Provenance>
27 <NektarVersion>5.2.0</NektarVersion>
28 <Timestamp>26-May-2022 11:51:40</Timestamp>
29 </Provenance>
30 <NekMeshCommandLine>-v -m linkcheck wmc.msh wmcMesh.xml </NekMeshCommandLine>
31 </Metadata>
32 <EXPANSIONS>
33 <E COMPOSITE="C[8]" NUMMODES="4" TYPE="MODIFIED" FIELDS="u,v,w,p" />
34 </EXPANSIONS>
35 </NEKTAR>
However, the log seems to show Nektar++ does recognize the boundary elements:
[InputGmsh] Reading Gmsh file: 'wmc.msh'
[InputGmsh] Cannot find corresponding element face for 2D element 0
[InputGmsh] This element has 4 vertex
[InputGmsh] This element has 4 edges
[InputGmsh] Finished reading mesh.
[InputGmsh] - Element dimension : 3
[InputGmsh] - Space dimension : 3
[InputGmsh] - No. of nodes : 1014073
[InputGmsh] - No. of 3D elements : 972400
[InputGmsh] - No. of boundary elements : 82536
[InputGmsh] - Elapsed time: 45.646s.
[ProcessLinkCheck] Checking boundary-element links.
[ProcessLinkCheck] Cannot find corresponding element face for 2D element 0
[ProcessLinkCheck] This element has 4 vertex
[ProcessLinkCheck] This element has 4 edges
[ProcessLinkCheck] - Elapsed time: 30.1317s.
[OutputNekpp] Writing Nektar++ file 'wmcMesh.xml'
[OutputNekpp] - Elapsed time: 46.8262s.
Any suggestions on how this can be corrected, or how to import the mesh from OpenFOAM?
Thanks in advance for any help.
Marc Goldbach
PhD Student, Department of Mechanical Engineering
University of North Carolina at Charlotte