CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   boundary condition (http://www.cfd-online.com/Forums/openfoam-pre-processing/106385-boundary-condition.html)

suflaki August 27, 2012 17:22

boundary condition
 
1 Attachment(s)
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? :confused:
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!

Bernhard August 28, 2012 02:26

Try 'groovybc' in google. It allows you to supply functions as boundary condition, just what you want.

suflaki August 28, 2012 11:25

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?

Bernhard August 28, 2012 11:30

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

suflaki August 28, 2012 13:25

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 August 28, 2012 19:29

1 Attachment(s)
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! :)

Ahmed Khattab August 29, 2012 18:42

boundary layer thickness
 
Quote:

Originally Posted by suflaki (Post 379196)
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 September 24, 2012 18:07

Quote:

Originally Posted by suflaki (Post 378980)
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? :confused:
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.:)


All times are GMT -4. The time now is 04:03.