This is a C++ code for the Fourier, 7th-ordered Stokes, and 5th-order cnoidal nonlinear water wave theories. The implementation is based on the original plan-C code of Fenton (http://johndfenton.com/Steady-waves/Fourier.html).
For the Stokes solution, it is extended from the 5th-ordered solution of Fenton (1985) to a 7th-ordered one based on a symbolic computation.
And for the Fourier and 5th-order cnoidal waves, they are simply objected-oriented revisions.
Features:
-
the input and output are kept the same as those of the original version
-
global variables are removed compared with those in the original version.
-
the three theories are combined into one framework.
-
it is possible to add other solution.
by CC Tsai (http://cctsai.wixsite.com/mhlab)
Reference:
Fenton, J.D. (1985) ”A fifth-order Stokes theory for steady waves”, J. Waterway Port Coastal and Ocean Engineering 111, 216-234