|
[Sponsors] |
Are the Never version of OpenFOAM backwards compatible? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 140
Rep Power: 10 ![]() |
Hello FOAMERS,
So I found 2 validation cases that were built and run from older OpenFOAM versions (4 and 5 respectively). One uses SimpleFOAM and the other uses SonicFOAM. Now I have both OpenFOAM-1912 and OpenFOAMv7, however I can't seem to run either of those cases in either version. Partly because SonicFOAM doesn't exist in OpenFOAMv7 anymore (however OpenFOAM-1912 has it but won't run either). So would i have to find and download the older OpenFOAM versions? Thanks |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 341
Rep Power: 28 ![]() ![]() |
The Never-Versions will never be compatible (pardon the pun).
OpenFOAM cases are compatible, unless something with the expected input format changed (well, that's yet another non-statement). Furthermore, some solver might not be available in never versions, either because they are no longer maintained, or they have been absorbed into another solver. Sometimes the expected input-format is changed, e.g. how residual-control is specified. Such changes make it necessary to translate a case from the previous format into a current format. Note, that nothing changed except the way how the solver reads-in case-data. The beauty of OpenFOAM is, that it reads its case-data from simple text files. Text files you can read and modify using a simple text editor. If OpenFOAM's cases were stored in a binary format, there would be no way of converting a case from an older format into a newer one by simple means. E.g. sonicFoam has been absorbed into rhoPimpleFoam with the Foundation release, see the corresponding commit message. Hence, you will not be able to simply run a sonicFoam validation case. However, if you adjust the sonicFoam-case to the format expected by rhoPimpleFoam, you can then run the case again. The beauty of OpenFOAM being open source is that you can install all the various versions of OpenFOAM side by side on your system if you deem this necessary. E.g. you want to be able to continue old cases of yours without the additional work to translate the case into the new case format. I hope my ramblings are somewhat enlightening. Compatibility is generally the case. If it is not, it's mostly caused by some minor changes which can easily be accomodated. |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 140
Rep Power: 10 ![]() |
Quote:
Thank you for indulging me despite my typo on my OP. ![]() I appreciate you linking the commit message. It has helped me do some more research. So currently im adapting a 3D supersonic Case from OpenFOAM 4 to OpenFOAM 7. So far I have gotten around SurfaceFeatureExtract of stl file, blockMeshing and SnappyHexMeshing. Now the original file was set to use 8 proc, i switched it to 6 procs. Now I edited the controlDict and changed the program to rhoPimpleFoam. I also had to edit the fvSolutions from this Code:
PIMPLE { nOuterCorrectors 2; nCorrectors 1; nNonOrthogonalCorrectors 0; } Code:
PIMPLE { nOuterCorrectors 2; nCorrectors 1; nNonOrthogonalCorrectors 0; transonic yes; } Also if any admins are free, can you please change the thread title to something more relavent, Like "Modifying SonicFoam Case for OF4 to rhoPimpleFoam Case for OF7" ? If so I would be very appreciative =D |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 11:58 |
[Gmsh] gmshToFoam on openfoam windows version of OpenFOAM v1812? | SihunLee | OpenFOAM Meshing & Mesh Conversion | 0 | June 17, 2019 05:44 |
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 21, 2016 11:50 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 03:18 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 06:25 |