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

non-physical Results with multiphaseEulerFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Stefanie.S.W.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2019, 08:07
Default non-physical Results with multiphaseEulerFoam
  #1
Member
 
Stefanie Wolf
Join Date: Nov 2018
Location: Aachen
Posts: 32
Rep Power: 8
Stefanie.S.W. is on a distinguished road
Hello everyone,



i have some trouble to run a simulation with

3 phases (Water Oil Air)

2 Inlets (Water Oil)

and one outlet (plus large atmosphere)

using multiphaseEulerFoam.
I build a 2D box with 2 small inlets next to large atmospheres (top) and one outlet at the bottom of the box. Also I use a finer Mesh in inlet regions (see pictures "setup" and "Mesh").

I do not understand where the physics goes wrong with my boundary conditions (see screenshot at 1 sec). at a certain point my velocities change drastically and the time steps decline.


Maybe the mistake is related to the phi.xx-therms in U.xx. Or with the outlet BC. Or it is something completely different.

Hopefully you can help me to find the mistake and/ or fix the BCs. I am grateful for your suggestions and tips!



I have a Groovy BC for U.Oil which looks like this:



Quote:
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U.oil;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
wall
{
type fixedValue;
value uniform (0 0 0);
}
atmosphere
{
type pressureInletOutletVelocity;
value $internalField;
}
outlet
{
type inletOutlet;
value $internalField;
inletValue uniform (0 0 0);
}
inlet_rain
{
type fixedValue;
value uniform (0 0 0);
}
inlet_oil
{
type groovyBC;
valueExpression "time()<179.99 ? vector( 0, -(((180-time())/180)*1), 0) : vector(0,0,0)";
value uniform (0 0 0);
}
}

Alpha.Oil respectively:

Quote:
inlet_oil
{
type groovyBC;
valueExpression "time()<180 ? 1 : 0";
value uniform 0;
phi phi.oil;
}

p and p.rgh look like this:

Quote:
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform 0;

boundaryField
{
wall
{
type zeroGradient;
}

inlet_rain
{
type fixedFluxPressure;
value uniform 0;
}

inlet_oil
{
type fixedFluxPressure;
value uniform 0;
}

outlet
{
type fixedValue;
value uniform 0;
}

atmosphere
{
type fixedValue;
value uniform 0;
}

defaultFaces
{
type empty;
}
}

I will attach the whole case.

You find "Constant" in the next comment.



This is an excerpt of the log file after the simulation "crashed"

Code:

Courant Number mean: 0.0471511 max: 0.990166
deltaT = 3.29388e-14
Time = 42.2803

MULES: Solving for alpha.water
water volume fraction, min, max = 0.000206908 -4.27083e-16 1
MULES: Solving for alpha.oil
oil volume fraction, min, max = 0.00279786 -2.04073e-18 1
MULES: Solving for alpha.air
air volume fraction, min, max = 0.996995 0 1
Phase-sum volume fraction, min, max = 1 1 1.06134
MULES: Solving for alpha.water
water volume fraction, min, max = 0.000206888 -4.27731e-16 1
MULES: Solving for alpha.oil
oil volume fraction, min, max = 0.00279779 -1.97791e-18 1
MULES: Solving for alpha.air
air volume fraction, min, max = 0.996995 0 1
Phase-sum volume fraction, min, max = 1 0.999998 1.06134
MULES: Solving for alpha.water
water volume fraction, min, max = 0.000206869 -4.28377e-16 1
MULES: Solving for alpha.oil
oil volume fraction, min, max = 0.00279773 -1.91774e-18 1
MULES: Solving for alpha.air
air volume fraction, min, max = 0.996995 0 1
Phase-sum volume fraction, min, max = 1 0.999996 1.06134
Thank you for your time and help!
Attached Images
File Type: png Mesh.png (124.6 KB, 16 views)
File Type: png Sek1Water.png (24.7 KB, 18 views)
File Type: png Setup.png (40.2 KB, 20 views)
Attached Files
File Type: zip system.zip (6.5 KB, 5 views)
File Type: zip 0.org.zip (6.1 KB, 3 views)
Stefanie.S.W. is offline   Reply With Quote

Old   April 9, 2019, 08:12
Default
  #2
Member
 
Stefanie Wolf
Join Date: Nov 2018
Location: Aachen
Posts: 32
Rep Power: 8
Stefanie.S.W. is on a distinguished road
Hello everyone,



here is the rest of the case.
I divided "Constant" into properties and blockMesh.



Kind regards,
Stefanie
Attached Files
File Type: zip g_turb_transp.zip (1.9 KB, 1 views)
File Type: txt blockMeshDict.txt (4.9 KB, 4 views)
Stefanie.S.W. is offline   Reply With Quote

Old   April 9, 2019, 12:56
Default
  #3
Member
 
Stefanie Wolf
Join Date: Nov 2018
Location: Aachen
Posts: 32
Rep Power: 8
Stefanie.S.W. is on a distinguished road
Update:



I went back to the BubbleColumn tutorial and compared BCs.
Also I changed the atmosphere in p_rgh.
Now Oil has the aimed behavior, but water outflow is blocked.


