saddy |
June 11, 2017 15:47 |
Error compiling VOF HARDT Solver on OpenFoam 2.4.0
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???
|