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

Variable velocity boundary condition

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 27, 2013, 12:04
Default Variable velocity boundary condition
  #1
New Member
 
Madeleine P. Vincent
Join Date: May 2011
Posts: 26
Rep Power: 5
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, 08:57
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,510
Rep Power: 23
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 online now   Reply With Quote

Old   May 6, 2013, 13:38
Default
  #3
New Member
 
Madeleine P. Vincent
Join Date: May 2011
Posts: 26
Rep Power: 5
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Radiation interface hinca CFX 15 January 26, 2014 17:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Velocity profile boundary condition Tuca FLOW-3D 1 April 23, 2013 12:02
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 05:13
Massflow or average velocity boundary condition Sideshore OpenFOAM Pre-Processing 4 November 21, 2011 12:50


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