OpenFOAM® v1912: New and updated portability
New binary file compatibility
OpenFOAM-v1912 now handles binary reading of different precision or label sizes to support workflows with mixed compilations of OpenFOAM.
One such workflow could be the following:
- Meshing with snappyHexMesh in double precision.
- Single precision for aerodynamics (for reduced memory bandwidth)
- Further calculation with chemistry (double precision)
This is now possible with binary formatted OpenFOAM files, provided that they contain the necessary size information in their header. For example,
Note that when narrowing the data range e.g. 64-bit label width to 32-bit label width, any range overflows will be truncated.