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

Variable velocity boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2013, 13:04
Default Variable velocity boundary condition
  #1
New Member
 
Madeleine P. Vincent
Join Date: May 2011
Posts: 29
Rep Power: 15
Madeleine P. Vincent is on a distinguished road
Hi all,

I am interested in applying a velocity boundary condition to a solid structure in the middle of the flow. The velocity, however, is not constant along the surface of the structure. So I can't use the "fixedValue" within the U file, such as:

pole
{
type fixedValue;
value uniform (0 5 0);
}

The velocity may be computed from a function or even a 3rd party algorithm, and then applied at each step.

What's the best way to implement this in OpenFOAM?

Thanks,
Madeleine.
Madeleine P. Vincent is offline   Reply With Quote

Old   April 28, 2013, 09:57
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Madeleine,

Essentially, your question have two different answers, so let me address each of them separately:

1. If you define the velocity by a function, then I would as an initial start suggest to use swak4Foam (http://openfoamwiki.net/index.php/Contrib/swak4Foam). Several examples of its use are distributed along with the source code.

2. If you need to get the information from a third party software, then I would suggest that you write a boundary condition, which links to this third party software. Actually, I would write a class that takes care of the linking and make this class known to the boundary condition.
In this way all the interaction between OpenFoam and this other software is hid away from the user, which makes the application much easier.
In addition to this, future extensions or investigation of different approaches become extremely easy to implement and more importantly, it is easy to identify which version was used, because you can make multiple boundary conditions with different names based on the original class.

Kind regards

Niels
ngj is offline   Reply With Quote

Old   May 6, 2013, 14:38
Default
  #3
New Member
 
Madeleine P. Vincent
Join Date: May 2011
Posts: 29
Rep Power: 15
Madeleine P. Vincent is on a distinguished road
Niels,

it looks like swak4foam is adequate for what I am doing. I'll consider writing a custom class later if necessary.

Thanks a lot for the help!

Madeleine.
Madeleine P. Vincent is offline   Reply With Quote

Reply

Tags
boundary condition u


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
Massflow or average velocity boundary condition Sideshore OpenFOAM Pre-Processing 6 September 27, 2016 16:09
Radiation interface hinca CFX 15 January 26, 2014 18:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Velocity profile boundary condition Tuca FLOW-3D 1 April 23, 2013 13:02
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 05:13


All times are GMT -4. The time now is 13:37.