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   August 25, 2013, 05:37
Unhappy
  #501
New Member
 
rz
Join Date: Mar 2012
Posts: 25
Rep Power: 0
rezacfd1361 is on a distinguished road
Hi Dear Niels,
I am new wit waves2Foam and excuse me if I ask many questions. I explain what I did to run a test case like waveFloam from tutorial of waves2Foam. 1)I got the waves2Foam from this website:http://openfoamwiki.net/index.php/Contrib/waves2Foam 2)I put it in this address:/home/reza/OpenFOAM/OpenFOAM-2.1.1/applications/utilities 3) My openFOAM is v2.1.1 and I based on the rules in
made a new folder in this address: /home/reza/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/multiphase/interFoam/untitled folder
4) I copied all of interFoam contents to this folder 5) I followed all of other structures in aforementioned address. 6) I do not know what I have to do in this step? Should I go to the address of newfolder and write in terminal wmake or ./Allwmake. or ?

Thanks for your reply.
rezacfd1361 is offline  

Old   August 25, 2013, 07:06
Default
  #502
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 RZ,

You do not need to do all that, because waves2Foam is compatible with OF v.2.1.1 as it is. With that I mean that the solver waveFoam is also part of the distribution.

Therefore, you only need to following the guidelines given here:

http://openfoamwiki.net/index.php/Co...d_Installation

Once you have completed these, you are able to execute the tutorials.

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   August 25, 2013, 10:11
Smile
  #503
New Member
 
rz
Join Date: Mar 2012
Posts: 25
Rep Power: 0
rezacfd1361 is on a distinguished road
Thanks a lot Dear Niels. I compiled and I run the tutorials. Once again thanks.

RZ
rezacfd1361 is offline  

Old   August 26, 2013, 09:05
Default
  #504
rye
New Member
 
Romain Euvrard
Join Date: Jul 2013
Location: Saint-Nazaire, France
Posts: 4
Rep Power: 13
rye is on a distinguished road
Is there any result we could you to check the correct calibration of the installation of waves2foam?
Since I got divergents results with an other solver from an other program, when running the same case on different computers, I feel the need for a simple calculation to check : like a cylinder on waves, on someone habing already done the set up?
rye is offline  

Old   August 30, 2013, 02:02
Default internal waves
  #505
Member
 
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 15
tfuwa is on a distinguished road
Hi Niels,

I am trying to simulate internal waves with wave2Foam.The two phases would be phase1 sea water at 20 oC (bottom, nu = 1.056 e-6 m2/s, rho = 1028 kg/m3) and phase 2 fresh water at 20oC (top, nu = 1.004e-6 m2/s, rho = 1000 kg/m3). As you can see, both nu and rho are quite close. Would you please instruct that if it is possible to carry out the simulation with wave2Foam without modification?

I used the official waveFlume for the simulation, but the wave did not travel far in the flume and the wave height experienced a sudden decay within the inlet relaxationZone
__________________
Kind regards,

Albert

Last edited by tfuwa; August 30, 2013 at 02:08. Reason: Sorry for mis-spelling your name...
tfuwa is offline  

Old   August 30, 2013, 03:33
Default
  #506
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
Good morning Albert,

Since waves2Foam assumes that the velocities in the air air (0 0 0) (or a constant wind field), then waves2Foam cannot be used for internal waves as it is.

You can, however, make a new wave theory class, say internalWaveTheory, with related implementations of analytical solutions. On top of this you also have to modify the relaxation zones, as the current ones carries the assumption of the velocity as described above.

You will be able to reuse quite a bit of the existing code (cell intersection and knowledge of the structure of runTime selection), pre- and post-processing utilities. Therefore, I would definitely go for an extension of waves2Foam rather than for you to start from scratch.

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   August 30, 2013, 11:25
Default
  #507
Member
 
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 15
tfuwa is on a distinguished road
Quote:
Originally Posted by ngj View Post
Good morning Albert,

Since waves2Foam assumes that the velocities in the air air (0 0 0) (or a constant wind field), then waves2Foam cannot be used for internal waves as it is.

You can, however, make a new wave theory class, say internalWaveTheory, with related implementations of analytical solutions. On top of this you also have to modify the relaxation zones, as the current ones carries the assumption of the velocity as described above.

You will be able to reuse quite a bit of the existing code (cell intersection and knowledge of the structure of runTime selection), pre- and post-processing utilities. Therefore, I would definitely go for an extension of waves2Foam rather than for you to start from scratch.

Good luck,

Niels
Hi Niels,

Many thanks for your detailed explanation and instruction.

Have a good weekend.
ngj likes this.
__________________
Kind regards,

Albert
tfuwa is offline  

Old   August 31, 2013, 13:05
Default undertow current
  #508
New Member
 
rz
Join Date: Mar 2012
Posts: 25
Rep Power: 0
rezacfd1361 is on a distinguished road
Hi Niels,

Would you tell me how waves2Foam generate the undertow current in different wave theories? or in irregular waves. I read your paper about openFoam but I did not find a theoretical base for this.

Thanks a lot,

RZ
rezacfd1361 is offline  

