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

OpenFoam restarting simulation, stops at first Time loop

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2019, 10:51
Default OpenFoam restarting simulation, stops at first Time loop
  #1
Member
 
Christophk
Join Date: Oct 2018
Posts: 33
Rep Power: 8
syntex is on a distinguished road
Hello,

since a short time I can't restart my simulation, it would start and stop while doing the first time loop. I didn't change the mesh, nor the source-code, I only changed the controlDict:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     simpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         10000;

deltaT          1;

writeControl    timeStep;

writeInterval   50;

purgeWrite      0;

writeFormat     ascii;

writePrecision   8;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;
}

// ************************************************************************* //
The log looks like this:
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.0                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 5.0
Exec   : simpleFoam
Date   : Apr 03 2019
Time   : 12:28:20
Host   : "linuxbsc299.rz.RWTH-Aachen.DE"
PID    : 32281
I/O    : uncollated
Case   : /rwthfs/rz/cluster/home/ck442410/OpenFoamData
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 4100


SIMPLE: convergence criteria
    field U     tolerance 0.0001
    field p     tolerance 0.001
    field "(k|epsilon|omega)"     tolerance 0.001

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model kOmegaSST
Selecting patchDistMethod meshWave
RAS
{
    RASModel        kOmegaSST;
    turbulence      on;
    printCoeffs     on;
    alphaK1         0.85;
    alphaK2         1;
    alphaOmega1     0.5;
    alphaOmega2     0.856;
    gamma1          0.55555556;
    gamma2          0.44;
    beta1           0.075;
    beta2           0.0828;
    betaStar        0.09;
    a1              0.31;
    b1              1;
    c1              10;
    F3              false;
}

No MRF models present

Creating finite volume options from "system/fvOptions"

Selecting finite volume options model type rotorDisk
    Source: disk
    - selecting cells using cellZone c0
    - selected 13440 cell(s) with volume 0.00024316376
    Selecting trimModel fixedTrim
    Constructing blade profiles:
    - creating lookup profile sect0
    - creating lookup profile sect1
    - creating lookup profile sect2
    - creating lookup profile sect3
    - creating lookup profile sect4
    - creating lookup profile sect5
    - creating lookup profile sect6
    - creating lookup profile sect7
    - creating lookup profile sect8
    - creating lookup profile sect9
    - creating lookup profile sect10
    - creating lookup profile sect11
    - creating lookup profile sect12
    - creating lookup profile sect13
    - creating lookup profile sect14
    - creating lookup profile sect15
    - creating lookup profile sect16
    - creating lookup profile sect17
    - creating lookup profile sect18
    - creating lookup profile sect19
    Rotor gometry:
    - disk diameter = 0.29408774
    - disk area     = 0.067927203
    - origin        = (0 0 0)
    - r-axis        = (0 1 0)
    - psi-axis      = (1 -0 0)
    - z-axis        = (0 0 -1)

Starting time loop

Time = 4101
Does anyone have any idea, why it wouldn't work?
syntex is offline   Reply With Quote

Old   April 3, 2019, 16:27
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
There's not rly any info here that can be debugged.


Even more weird... why is it starting at time 4100 if the startTime is 0?
LuckyTran is offline   Reply With Quote

Old   April 4, 2019, 04:20
Default
  #3
Senior Member
 
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 10
cryabroad is on a distinguished road
You need to describe the exact steps you took so people can really help you. First thing first, how did you stop the simulation? It could be simply because you changed the "stopAt" keyword to "writeNow" (to stop the simulation) and when you rerun you forgot to changed it back to a desired stopTime.
cryabroad is offline   Reply With Quote

Old   April 4, 2019, 09:50
Default
  #4
Member
 
Christophk
Join Date: Oct 2018
Posts: 33
Rep Power: 8
syntex is on a distinguished road
I'm sorry, the controlDict wasn't exactly right. at startTime there is "latestTime".

The simulation ran on a cluster to timeStep 4130. There you have to reserve time on a node. I reserved less time, than the simulation needed to converge. So it stopped after reaching the runtime limit.

I heard that it is a SIGFPE mistake, so some mathematical operation which was illegal. I figured the reason could be the write precission beine only 8.

Can that be a possible reason?
syntex is offline   Reply With Quote

Old   April 5, 2019, 12:20
Default
  #5
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
If there is a SIGFPE error we would see it in the log. If writePrecision is the culprit then just use binary instead of ascii. But I don't see the sigfpe error...

I would try to start at an earlier time or even restart it from the original 0 time to see if you get the same problem. If an earlier time doesn't work but 0 time does work, then we should look at your fvOptions and whatever else you are doing that is not part of the basic simpleFoam.


The best thing you can do is start at time 0 and use writeNow. Then try to start it again.
LuckyTran 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
p_rgh initial residual no change with different settings manuc OpenFOAM Running, Solving & CFD 3 June 26, 2018 16:53
Simulation stops at Starting time loop JMaverick93 OpenFOAM Running, Solving & CFD 3 March 18, 2018 07:08
How to export time series of variables for one point? mary mor OpenFOAM Post-Processing 8 July 19, 2017 11:54
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 08:09
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20


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