|
[Sponsors] |
April 27, 2013, 13:04 |
Variable velocity boundary condition
|
#1 |
New Member
Madeleine P. Vincent
Join Date: May 2011
Posts: 29
Rep Power: 15 |
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. |
|
April 28, 2013, 09:57 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
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 |
|
May 6, 2013, 14:38 |
|
#3 |
New Member
Madeleine P. Vincent
Join Date: May 2011
Posts: 29
Rep Power: 15 |
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. |
|
Tags |
boundary condition u |
|
|
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 |