CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Waves2Foam Related Topics

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree76Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   December 17, 2013, 07:52
Default
  #661
New Member
 
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 6
Rep Power: 3
Luke92 is on a distinguished road
Quote:
Originally Posted by Ed R View Post
Dear Luke,

May I direct you to the MATLAB script written by Niels which may answer your recent question. It should be located at /waves2Foam/ applications/utilities/misc/matlab/preporocessing

I hope this helps.

Ed
Unfortunately, I do not have Matlab and therefore I can not use the script.
Maybe one of you can calculate the values ​​for my case.
That would be great

Wave height H: 6.51 [m]
Water depth h: 30 [m]
Wave period T: 6.63 [s]
Stokes drift: 0


Regards - Lukas
Luke92 is offline   Reply With Quote

Old   December 17, 2013, 08:00
Default Compiling waveDyMFoam in OpenFOAM 2.2.1
  #662
New Member
 
Prasad
Join Date: Oct 2013
Posts: 11
Rep Power: 3
mprasad is on a distinguished road
Hi all,

Has anyone successfully compiled waveDyMFoam on version 2.2.1
I have been running into some errors and any guide or useful tips will be appreciated

This is the error i get while compiling:

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/openfoam221/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam221/src/transportModels -I/opt/openfoam221/src/transportModels/incompressible/lnInclude -I/opt/openfoam221/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam221/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/dynamicMesh/lnInclude -I/opt/openfoam221/src/dynamicFvMesh/lnInclude -I./OpenFOAM/prasad-2.2.1/applications/utilities/waves2foam/src/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -I/opt/openfoam221/src/fvOptions/lnInclude -I/opt/openfoam221/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveDyMFoam.o
waveDyMFoam.C:44:28: fatal error: relaxationZone.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/waveDyMFoam.o] Error 1


Thank you.

Last edited by mprasad; December 18, 2013 at 04:35.
mprasad is offline   Reply With Quote

Old   January 12, 2014, 12:46
Default installation problem about undefined reference to gsl
  #663
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 4
sophie_l is on a distinguished road
Hi Niels,

I'm using OpenFOAM-1.7.1 on a red hat cluster. I've installed gsl-1.16 using the following command.
Quote:
cd gsl-1.16
./configure --prefix=$HOME/OpenFOAM/gsl
make
make install
The path of gsl was changed in waves2Foam/bin/bashrc.org. But when using ./Allwmake, errors occured complaining undefined reference to gsl-related stuff.

I've attached waves2Foam/bin/bashrc.org and the compilation output here. Can you give some clue on this please?

Thank you for your time in advance.
Sophie
Attached Files
File Type: txt bashrc.txt (1.8 KB, 10 views)
File Type: txt logCompile.txt (17.6 KB, 10 views)
sophie_l is offline   Reply With Quote

Old   January 13, 2014, 16:29
Default
  #664
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Sophie,

What happens if you type

Code:
locate libgsl.so.0
Try to use the library path, which is outputting using this command.

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

Old   January 13, 2014, 18:05
Default
  #665
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 4
sophie_l is on a distinguished road
Hi Niels,

Thank you for the reply. libgsl.so.0 is not found when I use this command. But here is the output if I use 'ls' in $HOME/OpenFOAM/gsl/lib.

