Modifying Simple Buoyant Tutorial

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
December 20, 2010, 04:29
Modifying Simple Buoyant Tutorial
#1
New Member

Join Date: Dec 2010
Location: Tokyo, Japan
Posts: 10
Rep Power: 8
Sponsored Links
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)
)
);
...
Attached Images
 img-Z20171441-0001.jpg (98.2 KB, 33 views)

Last edited by cbritan; December 20, 2010 at 22:27.

 Sponsored Links

December 21, 2010, 05:08
Resolved Issue, But Still Confused
#2
New Member

Join Date: Dec 2010
Location: Tokyo, Japan
Posts: 10
Rep Power: 8
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
Attached Images
 model.jpg (97.8 KB, 24 views)

 December 21, 2010, 05:25 #3 Senior Member   Bernhard Join Date: Sep 2009 Location: Delft Posts: 790 Rep Power: 14 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: 8 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

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post noppawit CFX 13 March 19, 2014 03:18 zouchu Main CFD Forum 1 January 20, 2014 18:02 aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52 Luke Siemens 4 May 18, 2008 14:30 jonlemur OpenFOAM Native Meshers: blockMesh 4 August 8, 2007 13:20

 Sponsored Links

All times are GMT -4. The time now is 09:45.

 Contact Us - CFD Online - Top