CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Bugs

Compile error in compressible VOF codes

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 19, 2010, 21:38
Default Compile error in compressible VOF codes
  #1
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,904
Rep Power: 27
alberto will become famous soon enoughalberto will become famous soon enough
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
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.
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   March 20, 2010, 06:19
Default
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 14
henry is on a distinguished road
The push of the oneField changes is now complete.

H
henry is offline   Reply With Quote

Old   March 20, 2010, 13:22
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,904
Rep Power: 27
alberto will become famous soon enoughalberto will become famous soon enough
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.
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   March 22, 2010, 16:14
Default
  #4
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 187
Rep Power: 9
podallaire is on a distinguished road
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
podallaire is offline   Reply With Quote

Old   March 22, 2010, 18:19
Default
  #5
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 14
henry is on a distinguished road
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
henry is offline   Reply With Quote

Old   June 16, 2010, 12:38
Default
  #6
Member
 
Costas K
Join Date: Nov 2009
Location: UK
Posts: 51
Rep Power: 8
thekay is on a distinguished road
Send a message via ICQ to thekay Send a message via MSN to thekay
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’
Does the oldTime have another name in 1.6.x or is there another problem?

By the way, this happened from the git downloaded today [16 Jun 2010].
thekay is offline   Reply With Quote

Old   June 16, 2010, 15:18
Default
  #7
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,904
Rep Power: 27
alberto will become famous soon enoughalberto will become famous soon enough
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.
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   June 16, 2010, 16:35
Default
  #8
Member
 
Costas K
Join Date: Nov 2009
Location: UK
Posts: 51
Rep Power: 8
thekay is on a distinguished road
Send a message via ICQ to thekay Send a message via MSN to thekay
Thanks Alberto. I will try to make it all clean from scratch tomorrow.
thekay is offline   Reply With Quote

Old   June 17, 2010, 07:31
Default
  #9
Member
 
Costas K
Join Date: Nov 2009
Location: UK
Posts: 51
Rep Power: 8
thekay is on a distinguished road
Send a message via ICQ to thekay Send a message via MSN to thekay
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’
The funny thing is that all solvers in multiphase compile properly but a customised one I am trying to, does not.

Edit: oneField.H is not executable either.

Last edited by thekay; June 17, 2010 at 07:58.
thekay is offline   Reply With Quote

Old   June 18, 2010, 08:55
Default
  #10
Member
 
Costas K
Join Date: Nov 2009
Location: UK
Posts: 51
Rep Power: 8
thekay is on a distinguished road
Send a message via ICQ to thekay Send a message via MSN to thekay
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()
in the line:
Code:
MULES::explicitSolve(oneField(), alpha1, phi, phiAlpha1, Sp, Su, 1, 0);
The above is correct in 1.6.

Correct in 1.6.x though should be:

Code:
MULES::explicitSolve(geometricOneField(), alpha1, phi, phiAlpha1, Sp, Su, 1, 0);
Cheers
thekay is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VOF taking into account COMPRESSIBLE FLOW bohis FLUENT 0 February 8, 2009 17:19
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22: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


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