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

boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Bernhard

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2012, 17:22
Question boundary condition
  #1
New Member
 
Join Date: Aug 2012
Posts: 4
Rep Power: 13
suflaki is on a distinguished road
Hello everybody!

I am practically a complete noob in openFoam and actually I am staying in front of the following task:

I have to create a fluid stream on a plate and analyze the boundary layer. All in all it seems to be a not very complicated task, but the difficulty is, that I have to put the inlet of the stream in a specific distance to the edge of the semi-infinity plate.

This means, that i can't use the fixed velocity-value boundary condition for the inlet and somehow have to define a special velocity function u instead, which depends on the distance to the plate (y). I have to set the function u(y) for the velocity as an inlet boundary condition, so to speak.

I have attached a simple drawing of this task to post, to make it more clear.

My problem is, that I don't have a clou on how I can manage to set this special inlet boundary condition in openFoam?
I searched the internet for a while now, but I didn't find a good or at least an easy-to-understand solution for my problem.

I would be glad if you could help me with my task at this point!
greetings and thanks a lot!
Attached Images
File Type: jpg plate_stream_task.jpg (42.2 KB, 101 views)
suflaki is offline   Reply With Quote

Old   August 28, 2012, 02:26
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
Try 'groovybc' in google. It allows you to supply functions as boundary condition, just what you want.
suflaki likes this.
Bernhard is offline   Reply With Quote

Old   August 28, 2012, 11:25
Default
  #3
New Member
 
Join Date: Aug 2012
Posts: 4
Rep Power: 13
suflaki is on a distinguished road
thank you for this hint, Bernhard, but actually I didn't really find a tutorial on how to use this tool for my task.

Could you please describe this tool and how the syntax works? Or is there any documentation for groovybc? I couldn't find one..
What do I actually have to include in the u-file to use this for a function u(y) and is groovybc also implemented in openFoam v2.1.0?

Or is there maybe also a possiblity to use a table of different velocities in accordance to the height over the plate for the inlet boundary?
suflaki is offline   Reply With Quote

Old   August 28, 2012, 11:30
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
GroovyBC in now part of swak4Foam, which you should download and install seperately. More info can be found here: http://openfoamwiki.net/index.php/Contrib/swak4Foam . Examples are included in the download, or you can read non-updated page on groovyBC http://openfoamwiki.net/index.php/Contrib_groovyBC
Bernhard is offline   Reply With Quote

Old   August 28, 2012, 13:25
Default
  #5
New Member
 
Join Date: Aug 2012
Posts: 4
Rep Power: 13
suflaki is on a distinguished road
Ok, I have read through the ReadMe of swak4Foam so far and I think the way better solution for my problem might be to simply use a table with given values (from the Blasius-Theory) for the velocities at the inlet in accordance to the y coordinate.

Is there a simple way to do this?
I have found something called setfields, but I am not really sure if this is the right one.

In which form is it possible to implement the table with the values and link it to the boundary for the velocity?
suflaki is offline   Reply With Quote

Old   August 28, 2012, 19:29
Default
  #6
New Member
 
Join Date: Aug 2012
Posts: 4
Rep Power: 13
suflaki is on a distinguished road
Hello again and thanks for your help so far,

I actually managed to make a velocity-inlet variation by a value table based on the Blasius-values. (instead of a function)

I used timeVaryingMappedFixedValue for the inlet boundary for this purpose.
My project is in the attachment of this post.

Now, I just have some trouble with the boundary layer on the plate: the thickness of the boundary layer simply doesn't increase after the inlet but just stays constant.

Do you know why this happens or what I have made wrong?
I would be glad for any help!
Attached Files
File Type: zip project.zip (88.7 KB, 37 views)
suflaki is offline   Reply With Quote

Old   August 29, 2012, 18:42
Default boundary layer thickness
  #7
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
Ahmed Khattab is on a distinguished road
Quote:
Originally Posted by suflaki View Post
Hello again and thanks for your help so far,

I actually managed to make a velocity-inlet variation by a value table based on the Blasius-values. (instead of a function)

I used timeVaryingMappedFixedValue for the inlet boundary for this purpose.
My project is in the attachment of this post.

Now, I just have some trouble with the boundary layer on the plate: the thickness of the boundary layer simply doesn't increase after the inlet but just stays constant.

Do you know why this happens or what I have made wrong?
I would be glad for any help!
Hi Suflaki,

i didn't read your project but this problem comes some time when cell size is greater than boundary layer thickness, so you must take care when specifies cells number in blockMeshDict file for y dimension.

regards,
Ahmed
Ahmed Khattab is offline   Reply With Quote

Old   September 24, 2012, 18:07
Default
  #8
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
Ahmed Khattab is on a distinguished road
Quote:
Originally Posted by suflaki View Post
Hello everybody!

I am practically a complete noob in openFoam and actually I am staying in front of the following task:

I have to create a fluid stream on a plate and analyze the boundary layer. All in all it seems to be a not very complicated task, but the difficulty is, that I have to put the inlet of the stream in a specific distance to the edge of the semi-infinity plate.

This means, that i can't use the fixed velocity-value boundary condition for the inlet and somehow have to define a special velocity function u instead, which depends on the distance to the plate (y). I have to set the function u(y) for the velocity as an inlet boundary condition, so to speak.

I have attached a simple drawing of this task to post, to make it more clear.


My problem is, that I don't have a clou on how I can manage to set this special inlet boundary condition in openFoam?
I searched the internet for a while now, but I didn't find a good or at least an easy-to-understand solution for my problem.

I would be glad if you could help me with my task at this point!
greetings and thanks a lot!
Hi,

i think there is a new type of BC called polynomial in the release note of last openFOAM release.
generally, you can make your mesh of two hexagons each one has a different velocity in its inlet.

good luck.
Ahmed Khattab is offline   Reply With Quote

Reply

Tags
boundary, condition, function, suflaki, velocity


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
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 05:05
Setting outlet Pressure boundary condition using CAFFA code Mukund Pondkule Main CFD Forum 0 March 16, 2011 03:23
How exactly the "pressure outlet" bdry condition compute properties on the boundary? yating9901 FLUENT 3 June 28, 2010 12:26
How to set boundary condition in Fluent for the fo Peiyong FLUENT 1 November 10, 2006 11:44


All times are GMT -4. The time now is 16:19.