CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] Compiling problem for waveDyMFoam of waves2Foam in OF 2.3.0 (https://www.cfd-online.com/Forums/openfoam-community-contributions/208040-compiling-problem-wavedymfoam-waves2foam-2-3-0-a.html)

ashkan June 18, 2014 04:06

Compiling problem for waveDyMFoam of waves2Foam in OF 2.3.0
 
Hi Everyone,
I am trying to compile waves2foam with OpenFOAM 2.3. I downloaded the latest version. It compiles the waves2foam without any error. But when I modify interDyMFoam -> waveDyMFoam and compile it I get the following error:

************************************************** *****
Making dependency list for source file waveDyMFoam.c
SOURCE=waveDyMFoam.c ; gcc -m64 -Dlinux64 -DWM_DP -Wall -O3 -I.. - I/opt/openfoam230/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam230/src/transportModels -I/opt/openfoam230/src/transportModels/incompressible/lnInclude -I/opt/openfoam230/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam230/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam230/src/finiteVolume/lnInclude -I/opt/openfoam230/src/dynamicMesh/lnInclude -I/opt/openfoam230/src/dynamicFvMesh/lnInclude -I/opt/openfoam230/src/meshTools/lnInclude -I/opt/openfoam230/src/fvOptions/lnInclude -I/opt/openfoam230/src/sampling/lnInclude -I./../../../../../src/waves2Foam/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveDyMFoam.o
In file included from /opt/openfoam230/src/OpenFOAM/lnInclude/labelList.H:47:0,
from /opt/openfoam230/src/OpenFOAM/lnInclude/UPstream.H:42,
from /opt/openfoam230/src/OpenFOAM/lnInclude/Pstream.H:42,
from /opt/openfoam230/src/OpenFOAM/lnInclude/parRun.H:35,
from /opt/openfoam230/src/finiteVolume/lnInclude/fvCFD.H:4,
from waveDyMFoam.c:35:
/opt/openfoam230/src/OpenFOAM/lnInclude/label.H:38:19: fatal error: climits: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/waveDyMFoam.o] Error 1

************************************************** *****

I looked for the label.H file and it is in /opt/openfoam230/src/OpenFOAMprimitives/ints/label

I would highly appreciate any suggestion on how to resolve this.

Thanks.

zhxter December 11, 2014 09:15

Compiling problem for waveDyMFoam of waves2Foam in OF 2.3.0
 
Hi, foamers,
I am trying to compile the waves2Foam toolbox with the OF 2.3.0. However, I have some problems when coupling waves2Foam with dynamic mesh motion. I do this work according to the 3.3 part (http://openfoamwiki.net/index.php/Contrib/waves2Foam). And when compiling the application "waveDyMFoam", some errors occured.

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
SOURCE=waveDyMFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/opt/openfoam230/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam230/src/transportModels -I/opt/openfoam230/src/transportModels/incompressible/lnInclude -I/opt/openfoam230/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam230/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam230/src/finiteVolume/lnInclude -I/opt/openfoam230/src/dynamicMesh/lnInclude -I/opt/openfoam230/src/dynamicFvMesh/lnInclude -I./../../../../../src/lnInclude -I/opt/openfoam230/src/meshTools/lnInclude -I/opt/openfoam230/src/fvOptions/lnInclude -I/opt/openfoam230/src/sampling/lnInclude -DOFVERSION=220 -DEXTBRANCH=0 -DXVERSION= -I/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveDyMFoam.o
waveDyMFoam.C:45:28: 致命错误: relaxationZone.H:没有那个文件或目录

Has anyone ever met similar problems?? I need your help. Thanks!!!

allenfieldin December 12, 2014 21:15

Quote:

Originally Posted by zhxter (Post 523493)
Hi, foamers,
I am trying to compile the waves2Foam toolbox with the OF 2.3.0. However, I have some problems when coupling waves2Foam with dynamic mesh motion. I do this work according to the 3.3 part (http://openfoamwiki.net/index.php/Contrib/waves2Foam). And when compiling the application "waveDyMFoam", some errors occured.

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
SOURCE=waveDyMFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/opt/openfoam230/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam230/src/transportModels -I/opt/openfoam230/src/transportModels/incompressible/lnInclude -I/opt/openfoam230/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam230/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam230/src/finiteVolume/lnInclude -I/opt/openfoam230/src/dynamicMesh/lnInclude -I/opt/openfoam230/src/dynamicFvMesh/lnInclude -I./../../../../../src/lnInclude -I/opt/openfoam230/src/meshTools/lnInclude -I/opt/openfoam230/src/fvOptions/lnInclude -I/opt/openfoam230/src/sampling/lnInclude -DOFVERSION=220 -DEXTBRANCH=0 -DXVERSION= -I/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveDyMFoam.o
waveDyMFoam.C:45:28: 致命错误: relaxationZone.H:没有那个文件或目录

Has anyone ever met similar problems?? I need your help. Thanks!!!


you might need to compile the solver under the waves2Foam directory, otherwise you will probably get the error concerning the failure to find "relaxationZone.H" issue.
Another thing, I advice you to have an english language linux as the error reported in Chinese will not be explicit for people to help you.:)

ngj December 13, 2014 00:31

Furthermore, you have followed the guide step-by-step overlooking this bit in the beginning of section 3.3:

NB! The guide is somewhat outdated, but the general idea is the same. The differences are in how to modify the options-file. Please consult existing solvers for inspiration. NB!

This warning is the reason that you cannot compile the solver.

Kind regards,

Niels


All times are GMT -4. The time now is 18:34.