Old   September 1, 2013, 16:27
Default
  #509
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 RZ,

I do not quite understand, what your question is. The standard interFoam solver (and therefore waves2Foam) solves for the Navier-Stokes equations with the incompressible continuity equation. Therefore, the undertow is automatically included in the results, when waves are e.g. breaking on a cross-shore profile.

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   September 3, 2013, 15:39
Default
  #510
New Member
 
Join Date: Aug 2013
Posts: 10
Rep Power: 13
Ellie is on a distinguished road
Hi Niels,

I meet the following error when compiling in OF 220 using your waves2foam packages.

gfx@ubuntu:~/OpenFOAM/gfx-2.2.0/applications/solvers/waves2Foam/applications/solvers/solvers220/waveFoam$ wmake
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/gfx/OpenFOAM/OpenFOAM-2.2.0/src/transportModels -I/home/gfx/OpenFOAM/OpenFOAM-2.2.0/src/transportModels/incompressible/lnInclude -I/home/gfx/OpenFOAM/OpenFOAM-2.2.0/src/transportModels/interfaceProperties/lnInclude -I/home/gfx/OpenFOAM/OpenFOAM-2.2.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/gfx/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -I/home/gfx/OpenFOAM/OpenFOAM-2.2.0/src/meshTools/lnInclude -I/home/gfx/OpenFOAM/OpenFOAM-2.2.0/src/fvOptions/lnInclude -I/home/gfx/OpenFOAM/OpenFOAM-2.2.0/src/sampling/lnInclude -DOFVERSION=220 -I./../../../../src/lnInclude -IlnInclude -I. -I/home/gfx/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/home/gfx/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/waveFoam.o -L/home/gfx/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/lib \
-linterfaceProperties -ltwoPhaseInterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lmeshTools -lfvOptions -lsampling -L/home/gfx/OpenFOAM/gfx-2.2.0/platforms/linux64GccDPOpt/lib -lwaves2Foam -lOpenFOAM -ldl -lm -o /home/gfx/OpenFOAM/gfx-2.2.0/platforms/linux64GccDPOpt/bin/waveFoam
/usr/bin/ld: cannot find -lwaves2Foam
collect2: ld returned 1 exit status
make: *** [/home/gfx/OpenFOAM/gfx-2.2.0/platforms/linux64GccDPOpt/bin/waveFoam] Error 1
gfx@ubuntu:~/OpenFOAM/gfx-2.2.0/applications/solvers/waves2Foam/applications/solvers/solvers220/waveFoam$

I don't know what to do with this error. Please help me with that. Thanks.

Ellie
Ellie is offline  

Old   September 3, 2013, 16:07
Default
  #511
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
Good evening Ellie,

Have you successfully compiled the libraries, which come with waves2Foam. The error suggest that the libraries was not compiled successfully.
Also, the linking and include directories tells me that you are using an old version of waves2Foam. Please be aware that more recent versions carry bug fixes and new functionalities.

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   September 3, 2013, 18:58
Default
  #512
New Member
 
Join Date: Aug 2013
Posts: 10
Rep Power: 13
Ellie is on a distinguished road
Quote:
Originally Posted by ngj View Post
Good evening Ellie,

Have you successfully compiled the libraries, which come with waves2Foam. The error suggest that the libraries was not compiled successfully.
Also, the linking and include directories tells me that you are using an old version of waves2Foam. Please be aware that more recent versions carry bug fixes and new functionalities.

Kind regards,

Niels
Hi Niels,

Thanks so much for your quick reply! Could you lease provide the link for the more recent versions? Since now I am having a hard time finding the website again. Thanks

Ellie
Ellie is offline  

Old   September 3, 2013, 22:52
Default
  #513
New Member
 
Join Date: Aug 2013
Posts: 10
Rep Power: 13
Ellie is on a distinguished road
Quote:
Originally Posted by ngj View Post
Good evening Ellie,

Have you successfully compiled the libraries, which come with waves2Foam. The error suggest that the libraries was not compiled successfully.
Also, the linking and include directories tells me that you are using an old version of waves2Foam. Please be aware that more recent versions carry bug fixes and new functionalities.

Kind regards,

Niels
You mentioned in other thread that we should not need to copy, e.g. relaxationZone.H to the solvers/solver220/waveFoam directory. As we need to change the Make/Option file as
-DOFVERSION=220 \
-I./../../../../src/lnInclude
But it doesn't work. And then I manually copied all the required .H files so that it can 'wmake'. My first reply is the error as a result of that.

And sorry that I am new to OpenFoam. But how to compile the libraries? Where is it?

Thanks.
Best,

Ellie
Ellie is offline  

Old   September 4, 2013, 01:52
Default Update my question!
  #514
New Member
 
Join Date: Aug 2013
Posts: 10
Rep Power: 13
Ellie is on a distinguished road
Hi Niels,

I've tried the newest version of 'waves2Foam.tar.gz' I could find, and run './Allmake'. No error is showed. Thanks for your tips.

I am running the 3DWaves case in the tutorials and met a few errors.

the 'blockMesh' is good.

