|
[Sponsors] |
[waves2Foam] stokes second wave theory in waves2Foam |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Xiantao Zhang
Join Date: Nov 2014
Posts: 31
Rep Power: 11 ![]() |
Dear ngj,
Thank you for you advice on trying stokes second theory to simulate regular waves with large height. The wave elevation for stokessecond theory in waves2Foam (stokesSecond.C) is as follows: scalar stokesSecond::eta ( const point& x, const scalar& time ) const { scalar arg(omega_*time - (k_ & x) + phi_); scalar eta = ( H_/2.0*Foam::cos(arg) // First order contribution. // Second order contribution. + 1.0/16.0*K_*sqr(H_) *( 3.0/Foam: ![]() - 1.0/Foam::tanh(K_*h_) ) *Foam::cos(2.0*arg) )*factor(time) // Hot-starting. + seaLevel_; // Adding sea level. return eta; } However, I have some questions about the second order contribution presented above, which is different from the common stokes second oder theory. To my knowledge, the second order distribution is : 1.0/16.0*K_*sqr(H_) *( (2.0*Foam: ![]() Foam: ![]() ) *Foam::cos(2.0*arg) Hope to receive your reply. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37 ![]() ![]() |
Good morning all,
@Xiantao: If you had plotted the two expressions on top of each other, you would have realised that they are identical. It should be possible to show analytically as well. 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 09:04. Reason: removed answer to another post that was on the main thread |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[waves2Foam] New wave theory - waves + current | djpiro | OpenFOAM Community Contributions | 2 | July 2, 2024 05:17 |
[waves2Foam] Stream Function wave theory | Kun_zheng | OpenFOAM Community Contributions | 4 | March 16, 2018 02:08 |
[waves2Foam] New wave theory coded in FORTRAN, how to add to waves2Foam? | Kun_zheng | OpenFOAM Community Contributions | 6 | August 30, 2017 04:58 |
[waves2Foam] 5th Order Stokes Wave Initialization | katakgoreng | OpenFOAM Community Contributions | 6 | August 17, 2015 05:40 |
Max and min wave height variating in time with 5order stokes waves | lucaoggi | STAR-CCM+ | 1 | October 31, 2014 07:16 |