CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Confused with wall boundaries in 3D (https://www.cfd-online.com/Forums/openfoam/69649-confused-wall-boundaries-3d.html)

shangzung October 29, 2009 11:37

Confused with wall boundaries in 3D
 
Hello!

I am modelling a cube with gas inside. Two sides of the cube have to be holes while the other four sides have to be walls. I have a patch for the holes and one for the walls.

In the blockMeshDict they're:

patch sides
(
(1 2 6 5)
(0 4 7 3)
)
wall walls
(
(0 1 5 4)
(5 6 7 4)
(3 7 6 2)
(0 3 2 1)
)

And in the 0/p they're:

boundaryField
{
sides
{
type zeroGradient;
}
walls
{
type zeroGradient;
}
}

Is this a false setting for walls to be walls and sides to be holes?:confused:

bhh October 29, 2009 13:23

Your wall BC seems OK. The holes are either inlets or outlets. If inlet zeroGradient is OK for pressure in addition you need a fixedValue for the normal velocity. If outlet the pressure should be a fixedValue.
rgds
Bjorn

shangzung October 30, 2009 04:49

Thanks a lot! And for T is the same? And for U? I did it this way:

T)

boundaryField
{
outlet
{
type fixedValue;
value uniform 300;
}
walls
{
type zeroGradient;
}
}



U)

outlet
{
type fixedValue;
value uniform (0 0 0);
}
walls
{
type fixedValue;
value uniform (0 0 0);
}


All times are GMT -4. The time now is 10:29.