CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Face merging, patch definition, wall function (https://www.cfd-online.com/Forums/openfoam/74090-face-merging-patch-definition-wall-function.html)

Sandu69 March 24, 2010 06:07

Face merging, patch definition, wall function
 
Hello foamers,

I have a problem using blockMesh:

I want to attach a cylinder face to a bigger rectangular block face using the command "mergePatchPairs".
The goal is, that the cylinder face is completely merged to the block face, whereas the remaining block face should become a wall with wall functions applied.

That's my question:

How should I define the patches and boundary conditions?

I already tried it, but it did not work. That's how I defined everything:

File "blockMeshDict":

patches
(
patch cylinderface
(
(1 2 3 4)
)

wall blockface
(
(5 6 7 8)
)
);
mergePatchPairs
(
(cylinderface bottomface)
);

Boundary file 0/epsilon (i.e.):

boundaryField
{
bottomface
{
type epsilonWallFunction;
value uniform 0.000765;
}
}

I got the following error:

"Invalid wall function specification
Patch type for patch bottomface must be wall
Current patch type is patch"

What does it mean? I defined the block face as a wall!

Can anybody help me with this?
Thanks,

Stephan

piprus March 24, 2010 11:17

Quote:

Originally Posted by Sandu69 (Post 251418)
File "blockMeshDict":

patches
(
patch cylinderface
(
(1 2 3 4)
)

wall blockface
(
(5 6 7 8)
)
);
mergePatchPairs
(
(cylinderface bottomface)
);

The only one thing I can't understand here is how could you merge the bottomface to anything, without specifing it in a patch list?

Sandu69 March 24, 2010 11:48

The patches are defined in the blockMeshDict file.
I solved the problem by deleting and recreating the boundary file.
No everything works well :-)


All times are GMT -4. The time now is 21:27.