|
[Sponsors] |
May 18, 2011, 13:13 |
oscillating inlet
|
#1 |
New Member
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 15 |
Hello,
I am using OpenFoam and I would like to have an Oscillating inlet or an oscillating wall so that my flow start oscillating. any ideas ? Thank you |
|
May 19, 2011, 10:15 |
|
#2 |
New Member
Astrid Mahrla
Join Date: May 2010
Location: Munich, Germany
Posts: 22
Rep Power: 17 |
There's oscillatingFixedValue boundary condition, that can be found in src/finiteVolume/fields/fvPatchFields/derived (valid for OpenFOAM-1.6.x).
Usage: type oscillatingFixedValue; refValue (8 0 0); amplitude 2; frequency 5; Best, Astrid |
|
May 24, 2011, 06:01 |
|
#3 |
New Member
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 15 |
Thank you Astrid, just what I needed
|
|
March 21, 2012, 02:33 |
|
#4 |
New Member
Join Date: Mar 2012
Posts: 12
Rep Power: 14 |
Hi guys
How would you set the initial condition for p after u is set to be oscillatingfixedValue??? |
|
March 21, 2012, 09:49 |
|
#5 |
New Member
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 15 |
||
March 21, 2012, 21:20 |
|
#6 |
New Member
Join Date: Mar 2012
Posts: 12
Rep Power: 14 |
Hi Mo,
Thank you for your reply. I tried to put zeroGradient to 0/p at inlet. Somehow I got all p and u at all timesteps to be 0??? In my input file for boundary: inlet type is set to be patch and then in 0/p, inlet type is set to be zeroGradient; in 0/u, if i want to specify U=Umsin(2*pi*f*t),would the following be correct? inlet { type oscillatingFixedValue; refValue uniform (0 0 0); //steady current velocity, which is 0 in my case //offset (0 -1 0); amplitude constant 1; //Um frequency constant 0.5; //f //value uniform (0 0 0); //not sure what this is for? } Could you tell me my problem, really appreciated. Also, may I know how you specified your outlet BC? Thanks a lot. Last edited by November; March 21, 2012 at 21:51. |
|
March 28, 2012, 12:13 |
|
#7 |
New Member
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 15 |
Hi, sorry for the late reply.
I only used this condition once last year, so I don't really remember...But I can send you a case that I run, and it was working fine, maybe it can help you out. Good luck ! |
|
March 28, 2012, 22:28 |
|
#8 |
New Member
Join Date: Mar 2012
Posts: 12
Rep Power: 14 |
Hi Mo.
Thanks a lot. I will have a look at that. Cheers, |
|
June 4, 2012, 08:07 |
|
#9 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
Why is there only one amplitude in the velocity? I would expect a vector of three components, since velocity is a vector.
Personally, I need a velocity vector that varies in time as (0.4, 0.6*sin(2*pi*t), 0.0) i.e. x- and z-components are constant, y-component fluctuates. Can this be done with oscillatingFixedValue? |
|
January 11, 2013, 17:29 |
|
#10 |
New Member
Mark Eskesen
Join Date: Nov 2012
Posts: 3
Rep Power: 14 |
Hi,
I am trying to use oscillatingFixedValue as my velocity inlet BC, but I'm wondering what refValue means. Do anyone know that? What if you only want to have an oscillating motion of the domain (without any current comming into the domain), do I need to put the velocity inlet BC like this in 0/u: inlet { type oscillatingFixedValue; refValue uniform (0 0 0); amplitude 1; frequency 0.5; } Regards Eske |
|
January 14, 2013, 05:02 |
|
#11 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
When you say "oscillate the whole domain", I suppose you mean you want to do something like shaking a closed container. For this, check the different sloshing tank tutorials. They are for multiphase, but the same procedure goes for single phase.
|
|
January 14, 2013, 06:05 |
|
#12 |
New Member
Mark Eskesen
Join Date: Nov 2012
Posts: 3
Rep Power: 14 |
Thanks for your reply. What I want is to simulate waves, but not with waves2Foam. I want to make my domain oscillate forth and back. I tried with the oscillatingFixedValue as my velocity inlet BC, which actually oscillate my domain, but it is only working if refValue uniform (1 0 0) which means that a stream/current is coming into the domain in the x-direction. I don't want that current coming in, I only want to oscillate my water domain.
Thanks for your help, Mark |
|
January 14, 2013, 06:12 |
|
#13 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Mark,
Then the easiest for you would probably be to make your own version of oscillatingFixedValue, where you can have a (0 0 0) refValue. Actually, if I remember correctly, then oscillatingFixedValue differs from the official releases and the 1.6-ext branch, where the user can choose the refValue in the latter. Kind regards, Niels |
|
January 16, 2013, 09:00 |
|
#14 |
New Member
Mark Eskesen
Join Date: Nov 2012
Posts: 3
Rep Power: 14 |
Thanks for your reply Niels.
FYI I solved my problem concerning the oscillating inlet by looking in the code src/finiteVolume/fields/fvPatchFields/derived/oscillatingFixedValue and changed 1.0 + amplitude * sin(2 * Pi * frequency * t) to 0.0 + amplitude * sin(2 * Pi * frequency * t) and recompiled. This solved my problem concerning the oscillating velocity. However have anybody got problems with the pressure by using the oscillatingFixedValue, because at all time my pressure becomes positive. What I think is, that somewhere in the code a positive body force or similar is hard coded. Somebody knows something about this? Kind regards, Mark |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inlet Velocity in CFX | aeroman | CFX | 12 | August 6, 2009 19:42 |
Oscillating velocity inlet | xiuying | OpenFOAM Running, Solving & CFD | 4 | February 2, 2009 03:05 |
Inlet table in STAR-CD | Sachin | Siemens | 1 | March 26, 2008 11:22 |
Oscillating inlet??? | Adam | CFX | 0 | March 10, 2008 21:57 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |