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   November 26, 2013, 06:50
Default
  #601
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 12
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi Niels,

I tried your suggestion on post #479 but still no success, any new idea about the issue?
please let me know if any more info. is needed.

Best,
Behrang

Last edited by wyldckat; December 28, 2013 at 08:12. Reason: updated the link to the other post, given the transfer of posts from the news thread
Behrang is offline  

Old   November 26, 2013, 12:10
Default
  #602
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 12
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi Niels,

Finally it worked Thank you for your supports.
I just made folders as mentioned in the error ( I made applications/utilities in /home/<user>/OpenFOAM/<user>-2.1.1) and then ./Allwmake
now it is OK.

Behrang
Behrang is offline  

Old   December 2, 2013, 05:21
Default
  #603
New Member
 
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 7
Rep Power: 12
Luke92 is on a distinguished road
Hi Niels,

Quote:
Originally Posted by ngj View Post
...and since my points above are void...
waveFoam based on interFoam and interfoam is a two-phase-solver.
how can I set the points above the watersurface void?

Regards - Lukas
sina.s likes this.
Luke92 is offline  

Old   December 2, 2013, 10:55
Default
  #604
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 Lukas,

I believe you must have misunderstood. What I meant by "since my points are void ..." is:

Since the suggestions/comments I gave above are void/has become redundant ...

To my knowledge there is not a version available, where you can compute the waves without including the air. It would, however, be a very nice contribution.

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   December 3, 2013, 03:27
Default
  #605
New Member
 
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 7
Rep Power: 12
Luke92 is on a distinguished road
Ahh ok. That would have been too nice. Then I had it simply misunderstood.
Thanks anyway

Regards - Lukas
Luke92 is offline  

Old   December 3, 2013, 10:39
Default StreamFunction Wave Theory
  #606
New Member
 
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 7
Rep Power: 12
Luke92 is on a distinguished road
Hi Niels,

One more question. This time relating to the StreamFunction Wave Theory.

Code:
+++ Example - setWaveParameters +++ 
// Currently not working  


+++ Example - Running +++ 
waveType   streamFunction; 
omega      <scalar>; 
depth      <scalar>; 
phi        <scalar>; 
waveNumber <vector>; 
uBar       <scalar>; 
N         <scalar>; 
A         <scalarField>; 
B         <scalarField>; 
Tsoft     <scalar>; // Not required 
Tstart    <scalar>; // Not required (Default 0.0); 
Tend      <scalar>; // Not required (Default GREAT);
Is there a more detailed description of the parameters 'A', 'B', 'uBar' and 'N'?
N probably stands for the Order, but what about the others?
Luke92 is offline  

Old   December 3, 2013, 11:12
Default
  #607
Member
 
Ed Ransley
Join Date: Jul 2012
Posts: 30
Rep Power: 13
Ed R is on a distinguished road
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
Ed R is offline  

Old   December 12, 2013, 02:08
Default
  #608
New Member
 
thejaraju
Join Date: Dec 2010
Posts: 8
Rep Power: 15
thejaraju is on a distinguished road
Hi rita did you get the solution for how to solve the
PISOControls.H:3:15: warning: unused variable ‘nOuterCorr’

If so please help me out

regards

Thanks in advance

Theja
thejaraju is offline  

Old   December 13, 2013, 20:33
Default
  #609
New Member
 
Ivy
Join Date: Sep 2013
Location: Singapore
Posts: 16
Rep Power: 12
Ivy Zhou is on a distinguished road
Hi, Niels and anyone who willing to help

Thanks very much,Niels, to your great efforts to create waves2foam and answering questions here.

I am really new and using openfoam 2.2.1 on ubuntu to create 2nd Order stokes waves. I am trying to follow instructions from your wiki link http://openfoamwiki.net/index.php/Contrib/waves2Foam from part 3. Application.
However I am wondering:
1.for3.3, To which directory should I copy the folder interFoam to (witha new folder named waveFoam)? I tried to paste it in /opt/openfoam221/applications/solvers, however I was told 'permission denied'
Or can I just post it in home/username/openFoam?

