CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Modifying Simple Buoyant Tutorial (https://www.cfd-online.com/Forums/openfoam/83214-modifying-simple-buoyant-tutorial.html)

cbritan December 20, 2010 03:29

Modifying Simple Buoyant Tutorial
 
1 Attachment(s)
I am new to OpenFOAM and I am trying to make a very simple modification to the hotRoom tutorial in the buoyantSimpleFoam tutorial. I would simply like to add one patch with a temperature of 310K on the floor. Please see the attached image and code for the blockMeshDict. When I run blockMesh I get an error stating that face 0 in patch 0 does not have a neighbour cell face: 4(0 1 4 5). I'm guessing this should be a simple fix for someone experienced with OpenFOAM and I am lost for ideas. Thanks for your help.

-Clark

convertToMeters 1;

vertices
(
(0 0 0) //0
(5 0 0) //1
(10 0 0) //2
(10 0 10) //3
(5 0 10) //4
(0 0 10) //5
(0 5 0) //6
(10 5 0) //7
(10 5 10) //8
(0 5 10) //9
);

blocks
(
hex (0 2 3 5 6 7 8 9) (20 10 20) simpleGrading (1 2 1)
);

edges
(
);

patches
(
wall floor
(
(0 1 4 5)
)
wall ceiling
(
(6 7 8 9)
)
wall fixedWalls
(
(0 6 9 5)
(0 6 7 2)
(2 7 8 3)
(5 3 8 9)
)
patch hot
(
(1 2 3 4)
)
);
...

cbritan December 21, 2010 04:08

Resolved Issue, But Still Confused
 
1 Attachment(s)
I was able to solve the problem by splitting the region into two meshes as shown in the attached drawing. However, I still seem to be misunderstanding something fundamental with OpenFOAM. Why is it necessary to add the second mesh to solve this simple problem? I imagine there should be a way to create this model using only one mesh?

Thanks for the help.:)

-Clark

Bernhard December 21, 2010 04:25

It is clear that it is not necessary to split your mesh indeed.

There are two alternatives:
1. You can define your temperature boundary condition in the 0/T file, using a list.
2. You can use groovyBC ( http://openfoamwiki.net/index.php/Contrib_groovyBC ), where setting these boundary conditions is a lot easier.

cbritan January 26, 2011 00:03

Outlet Region of Patch
 
Thanks Bernhard.

I actually found the funkySetFields utility to be quite useful for this application. funkySetFields makes it very easy to set a different temperature, velocity, pressure, etc. to specific areas of a mesh or patch.

However, I am not able to create an outlet to a specific region of a patch without creating a separate mesh for the portion of the patch representing the outlet.

Any ideas?


All times are GMT -4. The time now is 02:06.