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

query regarding deltaT in multiphaseEulerFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By kwardle
  • 2 Post By kwardle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2013, 08:15
Question query regarding deltaT in multiphaseEulerFoam
  #1
New Member
 
Join Date: Mar 2011
Posts: 10
Rep Power: 15
bigboss.abhishek is on a distinguished road
I am trying to simulate a 3 phase flow by using multiphaseEulerFoam solver. I start with deltaT = 0.001. But during long runs its value decreases. And it is never constant. My second query is that whenever i try to restart the run from t=0 , Openfoam never takes the original deltaT = 0.001 value. I am posting the snippets of my terminal window and control dict file.


Courant Number mean: 0.0570183 max: 0.49767
deltaT = 0.000768923
Time = 0.475434

MULES: Solving for alphawater
water volume fraction, min, max = 0.237401 -1.39992e-09 1
MULES: Solving for alphaoil
oil volume fraction, min, max = 0.331176 -1.28595e-11 1
MULES: Solving for alphaair
air volume fraction, min, max = 0.431422 -2.89095e-11 1
Phase-sum volume fraction, min, max = 1 0.999999 1
MULES: Solving for alphawater
water volume fraction, min, max = 0.237401 -3.13086e-09 1
MULES: Solving for alphaoil
oil volume fraction, min, max = 0.331176 -1.26736e-11 1
MULES: Solving for alphaair
air volume fraction, min, max = 0.431422 -2.9056e-11 1
Phase-sum volume fraction, min, max = 1 0.999999 1
MULES: Solving for alphawater
water volume fraction, min, max = 0.237401 -3.0326e-09 1
MULES: Solving for alphaoil
oil volume fraction, min, max = 0.331176 -1.24904e-11 1
MULES: Solving for alphaair
air volume fraction, min, max = 0.431422 -1.09878e-10 1
Phase-sum volume fraction, min, max = 1 0.999999 1
GAMG: Solving for p, Initial residual = 0.00186816, Final residual = 3.4607e-05, No Iterations 2
time step continuity errors : sum local = 2.95067e-07, global = 1.07225e-10, cumulative = -4.99832e-07
GAMG: Solving for p, Initial residual = 0.00130052, Final residual = 2.03657e-05, No Iterations 2
time step continuity errors : sum local = 1.73768e-07, global = 7.56413e-11, cumulative = -4.99757e-07
GAMGPCG: Solving for p, Initial residual = 0.000449752, Final residual = 3.46072e-08, No Iterations 5
time step continuity errors : sum local = 2.95375e-10, global = 2.05615e-11, cumulative = -4.99736e-07
ExecutionTime = 8560.98 s

i started from deltaT=0.001 but it decreased after some iterations


below is my controldict file


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

application multiphaseEulerFoam;


startTime 0;

startFrom latestTime;

stopAt endTime;

endTime 3;

deltaT 0.001;

writeControl adjustableRunTime;

writeInterval 0.2;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression uncompressed;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

adjustTimeStep yes;

maxCo 0.5;
maxAlphaCo 0.5;

maxDeltaT 1;


// ************************************************** *********************** //
bigboss.abhishek is offline   Reply With Quote

Old   August 21, 2013, 10:37
Default
  #2
Senior Member
 
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21
kwardle is on a distinguished road
In this solver and any others of the interFoam family with interfaceSharpening, the time step is by default adapted to maintain the stability criterion of the Co number. In your controlDict you have maxCo = 0.5. and adjustTimeStep = yes. While it is always a good idea to use Co-controlled time step with this type of solver (unless you know exactly what the flow is doing at all times), if you want to keep the time step from changing from your deltaT setting in controlDict, set "adjustTimeStep no;"

Alternatively, depending on how many nAlphaSubCycles you are using (fvSolutions) you could increase the value of maxCo instead to optimize the deltaT and still keep things stable. You want to keep maxCo/nAlphaSubCycles > 0.3.
Hope this helps.
-Kent
BlnPhoenix likes this.
kwardle is offline   Reply With Quote

