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

[waves2Foam] Waves2Foam Related Topics

Register Blogs Community New Posts Updated Threads Search

Like Tree162Likes

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2014, 08:39
Default
  #621
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14
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  

Old   January 15, 2014, 19:22
Default
  #622
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14
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, 14 views)
sophie_l is offline  

Old   January 16, 2014, 10:38
Default
  #623
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
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  

Old   January 16, 2014, 10:59
Default
  #624
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14
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  

Old   January 16, 2014, 11:03
Default
  #625
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14
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  

Old   January 16, 2014, 11:11
Default
  #626
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
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  

Old   January 16, 2014, 11:16
Default
  #627
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
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  

Old   January 16, 2014, 11:39
Default
  #628
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14
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  

Old   January 16, 2014, 11:43
Default
  #629
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
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  

Old   January 16, 2014, 11:52
Default
  #630
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14
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, 27 views)
sophie_l is offline  

Old   January 16, 2014, 11:58
Default
  #631
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
Hi Sophie,

The compilation do look good enough.

Try type the following, before you use the ldd:

Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/polaris_liv1/livyl/OpenFOAM/gsl/lib
This should set the library path, such that it contains the path to the GSL-library.

Good luck,

Niels
tfuwa and mbots like this.
__________________
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  

Old   January 16, 2014, 12:40
Default
  #632
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14
sophie_l is on a distinguished road
Hi Niels,

It works! Thank you so much indeed!

Sophie
sophie_l is offline  

Old   January 24, 2014, 04:58
Default
  #633
Member
 
YS
Join Date: Jan 2010
Posts: 96
Rep Power: 16
Ya_Squall2010 is on a distinguished road
Hi Niel,

Just updated the waves2Foam to the latest version (r2025), but encountered some issues when compiling under OF2.1.1 and OF-extend-3.0. For the later, I realize there're some compability issues. But for OF2.1.1 the compiling still fails which surprises me. Attached please find the log file. I am compiling everything as it is, nothing changed.

log_Allwmake.txt

Regards,
Ya_Squall2010 is offline  

Old   January 24, 2014, 09:02
Default
  #634
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 13
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi Neils,

As far as I understood, the bejiBattjes tutorial is a validation case. If so, would you please share the surface elevation comparison of the simulation and ideal (reported by each gauge). Or let me know how can I make the comparative results.

Best,
Behrang

Last edited by Behrang; January 24, 2014 at 11:55.
Behrang is offline  

Old   January 24, 2014, 12:46
Default
  #635
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
Hallo all,

@Maryam: I believe you need to link to libwaves2FoamSampling as well.
Furthermore, none of the tutorials are run with a turbulence model, because none of the standard (incompressible) turbulence models in OF can (my personal opinion) be used for free surface flows, because the diffusion across the free surface is too large, when the density is not accounted for. I have never come around to put corrected turbulence model(s) into waves2Foam, so for now, I recommend that you create your own, e.g. according to our article or any other turbulence model of your preference.

@Behrang: If you execute the file in the matlab-directory in the bejiBattjes tutorial, then it will produce the comparison. The experimental data is placed in the folder called experimentalData.

@YS: I will return to you on this error.

Kind regards,

Niels
tfuwa and mo_na like this.
__________________
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  

Old   January 24, 2014, 14:41
Default
  #636
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 13
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi Neils,

Thank you for your kind response, I checked the Matlab directory and there is only a file (processData. m) which is not executable.
Would you please guide me more.

Thanks in advance.

Behrang
Behrang is offline  

Old   January 24, 2014, 17:54
Default
  #637
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
It is because to need to have Matlab installed to run the script. If you do not have Matlab, you can make you own script in any language you would prefer. You can use the Matlab script as 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  

Old   January 25, 2014, 09:00
Default
  #638
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
Hi YS,

I have installed OF-2.1.1 today and taken a fresh snapshot of waves2Foam (r2025) and I did not have any problems with the compilation.

I believe something must have gone wrong with the update, and I suspect that your are at least missing the file:

Code:
src/waves2FoamProcessing/preProcessing/setWaveProperties/irregular/waveSpectra/phases/phases.C
which was added in revision 2020. This is the description taken from the Wiki:

Code:
2013-09-15 09:37:28: (r2020) Added phase focusing as an option for irregular waves.
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  

Old   January 27, 2014, 00:23
Default
  #639
Member
 
YS
Join Date: Jan 2010
Posts: 96
Rep Power: 16
Ya_Squall2010 is on a distinguished road
Hi Niels,

By adding the following lines into the Make/files, the problem's gone:

phases=phases
$(waveProp)/$(irregular)/$(dws)/$(phases)/phases.C
$(waveProp)/$(irregular)/$(dws)/$(phases)/focusingPhase/focusingPhase.C
$(waveProp)/$(irregular)/$(dws)/$(phases)/randomPhase/randomPhase.C

Thanks a lot for the hint!
YS
Ya_Squall2010 is offline  

Old   January 27, 2014, 16:15
Default
  #640
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 13
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hello Neils,

I tried to modify the waveFlume tutorial in order to simulate waves with H=0.2, h=1, L=2 (H/L=0.1) and stokesSecond wave theory.
the result shows damping of the waves after 1 or two wave length as well as very very small breaking while the breaking limit due to Fenton equation is H/L=0.14

What do you think about it?

Best,
Behrang
Behrang is offline  

Closed Thread


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
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


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