The source update counter is now always initialised to zero. Previously an attempt was made to determine the current number of iterations reached so that on restart the source updates occur at the same intervals as they would have had the simulation not been stopped. The problem with this is that the sources themselves are not stored to disk, so on restart a simulation could progress for quite some time before the sources were properly initialised at the next update. Resetting the counter to zero does not give a perfect restart (i.e., as if the simulation had continued without stopping), but it does provide a stable and consistent solution sequence. Perfect restart could only be achieved with this iteration procedure by writing all the sources to disk and reading them back in again. This is considered a worse compromise due to the amount of disk space that it would require. Patch contributed by Timo Niemi, VTT.
README for OpenFOAM-dev
- About OpenFOAM
- Copyright
- Download and installation instructions
- Documentation
- Source code documentation
- OpenFOAM C++ Style Guide
- Reporting bugs in OpenFOAM
- Contacting the OpenFOAM Foundation
#
About OpenFOAM
OpenFOAM is a free, open source computational fluid dynamics (CFD) software package released by the OpenFOAM Foundation. It has a large user base across most areas of engineering and science, from both commercial and academic organisations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electromagnetics.
Copyright
OpenFOAM is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version. See the file COPYING in this directory or
http://www.gnu.org/licenses/, for a description of the GNU General Public
License terms under which you can copy the files.