U.air

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U.air;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    wall
    {
        type               fixedValue;
        value              uniform (0 0 0);
    }
    atmosphere
    {
        type               pressureInletOutletVelocity;
        phi                phi.air;
        value              $internalField;
    }
    outlet
    {
        type               pressureInletOutletVelocity;
        phi                phi.air;
        value              $internalField;
    }
    inlet_rain
     {
        type               fixedValue;
        value              uniform (0 0 0);
     }
    inlet_oil
     {
        type               fixedValue;
        value              uniform (0 0 0);
     }

}
U.water
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{  
    wall
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    atmosphere
    {
        type               pressureInletOutletVelocity;
        value              $internalField;
    }
    outlet
    {
        type               pressureInletOutletVelocity;
        value              $internalField;
        phi                phi.water;
   
    }
    inlet_rain
     {
        type                  fixedValue; 
        value                 uniform (0 -0.5 0);
        phi                   phi.water;
     }
    inlet_oil
     {
        type                  fixedValue; 
        value                 uniform (0 0 0);
     }
}
U.oil
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U.oil;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    wall
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    atmosphere
    {
        type               pressureInletOutletVelocity;
        value              $internalField;
    }
    outlet
   {
        type               pressureInletOutletVelocity;
        value              $internalField;
        phi                phi.oil;
    }
    inlet_rain
     {
        type            fixedValue;
        value           uniform (0 0 0);
     }
    inlet_oil
     {
        type            groovyBC;
        valueExpression "time()<179.99 ? vector( 0, -(((180-time())/180)*1), 0) : vector(0,0,0)";
        value           uniform (0 0 0);
        phi             phi.oil;
     }
}
p_rgh
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 0;

boundaryField
{
    wall
    {
        type            fixedFluxPressure;
        value           $internalField;
    }

    inlet_rain
    {
        type            fixedFluxPressure;
        value           $internalField;
    }

    inlet_oil
    {
        type            fixedFluxPressure;
        value           $internalField;
    }

    outlet
    {
        type            fixedValue;
        value           $internalField;
    }

    atmosphere
    {
        type            totalPressure;
        p0              uniform 0;
        U               U;
        phi             phi;
        rho             rho;
        psi             none;
        gamma           1;
        value           uniform 0;
    }

    defaultFaces
    {
        type            empty;
    }
}
p
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 0;

boundaryField
{
    wall
    {
        type            fixedFluxPressure;
        value           $internalField;
    }

    inlet_rain
    {
        type            fixedFluxPressure;
        value           $internalField;
    }

    inlet_oil
    {
        type            fixedFluxPressure;
        value           $internalField;
    }

    outlet
    {
        type            fixedValue;
        value           $internalField;
    }

    atmosphere
    {
        type            fixedValue;
        value           $internalField;
    }

    defaultFaces
    {
        type            empty;
    }
}
I will attach pictures from p and p_rgh. Something seems wrong there, but I can not figure it out. Do you have an idea or a hint?
Do you need any other images or information?

Thank you for your help!
Stefanie
Attached Images
File Type: png p_rgh_sek1.35.png (11.3 KB, 6 views)
File Type: png p_sek1.35.png (11.0 KB, 5 views)
Stefanie.S.W. is offline   Reply With Quote

Old   April 10, 2019, 09:12
Default
  #4
Member
 
Stefanie Wolf
Join Date: Nov 2018
Location: Aachen
Posts: 32
Rep Power: 8
Stefanie.S.W. is on a distinguished road
Update 2:

I transferred the pressure BCs from a twoPhseEulerFoam Case provided by Tonnykz (twoPhaseEulerFoam convergence problem) to my case and carefully applied different phis to inlets and outlets. It seems like I fixed the BCs, since the pressure distribution makes more sense now. Also it seems like I have a freestream outlet and unaffected inlets (Pictures attached, after 44 sek).

Attached you find the 0-Directory if you are interested in the exact BC-set up.
Attached Images
File Type: png P_44sek.png (13.1 KB, 18 views)
File Type: png P_rgh_44Sek.png (13.8 KB, 15 views)
Attached Files
File Type: zip 0.org.zip (6.1 KB, 14 views)
masimasiqi and ofllllv like this.
Stefanie.S.W. is offline   Reply With Quote

Reply

Tags
boundaries, multiphase, multiphaseeulerfoam, outlet bc


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
Simplefoam converges to a completely different solution than physical model. MIchael_P OpenFOAM Running, Solving & CFD 5 July 25, 2018 18:05
Cavity Tuturial Using gmsh - results not looking quite right stonepreston OpenFOAM Running, Solving & CFD 3 June 19, 2018 18:03
Ahmed body simulation gives unexpected results in su2 6.0 anas651 SU2 0 March 28, 2018 04:42
Creating a tool to interpolate results Luis Batista OpenFOAM Running, Solving & CFD 2 April 11, 2013 09:15
Transient Run - Output "Time" in partial results? evcelica CFX 2 May 16, 2012 22:36


All times are GMT -4. The time now is 21:25.