No 3D-elements found
Hi guys,
I am well aware that there are at least a dozen threads asking the same thing. I am deperately trying to get a valid 3d mesh out of gmsh to use with openfoam. I went through the first 3 pages of google results on this topic but no "solution" that worked for others seem to work for me. Maybe something is wrong with my overall process or I dont know. Ok here is what I'm doing: I use professional CAD software (Solidworks) to create the geometry. This can be quite complex, but for now I used a very simple geometry: a cube with sides 500mm and 3 pipes coming 200mm out of it. Then export this to .stp. Creating the geometry in gmsh is not really an option for me. Anyway, then I go and use Code:
SetFactory("OpenCASCADE"); Code:
Physical Surface("INLET") = {11}; Then I use the GUI to create a 3D mesh (Delauney algorithms, converting to hexas). The mesh is created without any error or warning message. I can see the 3D elements, they are also listed under Tools->Statistics-> 150k Hexahedra. I then go to export the .msh file using the Export with "Mesh - Gmsh MSH (*.msh)" format. In the following dialog I use "Version 2 ASCII" which seems to be the format supported by OpenFOAM. I also check "save all elements". -> .msh file is generated. I put this file in an open foam case and run "gmshToFoam Geometry.msh" which complains about some unhandled elements (error can be ignored from what I found with my research?) and finally tells me that there are not 3D elements. Any idea what could be wrong will be very appreciated. I also tried exporting the mesh in other formats and tried to import to CFX which tells me the same thing: no 3D elements found. So I figured something must be wrong in my gmsh process but I cant figure out what. Thanks in advance! |
I was missing the
Code:
Physical Volume("CUBE") = {1} However it is still unresolved how to get the mesh to OpenFoam. |
All times are GMT -4. The time now is 19:34. |