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

[waves2Foam] Compiling on OpenSuse 13.2 and with OpenFOAM 2.3.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2015, 22:56
Default Compiling on OpenSuse 13.2 and with OpenFOAM 2.3.0
  #1
New Member
 
Weiye Ding
Join Date: Jul 2015
Location: Dalian
Posts: 9
Rep Power: 10
Tings_ is on a distinguished road
Hello Niels and Wavefoamers,

I've tried to run wavefoam in OpenSuse 13.2 and when I run ./Allwmake under
/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/
I got the errors as below.
Hope anyone can help me , thank you !

tings@linux-7bhg:~/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam> ./Allwmake

=====================================
ENVIRONMENTAL VARIABLES
=====================================
EXTBRANCH=0
FOAMEXTENDPROJECT=0
WAVES_APPBIN=/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/bin
WAVES_DIR=/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam
WAVES_GSL_INCLUDE=/usr/include
WAVES_GSL_LIB=/usr/lib
WAVES_LIBBIN=/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/lib
WAVES_POST=/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/postProcessing
WAVES_PRE=/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/preProcessing
WAVES_SOL=/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/solvers/solvers230
WAVES_SRC=/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/src
WAVES_TUT=/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/tutorials
WAVES_UTIL=/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities
WAVES_XVERSION=0
WM_PROJECT_VERSION_NUMBER=230

=====================================
COMPILE LIBRARY
=====================================
'/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/lib/libwaves2Foam.so' is up to date.
'/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/lib/libwaves2FoamProcessing.so' is up to date.
'/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/lib/libwaves2FoamSampling.so' is up to date.
'/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/lib/libwaves2FoamPorosity.so' is up to date.

=====================================
COMPILE SOLVERS
=====================================
make: '/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/bin/waveFoam' is up to date.

=====================================
COMPILE PRE-PROCESSING
=====================================
make[1]: Entering directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/preProcessing/faceSetToSTL'
make[1]: '/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/bin/faceSetToSTL' is up to date.
make[1]: Leaving directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/preProcessing/faceSetToSTL'
make[1]: Entering directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[1]: '/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/bin/relaxationZoneLayout' is up to date.
make[1]: Leaving directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[1]: Entering directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/preProcessing/setWaveField'
make[1]: '/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/bin/setWaveField' is up to date.
make[1]: Leaving directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/preProcessing/setWaveField'
make[1]: Entering directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
make[1]: '/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/bin/setWaveParameters' is up to date.
make[1]: Leaving directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
make[1]: Entering directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/utilities/preProcessing/waveGaugesNProbes'
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.3.0/src/triSurface/lnInclude -I/opt/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/src/waves2Foam/lnInclude -I/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/src/waves2FoamProcessing/lnInclude -I/usr/include -IlnInclude -I. -I/opt/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linuxGccDPOpt/waveGaugesNProbes.o -L/opt/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/lib \
-lOpenFOAM -ltriSurface -lfiniteVolume -L/home/tings/OpenFOAM/tings-2.3.0/platforms/linuxGccDPOpt/lib -L/usr/lib -lgsl -lgslcblas -lwaves2Foam -lwaves2FoamProcessing -lOpenFOAM -ldl -lm -o /home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/bin/waveGaugesNProbes
/usr/lib/gcc/i586-suse-linux/4.8/../../../../i586-suse-linux/bin/ld: cannot find -lwaves2Foam
/usr/lib/gcc/i586-suse-linux/4.8/../../../../i586-suse-linux/bin/ld: cannot find -lwaves2FoamProcessing
collect2: error: ld returned 1 exit status
/opt/OpenFOAM-2.3.0/wmake/Makefile:149: recipe for target '/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxG
make[1]: *** [/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/bin/waveGaugesNProbes] Error 1
make[1]: Leaving directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/ut
/opt/OpenFOAM-2.3.0/wmake/MakefileApps:39: recipe for target 'waveGaugesNProbes' failed
make: *** [waveGaugesNProbes] Error 2
make: Target 'application' not remade because of errors.