Quote:
[livyl@login1.polaris lib]$ locate libgsl.so.0
[livyl@login1.polaris lib]$ ls
libgsl.a libgslcblas.la libgslcblas.so.0 libgsl.la libgsl.so.0 pkgconfig
libgslcblas.a libgslcblas.so libgslcblas.so.0.0.0 libgsl.so libgsl.so.0.17.0
[livyl@login1.polaris lib]$ ls -ltr
total 21600
-rwxr-xr-x 1 livyl liv 1259606 Jan 12 13:25 libgslcblas.so.0.0.0
lrwxrwxrwx 1 livyl liv 20 Jan 12 13:25 libgslcblas.so.0 -> libgslcblas.so.0.0.0
lrwxrwxrwx 1 livyl liv 20 Jan 12 13:25 libgslcblas.so -> libgslcblas.so.0.0.0
-rwxr-xr-x 1 livyl liv 976 Jan 12 13:25 libgslcblas.la
-rw-r--r-- 1 livyl liv 2647762 Jan 12 13:25 libgslcblas.a
-rwxr-xr-x 1 livyl liv 6804607 Jan 12 13:25 libgsl.so.0.17.0
lrwxrwxrwx 1 livyl liv 16 Jan 12 13:25 libgsl.so.0 -> libgsl.so.0.17.0
lrwxrwxrwx 1 livyl liv 16 Jan 12 13:25 libgsl.so -> libgsl.so.0.17.0
-rwxr-xr-x 1 livyl liv 944 Jan 12 13:25 libgsl.la
-rw-r--r-- 1 livyl liv 11386510 Jan 12 13:25 libgsl.a
drwxr-xr-x 2 livyl liv 4096 Jan 12 13:25 pkgconfig
I used 'make check > log 2>&1' to check the installation of gsl in the directory of 'gsl-1.16', and the last test failed. The relative contents in log file is quoted here. Is this causing the problems? If so, what shall I do?

Quote:
mv -f .deps/test_trsv.Tpo .deps/test_trsv.Po
/bin/sh ../libtool --tag=CC --mode=link icc -g -O2 -o test test.o test_amax.o test_asum.o test_axpy.o test_copy.o test_dot.o test_gbmv.o test_gemm.o test_gemv.o test_ger.o test_hbmv.o test_hemm.o test_hemv.o test_her.o test_her2.o test_her2k.o test_herk.o test_hpmv.o test_hpr.o test_hpr2.o test_nrm2.o test_rot.o test_rotg.o test_rotm.o test_rotmg.o test_sbmv.o test_scal.o test_spmv.o test_spr.o test_spr2.o test_swap.o test_symm.o test_symv.o test_syr.o test_syr2.o test_syr2k.o test_syrk.o test_tbmv.o test_tbsv.o test_tpmv.o test_tpsv.o test_trmm.o test_trmv.o test_trsm.o test_trsv.o libgslcblas.la ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la -lm
libtool: link: icc -g -O2 -o .libs/test test.o test_amax.o test_asum.o test_axpy.o test_copy.o test_dot.o test_gbmv.o test_gemm.o test_gemv.o test_ger.o test_hbmv.o test_hemm.o test_hemv.o test_her.o test_her2.o test_her2k.o test_herk.o test_hpmv.o test_hpr.o test_hpr2.o test_nrm2.o test_rot.o test_rotg.o test_rotm.o test_rotmg.o test_sbmv.o test_scal.o test_spmv.o test_spr.o test_spr2.o test_swap.o test_symm.o test_symv.o test_syr.o test_syr2.o test_syr2k.o test_syrk.o test_tbmv.o test_tbsv.o test_tpmv.o test_tpsv.o test_trmm.o test_trmv.o test_trsm.o test_trsv.o ./.libs/libgslcblas.so ../ieee-utils/.libs/libgslieeeutils.a ../err/.libs/libgslerr.a ../test/.libs/libgsltest.a ../sys/.libs/libgslsys.a -lm -Wl,-rpath -Wl,/home/polaris_liv1/livyl/OpenFOAM/gsl/lib
make[2]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/cblas'
make check-TESTS
make[2]: Entering directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/cblas'
make[3]: Entering directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/cblas'
PASS: test
make[4]: Entering directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/cblas'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/cblas'
================================================== ==========================
Testsuite summary for gsl 1.16
================================================== ==========================
# TOTAL: 1
# PASS: 1
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
================================================== ==========================
make[3]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/cblas'
make[2]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/cblas'
make[1]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/cblas'
Making check in blas
make[1]: Entering directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/blas'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/blas'
Making check in linalg
make[1]: Entering directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/linalg'
make test
make[2]: Entering directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/linalg'
icc -DHAVE_CONFIG_H -I. -I.. -I.. -g -O2 -MT test.o -MD -MP -MF .deps/test.Tpo -c -o test.o test.c
mv -f .deps/test.Tpo .deps/test.Po
/bin/sh ../libtool --tag=CC --mode=link icc -g -O2 -o test test.o libgsllinalg.la ../blas/libgslblas.la ../cblas/libgslcblas.la ../permutation/libgslpermutation.la ../matrix/libgslmatrix.la ../vector/libgslvector.la ../block/libgslblock.la ../complex/libgslcomplex.la ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la ../utils/libutils.la -lm
libtool: link: icc -g -O2 -o .libs/test test.o ./.libs/libgsllinalg.a ../blas/.libs/libgslblas.a ../cblas/.libs/libgslcblas.so ../permutation/.libs/libgslpermutation.a ../matrix/.libs/libgslmatrix.a ../vector/.libs/libgslvector.a ../block/.libs/libgslblock.a ../complex/.libs/libgslcomplex.a ../ieee-utils/.libs/libgslieeeutils.a ../err/.libs/libgslerr.a ../test/.libs/libgsltest.a ../sys/.libs/libgslsys.a ../utils/.libs/libutils.a -lm -Wl,-rpath -Wl,/home/polaris_liv1/livyl/OpenFOAM/gsl/lib
make[2]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/linalg'
make check-TESTS
make[2]: Entering directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/linalg'
make[3]: Entering directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/linalg'
FAIL: test
make[4]: Entering directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/linalg'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/linalg'
================================================== ==========================
Testsuite summary for gsl 1.16
================================================== ==========================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
================================================== ==========================
See linalg/test-suite.log
================================================== ==========================
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/linalg'
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/linalg'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/polaris_liv1/livyl/OpenFOAM/gsl-1.16/linalg'
make: *** [check-recursive] Error 1
Thanks,
Sophie
sophie_l is offline   Reply With Quote

