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

Outlet BC for multiPhase modeling | Back flow problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2022, 12:28
Wink Outlet BC for multiPhase modeling | Back flow problem
  #1
New Member
 
Saugat Shrestha
Join Date: Dec 2019
Location: Thailand
Posts: 27
Rep Power: 6
saugatshr4 is on a distinguished road
Hello Foamers,

When I run a multiphase case (air and water), the slow through the domain is satisfactory but when it reaches the outlet there is a problem. The flow starts to comes back and becomes erratic.

I want the flow to move out without any back flow.

I am trying to run a RAS k-epsilon model.

I really hope I can get some help here.

Thank you.

Regards,
Saugat

blockMesh
Code:
convertToMeters 1;

vertices
(
	(-135 -600 -105)
	(390 -600 -105)
        (390 -600 10)//
	(-135 -600 10)//
	(-135 136 -200)
	(390 136 -200)
	(390 136 10)//
	(-135 136 10)//
	
);

blocks
(
    hex (0 1 5 4 3 2 6 7)(65 85 16)simpleGrading (1 1 1)  
);

boundary
(
	inlet	
	{
        type patch;
        faces
        (
		(0 1 2 3)  
        );
	}
    

    outlet
    {
        type patch;
        faces
        (
		(4 5 6 7) 
        );
    }

    ground
    {
        type wall;
        faces
        (
            (0 1 5 4)
        );
    }


    sides
    {
        type patch;
        faces
        ( 
		(0 4 7 3) 
		(1 2 6 5)
		(3 7 6 2)
        );
    }

);
alpha.water
Code:
internalField   uniform 0;//initially air in the entire domain - we will change that with setFields!

boundaryField
{
    inletwall
    {
        type            zeroGradient;
    }
    inletwat
    {
        type            fixedValue;
	value	 	uniform 1;//only water enters the domain
    }

    outlet
    {
        type            zeroGradient;
    }

    ground
    {
        type            zeroGradient;//BC is Neumann BC
    }
	
    trySM
    {
        type            zeroGradient;//BC is Neumann BC
    }

	
    sides
    {
        type            zeroGradient;//BC is Neumann BC
    }
	
	top
    {
        type            zeroGradient;//BC is Neumann BC
    }

}
U
Code:
internalField   uniform (0 0 0);//Initially the velocity is (0 0 0) m/s

boundaryField
{
    inletwat
    {
       type             fixedValue;
       value		uniform (0 5 0);//fixed inlet velocity    
    }
	


    inletwall
    {
        type            noSlip;
    }

    outlet
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }

    ground
    {
        type            noSlip;//no slip along the walls - replaces fixedValue with uniform (0 0 0)
    }
	
	trySM
    {
        type            noSlip;//no slip along the walls - replaces fixedValue with uniform (0 0 0)
    }
	
	
    sides
    {
        type            slip;//no slip along the walls - replaces fixedValue with uniform (0 0 0)
    }
}
p_rgh
Code:
internalField   uniform 0;//initially atmospheric pressure in the entire domain

boundaryField
{
    inletwat
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }
	
	
    inletwall
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }


    outlet
    {
        type            fixedValue;
        \\p0              uniform 0;
	value 	        uniform 0;
    }
	
    trySM
    { 
        type            fixedFluxPressure;
        value           uniform 0;
    }
	
	
    ground
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }


    sides
    {
        type            slip;
    }

}
nut
Code:
internalField   uniform 0;

boundaryField
{
    trySM
    {
        type            nutkWallFunction;
        value           uniform 0;
    }

    inletwall
    {
        type            nutkWallFunction;
        value           uniform 0;
    }
	
    ground
    {
        type            nutkWallFunction;
        value           uniform 0;
    }

    ".*"
    {
        type            calculated;
        value           uniform 0;
    }
}
k
Code:
internalField   uniform 0.0001;

