|
[Sponsors] |
August 25, 2009, 09:50 |
|
#21 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
I also want to know.
|
|
January 3, 2010, 07:03 |
|
#22 |
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 18 |
Hey people!
Could anybody tell me what is the purpose of the file 0/alphas! Cheers, Claus |
|
January 13, 2010, 16:27 |
|
#23 |
Senior Member
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21 |
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 .
|
|
May 10, 2017, 14:28 |
model for incompressible multiphase flow with phase change
|
#24 |
New Member
Abbas Rahimi
Join Date: Jan 2013
Posts: 28
Rep Power: 13 |
||
January 25, 2018, 06:03 |
three-phase flow
|
#25 |
New Member
Lucie
Join Date: Nov 2014
Posts: 2
Rep Power: 0 |
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 |
|
January 25, 2018, 07:12 |
|
#26 | |
Senior Member
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 14 |
Quote:
|
||
January 25, 2018, 07:22 |
|
#27 |
New Member
Lucie
Join Date: Nov 2014
Posts: 2
Rep Power: 0 |
Yes, I found these, that was my basis for my case.
|
|
March 5, 2018, 01:53 |
|
#28 |
Member
|
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; } } // ************************************************************************* // 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) Code:
type zeroGradient; Could you give some help? Best regards, Chengan |
|
March 5, 2018, 20:34 |
|
#29 |
Member
|
Hello Lucie,
Have you solved your problem? how do you set boundary conditions for the three fluids? Best regards, Chengan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure correction in two-phases flow | Noel | Phoenics | 3 | July 23, 2008 13:03 |
multicomponet flow vs.Homegeneous multiphase flow | klarke | Main CFD Forum | 5 | October 10, 2006 23:10 |
2 phases flow system in cylindrical pipe | ivan | FLUENT | 3 | February 25, 2006 12:52 |
two phases flow with reaction | dingding | CFX | 6 | September 17, 2001 09:46 |
HELP!!TWO PHASES FLOW | dingding | CFX | 4 | August 6, 2001 04:59 |