Old   January 13, 2014, 18:15
Default
  #666
Senior Member
 
Arthur Loginow
Join Date: Aug 2012
Posts: 102
Rep Power: 4
Maralady is on a distinguished road
Never mind fixed

Last edited by Maralady; January 14, 2014 at 15:30.
Maralady is offline   Reply With Quote

Old   January 14, 2014, 11:56
Default How works wave gauge in waves2Foam
  #667
New Member
 
kian
Join Date: Jan 2014
Posts: 3
Rep Power: 3
kiang is on a distinguished road
Hi Dear Niels,

I compiled wave2Foam and I solved the waveflume test case in tutorial. Every thing is ok. Now I do not know how give the wave height time series in paraview. I read in this forum that Wave2Foams is able to do it. Would you tell me how?
kiang is offline   Reply With Quote

Old   January 14, 2014, 12:15
Default
  #668
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Sophie,

I have found the bug. It is due to the lack of hinting to GSL in the options-files, e.g. compare the options file for waves2Foam-library and the one for relaxationZoneLayout.

Apparently, people are only using GSL-versions, which are already present in the environmental variables. I will try to get a bug-fix out tonight.

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

Old   January 14, 2014, 12:15
Default How use a wave theory for a tutorial test case?
  #669
New Member
 
kian
Join Date: Jan 2014
Posts: 3
Rep Power: 3
kiang is on a distinguished road
Hi every waves2Foam users,

I compiled waves2Foam and solved the tutorial tests with waveFoam solver. I have following question about using it :

1-Would you tell me how can I use existing wave theories (like Stokes theory) in a waves2Foam problem?
2-Which wave theory has been used in waveFlume test case of waves2Foam toolbox? How we can replace this with another one like Stokes 5th order?
3-How we can visualize the water level in paraview after running the waveFoam solver and running paraFoam?


Thanks
kiang is offline   Reply With Quote

Old   January 14, 2014, 16:37
Default
  #670
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Sophie,

Could you please try to compile relaxationZoneLayout with the attached options file. If it works, I will make sure that I update the repository, but as I also have GSL installed from the repository, I have no means to check, whether it works.

Thanks,

Niels

P.S. Merely remove the extension ".txt" before use.
Attached Files
File Type: txt options.txt (331 Bytes, 29 views)
__________________
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   January 15, 2014, 08:39
Default
  #671
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 4
sophie_l is on a distinguished road
Hi Niels,

It works perfectly! relaxationZoneLayout is sucessfully installed in OpenFOAM/livyl-1.7.1/applications/bin/linux64GccDPOpt. So I can change other 'options' files according to this file and compile the rest applications and utilities of waves2foam.