=====================================
COMPILE POST-PROCESSING
=====================================
make[1]: Entering directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/u
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-degs/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/src/waves2Foam/src/lnInclude -I/home/tings/OpenFOAM//opt/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/l
-lOpenFOAM -ltriSurface -lfiniteVolume -L/home/tings/OpenFOAM/tings-2.3.0/platforms/linuxGccDPOpt/lib -lwaWaves2Foam
/usr/lib/gcc/i586-suse-linux/4.8/../../../../i586-suse-linux/bin/ld: cannot find -lwaves2Foam
/usr/lib/gcc/i586-suse-linux/4.8/../../../../i586-suse-linux/bin/ld: cannot find -lwaves2FoamProcessing
collect2: error: ld returned 1 exit status
/opt/OpenFOAM-2.3.0/wmake/Makefile:149: recipe for target '/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxG
make[1]: *** [/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/bin/postProcessWaves2Foam] Error 1
make[1]: Leaving directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/ut
/opt/OpenFOAM-2.3.0/wmake/MakefileApps:39: recipe for target 'postProcessWaves2Foam' failed
make: *** [postProcessWaves2Foam] Error 2
make[1]: Entering directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/u
make[1]: '/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/bin/surfaceElevation' is up to date.
make[1]: Leaving directory '/home/tings/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/waves2Foam/applications/ut
make: Target 'application' not remade because of errors.

=====================================
COMPILATION DONE
=====================================
Tings_ is offline   Reply With Quote

Old   July 6, 2015, 13:22
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Ting,

The weird thing is that some of the solvers/applications compile, whereas only a few fail. The successful compilations are also linking to e.g. libwaves2Foam.so, so I have absolutely no idea of what is going on.

Good luck,

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

Old   July 6, 2015, 21:06
Default
  #3
New Member
 
Weiye Ding
Join Date: Jul 2015
Location: Dalian
Posts: 9
Rep Power: 10
Tings_ is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Ting,

The weird thing is that some of the solvers/applications compile, whereas only a few fail. The successful compilations are also linking to e.g. libwaves2Foam.so, so I have absolutely no idea of what is going on.

Good luck,

Niels
Niels , thanks for your replay and i think i have solved the errors.
I pasted the ***.so files from
/home/tings/OpenFOAM/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/lib/
to
/opt/OpenFOAM-2.3.0/platforms/linuxGccDPOpt/lib/
and run ./Allwmake successfully.

Best regards !

Tings

Last edited by Tings_; July 7, 2015 at 05:24.
Tings_ is offline   Reply With Quote

Old   July 8, 2015, 08:40
Default
  #4
New Member
 
Weiye Ding
Join Date: Jul 2015
Location: Dalian
Posts: 9
Rep Power: 10
Tings_ is on a distinguished road
Hi Niels,

I can run the case in tutorials manualy but when i run the Allrun it point out

Code:
The file /bin/prepareCase.sh is not executable.
Make the file executable before continuing.
so i try to execut prepareCase.sh in /bin file , it also comes out the errors as below

