gmshToFOAM: Found undefined faces in mesh
I am having some trouble with gmshToFOAM. So far the OpenFOAM "cavity" tutorial with the blockMesh utility works fine. Now I would like to solve the "cavity" problem using an unstructured mesh created by Gmesh:
Code:
lc = 0.01; Code:
$ gmshToFoam cavity.msh Code:
$ icoFoam |
Hi,
This Code:
--> FOAM Warning : Second error: add left patch description to p file in 0 folder. Here's the names of the patches in the cavity tutorial: Code:
boundaryField |
1 Attachment(s)
Thanks for your quick reply! I made the following changes to the cavity.geo file but icoFOAM still not working :confused:
Code:
Physical Surface("fixedWalls") = {46, 50, 22, 26, 30, 34}; Code:
$ gmshToFoam cavity.msh Code:
Create time |
Hi,
Gmsh doesn't store boundary type information in mesh file, all boundaries has type 'patch' (in OpenFOAM's terminology) after conversion. Cavity tutorial is 2D, frontAndBack boundary should have 'empty' type, fixedWalls and movingWall should have 'wall' type (though for cavity tutorial this is not so important). You should edit constant/polyMesh/boundary file and set correct types. Either by hand, or with changeDictionary utility. |
1 Attachment(s)
I tried to follow your instructions. The attached file is the modified boundary file. I still getting an error message:
Code:
Create time |
Well,
As it said, it expects word (empty), while you've put list there (1(empty)). If you take a look at patchIdentifier.H:122, you'll see that physicalType of the patch is word. I.e. this Code:
frontAndBack Code:
frontAndBack Code:
frontAndBack The same with other patches. |
Sorry! So the boundary file should look like this?
Code:
frontAndBack Code:
Create time |
It's worth reading the error (and trying to understand it) before posting message here. You're trying to run a case in constant/polyMesh folder instead of case folder.
|
Thanks for helping me and being so patient :rolleyes: Works now!
Quote:
|
Hm, that's right, posted a link to a local copy of documentation instead of sourceforge. Fixed.
|
Thank you again for all your assistance! :)
|
Hi Alexey,
I need your help please. I'm doing fsi case about beam in cross flow attached to the square cylinder. I generated mesh using Gmsh. Quote:
Quote:
Quote:
My boundary file is Quote:
Maimouna |
Hi,
You do not have Physical Volume definition in your mesh. For example if you take this simple GEO: Code:
Point(1) = {0, 0, 0}; Code:
$Elements Code:
$Elements |
1 Attachment(s)
Hi Alexey,
I just added the following line for Physical surface to my previous geo file Code:
Physical Volume(200) = {vo1[]}; With lots of thanks. Maimouna |
And why not
Code:
Physical Volume("mesh") = {174}; |
Ok dear. I got
Quote:
|
Well, output depends on Gmsh version, mesh generation settings, and the state of gmshToFoam in foam-extend (last time I dealt with it, I had to implement removal of empty patches after conversion).
With 2.10.0, default mesh generation settings, and gmshToFoam from OpenFOAM 2.4.0 conversion went OK. |
Hi Alexey,
I'm using Gmsh 2.8.3 for foam-extend-3.1. What should do now? What are the next steps? Shall remove defaultFaces from the boundary file? Regards Maimouna |
Dear Maimouna,
Quote:
Code:
Truncating neighbor list at 249487 for backward compatibility |
Hi Alexey,
honestly, I'm not very sure if FSI solver would capable running on tetrahedral meshes, but suppose should be running for all mesh types regarding HTML Code:
https://www.ricam.oeaw.ac.at/files/reports/12/rep12-11.pdf Best regards Maimouna |
All times are GMT -4. The time now is 19:30. |