|
[Sponsors] | |||||
[waves2Foam] Difficulty in compiling wave2foam on openfoam3.0.0 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 14 ![]() |
When I try to compile waves2Foam on Openfoan3.0.0 platform I get following error,
Code:
Making dependency list for source file waveDyMFoam.C could not open file relaxationZone.H for source file waveDyMFoam.C due to No such file or directory could not open file readWaveProperties.H for source file waveDyMFoam.C due to No such file or directory g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/opt/openfoam30/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam30/src/transportModels -I/opt/openfoam30/src/transportModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam30/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam30/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -I/opt/openfoam30/src/dynamicMesh/lnInclude -I/opt/openfoam30/src/dynamicFvMesh/lnInclude -I./../../../../../src/waves2Foam/lnInclude -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/fvOptions/lnInclude -I/opt/openfoam30/src/sampling/lnInclude -L/home/manoj/OpenFOAM/manoj-3.0.0/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c waveDyMFoam.C -o Make/linux64GccDPInt32Opt/waveDyMFoam.o waveDyMFoam.C:50:28: fatal error: relaxationZone.H: No such file or directory compilation terminated. /opt/openfoam30/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/waveDyMFoam.o' failed make: *** [Make/linux64GccDPInt32Opt/waveDyMFoam.o] Error 1 Code:
EXE_INC = \ -I.. \ -I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/lnInclude \ -I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \ -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \ -I$(LIB_SRC)/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/dynamicMesh/lnInclude \ -I$(LIB_SRC)/dynamicFvMesh/lnInclude \ -I./../../../../../src/waves2Foam/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/fvOptions/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude EXE_LIBS = \ -limmiscibleIncompressibleTwoPhaseMixture \ -lincompressibleTurbulenceModel \ -lincompressibleRASModels \ -lincompressibleLESModels \ -lfiniteVolume \ -ldynamicMesh \ -ldynamicFvMesh \ -ltopoChangerFvMesh \ -lmeshTools \ -lfvOptions \ -lsampling \ -L$(FOAM_USER_LIBBIN) \ -lwaves2Foam Regards, Manoj |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Muhammad Nouman Khalid
Join Date: Mar 2016
Posts: 6
Rep Power: 11 ![]() |
Hi Manoj,
it's because waves2Foam is not compatible with OpenFoam 3.0. You should downgrade your version of OpenFOAM to 2.4 or lower if you want to compile waves2Foam with it. Khalid |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 38 ![]() ![]() |
Hallo Manoj and Khalid,
waves2Foam does compile with OF3.0! The problem is the include statements due to ill-defined paths in Make/options. Please use waveFoam as inspiration for prober definition of the options file. Warning: you have likely used the instructions on the Wiki, but it is clearly stated that they are outdated (in the detail), so also see modifications in waveFoam to get a correct version of waveDyMFoam. Kind regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
|
|
|
|
|
|
|
#4 | |
|
Member
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 14 ![]() |
Quote:
I have included missing header files individually. Now I am getting following error waveDyMFoam.C:130:43: error: ‘ghRef’ was not declared in this scope gh = (g & mesh.C()) - ghRef; Code:
Making dependency list for source file waveDyMFoam.C
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/opt/openfoam30/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam30/src/transportModels -I/opt/openfoam30/src/transportModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam30/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam30/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -I/opt/openfoam30/src/dynamicMesh/lnInclude -I/opt/openfoam30/src/dynamicFvMesh/lnInclude -I/home/manoj/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam -I/home/manoj/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/include -I/home/manoj/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/lnInclude -I/home/manoj/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/convexPolyhedral -I/home/manoj/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/relaxationZone -I/home/manoj/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/relaxationZone/numericalBeach -I/home/manoj/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/waveTheories/waveTheory -I/home/manoj/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/relaxationZone/relaxationShape -I/home/manoj/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/relaxationZone/relaxationWeight -I/home/manoj/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/relaxationZone/relaxationScheme -I/opt/openfoam30/src/fvOptions/lnInclude -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/sampling/lnInclude -DOFVERSION=300 -DEXTBRANCH=0 -DXVERSION= -I/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -L/home/manoj/OpenFOAM/manoj-3.0.0/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c waveDyMFoam.C -o Make/linux64GccDPInt32Opt/waveDyMFoam.o
waveDyMFoam.C: In function ‘int main(int, char**)’:
waveDyMFoam.C:130:43: error: ‘ghRef’ was not declared in this scope
gh = (g & mesh.C()) - ghRef;
^
/opt/openfoam30/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/waveDyMFoam.o' failed
make: *** [Make/linux64GccDPInt32Opt/waveDyMFoam.o] Error 1
Code:
EXE_INC = \
-I.. \
-I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/dynamicMesh/lnInclude \
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
-I$(HOME)/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam \
-I$(HOME)/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/include \
-I$(HOME)/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/lnInclude \
-I$(HOME)/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/convexPolyhedral \
-I$(HOME)/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/relaxationZone \
-I$(HOME)/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/relaxationZone/numericalBeach \
-I$(HOME)/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/waveTheories/waveTheory \
-I$(HOME)/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/relaxationZone/relaxationShape \
-I$(HOME)/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/relaxationZone/relaxationWeight \
-I$(HOME)/OpenFOAM/manoj-3.0.0/applications/solvers/waves2Foam/src/waves2Foam/relaxationZone/relaxationScheme \
-I$(LIB_SRC)/fvOptions/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-DOFVERSION=300 \
-DEXTBRANCH=0 \
-DXVERSION=$(WAVES_XVERSION) \
-I$(WAVES_SRC)/waves2Foam/lnInclude \
-I$(WAVES_SRC)/waves2FoamSampling/lnInclude \
-I$(WAVES_GSL_INCLUDE) \
-L$(FOAM_USER_LIBBIN) \
-lwaves2Foam
EXE_LIBS = \
-limmiscibleIncompressibleTwoPhaseMixture \
-lturbulenceModels \
-lincompressibleTurbulenceModels \
-lfiniteVolume \
-lfvOptions \
-lmeshTools \
-lsampling \
-L$(WAVES_LIBBIN) \
-lwaves2Foam \
-lwaves2FoamSampling \
-L$(WAVES_GSL_LIB) \
-lgsl \
-lgslcblas
Regards, Manoj |
||
|
|
|
||
|
|
|
#5 |
|
Member
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 14 ![]() |
Hi, where is ghRef defined? If anyone can let me know..
Regards, Manoj |
|
|
|
|
|
|
|
|
#6 |
|
Member
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 14 ![]() |
Hi,
I am new to compiling codes. I found that ghRef is defined in gh.H . After including this in my code, I am now getting following error. Code:
In file included from waveDyMFoam.C:69:0:
../createFields.H: In function ‘int main(int, char**)’:
../createFields.H:83:18: error: redeclaration of ‘Foam::volScalarField gh’
volScalarField gh("gh", g & (mesh.C() - referencePoint));
^
In file included from waveDyMFoam.C:63:0:
/opt/openfoam30/src/finiteVolume/lnInclude/gh.H:8:20: note: ‘Foam::volScalarField gh’ previously declared here
volScalarField gh("gh", (g & mesh.C()) - ghRef);
^
In file included from waveDyMFoam.C:69:0:
../createFields.H:84:23: error: redeclaration of ‘Foam::surfaceScalarField ghf’
surfaceScalarField ghf("ghf", g & (mesh.Cf() - referencePoint));
^
In file included from waveDyMFoam.C:63:0:
/opt/openfoam30/src/finiteVolume/lnInclude/gh.H:9:24: note: ‘Foam::surfaceScalarField ghf’ previously declared here
surfaceScalarField ghf("ghf", (g & mesh.Cf()) - ghRef);
Regards, Manoj |
|
|
|
|
|
|
|
|
#7 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 38 ![]() ![]() |
Hallo Manoj,
You are defining the gravitational fields twice in createFields.H. Furthermore, since OF3.0, a reference level has been introduced in the standard solvers. You will have to decide on which definition of the reference level you want, i.e. the reference level from OF3.0 or the reference level from waves2Foam. Kind regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
|
|
|
|
|
|
|
#8 |
|
Member
Mona
Join Date: Mar 2016
Location: Berlin
Posts: 49
Rep Power: 11 ![]() |
Hey Manoj,
I am trying to do the same as you. I was wondering if you have any new achievements with the compilation and can maybe share how you did it finally. Thank you! Mona |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [OpenFOAM.org] Compiling OpenFOAM 5.0 on the Titan Supercomputer | wildfire230 | OpenFOAM Installation | 20 | May 6, 2020 08:30 |
| [OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi | foamer123 | OpenFOAM Installation | 9 | August 20, 2015 15:03 |
| Compiling difficulty for dynamicTopoFvMesh-port2.2.x in openfoam220 | Detian Liu | OpenFOAM Installation | 4 | January 13, 2014 17:11 |
| difficulty with paraview compiling | linch | OpenFOAM Installation | 10 | October 14, 2010 08:28 |
| Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 06:40 |