CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   changes of files between openfoam versions (https://www.cfd-online.com/Forums/openfoam-programming-development/162198-changes-files-between-openfoam-versions.html)

gaza November 5, 2015 13:30

changes of files between openfoam versions
 
Hi Foamers,
I have a question how to find which files were replaced in the newer versions of OpenFOAM. I mean the following situations:
I have solver which was dedicated to OF2.1.1. I try to compile this on OF2.3.0 but it needs hsCombustionThermo.H file.
But in the OF2.3.0 version there is no such a file. How can I find out how this part of
the code was replaced?

wyldckat November 13, 2015 15:26

Quick answer: Check my combo repository: https://github.com/wyldckat/OpenFOAM-combo/

You will need to git clone it first and then git checkout the "combo" branch. For example:
Code:

cd ~/OpenFOAM
git clone https://github.com/wyldckat/OpenFOAM-combo.git
cd OpenFOAM-combo
git checkout combo

Now things get a bit tricky. First we try to find out when it stopped existing:
Code:

git checkout combo-version-2.1.1
find src -name hsCombustionThermo.H
gitk --all src/thermophysicalModels/reactionThermo/combustionThermo/hsCombustionThermo/hsCombustionThermo.H

Looks like it stopped existing when OpenFOAM 2.2.0 was released.
So we checkout out the closest version and use gitk to inspect the evolution of the remaining folder:
Code:

git checkout combo-version-2.2.1
gitk src/thermophysicalModels/reactionThermo/

In the commit dated "2013-03-06", it shows that several changes were made in the file "src/thermophysicalModels/reactionThermo/Make/files".
Essentially, the file you're looking for was replaced by either a "rho" or a "psi" implementation. For more details we check the release notes on this topic: http://www.openfoam.org/version2.2.0/thermophysical.php


All times are GMT -4. The time now is 10:15.