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

simpleFoam stopping before specified endtime

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 12, 2016, 10:10
Default simpleFoam stopping before specified endtime
  #1
Member
 
Join Date: Apr 2016
Posts: 39
Rep Power: 2
ss32 is on a distinguished road
All tolerances are set to 1e-13, and it's converging fine, but I would like for it to run until the stop time, not stop at convergence. I have searched around quite a bit and was unable to find anything that helped.

controlDict:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     simpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         10;

deltaT          0.0005;

writeControl    timeStep;

writeInterval   5;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

functions {

    #include "forceCoeffs"
}
ss32 is offline   Reply With Quote

Old   April 12, 2016, 10:58
Default
  #2
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 136
Rep Power: 10
tas38 is on a distinguished road
In fvSolution file, within the SIMPLE solver parameters, set the residualControl values to very small numbers (eg. 1e-9). This should keep the solver running until the specified end time.
tas38 is offline   Reply With Quote

Old   April 12, 2016, 11:01
Default
  #3
Member
 
Join Date: Apr 2016
Posts: 39
Rep Power: 2
ss32 is on a distinguished road
Quote:
Originally Posted by tas38 View Post
In fvSolution file, within the SIMPLE solver parameters, set the residualControl values to very small numbers (eg. 1e-9). This should keep the solver running until the specified end time.
They're already at 1e-12, I'm guessing I should just lower them even more? Just so I know what's going on: It runs until it hits the stop time or achieves the residual condition, correct?
Code:
SIMPLE
{
    nNonOrthogonalCorrectors 0;

    residualControl
    {
        p               1e-12;
        U               1e-12;
        "(k|epsilon|omega)" 1e-12;
    }
}
ss32 is offline   Reply With Quote

Old   April 12, 2016, 11:05
Default
  #4
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 136
Rep Power: 10
tas38 is on a distinguished road
Correct.

But may I ask why it is necessary to run until a particular end time? The time really has not meaning in a simpleFoam calculation. It simply functions as a means to iterate on the solution. So running until some particular physical time really does not make sense. If this is desired, you should use pimpleFoam.
tas38 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MPI error with simpleFoam blaise OpenFOAM Running, Solving & CFD 0 November 7, 2015 15:01
simpleFoam parallel solver & Fluent polyhedral mesh Zlatko OpenFOAM Running, Solving & CFD 3 September 26, 2014 06:53
Laminar simpleFoam and inviscid simpleFoam herenger OpenFOAM Running, Solving & CFD 7 July 11, 2013 06:27
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 11 January 5, 2013 07:21
Trying to run a benchmark case with simpleFoam spsb OpenFOAM 3 February 24, 2012 10:07


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