blockMesh: merging two unmatching faces
2 Attachment(s)
Hi,
I try to mesh the following geometry to understand how "mergePatchPairs" works. Attachment 7863 The mesh looks fine but I strongly doubt that faces are merged properly. Here is the blockMeshDict, Attachment 7864 Moreover, checkMesh doesn't complain and indicates only 1 Region, however icoFoam doesn't run for this mesh and complains as follows . ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++ 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. ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++ I suppose, an experienced eye will catch the mistake(s) immediately... cheers, Evren |
Hi Evren,
you must define the wall patches, afterwards it works fine (tested with simpleFoam): Code:
/*--------------------------------*- C++ -*----------------------------------*\ Martin |
I dont think you have to specify Slave and Mater either, if the two boxes are matching their surfaces try to simple input "mergepatchpairs" and that's it...
BlockMesh needs for all the block surfaces to be defined as a patch. If not, it generates a "defaultFaces" patch set to "empty", that means that there is no solution for the surface, therefore is a 1D or a 2D problem. As your geometry is 3D, the error message is warning you about that issue, and that it will not run. For this simple geometry you can just set it manually in the "boundary" dictionary, and set the defaultPatch type to "wall" Consult the User Guide first Tutorial. LuisBlanes |
As Martin suggests it works with icoFoam, as well. Moreover, Luis has a point if in the boundary file defaultPatch is set to wall, it's not necessary to specify every single cell for walls. That is a trick, I have already used couple of time, even for more complex geometries it works well. Nevertheless, one has to specify which patches to be merged.
@ Luis: Quote:
Thanks, Evren |
I just was stating that:
Page U-138 of the User Guide (...)To connect two blocks with face matching, the two patches that form the connection should simply be ignored from the patches list. blockMesh then identifies that the faces do not form an external boundary and combines each collocated pair into a single internal faces that connects cells from the two blocks (...) yours Luis Blanes |
Ok, that's clear for matching faces, that's no good for unmatching faces... Everything is clear....
by the way thanks ;-) Cheers, Evren |
Hi foamers, I'm trying to use blockMesh and mergePatchPairs and my starting simple case is similar to pbe_cfd's one.
If I'm correct, p and U need a boundary definition only for the big block face and not for the small cube one. It's not clear to me how to apply patch settings to the not-overlapped area, I think that a wall boundary (for the patch and p or U) on the big block face is not compatible with the inlet or outlet flow. I open a thread but I had no reply so far. Thanks for your attention. |
connecting to objects
1 Attachment(s)
hello every one
I am trying to connect a rectangular canal to a cylindrical basin in blockMesh as a signal object, but when i run my blockMesh it become tow independent objects. here is my BlockMesh file how can i connect these? Attachment 73797 thank you for your help suhrab |
All times are GMT -4. The time now is 14:05. |