Thanks,
Sophie
ngj likes this.
sophie_l is offline   Reply With Quote

Old   January 15, 2014, 19:22
Default
  #672
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 4
sophie_l is on a distinguished road
Hi Niels,

I used './Allwmake' to install waves2foam after amending the options files. waveFoam was installed without error message. But when I try a test case using 'waveFoam > log', it cannot start with the message below.

Quote:
waveFoam: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
The options file for the solver is attached here. Could you shed some light on this please?

Thank you!
Sophie
Attached Files
File Type: txt options.txt (802 Bytes, 7 views)
sophie_l is offline   Reply With Quote

Old   January 16, 2014, 10:38
Default
  #673
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Sophie,

It sounds weird. Try to write the following in the command line, then you will know, where waveFoam is trying to look for the gsl-library:

Code:
ldd `which waveFoam`
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   January 16, 2014, 10:59
Default
  #674
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 4
sophie_l is on a distinguished road
Further to my post above, I tried to re-install waveFoam. In this directory /home/polaris_liv1/livyl/OpenFOAM/livyl-1.7.1/waves2Foam/applications/solvers/solvers171/waveFoam, 'wmake' was executed after 'wclean'. Then errors complain about -lgslcblas.

Quote:
[livyl@login2.polaris waveFoam]$ wmake
make: Warning: File `linux64GccDPOpt/includeDeps' has modification time 0.00042 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
Making dependency list for source file waveFoam.C
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/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/transportModels -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/incompressible/lnInclude -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/interfaceProperties/lnInclude -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -DOFVERSION=171 -I/home/polaris_liv1/livyl/OpenFOAM/livyl-1.7.1/waves2Foam/src/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -IlnInclude -I. -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveFoam.o
/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H: In function 'int main(int, char**)':
/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable 'transonic'
/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable 'nOuterCorr'
/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:3: warning: unused variable 'nCorr'
/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:8: warning: unused variable 'momentumPredictor'
/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable 'transonic'
/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:14: 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/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/transportModels -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/incompressible/lnInclude -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/interfaceProperties/lnInclude -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -DOFVERSION=171 -I/home/polaris_liv1/livyl/OpenFOAM/livyl-1.7.1/waves2Foam/src/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -IlnInclude -I. -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/waveFoam.o -L/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt \
-linterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -L/home/polaris_liv1/livyl/OpenFOAM/livyl-1.7.1/lib/linux64GccDPOpt -lwaves2Foam -lwaves2FoamSampling -L -lgsl -lgslcblas -lOpenFOAM -liberty -ldl -lm -o /home/polaris_liv1/livyl/OpenFOAM/livyl-1.7.1/applications/bin/linux64GccDPOpt/waveFoam
/usr/bin/ld: cannot find -lgslcblas
collect2: ld returned 1 exit status
make: *** [/home/polaris_liv1/livyl/OpenFOAM/livyl-1.7.1/applications/bin/linux64GccDPOpt/waveFoam] Error 1
Using this command
Quote:
locate libgsl.so.0
, nothing can be found. However, it's visable in gsl installation directory /home/polaris_liv1/livyl/OpenFOAM/gsl/lib.

Quote:
[livyl@login2.polaris lib]$ ls
libgsl.a libgslcblas.la libgslcblas.so.0 libgsl.la libgsl.so.0 pkgconfig
libgslcblas.a libgslcblas.so libgslcblas.so.0.0.0 libgsl.so libgsl.so.0.17.0
[livyl@login2.polaris lib]$ ls -ltr
total 21600
-rwxr-xr-x 1 livyl liv 1259606 Jan 12 13:25 libgslcblas.so.0.0.0
lrwxrwxrwx 1 livyl liv 20 Jan 12 13:25 libgslcblas.so.0 -> libgslcblas.so.0.0.0
lrwxrwxrwx 1 livyl liv 20 Jan 12 13:25 libgslcblas.so -> libgslcblas.so.0.0.0
-rwxr-xr-x 1 livyl liv 976 Jan 12 13:25 libgslcblas.la
-rw-r--r-- 1 livyl liv 2647762 Jan 12 13:25 libgslcblas.a
-rwxr-xr-x 1 livyl liv 6804607 Jan 12 13:25 libgsl.so.0.17.0
lrwxrwxrwx 1 livyl liv 16 Jan 12 13:25 libgsl.so.0 -> libgsl.so.0.17.0
lrwxrwxrwx 1 livyl liv 16 Jan 12 13:25 libgsl.so -> libgsl.so.0.17.0
-rwxr-xr-x 1 livyl liv 944 Jan 12 13:25 libgsl.la
-rw-r--r-- 1 livyl liv 11386510 Jan 12 13:25 libgsl.a
drwxr-xr-x 2 livyl liv 4096 Jan 12 13:25 pkgconfig
[livyl@login2.polaris lib]$
Can you show some clue on this please?

Thanks a lot!
Sophie
sophie_l is offline   Reply With Quote

Old   January 16, 2014, 11:03
Default
  #675
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 4
sophie_l is on a distinguished road
Hi Niels,

Thanks for your reply. I just tried this and the output is as follows. However, I don't quite understand.

Quote:
[livyl@login2.polaris lib]$ ldd `which waveFoam`
/usr/bin/which: no waveFoam in (/home/polaris_liv1/livyl/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0/bin:/home/polaris_liv1/livyl/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/openmpi-1.4.1/bin:/home/polaris_liv1/livyl/OpenFOAM/livyl-1.7.1/applications/bin/linux64GccDPOpt:/home/polaris_liv1/livyl/OpenFOAM/site/1.7.1/bin/linux64GccDPOpt:/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt:/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/wmake:/home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/bin:/apps/mpi/bin:/apps/developers/libraries/openmpi/1.6.1/1/bit-64-intel-12.1.5.339/bin:/apps/developers/compilers/intel/12.1.5.339/1/default/bin/intel64:/services/sge_prod/bin/lx-amd64:/services/sge_prod/default/common/leeds/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/apps/bin:/home/polaris_liv1/livyl/bin)
ldd: missing file arguments
Try `ldd --help' for more information.
Thanks,
Sophie
sophie_l is offline   Reply With Quote

