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

Velocity boundary condition: negative value (suction)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2010, 10:49
Default Velocity boundary condition: negative value (suction)
  #1
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
Hello,

i would like to use a negative velocity as BC for an outlet (the volume flow is known).
Unfortunetaly the solution crashes or shows huge values.

I'm using the simpleFoam solver with k-epsilon.
My guess is I have wrong settings:

0/U:
Code:
 in
    {
        type            zeroGradient;
    }
    out
    {
        type            fixedValue;
        value           uniform (-6 0 0);
    }
0/p:
Code:
 in
    {
        type            fixedValue;
        value           uniform 0;
    }
    out
    {
        type            zeroGradient;
    }
0/epsilon:
Code:
in
    {
        type            zeroGradient;
    }
    out
    {
        type            fixedValue;
        value           uniform 14.855;
    }
0/k:
Code:
in
    {
        type            zeroGradient;
    }
    out
    {
        type            fixedValue;
        value           uniform 0.375;
    }
0/nut:
Code:
in
    {
        type            calculated;
        value           uniform 0;
    }
    out
    {
        type            calculated;
        value           uniform 0;
    }
0/nuTilda:
Code:
in
    {
        type            zeroGradient;
    }
    out
    {
        type            fixedValue;
        value           uniform 0;
    }
0/R:
Code:
in
    {
        type            zeroGradient;
    }
    out
    {
        type            fixedValue;
        value           uniform (0 0 0 0 0 0);
    }
Does anyone have suggestions for that?
By the way, the solution looks good when I switch to blowing (positive velocity at inlet).


Regards,
Toni
val46 is offline   Reply With Quote

Old   July 28, 2010, 05:30
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
You are talking about an outlet at the beginning, about an inlet at the end.

What is it now?

Can you tell us how it is aligned in respect to your coordinate system?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   July 28, 2010, 07:20
Default
  #3
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
Sorry, I know it's confusing.
I attached a slice through the modell.
The outlet called "in" is on the left side. The inlet called "out" is on the right side.
Inlet and outlet is switched because i changed from blowing to suction.

In the meantime i found out the solvers crashes because of the high velocity. I tried a smaller value and it worked.

The value also has to be positiv. Otherwise it would be an inflow.

The code for 0/U:
Code:
in
    {
        type            zeroGradient;
    }
    out
    {
        type            fixedValue;
        value           uniform (0.5 0 0);
    }
Know I have to find out why the solver is instable for higher velocities...
Attached Images
File Type: jpg screenshot.jpg (18.5 KB, 83 views)
val46 is offline   Reply With Quote

Old   May 7, 2012, 07:01
Default icoFoam negative inlet velocity
  #4
Member
 
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 15
tfuwa is on a distinguished road
Hello the Forum and a nice week to you all,

I would like to specify a negative inlet velocity B.C. in icoFoam solver and am encountered a problem.

I enclose the case, which is quite simple, in the attached file and also give a short description here. It's 2D case for flow simulation around a cylinder and the b.c.s are as follows,

inlet: U fixedValue -1 or 1, p zeroGradient
outlet: U zeroGradient, p fixedValue 0
at two sides, symetryPlane is applied and empty b.c. for in cylinder span direction.

fvSchemes are specified as, Euler for ddt, Gauss linear for gradSchemes, Gauss cubic for divSchemes and Gauss linear corrected for laplacianSchemes.

For U=1, icoFoam gives reasonable result. The force coefficients are shown in the attached Fig U=1. Strouhal number is 0.2, which agrees with experimental results. Drag coefficient is around 1, which is good.

But when you change U=-1, which is the case in the attached case, the simulation crashes at 95s. The force coefficients, as shown in Fig U=-1, behaves normal at the beginning, but increases to a very large value when the simulation stops.

I have no idea why I am experiencing such different results with only one change of the direction of the velocity. Can you please guide me to find out the reason? Any help would be greatly appreciated.

The case can be found here, http://dl.dropbox.com/u/62722643/ico...donline.tar.gz
And can be run directly with command
Code:
icoFoam
in OpenFoam 1.7.1
Attached Images
File Type: jpg U=1.jpg (51.5 KB, 72 views)
File Type: jpg U=-1.jpg (47.6 KB, 44 views)
__________________
Kind regards,

Albert
tfuwa is offline   Reply With Quote

Old   May 8, 2012, 01:27
Default
  #5
Senior Member
 
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 15
ybapat is on a distinguished road
Hello,

You can try to use lower relaxation for momentum equation. Also another option is to ramp velocity at outlet in steps.

Regards,
-Yogesh
ybapat is offline   Reply With Quote

Old   May 8, 2012, 23:40
Default
  #6
Member
 
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 15
tfuwa is on a distinguished road
Quote:
Originally Posted by ybapat View Post
Hello,

You can try to use lower relaxation for momentum equation. Also another option is to ramp velocity at outlet in steps.

Regards,
-Yogesh
Hi Yogesh,

Thanks for your answer. Can you explain why and where I should lower the relaxation for momentum equation?

Can you please also point out why there is such a great difference when the velocity direction changes?
__________________
Kind regards,

Albert
tfuwa 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
vorticity boundary condition bearcharge Main CFD Forum 0 May 14, 2010 11:32
boundary condition for derivative of velocity Daiga CFX 2 December 7, 2009 17:11
maintaining a logarithmic velocity distribution Morten Andersen CFX 1 January 8, 2007 11:37
Profile Data Velocity Boundary Condition Changes?? Maria Angelica CFX 9 June 14, 2006 02:44
Boundary condition for intermediate velocity Yiling Main CFD Forum 3 June 15, 2002 23:48


All times are GMT -4. The time now is 22:24.