2. For 3.2, this command
cp -r $WM_PROJECT_DIR/applications/solvers/multiphase/interFoam/interDyMFoam $WM_PROJECT_USER_DIR/applications/solvers/waves2Foam/applications/solvers/solvers17/waveFoam/ the waves2Foam should be newly created by me? I didnt see it existing and when i do mkdir waves2Foam in solvers, I was told again 'permission denied'. It seems that I just cannt do anything inside $WM_PROJECT_DIR

3. I notice that I need to add '-lwaves2Foam' in make/options
I am wondering how the library waves2Foam is created? and located in which file?

Sorry that I might have asked really naive questions. But it really bothers me for 2 days and I cant make any effective progess.
Any help will be really appreciated

Ivy

Last edited by wyldckat; December 14, 2013 at 18:16. Reason: removed broken font formatting text
Ivy Zhou is offline  

Old   December 15, 2013, 11:27
Default
  #610
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@thejaraju:
Quote:
Originally Posted by thejaraju View Post
PISOControls.H:3:15: warning: unused variable ‘nOuterCorr’
It's only a warning, it's not an error, therefore that is not a problem. I'll quote myself from a post I made back in 2010 :
Quote:
Originally Posted by wyldckat View Post
Those warnings are actually normal. AFAIK, those solvers use header files that are common to various solvers and not all solvers use those variables, therefore it triggers warning messages on those that don't use them.
As for the specific problem you're having, I'll explain on the other thread you posted at: http://www.cfd-online.com/Forums/ope...tml#post466080 - namely regarding post #20

Best regards,
Bruno
__________________
wyldckat is offline  

Old   December 17, 2013, 06:52
Default
  #611
New Member
 
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 7
Rep Power: 12
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  

Old   December 17, 2013, 07:00
Default Compiling waveDyMFoam in OpenFOAM 2.2.1
  #612
New Member
 
Prasad
Join Date: Oct 2013
Posts: 11
Rep Power: 12
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 03:35.
mprasad is offline  

Old   January 12, 2014, 11:46
Default installation problem about undefined reference to gsl
  #613
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 13
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, 18 views)
File Type: txt logCompile.txt (17.6 KB, 13 views)
sophie_l is offline  

Old   January 13, 2014, 15:29
Default
  #614
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 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  

Old   January 13, 2014, 17:05
Default
  #615
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 13
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  

Old   January 13, 2014, 17:15
Default
  #616
Member
 
Arthur Loginow
Join Date: Aug 2012
Posts: 99
Rep Power: 13
Maralady is on a distinguished road
Never mind fixed

Last edited by Maralady; January 14, 2014 at 14:30.
Maralady is offline  

Old   January 14, 2014, 10:56
Default How works wave gauge in waves2Foam
  #617
New Member
 
kian
Join Date: Jan 2014
Posts: 4
Rep Power: 12
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  

Old   January 14, 2014, 11:15
Default
  #618
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 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  

Old   January 14, 2014, 11:15
Default How use a wave theory for a tutorial test case?
  #619
New Member
 
kian
Join Date: Jan 2014
Posts: 4
Rep Power: 12
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  

Old   January 14, 2014, 15:37
Default
  #620
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 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, 46 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  

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 05:29
Re-Project topics protocol STAR-CCM+ 0 March 22, 2016 05:25
Waves2Foam Related Topics seoseonguk OpenFOAM Running, Solving & CFD 0 March 1, 2016 22:18
Waves2Foam Related Topics seoseonguk OpenFOAM Running, Solving & CFD 0 March 1, 2016 22:14
Error: "Cannot find file points" related to changing parallelized code to serial? Suyf OpenFOAM Running, Solving & CFD 0 February 12, 2015 04:31


All times are GMT -4. The time now is 04:16.