Modifying Simple Buoyant Tutorial
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.
(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
hex (0 2 3 5 6 7 8 9) (20 10 20) simpleGrading (1 2 1)
Resolved Issue, But Still Confused
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.:)
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.
Outlet Region of Patch
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.
|All times are GMT -4. The time now is 13:58.|