|
[Sponsors] |
December 20, 2010, 04:29 |
Modifying Simple Buoyant Tutorial
|
#1 |
New Member
Join Date: Dec 2010
Location: Tokyo, Japan
Posts: 10
Rep Power: 16 |
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); ... Last edited by cbritan; December 20, 2010 at 22:27. |
|
December 21, 2010, 05:08 |
Resolved Issue, But Still Confused
|
#2 |
New Member
Join Date: Dec 2010
Location: Tokyo, Japan
Posts: 10
Rep Power: 16 |
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 |
|
December 21, 2010, 05:25 |
|
#3 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
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. |
|
January 26, 2011, 01:03 |
Outlet Region of Patch
|
#4 |
New Member
Join Date: Dec 2010
Location: Tokyo, Japan
Posts: 10
Rep Power: 16 |
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? |
|
Tags |
hotroom, tutorial |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question from tutorial: Buoyant flow in a partitioned cavity | noppawit | CFX | 13 | March 19, 2014 03:18 |
SIMPLE algorithm in 3D cylindrical coordinates | zouchu | Main CFD Forum | 1 | January 20, 2014 18:02 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 04:52 |
Tutorial 13 in version 3.26.004 - simple ICE | Luke | Siemens | 4 | May 18, 2008 15:30 |
[blockMesh] Tutorial for Creating Simple 3D Meshes | jonlemur | OpenFOAM Meshing & Mesh Conversion | 4 | August 8, 2007 14:20 |