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

oscillating inlet

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

Like Tree2Likes
  • 1 Post By AMahrla
  • 1 Post By ngj

Reply
 
LinkBack Thread Tools Display Modes
Old   May 18, 2011, 12:13
Default oscillating inlet
  #1
New Member
 
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 6
mo.houssami is on a distinguished road
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
mo.houssami is offline   Reply With Quote

Old   May 19, 2011, 09:15
Default
  #2
New Member
 
Astrid Mahrla
Join Date: May 2010
Location: Munich, Germany
Posts: 22
Rep Power: 8
AMahrla is on a distinguished road
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
mo.houssami likes this.
AMahrla is offline   Reply With Quote

Old   May 24, 2011, 05:01
Default
  #3
New Member
 
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 6
mo.houssami is on a distinguished road
Thank you Astrid, just what I needed
mo.houssami is offline   Reply With Quote

Old   March 21, 2012, 02:33
Default
  #4
New Member
 
Join Date: Mar 2012
Posts: 12
Rep Power: 5
November is on a distinguished road
Hi guys
How would you set the initial condition for p after u is set to be oscillatingfixedValue???
November is offline   Reply With Quote

Old   March 21, 2012, 09:49
Default
  #5
New Member
 
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 6
mo.houssami is on a distinguished road
Quote:
Originally Posted by November View Post
Hi guys
How would you set the initial condition for p after u is set to be oscillatingfixedValue???

Hi,

I put zeroGradient .
mo.houssami is offline   Reply With Quote

Old   March 21, 2012, 21:20
Default
  #6
New Member
 
Join Date: Mar 2012
Posts: 12
Rep Power: 5
November is on a distinguished road
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.
November is offline   Reply With Quote

Old   March 28, 2012, 11:13
Default
  #7
New Member
 
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 6
mo.houssami is on a distinguished road
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 !
Attached Files
File Type: zip 0.zip (3.7 KB, 84 views)
File Type: zip blockMeshDict.zip (662 Bytes, 50 views)
File Type: zip system.zip (5.2 KB, 42 views)
mo.houssami is offline   Reply With Quote

Old   March 28, 2012, 21:28
Default
  #8
New Member
 
Join Date: Mar 2012
Posts: 12
Rep Power: 5
November is on a distinguished road
Hi Mo.

Thanks a lot. I will have a look at that.

Cheers,
November is offline   Reply With Quote

Old   June 4, 2012, 07:07
Default
  #9
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 7
flowris is on a distinguished road
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?
flowris is offline   Reply With Quote

Old   January 11, 2013, 17:29
Default
  #10
New Member
 
Mark Eskesen
Join Date: Nov 2012
Posts: 3
Rep Power: 4
Eske is on a distinguished road
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
Eske is offline   Reply With Quote

Old   January 14, 2013, 05:02
Default
  #11
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 7
flowris is on a distinguished road
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.
flowris is offline   Reply With Quote

Old   January 14, 2013, 06:05
Default
  #12
New Member
 
Mark Eskesen
Join Date: Nov 2012
Posts: 3
Rep Power: 4
Eske is on a distinguished road
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
Eske is offline   Reply With Quote

Old   January 14, 2013, 06:12
Default
  #13
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,594
Rep Power: 24
ngj will become famous soon enoughngj will become famous soon enough
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
Eske likes this.
ngj is offline   Reply With Quote

Old   January 16, 2013, 09:00
Default
  #14
New Member
 
Mark Eskesen
Join Date: Nov 2012
Posts: 3
Rep Power: 4
Eske is on a distinguished road
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
Eske is offline   Reply With Quote

Reply

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
Inlet Velocity in CFX aeroman CFX 12 August 6, 2009 18:42
Oscillating velocity inlet xiuying OpenFOAM Running, Solving & CFD 4 February 2, 2009 03:05
Inlet table in STAR-CD Sachin CD-adapco 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


All times are GMT -4. The time now is 11:19.