CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] Compiling problem for waveDyMFoam of waves2Foam in OF 2.3.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2014, 05:06
Default Compiling problem for waveDyMFoam of waves2Foam in OF 2.3.0
  #1
Member
 
Join Date: Jul 2010
Posts: 55
Rep Power: 16
ashkan is on a distinguished road
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.
ashkan is offline   Reply With Quote

Old   December 11, 2014, 10:15
Default Compiling problem for waveDyMFoam of waves2Foam in OF 2.3.0
  #2
Member
 
Xiantao Zhang
Join Date: Nov 2014
Posts: 31
Rep Power: 12
zhxter is on a distinguished road
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!!!
zhxter is offline   Reply With Quote

Old   December 12, 2014, 22:15
Default
  #3
Member
 
ALLEN
Join Date: Aug 2014
Posts: 32
Rep Power: 12
allenfieldin is on a distinguished road
Quote:
Originally Posted by zhxter View Post
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.
allenfieldin is offline   Reply With Quote

Old   December 13, 2014, 01:31
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in compiling fluent UDF lunched from MATLAB cfdman10 Fluent UDF and Scheme Programming 16 December 5, 2019 06:32
[OpenFOAM.com] v1606+ compiling problem with 64-bit labels Naresh yathuru OpenFOAM Installation 4 November 17, 2016 23:29
[OpenFOAM.org] Problem in installing OpenFOAM 2.3.0 !!! omid20110 OpenFOAM Installation 6 August 1, 2016 12:20
C_T(c,t) problem while compiling (OK interpreted) crevoise Fluent UDF and Scheme Programming 6 February 4, 2014 08:16
Problem with compiling new solver palazi88 OpenFOAM Programming & Development 2 December 24, 2013 20:52


All times are GMT -4. The time now is 13:51.