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

Change inlet velocity

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By riesotto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2012, 07:13
Default Change inlet velocity
  #1
New Member
 
Florian
Join Date: Jan 2011
Location: Mannheim, Germany
Posts: 24
Rep Power: 15
riesotto is on a distinguished road
Hi all,

how can I change the velocity at the inlet during a calculation. For better convergence I want to start up my simulation with a low velocity value and after some iterations change it to a higher value. Is there an easy way to do this????

kind regards
Florian
riesotto is offline   Reply With Quote

Old   February 18, 2012, 08:44
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
yep there is,
look at groovyBC or swak4foam
nimasam is offline   Reply With Quote

Old   February 18, 2012, 08:49
Default
  #3
New Member
 
Florian
Join Date: Jan 2011
Location: Mannheim, Germany
Posts: 24
Rep Power: 15
riesotto is on a distinguished road
Hi nimasam,
thx for your reply. I will check this options...
kind regards
Florian
riesotto is offline   Reply With Quote

Old   February 18, 2012, 11:35
Default
  #4
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hi,

I guess the easiest solution would be to use something like the "timeVaryingUniformFixedValue" boundary condition available in the native OpenFOAM distribution.

In your particular case, you can use this boundary condition to create a ramp of the inlet velocity to stabilize the initial part of the run.

Just search for the boundary condition in the forums for more details

Philippose
philippose is offline   Reply With Quote

Old   February 18, 2012, 14:22
Default
  #5
New Member
 
Florian
Join Date: Jan 2011
Location: Mannheim, Germany
Posts: 24
Rep Power: 15
riesotto is on a distinguished road
Hi Philippose,

thx for your hint. It works fine with "timeVaryingUniformFixedValue".

Here for all who are intrested:
- first I wrote a file called rampe.dat, that is located in the main folder (the folder with /0, /constant, /system). This file contains:
(
(0.0 (-0.75 0.0 0.0))
(25.0 (-3.79 0.0 0.0))
(50.0 (-7.58 0.0 0.0))
(75.0 (-13.64 0.0 0.0))
)

here the first number (0.0 , 25.0 ...) is the time of the simulation and the following three numbers is the vector of the velocity (-0.75 0.0 0.0).

- Then I modified the boundary condition for the velocity (U):
...
inlet
{
type timeVaryingUniformFixedValue;
filename "rampe.dat"
value uniform (0 0 0);
outOfBounds clamp;
}

here outOfBounds means that after the endtime (75.0) the last value (-13.64 0.0 0.0) is retained.

- At the end I started the simulation and it works



Now I have a new Problem. Is it possible to change the value of omega in the MRFZones with this or any other method?????

kind regards,
Florian
riesotto 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
[swak4Foam] Scale discrete inlet velocity profile with groovyBC cboss OpenFOAM Community Contributions 1 June 20, 2010 14:02
inlet velocity BC ahsan FLUENT 3 July 22, 2009 05:17
UDF problem : inlet velocity in cyl. coord. system Jongdae Kim FLUENT 0 June 15, 2004 12:21
UDF paraboloid velocity inlet Ronak Shah FLUENT 0 June 4, 2003 10:44
velocity inlet boundary x.tang FLUENT 1 May 4, 2001 10:11


All times are GMT -4. The time now is 00:14.