|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Dear Co-Foamers,
It is my sincere pleasure finally to be able to announce the release of my wave generation and absorption toolbox (waves2Foam). It has been released through the OpenFoam-Extend SVN on SourceForge. All relevant information is available on the following Wiki including download and installation instructions: http://openfoamwiki.net/index.php/Contrib/waves2Foam The Wiki also contains discussions on (i) future work, (ii) to-do's, and (iii) general use. Please do not hesitate to alter the Wiki, if some informations are ambiguous or completely missing. I sincerely hope that you will find the work relevant and that you will be so kind as to make proper referencing to our journal article, on which details can also be found on the Wiki. Kind regards, Niels |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 27
Blog Entries: 1
Rep Power: 3 ![]() |
Dear Niels,
Thanks so much for providing such a wonderful tool. I am doing some calculations of hydrodynamics around ocean structures, so wave2Foam is really a great toolbox for me. I am trying to install it at FOAM_USER_APPBIN. But after changing all the files-files (for instance, EXE = $(FOAM_USER_APPBIN)/wave2Foam), I got the following error. Code:
SOURCE=relaxationZone/numericalBeach/numericalBeach.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=171 -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/usr/local/include -I/usr/include -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/numericalBeach.o
SOURCE=relaxationZone/numericalBeach/newNumericalBeach.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=171 -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/usr/local/include -I/usr/include -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/newNumericalBeach.o
SOURCE=relaxationZone/numericalBeach/empty/numericalBeachEmpty.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=171 -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/usr/local/include -I/usr/include -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/numericalBeachEmpty.o
SOURCE=relaxationZone/relaxationZone.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=171 -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/usr/local/include -I/usr/include -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/relaxationZone.o
'/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/libwaves2Foam.so' is up to date.
make[1]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/solvers/solvers/waveFoam'
SOURCE=waveFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/transportModels -I/opt/openfoam171/src/transportModels/incompressible/lnInclude -I/opt/openfoam171/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam171/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=16 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveFoam.o
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nCorr’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:8:10: warning: unused variable ‘momentumPredictor’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/transportModels -I/opt/openfoam171/src/transportModels/incompressible/lnInclude -I/opt/openfoam171/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam171/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=16 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/waveFoam.o -L/opt/openfoam171/lib/linux64GccDPOpt \
-linterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lwaves2Foam -lOpenFOAM -liberty -ldl -lm -o /home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/waveFoam
/opt/openfoam171/lib/linux64GccDPOpt/libinterfaceProperties.so: undefined reference to `typeinfo for Foam::alphaContactAngleFvPatchScalarField'
collect2: ld returned 1 exit status
make[1]: *** [/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/waveFoam] Error 1
make[1]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/solvers/solvers/waveFoam'
make: *** [waveFoam] Error 2
make: Target `application' not remade because of errors.
make[1]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/misc'
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/misc/matlab'
make[2]: Nothing to be done for `application'.
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/misc/matlab'
make[1]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/misc'
make[1]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing'
options:6:12: warning: backslash-newline at end of file
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
SOURCE=relaxationZoneLayout.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=171 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/relaxationZoneLayout.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=171 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/relaxationZoneLayout.o -L/opt/openfoam171/lib/linux64GccDPOpt \
-lfiniteVolume -lwaves2Foam -lOpenFOAM -liberty -ldl -lm -o /home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/relaxationZoneLayout
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveField'
SOURCE=setWaveField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=171 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/setWaveField.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=171 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/setWaveField.o -L/opt/openfoam171/lib/linux64GccDPOpt \
-lfiniteVolume -lwaves2Foam -lOpenFOAM -liberty -ldl -lm -o /home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/setWaveField
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveField'
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
SOURCE=setWaveParameters.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=171 -I/opt/openfoam171/src/finiteVolume/lnInclude -I./../../../../src/lnInclude -I./../../../../src/lnInclude -I/usr/local/include -I/include -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/setWaveParameters.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=171 -I/opt/openfoam171/src/finiteVolume/lnInclude -I./../../../../src/lnInclude -I./../../../../src/lnInclude -I/usr/local/include -I/include -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/setWaveParameters.o -L/opt/openfoam171/lib/linux64GccDPOpt \
-lfiniteVolume -lgsl -lgslcblas -lwaves2Foam -lOpenFOAM -liberty -ldl -lm -o /home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/setWaveParameters
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
make[1]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing'
Kind regards, Albert |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Hi Albert
Thanks a lot for the kind comments. I have just tried making a local compilation, and I did not experience any problems. What I can note from your installation is: 1. To preserve consistency you should do LIB=$(FOAM_USER_LIBBIN)/libwaves2Foam and not $(FOAM_USER_APPBIN) as it appears from your log-file. If you have a problem compiling the code, then it is because you have not created the directory /home/tfuwa/OpenFOAM/tfuwa-1.7.1/lib 2. From the log, it seems that all of the utilities are compiled correctly (can you verify that, i.e. by running them?) Only the solver, waveFoam, is not compiled correctly and it is due to a problem with libinterfaceProperties, which is natively OpenFOAM. To narrow down the problem, could you try to compile interFoam in your USER directory. Kind regards, Niels |
|
|
|
|
|
|
|
|
#4 |
|
New Member
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 27
Blog Entries: 1
Rep Power: 3 ![]() |
Hi Niels,
Thanks very much for your quick reply and your time considering this error. 1, I made the change as you suggested LIB=$(FOAM_USER_LIBBIN)/libwaves2Foam . While I can compile, the error consists. But yes, you are right that utilities(setWaveParameters, setWaveFields) are compiled successfully and can be run. Code:
tfuwa@tfuwa:~/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam$ ./Allwmake
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file convexPolyhedral/convexPolyhedral.C
....
Making dependency list for source file relaxationZone/relaxationZone.C
SOURCE=convexPolyhedral/convexPolyhedral.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=171 -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/usr/local/include -I/usr/include -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/convexPolyhedral.o
....
SOURCE=relaxationZone/relaxationZone.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=171 -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/usr/local/include -I/usr/include -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/relaxationZone.o
'/home/tfuwa/OpenFOAM/tfuwa-1.7.1/lib/linux64GccDPOpt/libwaves2Foam.so' is up to date.
Making dependency list for source file waveFoam.C
make[1]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/solvers/solvers/waveFoam'
SOURCE=waveFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/transportModels -I/opt/openfoam171/src/transportModels/incompressible/lnInclude -I/opt/openfoam171/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam171/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=16 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveFoam.o
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nCorr’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:8:10: warning: unused variable ‘momentumPredictor’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/transportModels -I/opt/openfoam171/src/transportModels/incompressible/lnInclude -I/opt/openfoam171/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam171/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=16 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/waveFoam.o -L/opt/openfoam171/lib/linux64GccDPOpt \
-linterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -L/home/tfuwa/OpenFOAM/tfuwa-1.7.1/lib/linux64GccDPOpt -lwaves2Foam -lOpenFOAM -liberty -ldl -lm -o /home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/waveFoam
/opt/openfoam171/lib/linux64GccDPOpt/libinterfaceProperties.so: undefined reference to `typeinfo for Foam::alphaContactAngleFvPatchScalarField'
collect2: ld returned 1 exit status
make[1]: *** [/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/waveFoam] Error 1
make[1]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/solvers/solvers/waveFoam'
make: *** [waveFoam] Error 2
make: Target `application' not remade because of errors.
make[1]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/misc'
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/misc/matlab'
make[2]: Nothing to be done for `application'.
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/misc/matlab'
make[1]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/misc'
make[1]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing'
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
Making dependency list for source file relaxationZoneLayout.C
could not open file readEnvironmentalProperties.H for source file relaxationZoneLayout.C
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
SOURCE=relaxationZoneLayout.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=171 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/relaxationZoneLayout.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=171 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/relaxationZoneLayout.o -L/opt/openfoam171/lib/linux64GccDPOpt \
-lfiniteVolume -L/home/tfuwa/OpenFOAM/tfuwa-1.7.1/lib/linux64GccDPOpt -lwaves2Foam -lOpenFOAM -liberty -ldl -lm -o /home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/relaxationZoneLayout
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveField'
Making dependency list for source file setWaveField.C
could not open file readEnvironmentalProperties.H for source file setWaveField.C
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveField'
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveField'
SOURCE=setWaveField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=171 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/setWaveField.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -DOFVERSION=171 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/setWaveField.o -L/opt/openfoam171/lib/linux64GccDPOpt \
-lfiniteVolume -L/home/tfuwa/OpenFOAM/tfuwa-1.7.1/lib/linux64GccDPOpt -lwaves2Foam -lOpenFOAM -liberty -ldl -lm -o /home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/setWaveField
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveField'
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
Making dependency list for source file setWaveParameters.C
could not open file readEnvironmentalProperties.H for source file setWaveParameters.C
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
make[2]: Entering directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
SOURCE=setWaveParameters.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=171 -I/opt/openfoam171/src/finiteVolume/lnInclude -I./../../../../src/lnInclude -I./../../../../src/lnInclude -I/usr/local/include -I/include -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/setWaveParameters.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=171 -I/opt/openfoam171/src/finiteVolume/lnInclude -I./../../../../src/lnInclude -I./../../../../src/lnInclude -I/usr/local/include -I/include -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/setWaveParameters.o -L/opt/openfoam171/lib/linux64GccDPOpt \
-lfiniteVolume -lgsl -lgslcblas -L/home/tfuwa/OpenFOAM/tfuwa-1.7.1/lib/linux64GccDPOpt -lwaves2Foam -lOpenFOAM -liberty -ldl -lm -o /home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/setWaveParameters
make[2]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
Code:
tfuwa@tfuwa:~/OpenFOAM/tfuwa-1.7.1/applications/interFoamTestCompile$ ./Allwmake
+ wmake
Making dependency list for source file interFoamTestCompile.C
SOURCE=interFoamTestCompile.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/transportModels -I/opt/openfoam171/src/transportModels/incompressible/lnInclude -I/opt/openfoam171/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam171/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam171/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/interFoamTestCompile.o
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nCorr’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:8:10: warning: unused variable ‘momentumPredictor’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/transportModels -I/opt/openfoam171/src/transportModels/incompressible/lnInclude -I/opt/openfoam171/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam171/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam171/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/interFoamTestCompile.o -L/opt/openfoam171/lib/linux64GccDPOpt \
-ltwoPhaseInterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/bin/linux64GccDPOpt/interFoamTestCompile
make[1]: Leaving directory `/home/tfuwa/OpenFOAM/tfuwa-1.7.1/applications/waves2Foam/applications/utilities/preProcessing'
Code:
'/opt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libwaves2Foam.so' is up to date.
Making dependency list for source file waveFoam.C
make[1]: Entering directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/solvers/solvers/waveFoam'
$SOURCE -o Make/linux64GccDPOpt/waveFoam.o
/opt/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
....
/opt/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/transportModels -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/transportModels/incompressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/transportModels/interfaceProperties/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/turbulenceModels/incompressible/turbulenceModel -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -DOFVERSION=16 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/waveFoam.o -L/opt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt \
-linterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lwaves2Foam -lOpenFOAM -ldl -lm -o /opt/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/waveFoam
/opt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libinterfaceProperties.so: undefined reference to `typeinfo for Foam::alphaContactAngleFvPatchScalarField'
collect2: ld returned 1 exit status
make[1]: *** [/opt/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/waveFoam] Error 1
make[1]: Leaving directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/solvers/solvers/waveFoam'
make: *** [waveFoam] Error 2
make: Target `application' not remade because of errors.
make[1]: Entering directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/utilities/misc'
make[2]: Entering directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/utilities/misc/matlab'
make[2]: Nothing to be done for `application'.
make[2]: Leaving directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/utilities/misc/matlab'
make[1]: Leaving directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/utilities/misc'
make[1]: Entering directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/utilities/preProcessing'
options:6:12: warning: backslash-newline at end of file
make[2]: Entering directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
Making dependency list for source file relaxationZoneLayout.C
could not open file readEnvironmentalProperties.H for source file relaxationZoneLayout.C
make[2]: Leaving directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
.....
SOURCE=setWaveParameters.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=17 -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -I./../../../../src/lnInclude -I./../../../../src/lnInclude -I/usr/local/include -I/include -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/setWaveParameters.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -DOFVERSION=17 -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -I./../../../../src/lnInclude -I./../../../../src/lnInclude -I/usr/local/include -I/include -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/setWaveParameters.o -L/opt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt \
-lfiniteVolume -lgsl -lgslcblas -lwaves2Foam -lOpenFOAM -ldl -lm -o /opt/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/setWaveParameters
make[2]: Leaving directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
make[1]: Leaving directory `/opt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/waves2Foam/applications/utilities/preProcessing
. I include the complete installing log below. Please let me know if more information is needed to find the reason (forgive me as I do not know what are necessary messages to narrow the problem). Thanks again for your help.Kind regards, Albert Last edited by tfuwa; November 17, 2011 at 05:38. Reason: Sorry for the misspelling your name, Niels. |
|
|
|
|
|
|
|
|
#5 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Hi
I suspect that it might be a problem with the solver-source. I have based it on OF-1.6-ext, however, I have never myself compiled it on 1.7.1, but one of my former colleagues did. Maybe he did not use my waveFoam but instead modified the interFoam distributed along with 1.7.1. Therefore: Do a Code:
grep "relaxing\|relaxationZone" *C *H Kind regards, Niels |
|
|
|
|
|
|
|
|
#6 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Hi Albert
I have been talking with my colleagues, and he did indeed base the solver on 1.7.1. material. I will make an update tonight or tomorrow. Unfortunately, I do not have an active 1.7-compilation on this computer. Please accept my apologies for promising 1.7-compatibility. - Niels |
|
|
|
|
|
|
|
|
#7 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Good evening to you all,
The repository has been updated with a 1.7.1 compatible solver, the Allwmake script has been slightly modified, and the tutorials have been modified to accommodate to the name change of the pressure. Kind regards, Niels |
|
|
|
|
|
|
|
|
#8 |
|
New Member
Jordi Muela
Join Date: Mar 2011
Posts: 26
Rep Power: 4 ![]() |
Hi all,
I was having the same compilation error that Albert, and i've found the solution to the problem. If i'm not wrong, you should have installed the OF 1.7.1 Ubuntu (or suse) Pack installed with sudo apt-get ... like i had, and there's the problem, there is some error in the compilated installable pack, because i've downloaded the source pack and compiled it, and then i've compiled wave2foam without any problem! (well, i modified the Make files for install the solver in my USER path...). So try to download and compile a new OF1.7.1, and then compile wave2foam. Hope it works! I also like to congratulate Niels for develop this great tool! Thanks! Jordi. |
|
|
|
|
|
|
|
|
#9 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Thanks for noting the difference
I hope you can benefit from my work!- Niels |
|
|
|
|
|
|
|
|
#10 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Dear all,
There has been some problems using waves2Foam on more recents versions of OF (> 1.7.1), since they changed from Code:
mathematicalConstant::pi Code:
constant::mathematical::pi Code:
PI_(4.0 * atan(1.0) ) Furthermore, since I myself is not running 2.0+ versions, I have added a 9 short step description on how to turn interFoam into waveFoam on the wiki (http://openfoamwiki.net/index.php/Contrib/waves2Foam). Kind regards, Niels |
|
|
|
|
|
|
|
|
#11 |
|
Member
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 37
Rep Power: 5 ![]() |
Niels,
Thanks for all your work on the waves2Foam library and the tutorial on converting interFoam to waveFoam. When compiling on of20x and of21x I had to removed the lines you commented with "//" in src/Make/files. It seems that the dependency tools in the of2+ versions do not like that form of commenting out a line. thanks Dennis |
|
|
|
|
|
|
|
|
#12 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Thanks for the bug-report. It is actually a shell/OS problem, as some OSs require lines to be commented by /* */ in stead of //.
I will change the SVN as soon as I am at my computer again. Kind regards, Niels |
|
|
|
|
|
|
|
|
#13 |
|
Member
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 37
Rep Power: 5 ![]() |
I did build waves2Foam for of1.6ext with no changes on the same system prior to the of2+ versions. The system is a Rocks + RHEL 5.4 based cluster.
|
|
|
|
|
|
|
|
|
#14 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Hmm, interesting, as we experienced the problem when moving to another OS.
Good luck with your endeavors with free surface flows. - Niels |
|
|
|
|
|
|
|
|
#15 | |
|
New Member
Jordi Muela
Join Date: Mar 2011
Posts: 26
Rep Power: 4 ![]() |
Hi All,
here i share a video showing a little example of wave2foam coupled with dynamic mesh motion. I've modified the waveFlume example: http://youtu.be/YKbj_7JMRl8 Quote:
Jordi. |
||
|
|
|
||
|
|
|
#16 |
|
New Member
Join Date: Aug 2011
Posts: 8
Rep Power: 2 ![]() |
Hi Niels,
It is a great work. I also read your thesis and it is wonderful. Do you have a plan to release the sediment transport module you implmented for your dissertation? Thanks, |
|
|
|
|
|
|
|
|
#17 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Hi all
@Jordi: Neat! Is it a free floating object or have you applied mooring lines? You might have noticed, but waves2Foam has already been made ready for a numerical beach; merely two things are missing, namely (i) define the variation(s) of the artificial viscosity and (ii) add the source term in the momentum equation in the solvers. The latter part is really easy, since the needed interface is already in place as can be seen from the wiki. Again it is made with runTime selection in mind. @AKA: Thanks. No, we do not have any immediate plans for a release of the sediment transport/morphology module. Its state is by far mature enough. Kind regards, Niels P.S. Forgot to mention that I have updated the waves2Foam/src/Make/files in the SVN. I also made a tiny change in the Allwmake, so if anyone experience problems with that, please tell me. |
|
|
|
|
|
|
|
|
#18 | |
|
New Member
Jordi Muela
Join Date: Mar 2011
Posts: 26
Rep Power: 4 ![]() |
Hi,
Quote:
Last edited by jordi.muela; January 26, 2012 at 05:30. |
||
|
|
|
||
|
|
|
#19 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Technical University of Denmark
Posts: 747
Rep Power: 11 ![]() |
Good evening to all,
I have changed the target for the library and solvers to FOAM_USER_APPBIN/FOAM_USER_LIBBIN, so if you make a fresh svn update, then remember to delete the libraries and solvers from waves2Foam placed in FOAM_ABBIN and FOAM_LIBBIN. In the latter delete "libwaves2Foam.so" and in the latter, delete "waveFoam", "setWaveField", "setWaveParameters" and "relaxationZoneLayout". This change should ease the compilation on clusters and on OF-installations, which are placed in the root. Kind regards, Niels |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| energy absorption instead generation | bohis | FLUENT | 1 | August 29, 2009 14:11 |