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

Multiphase Flow n phases

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 25, 2009, 08:50
Default
  #21
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
I also want to know.
sandy is offline   Reply With Quote

Old   January 3, 2010, 06:03
Default
  #22
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17
idrama is on a distinguished road
Hey people!

Could anybody tell me what is the purpose of the file
0/alphas!

Cheers,

Claus
idrama is offline   Reply With Quote

Old   January 13, 2010, 15:27
Default
  #23
Senior Member
 
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21
kwardle is on a distinguished road
The 0/alphas file is simply a field combining all the phases into a single field that can be plotted--for example, if you have 4 phases, the alphas field will go from 0 to 3 (it is automatically computed and will show up in time directories after 0). Over the continuous scale, 0=phase1, 1=phase2, 2=phase3, 3=phase4. The only trick here is that if you have a phase boundary between phase1 and phase4 then it will look like there is a small layer of phase2 then phase3 between 1 and 4--that's the problem with a continuous color scale. Unfortunately there is not really any other easy way to visualize the phases. If you learn of one I would be interested .
kwardle is offline   Reply With Quote

Old   May 10, 2017, 13:28
Default model for incompressible multiphase flow with phase change
  #24
New Member
 
Abbas Rahimi
Join Date: Jan 2013
Posts: 28
Rep Power: 13
AbbasRahimi is on a distinguished road
Quote:
Originally Posted by duderino View Post
Hi Henry

What does this mean? Are there any plans to do this?

Best regards duderino
Hi foamer,

I wonder if you could kindly point me to any possible models to take care of incompressible multiphase flow with cavitation?

Thank you.
AbbasRahimi is offline   Reply With Quote

Old   January 25, 2018, 05:03
Default three-phase flow
  #25
New Member
 
Lucie
Join Date: Nov 2014
Posts: 2
Rep Power: 0
Goldberry is on a distinguished road
Hi!

I'm modelling a three-phase flow (air, water and a third Newtonian fluid). The third fluid generates waves by sliding on a slope into water. I tried to use multiphaseInterFoam but I am not satisfied by the results comparing to experiment and another code. I am wondering if I set the computation right.
Are there any validation cases available? Or is someone working on a similar case using OpenFOAM?

Lucie
Goldberry is offline   Reply With Quote

Old   January 25, 2018, 06:12
Default
  #26
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 13
BlnPhoenix is on a distinguished road
Quote:
Originally Posted by Goldberry View Post
Hi!

I'm modelling a three-phase flow (air, water and a third Newtonian fluid). The third fluid generates waves by sliding on a slope into water. I tried to use multiphaseInterFoam but I am not satisfied by the results comparing to experiment and another code. I am wondering if I set the computation right.
Are there any validation cases available? Or is someone working on a similar case using OpenFOAM?

Lucie
You can use the expample cases in OpenFoam. For example DamBreak deals with 4 phases in multiphaseInterFoam..
BlnPhoenix is offline   Reply With Quote

Old   January 25, 2018, 06:22
Default
  #27
New Member
 
Lucie
Join Date: Nov 2014
Posts: 2
Rep Power: 0
Goldberry is on a distinguished road
Yes, I found these, that was my basis for my case.
Goldberry is offline   Reply With Quote

Old   March 5, 2018, 00:53
Default
  #28
Member
 
chengan.wang
Join Date: Jan 2016
Location: china
Posts: 47
Rep Power: 10
wangchengan2003 is on a distinguished road
Send a message via Skype™ to wangchengan2003
Dear Pei-Ying Hsieh,

I want to set a three-phase flow moving from left to right by using multiphaseInterfoam.

I try to use groovybc to set the boundary conditions as following:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      alpha.air;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;   

boundaryField
{
    atmosphere
    {
        type            inletOutlet;
        inletValue      uniform 1;
        value           uniform 1;
    }

/*    atmosphere
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }*/

    inlet
    {
        type            groovyBC;
        valueExpression "(pos().y>0.6) ? 1 : 0";
        value           uniform 0;
        // type            zeroGradient;
    }

    outlet
    {
        type            zeroGradient;
    }

    bottom
    {
        type            zeroGradient;
    }

    front
    {
        type            empty;
    }

    back
    {
        type            empty;
    }

    cylinder
    {
        type            zeroGradient;
    }

}


//  *************************************************************************  //
Code:
/*--------------------------------*- C++  -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      alpha.oil;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    atmosphere
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    inlet
    {
        type            groovyBC;
        valueExpression "(pos().y>0.3 && pos().y<=0.6) ? 1 : 0";
        value           uniform 0;
        //type            zeroGradient;
    }

    outlet
    {
        type            zeroGradient;
    }

    bottom
    {
        type            zeroGradient;
    }

    front
    {
        type            empty;
    }

    back
    {
        type            empty;
    }

    cylinder
    {
        type            zeroGradient;
    }
}


//  *************************************************************************  //
Code:
/*--------------------------------*- C++  -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    atmosphere
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    inlet
    {
        type            groovyBC;
        valueExpression "(pos().y<=0.3) ? 1 : 0";
        value           uniform 0;
        //type            zeroGradient;
    }

    outlet
    {
        type            zeroGradient;
    }

    bottom
    {
        type            zeroGradient;
    }

    front
    {
        type            empty;
    }

    back
    {
        type            empty;
    }

    cylinder
    {
        type            zeroGradient;
    }
}


// ************************************************************************* //
Once I run the case, the error appeared:
Code:
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::divide(Foam::Field<double>&,  Foam::UList<double> const&, Foam::UList<double>  const&) at ??:?
#4  Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField,  Foam::volMesh> > Foam::operator/<Foam::fvPatchField,  Foam::volMesh>(Foam::tmp<Foam::GeometricField<double,  Foam::fvPatchField, Foam::volMesh> > const&,  Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField,  Foam::volMesh> > const&) at ??:?
#5   Foam::multiphaseMixture::multiphaseMixture(Foam::GeometricField<Foam::Vector<double>,  Foam::fvPatchField, Foam::volMesh> const&,  Foam::GeometricField<double, Foam::fvsPatchField,  Foam::surfaceMesh> const&) at ??:?
#6  ? at ??:?
#7  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8  ? at ??:?
Floating point exception (core dumped)
But if I use
Code:
type            zeroGradient;
instead of groovybc, the case can work.

Could you give some help?

Best regards,

Chengan
wangchengan2003 is offline   Reply With Quote

Old   March 5, 2018, 19:34
Default
  #29
Member
 
chengan.wang
Join Date: Jan 2016
Location: china
Posts: 47
Rep Power: 10
wangchengan2003 is on a distinguished road
Send a message via Skype™ to wangchengan2003
Hello Lucie,
Have you solved your problem? how do you set boundary conditions for the three fluids?
Best regards,
Chengan
wangchengan2003 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
Pressure correction in two-phases flow Noel Phoenics 3 July 23, 2008 12:03
multicomponet flow vs.Homegeneous multiphase flow klarke Main CFD Forum 5 October 10, 2006 22:10
2 phases flow system in cylindrical pipe ivan FLUENT 3 February 25, 2006 11:52
two phases flow with reaction dingding CFX 6 September 17, 2001 08:46
HELP!!TWO PHASES FLOW dingding CFX 4 August 6, 2001 03:59


All times are GMT -4. The time now is 03:58.