Topology change occurs before the time-increment and hence the oldest time field (old-time in the case of 1st order time schemes, old-old-time in the case of 2nd-order time schemes) is not actually needed as it is replaced by the current time-field after time-increment so there is no purpose to mapping this field. However, it is necessary to keep track of the existence of the oldest-time field to ensure the correct number of old-time fields are cached for the time-scheme. This development allows fvMesh to delete the redundant oldest-time fields in such a manner that GeometricField can reinstate them correctly after time-increment which is more efficient and more reliable than attempting to map them and done previously. Additionally fvMesh movement, which occurs after time-increment, now ensure all old-time fields are up-to-date before NCC stitcher mapping so that both fields and their old-time values are mapped consistently. This removes the need for old-time field caching calls in MapGeometricFields, fvMeshAdder and fvMeshStitcher, thus simplifying the code and improving maintainability.
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.