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

[waves2Foam] stokes second wave theory in waves2Foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2015, 01:39
Default stokes second wave theory in waves2Foam
  #1
Member
 
Xiantao Zhang
Join Date: Nov 2014
Posts: 31
Rep Power: 11
zhxter is on a distinguished road
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.
zhxter is offline   Reply With Quote

Old   April 3, 2015, 04:14
Default
  #2
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
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
ngj 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
[waves2Foam] Stream Function wave theory Kun_zheng OpenFOAM Community Contributions 4 March 16, 2018 02:08
[waves2Foam] New wave theory - waves + current djpiro OpenFOAM Community Contributions 1 September 4, 2017 10:55
[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


All times are GMT -4. The time now is 22:01.