Beginners Problem: patch is not divisible by the number of cells
Hello,
I've been playing around with openfoam for some time (actually freefoam which is based on openfoam 1.5) and after having worked through the tutorials I want to start my own little pet case. So far I've successfully created the geometry. It is 2D, with an inlet on side and an outlet on the other. There is a rectangle (balken) in the middle, all other boundaries are empty (frontAndBack). This is my blockMeshDict file. Code:
FoamFile Code:
This mesh contains patches of type empty but is not 1D or 2D Thanks for any hints, Florian |
You did not define the empty patch correctly. This is meant for 2-D or 1-D, for the front and back plane: it means that the number of faces in the empty patch (for 2-D) should be twice the number of cells.
The code says this is not the case for you. Have a look at the mesh in paraview, switch on patch names and it should be obvious. Enjoy, Hrv |
Hello,
for me the mesh looks fine in Paraview. frontAndBack is a mesh that covers the two sides and "ceiling" and "floor", forming a kind of rectangular tunnel. How do I define the number faces? The file boundary which contains the nFaces entry is created from the blockMesh utility, so there is no use to edit something there. Sorry, I still don't see what is the problem here. Could you be a bit more detailed? Thanks, Florian |
Florian,
run it through checkMesh for more information. |
Ok, the complete checkMesh output is:
Code:
Create time I guess: Code:
*Number of regions: 2 But so far I'm still helpless... Thanks your help, Florian |
Dare to bump it up. Anybody any hint for me?
|
Maybe a bit late, but if you look at your empty frontAndBack, there might be a problem with the part of "balken" there. A small portion of your front and back sides are formed by global AND balken. Maybe you should merge the balken patches of this side as slaves to global as master:
Code:
mergePatchPairs or without the <> or with the vertices in places of the name. I don't really know, but I think it's something like this |
My freeFoam (which is based on openFoam 1.5) says:
mergePatchPairs not currently supported. Currently I'm running it on a Mac but since I'm about to migrate to Linux I'll try it again there with 1.6 in a couple of days. Thanks, Florian |
Hallo
Maybe somebody can help. I've got the same Problem. I have created (in ICEM)a 2D geometrie and Mesh for airfoil in canal. in Parawien the mesh ist 2D (no split in z direction) but wenn i run the case (rhoSimpleFoam) i've got the following error : This mesh contains patches of type empty but is not 1D or 2D by virtue of the fact that the number of faces of this empty patch is not divisible by the number of cells. From function emptyFvPatchField<Type>::updateCoeffs() in file /Users/florian/freeFoam/build/include/finiteVolume/../../../freefoam-0.1.0rc4/src/finiteVolume/fields/fvPatchFields/constraint/empty/emptyFvPatchField.C at line 148 please tell me what kann i do? |
IS the amount of cells in z-direction equal to 1?
|
For my part: Yes (see my first posting). I have now upgraded from 1.5 to 1.6 on Linux but I get still the same error as Pat.
When I chang my blockMeshDict file to: Code:
mergePatchPairs Code:
lorian@horus:~/OpenFOAM/run/canal> blockMesh Florian |
Thank you RBJ for your reply. i ve found my error now my mesh work fine.
I haved make mistake ICEM. I ve not correctly select the mesh for frontAndback someone was merged with internalMesh. |
All times are GMT -4. The time now is 07:40. |