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

On/Off inlet boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2018, 05:51
Default On/Off inlet boundary condition
  #1
New Member
 
Kahlil Fredrick Cui
Join Date: Apr 2018
Posts: 29
Rep Power: 8
cuikahlil is on a distinguished road
Hello!

Is it possible in openfoam to implement some sort of on/off mechanism at the inlet? I am trying to simulate water entering a chamber through an inlet but would like the flow to start after a certain period of time.

Any ideas are welcome! Thank you in advance.

Kahlil
cuikahlil is offline   Reply With Quote

Old   May 24, 2018, 06:54
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
See if you can use any of the fvOptions entries. Those have a startTime and duration keyword.
RobertHB is offline   Reply With Quote

Old   May 24, 2018, 07:36
Default
  #3
New Member
 
Kahlil Fredrick Cui
Join Date: Apr 2018
Posts: 29
Rep Power: 8
cuikahlil is on a distinguished road
Oh dear how could I have forgotten that. I was thinking the solution would be a lot complicated. Thank you very much!
cuikahlil is offline   Reply With Quote

Old   May 24, 2018, 10:09
Default
  #4
New Member
 
Kahlil Fredrick Cui
Join Date: Apr 2018
Posts: 29
Rep Power: 8
cuikahlil is on a distinguished road
I may have over estimated my familiarity with fvOptions. Would you be so kind to offer some suggestions which ones I can use? I have seen that acousticDampingSource has the time settings but I can't imagine using it for what I intend to do.
cuikahlil is offline   Reply With Quote

Old   May 24, 2018, 10:23
Default
  #5
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Quote:
Originally Posted by cuikahlil View Post
Would you be so kind to offer some suggestions which ones I can use?
The first option that comes to my mind is meanVelocityForce. You could defin your inlet as a cell set close the your inlet patch und use the meanVelocityForce to only drive the flow during a given time interval.

But i have never used the options with a time, and cant say for sure that it will work.


For further information about fvOptions entries you might want to look at this page: www.geocities.jp. Most of it is in japanese, but you can use google translate or the chrome browser to translate the website. The important parts are in english anyways.
RobertHB is offline   Reply With Quote

Old   May 24, 2018, 10:50
Default
  #6
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
Code:
    {
        type            uniformFixedValue;
        uniformValue    constant (1 0 0);
        value                uniform (0 0 0); // meaningless initial value
    }
or for a non constant velocity:
Code:
    {
        type            uniformFixedValue;
        uniformValue    table
        (
        (0.0 (1 0 0))
        (1.0 (1 0 0))
        (1.1 (0 0 0))
        );
    }
Keep in mind, that a linear interpolation is used between those.
Bloerb is offline   Reply With Quote

Old   May 25, 2018, 21:48
Default
  #7
New Member
 
Kahlil Fredrick Cui
Join Date: Apr 2018
Posts: 29
Rep Power: 8
cuikahlil is on a distinguished road
Thanks for the heads up Robert! I will definitely check this out.
cuikahlil is offline   Reply With Quote

Old   May 25, 2018, 21:50
Default
  #8
New Member
 
Kahlil Fredrick Cui
Join Date: Apr 2018
Posts: 29
Rep Power: 8
cuikahlil is on a distinguished road
Hello Bloerb! which part in this code allows me to set the time when I want the inlet to release the water?
cuikahlil is offline   Reply With Quote

Old   May 28, 2018, 04:28
Default
  #9
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Quote:
Originally Posted by cuikahlil View Post
Hello Bloerb! which part in this code allows me to set the time when I want the inlet to release the water?
In short: none. You will have to add the timeStart and duration keywords. This at least worked in 2.2.x, see here. Couldt find those lines for 4.x or 5.x
RobertHB is offline   Reply With Quote

Reply


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
Centrifugal fan j0hnny CFX 13 October 1, 2019 14:55
UDF fluent:Change boundary condition. determination inlet and outlet boundary in "t" gzamiri@gmail.com FLUENT 0 September 27, 2015 06:32
Radiation interface hinca CFX 15 January 26, 2014 18:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


All times are GMT -4. The time now is 23:52.