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

Velocity BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2013, 12:31
Default Velocity BC
  #1
Member
 
felicemastronzo's Avatar
 
Felice
Join Date: Nov 2010
Posts: 44
Rep Power: 15
felicemastronzo is on a distinguished road
Hi all,
I have this problem: basically I have a rotating mesh that is a cylinder with a hexahedric hole inside. I have to apply a rotation to the whole mesh in order to rotate the hex. Now the boundaries of the cylinder have a velocity due to the rotation of the mesh. What I want to do is to impose an opposite velocity BC on the walls of the cylinder in order to compensate the velocity that was applied by the mesh rotation.
Actually in OF there is a fixedValue velocity BC but it is not possible to impose a different direction for each point of the cylinder. The magnitude is also in my case constant v=r*omega but the direction should be tangent the the wall (cylinder external surface) and the normal to that surface changes for each element.
Can someone help me writing such BC?
I'm quite new in with OF and I'm actually not able to do that.

Regards
F.
felicemastronzo is offline   Reply With Quote

Old   May 24, 2013, 12:55
Default
  #2
Member
 
felicemastronzo's Avatar
 
Felice
Join Date: Nov 2010
Posts: 44
Rep Power: 15
felicemastronzo is on a distinguished road
Nobody can help me?

F.
felicemastronzo is offline   Reply With Quote

Old   May 27, 2013, 07:56
Default
  #3
Member
 
felicemastronzo's Avatar
 
Felice
Join Date: Nov 2010
Posts: 44
Rep Power: 15
felicemastronzo is on a distinguished road
Please guys, I really need help!

F.
felicemastronzo is offline   Reply With Quote

Old   May 27, 2013, 10:47
Default
  #4
Member
 
Eysteinn Helgason
Join Date: Sep 2009
Location: Gothenburg, Sweden
Posts: 53
Rep Power: 16
eysteinn is on a distinguished road
Hi,

So. . . I haven't done this myself but this hopefully gets you in the right direction.

There is a library called groovyBC that allow you to set arbitrary BC using expressions.
This libary is now included in swak4Foam. (So that is what you should install )

Check out these pages. It should be simple to implement the rotating BC that you want, there are some examples on those pages
( even though I'm not sure about how stable this will be. )

/Eysteinn
eysteinn is offline   Reply With Quote

Old   May 31, 2013, 14:36
Thumbs up
  #5
Member
 
felicemastronzo's Avatar
 
Felice
Join Date: Nov 2010
Posts: 44
Rep Power: 15
felicemastronzo is on a distinguished road
Quote:
Originally Posted by eysteinn View Post
Hi,

So. . . I haven't done this myself but this hopefully gets you in the right direction.

There is a library called groovyBC that allow you to set arbitrary BC using expressions.
This libary is now included in swak4Foam. (So that is what you should install )

Check out these pages. It should be simple to implement the rotating BC that you want, there are some examples on those pages
( even though I'm not sure about how stable this will be. )

/Eysteinn
Tanks a lot!
felicemastronzo is offline   Reply With Quote

Reply

Tags
implement velocity bc


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
Plotting Radial Velocity and Tangential Velocity in CFD Post ashtonJ CFX 5 July 13, 2015 02:49
Velocity in Porous medium : HELP! HELP! HELP! Kali Sanjay Phoenics 0 November 6, 2006 06:10
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


All times are GMT -4. The time now is 10:05.