CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   continue LES simulation after it stopped (http://www.cfd-online.com/Forums/openfoam/74206-continue-les-simulation-after-stopped.html)

holand_us March 26, 2010 10:16

continue LES simulation after it stopped
 
Hi,

Am a new OpenFOAM user

Am runing LES simulation with 10,000 time step
my problem is my walltime exceeded after 12 hours, and then I need to start from the begining,
Is there a way to continue my simulation from where it stopped

best

guillaumem March 26, 2010 10:20

hi
i usualy copy the field in the field 0 and i restart the calculation you can also modify the starttime in the controlDict file
good luck for your calculation

rieuk March 26, 2010 22:52

chenge the startTime entry in controlDict to latestTime

piprus March 27, 2010 13:02

Quote:

Originally Posted by rieuk (Post 251921)
chenge the startTime entry in controlDict to latestTime

This is not entirely true, cause it will work only in the case when startFrom keyword is set to startTime.

Normally I'm using following configuration:

Code:

startFrom      latestTime;

startTime      0;

but this means I don't really need startTime at all. It's up to you which one is better, both are working fine to me.

holand_us March 27, 2010 13:30

thanks allot ill try it on Monday and come to you guys

holand_us March 30, 2010 10:19

Hi it didnt work
when I continue the program let say after 5 hours, it write from the beginning on the probes/0/p, not continue from the last time field




HTML Code:

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

application    pisoFoam;

startFrom      latestTime;

startTime      0;

stopAt          endTime;

endTime        1e-03 ;

deltaT          1e-05;

writeControl    timeStep;

writeInterval  100;

purgeWrite      0;

writeFormat    ascii;

writePrecision  12;

writeCompression uncompressed;

timeFormat      general;

timePrecision  6;

runTimeModifiable yes;

functions
{
    probes
    {
        type            probes;
        functionObjectLibs ("libsampling.so");
        enabled        true;
        outputControl  timeStep;
        outputInterval  1;
        probeLocations
        (
            ( 0.0254 0.0253 0 )
            ( 0.0508 0.0253 0 )
            ( 0.0762 0.0253 0 )
            ( 0.1016 0.0253 0 )
            ( 0.127 0.0253 0 )
            ( 0.1524 0.0253 0 )
            ( 0.1778 0.0253 0 )
        );

        fields
        (
            p
        );
    }

    fieldAverage1
    {
        type            fieldAverage;
        functionObjectLibs ("libfieldFunctionObjects.so");
        enabled        true;
        outputControl  outputTime;
        fields
        (
            U
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }

            p
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
        );
    }
}


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


piprus March 30, 2010 10:23

Is this problem concerns only p or U either?

I have no experience with functions in OF yet, but have that feeling like it has to do something with the outputControl. Look that you are using different statements in probes and fieldAverage1.

I might be wrong, so help from other more advanced users would be here appreciated :)

holand_us April 5, 2010 10:14

mmm
I really didnt understand

But I still have the same problem

piprus April 5, 2010 10:35

Sorry, maybe I didn't make myself clear enough. I was just wondering why you're using different values in case of outputControl keyword here:

Code:

    probes
    {
        ...
        outputControl  timeStep;

and here:

Code:

    fieldAverage1
    {
        ...
        outputControl  outputTime;

Is there any specific reason for doing like that?

-----
I found something interesting >>here<<

holand_us April 5, 2010 12:52

Actually I dont know
i just copied paste the constDict from the
~/tutorials/incompressible/pisoFoam/les/pitzDaily


All times are GMT -4. The time now is 11:39.