|
[Sponsors] |
[waves2Foam] stokes second wave theory in waves2Foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 3, 2015, 02:39 |
stokes second wave theory in waves2Foam
|
#1 |
Member
Xiantao Zhang
Join Date: Nov 2014
Posts: 31
Rep Power: 12 |
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:ow(Foam::tanh(K_*h_),3.0) - 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:ow(Foam::cosh(K_*h_),3.0)+Foam::cosh(K _*h_))/ Foam:ow(Foam::sinh(K_*h_),3.0) ) *Foam::cos(2.0*arg) Hope to receive your reply. |
|
April 3, 2015, 05:14 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
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 10:04. Reason: removed answer to another post that was on the main thread |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[waves2Foam] New wave theory - waves + current | djpiro | OpenFOAM Community Contributions | 2 | July 2, 2024 06:17 |
[waves2Foam] Stream Function wave theory | Kun_zheng | OpenFOAM Community Contributions | 4 | March 16, 2018 03:08 |
[waves2Foam] New wave theory coded in FORTRAN, how to add to waves2Foam? | Kun_zheng | OpenFOAM Community Contributions | 6 | August 30, 2017 05:58 |
[waves2Foam] 5th Order Stokes Wave Initialization | katakgoreng | OpenFOAM Community Contributions | 6 | August 17, 2015 06:40 |
Max and min wave height variating in time with 5order stokes waves | lucaoggi | STAR-CCM+ | 1 | October 31, 2014 08:16 |