CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Modifying Simple Buoyant Tutorial

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2010, 04:29
Post Modifying Simple Buoyant Tutorial
  #1
New Member
 
Join Date: Dec 2010
Location: Tokyo, Japan
Posts: 10
Rep Power: 15
cbritan is on a distinguished road
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
File Type: jpg img-Z20171441-0001.jpg (98.2 KB, 35 views)

Last edited by cbritan; December 20, 2010 at 22:27.
cbritan is offline   Reply With Quote

Old   December 21, 2010, 05:08
Default Resolved Issue, But Still Confused
  #2
New Member
 
Join Date: Dec 2010
Location: Tokyo, Japan
Posts: 10
Rep Power: 15
cbritan is on a distinguished road
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
File Type: jpg model.jpg (97.8 KB, 26 views)
cbritan is offline   Reply With Quote

Old   December 21, 2010, 05:25
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
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.
Bernhard is offline   Reply With Quote

Old   January 26, 2011, 01:03
Default Outlet Region of Patch
  #4
New Member
 
Join Date: Dec 2010
Location: Tokyo, Japan
Posts: 10
Rep Power: 15
cbritan is on a distinguished road
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?
cbritan is offline   Reply With Quote

Reply

Tags
hotroom, tutorial

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:40.