gmshToFoam unhandled element
Hello,
1. I am trying to convert a gmsh using gmshtoFoam. The .msh-file I use is good, because I see a nice mesh in the gmsh GUI. When I type gmshToFoam blok01.msh the console answers (only the lower lines) Code:
... My blok.msh file is attached. 2. How do I define the patches? I assume I have to make physical surfaces in the .geo file, but this has not been succesfull so far. |
Quote:
how did you solve this problem? Best regards, Kate |
I fell upon this thread when looking up the error.
I got the same error because I had forgotten to define physical surfaces in the .geo file. I did not look at your .geo file (can't find it/not attached anymore, new guy on the forum here), but I assume that all surfaces must have a physical name. This is for someone in the future like me who might get the same error. |
It's not mandatory to assign a physical surface to each geometrical surface. Non assigned surfaces are converted into "defaultFaces" patch in OpenFoam.
Whereas, you should always take care of creating a physical volume. Also, surfaces that belong to more than one physical surface ususally generate errors. |
The error about unhandled elements : 'Unhandled element 1 at line 430 ... ' comes out because gmshToFoam does not support geometrical entities (geometrical points, lines, surfaces, ...). So the error has nothing to do with the quality of the mesh that you see in the GUI, but with how you write the mesh in the .msh-file.
When writing your msh, do not just 'Save Mesh'. Instead, go to Export and pick .msh file format. Then in 'MSH Option' uncheck 'Save all Elements'. And finally Save the mesh. Preferably, also select the 'Version 2 ASCII' file format. |
All times are GMT -4. The time now is 08:00. |