it presents some errors when running 'interFoam' and it seems that it's not compiling. Is it the exact solver for this case?

keyword PIMPLE is undefined in dictionary "/home/gfx/OpenFOAM/gfx-2.2.0/applications/solvers/waves2Foam/tutorials/waveFoam/3Dwaves/system/fvSolution"

and I follow someone's suggestion to change the keyword 'PISO' into 'PIMPLE'. I also need to remove the '.org' in the U and p_rgh file name. But another error appears:

--> FOAM FATAL IO ERROR:
Unknown patchField type waveVelocity for patch type patch

I do not know what to do next now! Sincerely hope you can help to see how to run that case! Thanks.

Ellie
Ellie is offline  

Old   September 4, 2013, 13:27
Default wavefoam problem with 3D mesh
  #515
New Member
 
Luis Miguel
Join Date: Apr 2013
Location: Colombia
Posts: 13
Rep Power: 13
luigi21 is on a distinguished road
I have a big problem when I try to compile wavefoam with a 3D mesh generated in GMSH, the mesh consist of a flume with irregular geometry, the following lines are the error that I get always:

HP-Compaq-dc5800-Microtower:~/OpenFoam/irregularwaveFlume7$ #0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 Uninterpreted:
#3 Foam::PBiCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#4
at ??:?
#5
at ??:?
#6
at ??:?
#7
at ??:?
#8 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#9
at ??:?

I've checked the mesh and the boundary conditions but everything seems ok, When I'm running the waveFoam utility the courant number goes out of the permisible range.

If somebody knows what the problem is.... I'd appreciate it so much....
luigi21 is offline  

Old   September 16, 2013, 18:16
Default
  #516
New Member
 
Pietro Danilo Tomaselli
Join Date: Oct 2012
Location: Lyngby, DTU
Posts: 9
Rep Power: 14
kobelak is on a distinguished road
Hi guys,

first of all, thanks to Niels for this useful toolbox!

I am working on breaking waves. I would like to use waves2Foam coupled with LES turbulence model; I don't know if someone did/is doing/is going to do something similar.

For the moment, I'm using a RASModel in order to obtain the same results of section 3.3 of Niels' journal publication (Validation case for breaking waves - Wave Generation toolbox ... ; International Journal for Num. Methods in Fluids , 2011).

I haven't found any tutorial with a turbulence model different from laminar, so I would like to receive some suggestions/hints about the case set-up, such as:

- type of RAS turbulence model that I should use (k-omega I guess)
- boundary/initial conditions of k, epsilon or omega, nut...
- changes on fvSolution and fvSchemes files (I need to consider the new terms of the equations of the turbulence model);
- dimensions of the computational domain (length of the swash zone in particular) and mesh size.

I searched through this thread and I found that just Kumar (pag. 19) tried to do the same. Anyone else?

Thanks in advance

Danilo
mo_na likes this.
kobelak is offline  

Old   September 18, 2013, 16:45
Default Update waves2Foam failed
  #517
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 14
keepfit is on a distinguished road
I just update the latest waves2Foam, but it failed: (on 32-bit Ubuntu 12.04)

Code:
/usr/bin/ld: error: --add-needed is not supported but is required for libOpenFOAM.so in /home/dao/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/libfiniteVolume.so
collect2: ld returned 1 exit status
make: *** [/home/DAO/OpenFOAM/dao-2.1.1/platforms/linuxGccDPOpt/lib/libwaves2FoamSampling.so] Error 1
When I compiled the old version the same error remains, it's really weird. Did I miss something else?


Anyway I installed the latest version successfully on the laptop (64-bit Ubuntu 13.04). Is this new version only for 64-bit system?

Best,

David
keepfit is offline  

Old   September 18, 2013, 18:13
Default
  #518
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 David,

The error message suggests that the problem lies with OpenFoam itself, since the error is related to libOpenFoam.so. I have never tried compiling waves2Foam on a 32 bit machine, but I have not deliberately put any restrictions into the code.

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   September 18, 2013, 18:34
Default
  #519
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 14
keepfit is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi David,

The error message suggests that the problem lies with OpenFoam itself, since the error is related to libOpenFoam.so. I have never tried compiling waves2Foam on a 32 bit machine, but I have not deliberately put any restrictions into the code.

Kind regards,

Niels
I will try reinstall the OF 2.1.1 again and see what happens.

Best

Edit: problem caused by Gnu gold ( binutils-gold package ). Uninstall it and use the the old Gnu ld, everything goes fine.

David

Last edited by keepfit; September 18, 2013 at 23:33.
keepfit is offline  

Old   September 27, 2013, 09:48
Unhappy Can not run old waveFoam simulation
  #520
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 14
keepfit is on a distinguished road
I did some wave simulation half a year ago using waves2Foam tool. Now for some reason I reinstalled OpenFoam and of course upgrade waves2Foam.

However, When running waveFoam on old version of wave simulation cases, it crashed after few seconds and the results looks unreasonable.

So I wonder, does the new Version have some important changes that I have to change the wave Properties?

Best,

David
keepfit 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 07:39.