|
[Sponsors] |
March 19, 2010, 20:38 |
Compile error in compressible VOF codes
|
#1 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
The following error shows up while recompiling OpenFOAM 1.6.x updated from the current git repository.
The error appears while compiling compressibleInterFoam, compressibleInterDyMFoam, interMixingFoam, interphaseChangeFoam and looks like: Code:
In file included from /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULES.H:130, from compressibleInterFoam.C:40: /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C: In function ‘void Foam::MULES::explicitSolve(const RhoType&, Foam::volScalarField&, const Foam::surfaceScalarField&, Foam::surfaceScalarField&, const SpType&, const SuType&, Foam::scalar, Foam::scalar) [with RhoType = Foam::oneField, SpType = Foam::DimensionedField<double, Foam::volMesh>, SuType = Foam::DimensionedField<double, Foam::volMesh>]’: alphaEqns.H:62: instantiated from here /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:109: error: ‘const class Foam::oneField’ has no member named ‘oldTime’ /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:118: error: ‘const class Foam::oneField’ has no member named ‘oldTime’ /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C: In function ‘void Foam::MULES::limiter(Foam::scalarField&, const RhoType&, const Foam::volScalarField&, const Foam::surfaceScalarField&, const Foam::surfaceScalarField&, const SpType&, const SuType&, Foam::scalar, Foam::scalar, Foam::label) [with RhoType = Foam::oneField, SpType = Foam::Field<double>, SuType = Foam::Field<double>]’: /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:84: instantiated from ‘void Foam::MULES::explicitSolve(const RhoType&, Foam::volScalarField&, const Foam::surfaceScalarField&, Foam::surfaceScalarField&, const SpType&, const SuType&, Foam::scalar, Foam::scalar) [with RhoType = Foam::oneField, SpType = Foam::DimensionedField<double, Foam::volMesh>, SuType = Foam::DimensionedField<double, Foam::volMesh>]’ alphaEqns.H:62: instantiated from here /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:459: error: ‘const class Foam::oneField’ has no member named ‘oldTime’ /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:84: instantiated from ‘void Foam::MULES::explicitSolve(const RhoType&, Foam::volScalarField&, const Foam::surfaceScalarField&, Foam::surfaceScalarField&, const SpType&, const SuType&, Foam::scalar, Foam::scalar) [with RhoType = Foam::oneField, SpType = Foam::DimensionedField<double, Foam::volMesh>, SuType = Foam::DimensionedField<double, Foam::volMesh>]’ alphaEqns.H:62: instantiated from here /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:464: error: ‘const class Foam::oneField’ has no member named ‘oldTime’ /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:84: instantiated from ‘void Foam::MULES::explicitSolve(const RhoType&, Foam::volScalarField&, const Foam::surfaceScalarField&, Foam::surfaceScalarField&, const SpType&, const SuType&, Foam::scalar, Foam::scalar) [with RhoType = Foam::oneField, SpType = Foam::DimensionedField<double, Foam::volMesh>, SuType = Foam::DimensionedField<double, Foam::volMesh>]’ alphaEqns.H:62: instantiated from here /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:471: error: ‘const class Foam::oneField’ has no member named ‘oldTime’ /home/alberto/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:475: error: ‘const class Foam::oneField’ has no member named ‘oldTime’ make: *** [Make/linux64GccDPOpt/compressibleInterFoam.o] Error 1
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
March 20, 2010, 05:19 |
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
The push of the oneField changes is now complete.
H |
|
March 20, 2010, 12:22 |
|
#3 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Thank you!
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
March 22, 2010, 15:14 |
|
#4 |
Senior Member
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17 |
Hi !
I've got a similar error when compiling finiteVolume libso with the latest git : In file included from fvMatrices/solvers/MULES/MULES.C:27: fvMatrices/solvers/MULES/MULES.H:50:31: error: geometricOneField.H: No such file or directory Any idea ? Thanks PO |
|
March 22, 2010, 17:19 |
|
#5 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
You will need to delete the lnInclude directory in finiteVolume so that it is recreated with links to the new files. You can use wcleanLnIncludeAll at the top-level if you would like to recreate all of the lnInclude directories.
H |
|
June 16, 2010, 12:38 |
|
#6 |
Member
|
I have the same problem as Alberto, but unfortunately the answer does not help. I have re built the lnInclude folders but I still get the error:
Code:
/home/kay/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:109: error: ‘const class Foam::oneField’ has no member named ‘oldTime’ /home/kay/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/MULESTemplates.C:118: error: ‘const class Foam::oneField’ has no member named ‘oldTime’ By the way, this happened from the git downloaded today [16 Jun 2010]. |
|
June 16, 2010, 15:18 |
|
#7 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
This bug was fixed almost immediately my report in the git repository. As Henry said, before recompiling, if you are updating an existing OpenFOAM 1.6.x installation, you have to run wcleanLnIncludeAll and then ./Allwmake in the main OpenFOAM-1.6.x directory.
Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
June 16, 2010, 16:35 |
|
#8 |
Member
|
Thanks Alberto. I will try to make it all clean from scratch tomorrow.
|
|
June 17, 2010, 07:31 |
|
#9 |
Member
|
Dear all
I removed all lnInclude folders using the command at .../OpenFOAM-1.6.x/ and I ran ./Allwmake. It did not solve the problem. I compared to .../OpenFOAM-1.6/ folder that I had and saw that in the latter folder, they are executable, whereas in .../OpenFOAM-1.6.x/ they are not. I still get Code:
MULESTemplates.C:109: error: ‘const class Foam::oneField’ has no member named ‘oldTime’ Edit: oneField.H is not executable either. Last edited by thekay; June 17, 2010 at 07:58. |
|
June 18, 2010, 08:55 |
|
#10 |
Member
|
To update you, in case this is of interest to anyone:
In alphaEqns.H that 1.6.x uses, it is wrong to use: Code:
oneField() Code:
MULES::explicitSolve(oneField(), alpha1, phi, phiAlpha1, Sp, Su, 1, 0); Correct in 1.6.x though should be: Code:
MULES::explicitSolve(geometricOneField(), alpha1, phi, phiAlpha1, Sp, Su, 1, 0); |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VOF taking into account COMPRESSIBLE FLOW | bohis | FLUENT | 0 | February 8, 2009 16:19 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 21:51 |
Compile C codes | chouki | FLUENT | 0 | July 28, 2008 17:14 |
VOF with air fraction compressible - literatures? | Pei-Ying Hsieh | Main CFD Forum | 1 | May 13, 2008 20:05 |
Accessing to VOF codes , such as SOLA-VOF ,...??? | asghari | Main CFD Forum | 0 | May 15, 2007 09:06 |