View Issue Details

IDProjectCategoryView StatusLast Update
0002720OpenFOAMBugpublic2017-10-13 14:39
ReporterShorty Assigned Tohenry  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbuntuOS Version16.04
Product Versiondev 
Summary0002720: chtMultiRegionSimpleFoam - converged time step will not be saved
DescriptionHi Henry,

the steady-state cht solver does not save the converged time-step. The last line in the file chtMultiRegionSimpleFoam/checkResidualControls.H:

=========================================================================

else if (runTime.run() && resControlUsed && allRegionsConverged)
{
    Info<< "\nRegions converged after " << runTime.timeName()
        << " iterations" << endl;

    // Leave SIMPLE loop
    break;
}

=========================================================================

has to be modified (last line):

=========================================================================

lse if (runTime.run() && resControlUsed && allRegionsConverged)
{
    Info<< "\nRegions converged after " << runTime.timeName()
        << " iterations" << endl;
                                                                                
    // Save converged time step and end the run
    runTime.writeAndEnd();
}

=========================================================================


Tobi
TagschtMultiRegionSimpleFoam

Activities

henry

2017-10-13 14:05

manager   ~0008867

Same for applications/solvers/heatTransfer/chtMultiRegionFoam/checkResidualControls.H?

Shorty

2017-10-13 14:26

reporter   ~0008869

Hi Henry,

No, because we do leave the PIMPLE loop here without stopping the simulation. In the steady-state solver we leave the whole loop and stop the simulation. Thats why we have to save the last (converged) stage explicitly.

Again. This is not required in the transient one. Here the runTime.write() takes care to save the user specified time steps.

henry

2017-10-13 14:39

manager   ~0008871

Thanks Tobi.

Resolved in OpenFOAM-5.x by commit 65e6081e233698126ae8c5bf631c6df358c63b14

Resolved in OpenFOAM-dev by commit 50bedbb217fbc4c7a278838f53615e5136e0e5bd

Issue History

Date Modified Username Field Change
2017-10-10 22:52 Shorty New Issue
2017-10-10 22:52 Shorty Tag Attached: chtMultiRegionSimpleFoam
2017-10-13 14:05 henry Note Added: 0008867
2017-10-13 14:26 Shorty Note Added: 0008869
2017-10-13 14:39 henry Assigned To => henry
2017-10-13 14:39 henry Status new => resolved
2017-10-13 14:39 henry Resolution open => fixed
2017-10-13 14:39 henry Fixed in Version => 5.x
2017-10-13 14:39 henry Note Added: 0008871