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/)
-   -   Updating from openfoam v2.4.0 to v7 (https://www.cfd-online.com/Forums/openfoam-programming-development/227870-updating-openfoam-v2-4-0-v7.html)

saj216 June 12, 2020 12:10

Updating from openfoam v2.4.0 to v7
 
Hey guys,

I have upgraded my solver interThermalPhaseChangeFoam from v2.4.0 to v7.

I am currently having problems regarding the changes made in interfaceProperties relating to sigma in the surfacetensionmodel. In the surfacetensionforcemodel within the solver, sigma is used from interfaceProperties.

Sigma has been changed in the .C file from sigma_(dict.lookup("sigma")), to sigmaPtr_(surfaceTensionModel::New(dict, alpha1.mesh()))

Which relates to a newly developed surfacetensionmodel in the structure of the surfacetensionmodel in interfaceProperties.

See here https://github.com/OpenFOAM/OpenFOAM...ceProperties.C

https://github.com/OpenFOAM/OpenFOAM...ceProperties.C

The .H file sigma has changed from dimensionedScalar sigma_ to autoPtr<surfaceTensionModel> sigmaPtr_;

https://github.com/OpenFOAM/OpenFOAM...ceProperties.H

See here https://github.com/OpenFOAM/OpenFOAM...ceProperties.H

in my solver it is sigma is line 206 found here that is the issue https://github.com/MahdiNabil/CFD-PC...dels/SST/SST.C

The error message when compiling states that sigma is not a member of interfaceProperties in v7.

I hope I have provided enough information here. I hope someone can help me.

saj216


All times are GMT -4. The time now is 23:35.