boundaryField
{
    inletwat
    {
        type            fixedValue;
        intensity       0.05;
        value           $internalField;
    }

    inletwall
    {
        type            kqRWallFunction;
        value           $internalField;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      $internalField;
        value           $internalField;
    }

    trySM
    {
        type            kqRWallFunction;
        value           $internalField;
    }
	
    ground
    {
        type            kqRWallFunction;
        value           $internalField;
    }
	
    sides
    {
        type            slip;
    }
}
epsilon
Code:
boundaryField
{
    inletwat
    {
        type            fixedValue;
        value           $internalField;
    }


    inletwall
    {
        type            epsilonWallFunction;
        value           $internalField;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      $internalField;
        value           $internalField;
    }

    ground
    {
        type            epsilonWallFunction;
        value           $internalField;
    }
	
    trySM
    {
        type            epsilonWallFunction;
        value           $internalField;
    }
	

    sides
    {
        type            slip;
    }
	
}
Attached Images
File Type: png Capture.PNG (105.5 KB, 21 views)
saugatshr4 is offline   Reply With Quote

Old   March 15, 2022, 05:26
Default
  #2
Member
 
Al Csc
Join Date: Jul 2018
Posts: 30
Rep Power: 7
al.csc is on a distinguished road
For alpha.water, outlet:

Code:
   
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }
al.csc is offline   Reply With Quote

Old   March 15, 2022, 09:01
Default
  #3
New Member
 
Saugat Shrestha
Join Date: Dec 2019
Location: Thailand
Posts: 27
Rep Power: 6
saugatshr4 is on a distinguished road
Thank You al.csc for the response.

I ran the simulations with boundary conditions you suggested. However, there is still backflow in the outlet.

How can we make it work?
saugatshr4 is offline   Reply With Quote

Old   March 15, 2022, 09:26
Default
  #4
Member
 
Al Csc
Join Date: Jul 2018
Posts: 30
Rep Power: 7
al.csc is on a distinguished road
Can you try for p_rgh:

Code:
outlet
    {
        type            totalPressure;
        p0              uniform 0;
        value           uniform 0;
    }
Since you are using pressureInletOutletVelocity for velocity (they are usually combined).
al.csc is offline   Reply With Quote

Old   March 15, 2022, 09:33
Default
  #5
New Member
 
Saugat Shrestha
Join Date: Dec 2019
Location: Thailand
Posts: 27
Rep Power: 6
saugatshr4 is on a distinguished road
Thank You again for your response. I tried that, still getting backflow.
saugatshr4 is offline   Reply With Quote

Old   March 15, 2022, 09:54
Default
  #6
Member
 
Al Csc
Join Date: Jul 2018
Posts: 30
Rep Power: 7
al.csc is on a distinguished road
Then let's start from the beginning: which solver and OF version are you using?
al.csc is offline   Reply With Quote

Old   March 15, 2022, 10:15
Default
  #7
New Member
 
Saugat Shrestha
Join Date: Dec 2019
Location: Thailand
Posts: 27
Rep Power: 6
saugatshr4 is on a distinguished road
Im using OpenFoam version 4.0 and using interFoam (PimpleFoam) for multiphase simulation.
saugatshr4 is offline   Reply With Quote

Old   March 23, 2022, 00:59
Default
  #8
Member
 
Al Csc
Join Date: Jul 2018
Posts: 30
Rep Power: 7
al.csc is on a distinguished road
Have you checked phi/U at the outlet patch? You can do it in paraview after
Code:
 foamToVTK -surfaceFields
.

But my suggestion is to switch to a newer OF version.

Quote:
Originally Posted by saugatshr4 View Post
Im using OpenFoam version 4.0 and using interFoam (PimpleFoam) for multiphase simulation.
al.csc is offline   Reply With Quote

Reply

Tags
interfoam, multiphase, outlet backflow, vof


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
Simple Box - Gravity with Pressure Outlet - Unrealistic Reverse Flow pyccknn FLUENT 2 December 1, 2021 17:31
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 04:37
pressure outlet back flow Danial1992 FLUENT 1 May 3, 2017 05:52
Pressure Outlet Targeted Mass Flow Rate LuckyTran FLUENT 1 November 23, 2016 10:40
Outlet Backflow problem in simulating pulsatile flow a.sarami CFX 0 August 31, 2013 09:41


All times are GMT -4. The time now is 10:30.