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

interFoam outlet flow problem

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By VRN

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2024, 07:18
Default interFoam outlet flow problem
  #1
New Member
 
Elvin
Join Date: Feb 2024
Posts: 5
Rep Power: 2
Elvin is on a distinguished road
Hello, dear OF users. I am investigating the flow in the pipe shown in the above file. The flow leaving the inlet goes to the outlet. But as you can see, in outlet the flow drops down. It seems to "drop" down instead of flowing straight and maintaining its level. The inlet is divided into two parts. I have tried many variants of boundary conditions (inletOutlet, outletInlet, etc.), but everywhere the same result. Right now my geometry is in the positive coordinate region, because when the geometry crossed the coordinate axes, then the flow was reflected from the outlet. Also if you change the direction of free fall acceleration (g), then the reflection from the outlet boundary reappears. Please help with this. Thanks.

U:

Code:
dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (1 0 0);

boundaryField
{
    inlet_bottom
    {
        type            fixedValue;
        value           uniform (1.5 0 0);
    }
    inlet_top
    {
        type            fixedValue;
        value           uniform (0.1 0 0);
    }
    walls
    {
        type            noSlip;
    }
    outlet
    {
        type            zeroGradient;
    }
}
p_rgh:

Code:
dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet_bottom
    {
        type            zeroGradient;
    }
    inlet_top
    {
        type            zeroGradient;
    }
    walls
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 900000;
    }
}
alpha.water:

Code:
dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet_bottom
    {
        type            fixedValue;
        value           uniform 1;
    }
    inlet_top
    {
        type            fixedValue;
        value           uniform 0;
    }
    walls
    {
        type            zeroGradient;
    }
    outlet
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }
}

1.jpg
Elvin is offline   Reply With Quote

Old   July 5, 2024, 21:48
Default
  #2
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 200
Rep Power: 18
vatavuk is on a distinguished road
Hi Elvin,
The recommended practice for setting up a new simulation is to use a tutorial similar to the case you want to study. I suggest you study the weirOverflow tutorial.
vatavuk is offline   Reply With Quote

Old   July 6, 2024, 07:17
Default
  #3
New Member
 
Elvin
Join Date: Feb 2024
Posts: 5
Rep Power: 2
Elvin is on a distinguished road
Quote:
Originally Posted by vatavuk View Post
Hi Elvin,
The recommended practice for setting up a new simulation is to use a tutorial similar to the case you want to study. I suggest you study the weirOverflow tutorial.
Thanks for the reply! But it didn't help, I don't understand why primitive BCs don't help (such as fixedValue, zeroGradient etc).

Last edited by Elvin; July 9, 2024 at 03:38.
Elvin is offline   Reply With Quote

Old   July 6, 2024, 15:37
Default
  #4
Senior Member
 
Will Kernkamp
Join Date: Jun 2014
Posts: 372
Rep Power: 14
wkernkamp is on a distinguished road
Is the solution converged?
wkernkamp is offline   Reply With Quote

Old   July 7, 2024, 11:43
Default
  #5
New Member
 
Elvin
Join Date: Feb 2024
Posts: 5
Rep Power: 2
Elvin is on a distinguished road
Quote:
Originally Posted by wkernkamp View Post
Is the solution converged?
Hello, wkernkamp! Yes, solution converged. The problem, it seems to me, is that the pressure gradient doesn't converge correctly. Inlet and outlet are kind of disconnected.

123133.jpg

I also feel like it's physical on one hand. Because when the flow rate increases, this level drop at the outlet is not noticed. And when the flow velocity is low, this "drawdown" appears to the left (meaning closer to the inlet). There seems to be a minimum velocity for a certain liquid level in the pipe. If anyone knows of any articles dealing with this, I would be glad to read them.
Elvin is offline   Reply With Quote

Old   July 8, 2024, 15:51
Default
  #6
VRN
New Member
 
Vinayak Ramachandran
Join Date: Jan 2024
Posts: 4
Rep Power: 2
VRN is on a distinguished road
Hello Elvin,

I noticed you have assigned a fixed value pressure boundary for the outlet at 900000Pa. That might be causing the dip near the outlet.

Best
VRN
Elvin likes this.
VRN is offline   Reply With Quote

Old   July 15, 2024, 11:58
Default
  #7
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 200
Rep Power: 18
vatavuk is on a distinguished road
Quote:
Originally Posted by Elvin View Post
Thanks for the reply! But it didn't help, I don't understand why primitive BCs don't help (such as fixedValue, zeroGradient etc).
HI Elvin,

One of the reason why complex boundary conditions must be used have to do with the formulation of SIMPLE and PISO algorithms. They use pressure as fundamental variable but in the Navier-Stokes equations (for incompressible flow) there is no explicit equation for pressure.

So these methods create a pressure equation using the momentum transfer and the continuity equation. This pressure equation must have boundary conditions that are compatible with the two previous equations (momentum transfer and continuity), so sometimes complex boundary conditions like the fixedFluxPressure boundary condition must be used for pressure.

There is a good explanation about this in chapter 4 of the book of Greenshilds and Weller that is available at:
https://doc.cfd.direct/notes/cfd-gen...iples/contents

I hope this helps.
vatavuk is offline   Reply With Quote

Reply

Tags
bug, interfoam, outflow, outlet, problem


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
Compressible nozzle flow - no problem for fluent but impossible with openFOAM? flar.t OpenFOAM Running, Solving & CFD 10 March 30, 2022 02:21
Outlet BC for multiPhase modeling | Back flow problem saugatshr4 OpenFOAM 7 March 23, 2022 01:59
Transient problem - Reversed flow .Thomas. Fluent UDF and Scheme Programming 3 September 23, 2014 06:39
Disturbed flow field at outlet boundary (Multiphase flow through pipe) Michiel CFX 17 April 21, 2010 11:14
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 22:31


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