Old   January 16, 2014, 11:11
Default
  #676
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hmm, it cannot even find your executable. Are you sure that you have sourced OpenFoam?

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

Old   January 16, 2014, 11:16
Default
  #677
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Sophie,

Sorry, I did not see your follow-up, where you describe that you now have problems with even compiling waveFoam. Obviously, you will not be able to execute

Code:
which waveFoam
before you have a working executable.

So, what did you change, which now makes it impossible for you to compile waveFoam?

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

Old   January 16, 2014, 11:39
Default
  #678
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 4
sophie_l is on a distinguished road
Hi Niels,

Sorry for the confusion. I didn't make any change to the solver waveFoam. If I compile it using 'wmake' in the solver's directory, then it cannot be compiled saying
Quote:
/usr/bin/ld: cannot find -lgslcblas
.

However, if I use the following command in waves2foam directory,

Quote:
source $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc
./Allwmake
then waveFoam can be compiled successfully. But when I try it with a test, it gives this error.

Quote:
waveFoam: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Type in the following command
Quote:
ldd `which waveFoam`
, it says
Quote:
[livyl@login2.polaris studies]$ ldd `which waveFoam`
linux-vdso.so.1 => (0x00007fffb6dff000)
libinterfaceProperties.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libinterfaceProperties.so (0x00007fc2760ff000)
libincompressibleTransportModels.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libincompressibleTransportModels.so (0x00007fc275e9a000)
libincompressibleTurbulenceModel.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libincompressibleTurbulenceModel.so (0x00007fc275c41000)
libincompressibleRASModels.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libincompressibleRASModels.so (0x00007fc2757e9000)
libincompressibleLESModels.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libincompressibleLESModels.so (0x00007fc27544f000)
libfiniteVolume.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libfiniteVolume.so (0x00007fc2745c3000)
libwaves2Foam.so => /home/polaris_liv1/livyl/OpenFOAM/livyl-1.7.1/lib/linux64GccDPOpt/libwaves2Foam.so (0x00007fc274322000)
libwaves2FoamSampling.so => /home/polaris_liv1/livyl/OpenFOAM/livyl-1.7.1/lib/linux64GccDPOpt/libwaves2FoamSampling.so (0x00007fc2740e1000)
libgsl.so.0 => not found
libgslcblas.so.0 => not found
libOpenFOAM.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so (0x00007fc273aeb000)
libdl.so.2 => /lib64/libdl.so.2 (0x000000376fa00000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003771e00000)
libm.so.6 => /lib64/libm.so.6 (0x000000376f200000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003771200000)
libc.so.6 => /lib64/libc.so.6 (0x000000376f600000)
libPstream.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so (0x00007fc2738e1000)
libmeshTools.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libmeshTools.so (0x00007fc2734c1000)
libLESdeltas.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libLESdeltas.so (0x00007fc273296000)
libLESfilters.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libLESfilters.so (0x00007fc272fdc000)
libtriSurface.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libtriSurface.so (0x00007fc272d72000)
libsampling.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libsampling.so (0x00007fc2728ff000)
libgsl.so.0 => not found
libgslcblas.so.0 => not found
libgsl.so.0 => not found
libgslcblas.so.0 => not found
libz.so.1 => /lib64/libz.so.1 (0x0000003770200000)
/lib64/ld-linux-x86-64.so.2 (0x000000376ee00000)
libmpi.so.0 => /home/polaris_liv1/livyl/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/openmpi-1.4.1/lib/libmpi.so.0 (0x00007fc27265b000)
libdecompositionMethods.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libdecompositionMethods.so (0x00007fc27243d000)
liblagrangian.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/liblagrangian.so (0x00007fc272222000)
libsurfMesh.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libsurfMesh.so (0x00007fc271f3f000)
libopen-rte.so.0 => /home/polaris_liv1/livyl/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/openmpi-1.4.1/lib/libopen-rte.so.0 (0x00007fc271cf3000)
libopen-pal.so.0 => /home/polaris_liv1/livyl/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/openmpi-1.4.1/lib/libopen-pal.so.0 (0x00007fc271a7b000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003772600000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fc271878000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x000000376fe00000)
libscotchDecomp.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libscotchDecomp.so (0x00007fc27166c000)
libmetisDecomp.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libmetisDecomp.so (0x00007fc271460000)
libparMetisDecomp.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/openmpi-1.4.1/libparMetisDecomp.so (0x00007fc27124b000)
libscotch.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libscotch.so (0x00007fc270feb000)
libscotcherrexit.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libscotcherrexit.so (0x00007fc270de9000)
libmetis.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libmetis.so (0x00007fc270b95000)
libGKlib.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libGKlib.so (0x00007fc27097b000)
libmetis-parmetis.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/openmpi-1.4.1/libmetis-parmetis.so (0x00007fc270730000)
libparmetis.so => /home/polaris_liv1/livyl/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/openmpi-1.4.1/libparmetis.so (0x00007fc2704f1000)
Best wishes,
Sophie
sophie_l is offline   Reply With Quote

Old   January 16, 2014, 11:43
Default
  #679
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Well, it is very clear that the libraries with respect to gsl is missing. Could you post the output from the compilation of waveFoam?

1. Go to the solver folder, and type `wclean`.
2. Go back to the root of waves2Foam and execute the Allwmake.

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

Old   January 16, 2014, 11:52
Default
  #680
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 4
sophie_l is on a distinguished road
Niels,

Please see the output attached.

Thanks,
Sophie
Attached Files
File Type: txt output.txt (11.9 KB, 11 views)
sophie_l is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Other Topics at OpenFOAM Workshop Milan 2008 hjasak OpenFOAM 2 October 26, 2013 04:33
Sections / Topics in CFD Wiki Roberthealy1 CFD-Wiki 6 August 23, 2007 17:58
CFD Related Educational Programmes Jonas Larsson Main CFD Forum 3 February 9, 2007 11:11
project topics vivekanand CFX 0 October 27, 2004 05:17
Advanced Topics in Aerodynamics Antonio Filippone Main CFD Forum 0 August 28, 1999 12:16


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