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

T-junction multiphase

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 4, 2015, 13:22
Default T-junction multiphase
  #1
AOS
New Member
 
Alberta
Join Date: Dec 2014
Posts: 2
Rep Power: 0
AOS is on a distinguished road
Hello everybody,

I need your help
I am trying to simulate two-phase flow in T-junction channel with two inlets; one for oil and the other for water. I also have one outlet.
I tried interFoam as well as multiphaseEulerFoam but the problem was that water enters through the two inlet.
How can I make Openfoam simulate two different phases at the inlet ?
Thanks
AOS is offline   Reply With Quote

Old   September 5, 2015, 05:33
Default
  #2
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 172
Rep Power: 4
Saideep is on a distinguished road
hi;

So, i was workin over T-junctions for some time.

If you need to have two different conditions for the inlet boundary or so you can just divide the entry faces into two different blocks so that one is independent from the other. however you can also use several external utilities like "swak4Foam" to set these typical boundary conditions but i guess splitting face into 2 different blocks is easier and straight forward.

hope this helps;
Saideep
Saideep is offline   Reply With Quote

Old   September 10, 2015, 13:05
Default
  #3
AOS
New Member
 
Alberta
Join Date: Dec 2014
Posts: 2
Rep Power: 0
AOS is on a distinguished road
hi
First of all thank you for your replay.
Actually, I using gmsh to create a mesh and I have inletOil and Inletwater what I mean I used two different inlets conditions not only because they are not the same phase but also because I have a velocity in the x-direction and the other in y-direction.
AOS is offline   Reply With Quote

Old   September 10, 2015, 13:37
Default
  #4
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 172
Rep Power: 4
Saideep is on a distinguished road
Hi,

I am not familiar with gmesh.

But with blockMesh you can still do that. Divide your inlet into two faces ans specify the velocities at the inlet.
For example: inlet1 faces{0 1 2 3}, inlet2 faces {4 5 6 7};
inlet1
{
type fixedValue;
value uniform (x 0 0);
}

inlet2
{
type fixedValue;
value uniform (0 y 0);
}
Saideep is offline   Reply With Quote

Old   September 14, 2015, 03:29
Default
  #5
New Member
 
Dominik Schmidt
Join Date: Mar 2014
Posts: 11
Rep Power: 5
dschmidt is on a distinguished road
As far as I understood, you don't need to split the inlets, cause you want to use one inlet only for water and the other one just for oil.
For that purpose, you control the phase fractions at boundaries with the "alpha"-files.

In interFoam you only have one alpha-file an switch between the phases with alpha 1/0.
https://github.com/OpenFOAM/OpenFOAM...apillaryRise/0
e.g.:
Code:
    inlet1
    {
        type            fixedValue;
        value           uniform 0;
    }
    inlet2
    {
        type            fixedValue;
        value           uniform 1;
    }

In multiphaseEulerFoam each phase has its own alpha file.
https://github.com/OpenFOAM/OpenFOAM...bubbleColumn/0

e.g.
Code:
alpha.oil...

    inlet1
    {
        type            fixedValue;
        value           uniform 0;
    }
    inlet2
    {
        type            fixedValue;
        value           uniform 1;
    }


alpha.water...

    inlet1
    {
        type            fixedValue;
        value           uniform 1;
    }
    inlet2
    {
        type            fixedValue;
        value           uniform 0;
    }

Last edited by dschmidt; September 15, 2015 at 03:10.
dschmidt is offline   Reply With Quote

Old   December 2, 2015, 03:50
Default
  #6
New Member
 
Sripadaraja
Join Date: Sep 2015
Posts: 3
Rep Power: 3
Sripadaraja is on a distinguished road
Hi Everyone,

I am New to OpenFoam. I want to perform the same kind of simulation which Alberta mentioned. I am not sure which mesh is suitable. I am getting the following error. Pls help.

paramesh@HP-WS3:~/OpenFOAM/paramesh-3.0.0/run/tutorials/incompressible/icoFoam/TJunction_gmail$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 3.0.0-8b097f6d8dd9
Exec : blockMesh
Date : Dec 02 2015
Time : 13:15:22
Host : "HP-WS3"
PID : 5841
Case : /home/paramesh/OpenFOAM/paramesh-3.0.0/run/tutorials/incompressible/icoFoam/TJunction_gmail
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1179
dlopen error : libgroovyBC.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libgroovyBC.so"
--> FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1179
dlopen error : libswakFunctionObjects.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libswakFunctionObjects.so"


--> FOAM FATAL ERROR:
Cannot open mesh description file
"/home/paramesh/OpenFOAM/paramesh-3.0.0/run/tutorials/incompressible/icoFoam/TJunction_gmail/system/blockMeshDict"


From function blockMesh
in file blockMeshApp.C at line 149.

FOAM exiting





-Sripadaraja
Sripadaraja is offline   Reply With Quote

Reply

Tags
interfoam, multiphase flow, multiphaseeulerfoam, t-junction pipe

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference in flow distribution of single phase and multiphase analysis shivasluzz CFX 0 April 22, 2015 22:54
3D multiphase micro model: mixing effect of air and water at the T junction ehsanfareed FLUENT 2 March 22, 2015 23:29
[ICEM] Blocking strategy for sharp angle junction (Pipe) Daniel_Khazaei ANSYS Meshing & Geometry 6 February 19, 2015 12:31
Low Mach Number Compressible Multiphase Flows DarrenC CFX 10 May 26, 2014 08:52
Junction Box Anil CFX 2 June 27, 2006 10:18


All times are GMT -4. The time now is 16:46.