Code:
tings@linux-t9lm:~/OpenFOAM/tings-2.2.0/OpenFOAM-2.2.0/applications/solvers/waves2Foam/bin> ./prepareCase.sh
./prepareCase.sh: line 4:cd: 0: No such file or directory
./prepareCase.sh:line 6: /home/tings/OpenFOAM/tings-2.2.0/OpenFOAM-2.2.0/applications/solvers/waves2Foam/bin/../../../bin/bashrc: No such file or directory
./prepareCase.sh: line 11:[: : Expected integer expression
./prepareCase.sh: line 14:[: : Expected integer expression
./prepareCase.sh:line 18: 0.org/alpha1.org: No such file or directory
./prepareCase.sh: line 22:[: : Expected integer expression
./prepareCase.sh: line 25:[: : Expected integer expression
./prepareCase.sh:line 29: 0.org/pd.org: No such file or directory
cp: cannot get "0.org/U.org" file satus(stat):No such file or directory
./prepareCase.sh: line 39:[: : Expected integer expression
./prepareCase.sh: line 43:[: : Expected integer expression
./prepareCase.sh:line 47:[: : Expected integer expression
./prepareCase.sh: line 51:[: : Expected integer expression
cp: cannot get"system/fvFiles/fvSolution.23" file satus(stat): No such file or directory
cp: cannot get"system/fvFiles/fvSchemes.23" file satus(stat): No such file or directory
./prepareCase.sh: line 61:[: : Expected integer expression
cp: cannot get"../../commonFiles/transportProperties.23" file satus(stat): No such file or directory

And when i try to compile waveDyFoam (follow http://openfoamwiki.net/index.php/Co...ic_mesh_motion) some troubles also come out

Code:
tings@linux-t9lm:~/OpenFOAM/tings-2.2.0/OpenFOAM-2.2.0/applications/solvers/waves2Foam/applications/solvers/solvers220/waveFoam/interDyMFoam> wmake
SOURCE=waveDyMFoam.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I.. -I/opt/OpenFOAM-2.2.0/src/transportModels -I/opt/OpenFOAM-2.2.0/src/transportModels/incompressible/lnInclude -I/opt/OpenFOAM-2.2.0/src/transportModels/interfaceProperties/lnInclude -I/opt/OpenFOAM-2.2.0/src/turbulenceModels/incompressible/turbulenceModel -I/opt/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM-2.2.0/src/dynamicMesh/lnInclude -I/opt/OpenFOAM-2.2.0/src/dynamicFvMesh/lnInclude -I./../../../../../src/lnInclude -I/opt/OpenFOAM-2.2.0/src/meshTools/lnInclude -I/opt/OpenFOAM-2.2.0/src/fvOptions/lnInclude -I/opt/OpenFOAM-2.2.0/src/sampling/lnInclude -IlnInclude -I. -I/opt/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/waveDyMFoam.o
waveDyMFoam.C:45:28: fatal error: relaxationZone.H: No such file or directory
 #include "relaxationZone.H"
                            ^
compilation terminated.
waveDyMFoam.dep:675: recipe for target 'Make/linuxGccDPOpt/waveDyMFoam.o' failed
make: *** [Make/linuxGccDPOpt/waveDyMFoam.o] Error 1
so what should i do , Thank you!
Tings_ is offline   Reply With Quote

Old   July 8, 2015, 12:27
Default
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Ting,

The error message asks you to make the file executable, but not to execute it.

Possible solution

Code:
chmod a+x prepareCase.sh
Secondly, the errors for waveDyMFoam are already covered above.

Kind regards,

Niels

P.S. In the future, when you resolve a question, please add the solution to the post rather than deleting the question. I refer to your edit of post #999.
__________________
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

Old   July 9, 2015, 08:21
Default
  #6
New Member
 
Weiye Ding
Join Date: Jul 2015
Location: Dalian
Posts: 9
Rep Power: 10
Tings_ is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Ting,

The error message asks you to make the file executable, but not to execute it.

Possible solution

Code:
chmod a+x prepareCase.sh
Secondly, the errors for waveDyMFoam are already covered above.

Kind regards,

Niels

P.S. In the future, when you resolve a question, please add the solution to the post rather than deleting the question. I refer to your edit of post #999.
Hello Niels,

It is really thank you for your reply and i run the "Allrun" successfully depend on your suggestion.

And i also compiled waveDyMFoam successfully by deleting all the files about waveDyMFoam and redo all the steps follow
https://sites.google.com/site/jordim...ic-mesh-motion

Then add some "/../../" which depends on the location of my "src" file, like this
Code:
-I./../../../../../../../../src/waves2Foam/lnInclude \
Thank you very much!

Best regards

Tings
Tings_ is offline   Reply With Quote

Old   July 11, 2015, 06:36
Default
  #7
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good morning Ting,

I can recommend using the environmental variable

Code:
$(WAVES_SRC)
instead of all the dots. See the waveFoam solver for inspiration.

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



All times are GMT -4. The time now is 19:29.