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

[OpenFOAM.org] Error compiling VOF HARDT Solver on OpenFoam 2.4.0

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2017, 16:47
Question Error compiling VOF HARDT Solver on OpenFoam 2.4.0
  #1
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 5
saddy is on a distinguished road
i am trying to install evapVOFHardt solver from wyldcat repository :
https://github.com/wyldckat/evapVOFHardt

i am installing on openfoam 2.4.0
it gave me errors:
1.
Code:
fatal error: twoPhaseMixture.H: No such file or directory
compilation terminated.
later another one
2.
Code:
evapVOFHardt.C:50:49: fatal error: alphaContactAngleFvPatchScalarField.H: No such file or directory
compilation terminated.
evapVOFHardt.dep:761: recipe for target 'Make/linux64GccDPOpt/evapVOFHardt.o' failed
make: *** [Make/linux64GccDPOpt/evapVOFHardt.o] Error 1
i resolved these errors by including suitable library src
Code:
-I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \
    -I$(LIB_SRC)/transportModels/twoPhaseProperties/lnInclude \
and resolved the above two errors but it gives me big error

Code:
hasan@hasan-Lenovo-G50-70:~/OpenFOAM/evapVOFHardt$ ./Allwmake 
make: '/home/hasan/OpenFOAM/hasan-2.4.0/platforms/linux64GccDPOpt/bin/initFieldVOFHardt' is up to date.
SOURCE=evapVOFHardt.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/incompressible/lnInclude -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/interfaceProperties/lnInclude -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseInterfaceProperties/lnInclude -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseMixture/lnInclude -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseProperties/lnInclude -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/dynamicFvMesh/lnInclude -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/dynamicMesh/lnInclude -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -IlnInclude -I. -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/evapVOFHardt.o
In file included from evapVOFHardt.C:64:0:
createFields.H: In function ‘int main(int, char**)’:
createFields.H:169:56: error: no matching function for call to ‘Foam::twoPhaseMixture::twoPhaseMixture(Foam::volVectorField&, Foam::surfaceScalarField&, const char [7])’
     twoPhaseMixture twoPhaseProperties(U, phi, "alpha1");
                                                        ^
In file included from evapVOFHardt.C:48:0:
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseMixture/lnInclude/twoPhaseMixture.H:67:9: note: candidate: Foam::twoPhaseMixture::twoPhaseMixture(const Foam::fvMesh&, const Foam::dictionary&)
         twoPhaseMixture
         ^
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseMixture/lnInclude/twoPhaseMixture.H:67:9: note:   candidate expects 2 arguments, 3 provided
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseMixture/lnInclude/twoPhaseMixture.H:49:7: note: candidate: Foam::twoPhaseMixture::twoPhaseMixture(const Foam::twoPhaseMixture&)
 class twoPhaseMixture
       ^
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/twoPhaseMixture/lnInclude/twoPhaseMixture.H:49:7: note:   candidate expects 1 argument, 3 provided
In file included from evapVOFHardt.C:64:0:
createFields.H:171:56: error: ‘class Foam::twoPhaseMixture’ has no member named ‘rho1’
     const dimensionedScalar& rho1 = twoPhaseProperties.rho1();
                                                        ^
createFields.H:172:56: error: ‘class Foam::twoPhaseMixture’ has no member named ‘rho2’
     const dimensionedScalar& rho2 = twoPhaseProperties.rho2();
                                                        ^
createFields.H:232:64: error: no matching function for call to ‘Foam::interfaceProperties::interfaceProperties(Foam::volScalarField&, Foam::volVectorField&, Foam::twoPhaseMixture&)’
     interfaceProperties interface(alpha1, U, twoPhaseProperties);
                                                                ^
