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

[waves2Foam] Wave Flume tutorial

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2014, 16:22
Default Wave Flume tutorial
  #1
New Member
 
Dmitrijs Gavrilovs-Stepanovs
Join Date: Jun 2014
Posts: 15
Rep Power: 12
Dmitrjs is on a distinguished road
Hi everyone,

First of all, Niels, thank you very much for the tool and your effort in helping everyone to solve their problems.
My problem is the following:
I am using waveFlume tutorial to simulate waves propagating in a wave tank. I had to change the length of the tank and the depth so that it matches the required dimensions. I need to simulate a wave with a period of 0.913 seconds and a wave height of 0.033 metres. The depth of the wave tank is now 1 metre and the length is 17.965.
The problem I experience is that the wave's amplitude decreases with the length of the tank (x-coordinate) and it is also out of the phase when I compare it to the analytical solution of the Stokes First Wave theory (this is what I am using). The following graphs demonstrate it (surface elevation at x=0, x=4, x=7.46 metres).

x_0.jpg

x_4.jpg

x_746.jpeg

I am also attaching my case files:

https://www.dropbox.com/s/glv29onc0k2ehof/My_case.zip

What I tried to do was refining the mesh significantly, but it made absolutely no difference. I also tried to use Stokes Second Wave Theory, but it gave exactly the same results.
I also went through this thread and found a discussion of the similar problem to mine. It was posted by JanL (Jan Lohrmann), post #57, page 3.

Quote:
Originally Posted by JanL View Post
Hi Niels,


I'm very interested in your tool and have been testing it recently. I'd like to use it for seakeeping-analysis and hence I'm interested in Stokes-theories at first. I calculated different cases, compared them with the analytical solutions and unfortunately got some strange results. I specifically analysed the results at x=2.5 (middle of inlet-relaxation-zone), x=5 (end of inlet-relaxation-zone) and x=9 (middle of free computational domain). Here is what I have done:


  1. I have been solving the standard tutorial of waveFlume for StokesFirst. The standardised amplitude changes by the distance from the inlet-relaxation-zone quite dramatically (see figure 1).
  2. Since that case is designed for shallow water, I modified the domain to a depth of 2m (which I also changed in waveProperties.org) to have a deepwater case. Now the amplitude generally decreases by the distance from the inlet-relaxation-zone and the wave-length increases, so that the waves get out-of-phase from the analytical solution (see figure 2).
  3. Afterwards I tried StokesSecond in the standard waveFlume case which gives almost perfect results (see figure 3)!
  4. Running the same case for deepwater (2m) again produces results with lower amplitudes and longer wave-lengths (see figure 4).


Have you, or anybody else experienced similar results? I already tested different settings like refining the mesh or the time-step or calculating under turbulent conditions which had different minor effects on the solution.
Have you any ideas what could have gone wrong?


Regards


Jan
It seems like he had some problems with using the inappropriate amplitude with the deep water case which was not valid for Stokes First Theory. After he changed the wave height to 0.02 (with the depth of 2) it worked out for him. In my case I am having a wave height of 0.033 with the depth of 1 and it should be valid for Airy Stokes Theory.

I would really appreciate if someone would take a look at my problem or maybe someone has had it already? Thank you in advance!
Dmitrjs is offline   Reply With Quote

Old   July 19, 2014, 06:01
Default
  #2
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

@Dimitrij: When you are having less than 2 cells over the wave height, I am not surprised that you are having dissipation of wave energy.

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.

Last edited by wyldckat; October 8, 2018 at 11:13. Reason: removed answer to another post that was on the main thread
ngj is offline   Reply With Quote

Old   July 21, 2014, 12:19
Default Dissipation of the wave energy
  #3
New Member
 
Dmitrijs Gavrilovs-Stepanovs
Join Date: Jun 2014
Posts: 15
Rep Power: 12
Dmitrjs is on a distinguished road
Hi Niels,
Thank you very much for your quick reply to my post (post #822). I refined the mesh to get around 13 cells over the wavelength, but still I get the same results and the amplitude decreases with time. The graph from this simulation is shown below which compares the solution at 2 metres and 7.46 metres:

0.913_13_cells.jpeg

I am also attaching my case files:
https://www.dropbox.com/sh/6mhys9pci...iNmfXNaXho7yoa

Could there be any other reasons why I am getting such results? What else can I try to resolve this problem?

Thank you in advance,
Dmitrijs
Dmitrjs is offline   Reply With Quote

Old   July 21, 2014, 13:18
Default
  #4
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 Dimitrij,

Try more points per wave length, 13 are way too little. If the problem continues, could you please try another version of OF. The VOF scheme was change from 2.2 to 2.3, so there might have been introduced some additional diffusion.

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   July 22, 2014, 09:51
Default
  #5
New Member
 
Dmitrijs Gavrilovs-Stepanovs
Join Date: Jun 2014
Posts: 15
Rep Power: 12
Dmitrjs is on a distinguished road
Hi Niels,
Thank you again for your replies! Can I just ask what would be the recommended number of points per both wave length and wave height to get reasonable results?
Thanks,
Dmitrijs
Dmitrjs is offline   Reply With Quote

Old   July 23, 2014, 09:15
Default Reflection control
  #6
New Member
 
Dmitrijs Gavrilovs-Stepanovs
Join Date: Jun 2014
Posts: 15
Rep Power: 12
Dmitrjs is on a distinguished road
Quote:
Originally Posted by Dmitrjs View Post
Hi Niels,
Thank you again for your replies! Can I just ask what would be the recommended number of points per both wave length and wave height to get reasonable results?
Thanks,
Dmitrijs
I addition to this question, may I ask is it possible to control the reflection from the relaxation zone (e.g by specifying some damping coefficient)? Would that mean making changes to the source code?

Thanks,
Dmitrijs
Dmitrjs is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
need tutorial files(Simulation of Wave Generation in a Tank) gholamghar FLUENT 45 May 6, 2018 11:57
[waves2Foam] wave dissipation a long of x wave flume MehdiCFD OpenFOAM Community Contributions 2 July 18, 2017 05:01
[waves2Foam] Stokesfirst wave profile asymetrical against the still water level?? zhxter OpenFOAM Community Contributions 2 March 23, 2015 13:08
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread wyldckat OpenFOAM Installation 2 July 11, 2012 17:01
need tutorial files(Simulation of Wave Generation in a Tank) gholamghar FLUENT 0 March 28, 2009 04:08


All times are GMT -4. The time now is 02:20.