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

simpleFoam stopping before specified endtime

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2016, 11:10
Default simpleFoam stopping before specified endtime
  #1
Member
 
Join Date: Apr 2016
Posts: 39
Rep Power: 10
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, 11:58
Default
  #2
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19
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, 12:01
Default
  #3
Member
 
Join Date: Apr 2016
Posts: 39
Rep Power: 10
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, 12:05
Default
  #4
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19
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


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
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 16:26
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 07:53
Laminar simpleFoam and inviscid simpleFoam herenger OpenFOAM Running, Solving & CFD 7 July 11, 2013 07:27
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 22:07.