In file included from evapVOFHardt.C:47:0:
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/interfaceProperties/lnInclude/interfaceProperties.H:105:9: note: candidate: Foam::interfaceProperties::interfaceProperties(const volScalarField&, const volVectorField&, const Foam::IOdictionary&)
         interfaceProperties
         ^
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/interfaceProperties/lnInclude/interfaceProperties.H:105:9: note:   no known conversion for argument 3 from ‘Foam::twoPhaseMixture’ to ‘const Foam::IOdictionary&’
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/interfaceProperties/lnInclude/interfaceProperties.H:80:9: note: candidate: Foam::interfaceProperties::interfaceProperties(const Foam::interfaceProperties&)
         interfaceProperties(const interfaceProperties&);
         ^
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/interfaceProperties/lnInclude/interfaceProperties.H:80:9: note:   candidate expects 1 argument, 3 provided
In file included from evapVOFHardt.C:64:0:
createFields.H:238:72: error: no matching function for call to ‘Foam::incompressible::turbulenceModel::New(Foam::volVectorField&, Foam::surfaceScalarField&, Foam::twoPhaseMixture&)’
         incompressible::turbulenceModel::New(U, phi, twoPhaseProperties)
                                                                        ^
In file included from evapVOFHardt.C:51:0:
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H:140:41: note: candidate: static Foam::autoPtr<Foam::incompressible::turbulenceModel> Foam::incompressible::turbulenceModel::New(const volVectorField&, const surfaceScalarField&, Foam::transportModel&, const Foam::word&)
         static autoPtr<turbulenceModel> New
                                         ^
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H:140:41: note:   no known conversion for argument 3 from ‘Foam::twoPhaseMixture’ to ‘Foam::transportModel&’
evapVOFHardt.C:114:28: error: ‘class Foam::twoPhaseMixture’ has no member named ‘correct’
         twoPhaseProperties.correct();
                            ^
In file included from evapVOFHardt.C:136:0:
UEqn.H:4:28: error: ‘class Foam::twoPhaseMixture’ has no member named ‘muf’
         twoPhaseProperties.muf()
                            ^
UEqn.H:11:28: error: ‘class Foam::twoPhaseMixture’ has no member named ‘mu’
         twoPhaseProperties.mu()
                            ^
In file included from readControls.H:2:0,
                 from evapVOFHardt.C:76:
readPISODict.H:11:10: warning: unused variable ‘transonic’ [-Wunused-variable]
     bool transonic =
          ^
readPISODict.H:14:9: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
     int nOuterCorr =
         ^
In file included from evapVOFHardt.C:62:0:
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
     const int nOuterCorr =
               ^
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readPISOControls.H:6:15: warning: unused variable ‘nCorr’ [-Wunused-variable]
     const int nCorr =
               ^
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readPISOControls.H:12:16: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
     const bool momentumPredictor =
                ^
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable]
     const bool transonic =
                ^
In file included from evapVOFHardt.C:65:0:
/home/hasan/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
 scalar maxDeltaT =
        ^
evapVOFHardt.dep:761: recipe for target 'Make/linux64GccDPOpt/evapVOFHardt.o' failed
make: *** [Make/linux64GccDPOpt/evapVOFHardt.o] Error 1
hasan@hasan-Lenovo-G50-70:~/OpenFOAM/evapVOFHardt$
can wyldcat help me to debug this error???

Last edited by wyldckat; June 25, 2017 at 13:57. Reason: Added [CODE][/CODE] markers
saddy is offline   Reply With Quote

Old   June 25, 2017, 14:54
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,943
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: You should follow the instructions that are written for OpenFOAM 2.3.x, near the bottom of the page: https://github.com/wyldckat/evapVOFHardt#openfoam-23x

I've tested them now with OpenFOAM 2.4.0 and they worked properly.
saddy likes this.
__________________
wyldckat is offline   Reply With Quote

Old   July 3, 2017, 07:12
Default thanks now its up and running
  #3
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 5
saddy is on a distinguished road
solved the problem with ease...great skills u got...amazing
saddy is offline   Reply With Quote

Reply

Tags
2.4.0, compiling, evapvofhardt, openfoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 12:50
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08
How to rewrite a standard OpenFOAM solver as a C++ class cfbaptista OpenFOAM Programming & Development 7 March 23, 2016 05:50
Can't get data from OpenFoam to external solver using externalCoupled perry OpenFOAM Running, Solving & CFD 4 May 26, 2014 09:09


All times are GMT -4. The time now is 14:47.