Old   August 22, 2013, 00:08
Default query regarding deltaT in multiphaseEuler
  #3
New Member
 
Join Date: Mar 2011
Posts: 10
Rep Power: 15
bigboss.abhishek is on a distinguished road
i changed the controldict as follows

application multiphaseEulerFoam;


startTime 0;

startFrom latestTime;

stopAt endTime;

endTime 3;

deltaT 0.001;

writeControl runTime;

writeInterval 0.2;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression uncompressed;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

adjustTimeStep no;

maxCo 0.5;
maxAlphaCo 0.5;

maxDeltaT 1;


// ************************************************** *********************** //

Its working fine..... ...thanku
bigboss.abhishek is offline   Reply With Quote

Old   August 22, 2013, 00:12
Lightbulb query regarding deltaT in multiphaseEuler
  #4
New Member
 
Join Date: Mar 2011
Posts: 10
Rep Power: 15
bigboss.abhishek is on a distinguished road
whenever i try to restart the run from t=0 , Openfoam never takes the original deltaT = 0.001 value ??? i am not able to find out why it happened. Although what i do now is that i have made a separate copy of my 0 time directory. whenever i need to take a fresh run i use it and do setFields. I am still not able to figure out the problem. Few people say its a bug.
bigboss.abhishek is offline   Reply With Quote

Old   November 25, 2014, 04:43
Default
  #5
New Member
 
herman eselte
Join Date: Nov 2014
Posts: 3
Rep Power: 11
hereselte is on a distinguished road
Hello,

just remove the directory named UNIFORM from that point you will continue.

H
hereselte is offline   Reply With Quote

Old   September 24, 2015, 15:26
Default
  #6
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
Hi Kent,

For the tutorial (damBreak case) of multiphaseEulerFoam, there is a maxAlphaCo entry in the controlDict which can be used to limit interface Courant number. But, by examining the solver of mpEF (OF-2.4.0 version), I don't see the mpEF implement this function like interFoam. So, I guess that mpEF doesn't take maxAlphaCo into account. and the time step for mpEF is only controlled by maxCo. I would like to make sure whether this is true or not?
Thanks,
Ken

Quote:
Originally Posted by kwardle View Post
In this solver and any others of the interFoam family with interfaceSharpening, the time step is by default adapted to maintain the stability criterion of the Co number. In your controlDict you have maxCo = 0.5. and adjustTimeStep = yes. While it is always a good idea to use Co-controlled time step with this type of solver (unless you know exactly what the flow is doing at all times), if you want to keep the time step from changing from your deltaT setting in controlDict, set "adjustTimeStep no;"

Alternatively, depending on how many nAlphaSubCycles you are using (fvSolutions) you could increase the value of maxCo instead to optimize the deltaT and still keep things stable. You want to keep maxCo/nAlphaSubCycles > 0.3.
Hope this helps.
-Kent
kmefun is offline   Reply With Quote

Old   September 24, 2015, 15:56
Default
  #7
Senior Member
 
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21
kwardle is on a distinguished road
This is true. However, the solver is very easily modified to take advantage of the maxAlphaCo. Here are the alphaCourantNo.H and setDeltaT.H files you need to update the solver.
kmefun and Frenk_T like this.
kwardle is offline   Reply With Quote

Reply

Tags
controldict, deltat small, openfoam 2.1.1


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
how to query node coordinates? phsieh2005 OpenFOAM Post-Processing 3 November 26, 2018 20:13
interDyMFoam deltaT drops non-stop Virtual-iCFD OpenFOAM Running, Solving & CFD 5 June 12, 2015 04:30
multiphaseEulerFoam kwardle OpenFOAM 3 March 25, 2013 10:31
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 22:40
deltaT in calculation of time step continuity errors misakagan OpenFOAM Running, Solving & CFD 0 August 27, 2010 10:13


All times are GMT -4. The time now is 10:50.