|
[Sponsors] |
November 10, 2011, 07:00 |
Waves2Foam Related Topics
|
#1 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
ANNOUNCEMENT: On the 17th of August of 2018, this thread was closed and the posts that seem to be regarding a particular topic have been or are being moved to their own individual threads, all under the prefix [waves2Foam] at the OpenFOAM Community Contributions sub-forum.
If your posts have not yet been moved from this master thread, then please create a new thread and copy-paste a link to your previous post on the topic you want to continue discussing about, so that I can move your posts to that new thread. You can quickly jump to the prefix [waves2Foam] on the sub-forum by clicking on this link. If you are looking for your own posts and/or new threads, then please visit your subscriptions page, which is accessible from the top left menu or simply by clicking on this link (requires you to be logged in): Subscriptions List Page Below is the original post of this master thread. ---------- Dear all, This thread has been started to replace the discussions in the announcement thread for waves2Foam, as most activities are not related to actually announcements. Please use this thread as of now for any discussions, questions, problems or suggestions in relation to waves2Foam. Thanks a lot for your corporation, Niels PS:
[Moderator note: The original post is actually this one: https://www.cfd-online.com/Forums/op...tml#post355762 ] Last edited by wyldckat; August 22, 2018 at 11:28. Reason: Copy-paste-manipulate post for having a good thread dedicated to support |
|
November 16, 2011, 12:25 |
Waves2Foam Related Topics
|
#2 |
Member
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 16 |
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 |
|
November 16, 2011, 13:24 |
|
#3 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
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 |
|
November 17, 2011, 06:33 |
|
#4 |
Member
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 16 |
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 Kind regards, Albert Last edited by tfuwa; November 17, 2011 at 06:38. Reason: Sorry for the misspelling your name, Niels. |
|
November 17, 2011, 09:16 |
|
#5 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
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 |
|
November 18, 2011, 04:31 |
|
#6 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
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 |
|
January 17, 2012, 06:22 |
|
#7 |
New Member
Jordi Muela
Join Date: Mar 2011
Posts: 27
Rep Power: 16 |
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. |
|
January 17, 2012, 06:24 |
|
#8 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Thanks for noting the difference I hope you can benefit from my work!
- Niels |
|
January 23, 2012, 13:00 |
Waves2Foam --> of2+
|
#9 |
Member
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 45
Rep Power: 17 |
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 |
|
January 23, 2012, 13:42 |
|
#10 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
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 |
|
January 23, 2012, 13:48 |
|
#11 |
Member
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 45
Rep Power: 17 |
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.
|
|
January 23, 2012, 13:52 |
|
#12 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hmm, interesting, as we experienced the problem when moving to another OS.
Good luck with your endeavors with free surface flows. - Niels |
|
January 26, 2012, 04:36 |
|
#13 |
New Member
Getnet
Join Date: Aug 2011
Location: LSU
Posts: 20
Rep Power: 15 |
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, |
|
January 26, 2012, 04:58 |
|
#14 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi all
@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. Last edited by wyldckat; November 4, 2018 at 14:41. Reason: removed answer to another post that was on the main thread |
|
February 2, 2012, 06:30 |
Waves2Foam Related Topics
|
#16 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Albert
Yes, I have been using it to generate waves+current. In specific I generated stream-function waves with a non-zero stokes drift at the inlet. As I had a beach I modified some source terms and removed the net flux inside the computational domain, however, I think you should be able to use potentialCurrent as an outlet condition, where the target velocity differs from (0 0 0) and instead matches the velocity corresponding to the net flux at the inlet. If you want to have other wave theories, then you must figure out (look up) the mathematical formulation and do the necessary implementation, as I have not done it with any other wave theory than stream function. I hope that this answers you questions. There are some unknowns, but it should be feasible. Kind regards, Niels |
|
February 3, 2012, 10:10 |
|
#17 |
New Member
Silvan Brändli
Join Date: Aug 2009
Posts: 27
Rep Power: 17 |
Hi to all
I just got started with waves2Foam (with OF 2.1.0) and I really enjoy it. Thanks a lot Niels! Just a few minor comments: - It looks like in the "squarePile" tutorial there is no p_rgh.org which is needed in 1.7 and later versions. I just copied the pd.org, I hope this is ok. - In the "periodicSolitary" tutorial I had to run foamUpgradeCyclics before Allrun. - Compiling with 2.1.0: I got the following compiler error: Code:
In file included from ./../../../../src/lnInclude/relaxationScheme.H:64:0, from ./../../../../src/lnInclude/relaxationZone.H:44, from waveFoam.C:48: ./../../../../src/lnInclude/waveTheory.H:62:5: error: floating constant in preprocessor expression - fvSolution in 2.1.0: I replaced Code:
PISO { pdRefCell 0; pdRefValue 0; momentumPredictor yes; nOuterCorrectors 1; nCorrectors 3; nNonOrthogonalCorrectors 1; nAlphaCorr 1; nAlphaSubCycles 1; cAlpha 1; } Code:
PIMPLE { momentumPredictor yes; nCorrectors 3; nNonOrthogonalCorrectors 1; nAlphaCorr 1; nAlphaSubCycles 1; cAlpha 1; } Have fun Silvan |
|
February 3, 2012, 10:25 |
|
#18 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Silvan
Thanks. I have added the missing file from squarePile into the repository. I will keep the other changes in mind, when I make a proper 2.0/2.1 supported version. I hope that you can survive with the manual labour until further notice. / Niels P.S. Yes, the lines in waveTheory.H is needed for 1.5 support. Similar lines are also scattered around in the utilities. However, it does surprise me that you get that error, as you are the first one to report it, even though other people have successfully compiled on 2.0/2.1 (one of my students included). |
|
February 7, 2012, 05:22 |
|
#19 |
New Member
Silvan Brändli
Join Date: Aug 2009
Posts: 27
Rep Power: 17 |
Sorry about the compiling error, that was my fault. In solvers21/waveFoam/make/options I had
Code:
-DOFVERSION=2.1 \ Code:
-DOFVERSION=21 \ Code:
-DOFVERSION=$(WM_PROJECT_VERSION_NUMBER) \ Silvan |
|
February 11, 2012, 17:59 |
|
#20 |
Senior Member
Dave
Join Date: Jul 2010
Posts: 100
Rep Power: 16 |
Dear Niels,
Thank you! This is great for both ship still water resistance using the relaxation zone and sea keeping. The relaxation method is much more effective than the numerical beach I was using before. I've managed to compile it on OF 2.1.0 after some effort and it runs great. I was playing with a test case using the potential current BC with relaxation zones with a non-zero velocity and noticed that the setWaveField command sets the air phase velocity to 0 while the water phase is correct. I noticed that it also does this in the square pile tutorial. Obviously for a moving ship the air speed should be non-zero. Is this a built in attribute or can the user change the velocity of the air to be something other than 0 ? I was hoping to eventually be able to model following seas while the ship is undergoing forward motion and a non-zero air velocity would help with startup stability. Is the setWaveField command necessary to initialize the relaxation zones? Dave |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
Re-Project topics | protocol | STAR-CCM+ | 0 | March 22, 2016 06:25 |
Waves2Foam Related Topics | seoseonguk | OpenFOAM Running, Solving & CFD | 0 | March 1, 2016 23:18 |
Waves2Foam Related Topics | seoseonguk | OpenFOAM Running, Solving & CFD | 0 | March 1, 2016 23:14 |
Error: "Cannot find file points" related to changing parallelized code to serial? | Suyf | OpenFOAM Running, Solving & CFD | 0 | February 12, 2015 05:31 |