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.

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 9, 2019, 07:07
Default non-physical Results with multiphaseEulerFoam
  #1
Member
 
Stefanie Wolf
Join Date: Nov 2018
Location: Aachen
Posts: 32
Rep Power: 7
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

 

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 17:05
Cavity Tuturial Using gmsh - results not looking quite right stonepreston OpenFOAM Running, Solving & CFD 3 June 19, 2018 17:03
Ahmed body simulation gives unexpected results in su2 6.0 anas651 SU2 0 March 28, 2018 03:42
Creating a tool to interpolate results Luis Batista OpenFOAM Running, Solving & CFD 2 April 11, 2013 08:15
Transient Run - Output "Time" in partial results? evcelica CFX 2 May 16, 2012 21:36


All times are GMT -4. The time now is 22:23.