﻿ A Simple Simulation of Seashore Wave TDCC Laboratory

 HOME JAPANESE

A Simple Simulation of Seashore Wave

Nobuo YAMAMOTO

 To solve the form of seashore wave in hydrodynamic system is very difficult for the reason of a strong nonlinearity.    Although the scientific accuracy is not expected, we try to simulate the form under simple assumption in this treatise.      Even if a wave of surface of the sea in the offing is a sine wave, the phase velocity of the wave surface varies at the each point of height of the wave with the interaction with the viscosity and the countercurrent of the sea water as the wave approaches the coast.      Then, a wave crest appears, and soon, it collapses by gravity.    We assume that a relative "difference" of the phase velocity in respect to the height y of the wave surface is given by two ways mentioned below.      In the each of the ways, we try to simulate the form of the wave which washes the beach.      Though such assumptions are ideally and unscientific, we introduce such obtained wave forms as these are interesting visually.      As a wave is transmitted to the coast from the offing, the phase velocity is decreased by influence of the viscosity mentioned above.      In another speaking, the wave length becomes short,      Attention must be paid to that the variation of the wave length does not appear apparently in this treatise as we will show the wave form in respect to the phase angle on the system moving at the phase velocity.      Moreover, a collapse in a wave crest by gravity is neglected for simplicity. 1.    Method 1      The relative "difference" of the phase velocity in respect to the height y of the wave surface is assumed to be proportional to y, and its magnitude is assumed to be constant in time.    Then, the equation expressing the wave form y v.s. the phase angle x in each time is given as ,                    (1) where c indicates a degree in which the viscosity, the countercurrent and etc. have an influence to the relative difference of the phase velocity in respect to the height y of the wave surface.    If we calculate Eq.(1) as varying the time with the use of computer in the case of c=1, the seashore wave forms are drawn as shown in the following.    However, as strictly known, these forms do not resemble to the real ones of seashore waves.      Fig.1 The wave forms obtained by Eq.(1)

 In purpose to calculate the numerical coordinates data of the wave form as shown in Fig.1, a C++ program originated from Eq.(1) is given by .      By executing this C++ program, a common text file named "wave1.txt" including the calculated data is produced.    Each interval of these data is divided by 'comma'.    After moving these calculated data into an excel file, we obtain a wave form with the use of a graph wizard attached on the excel file.

2.    Method 2

The relative "difference" of the phase velocity in respect to the height y of the wave surface is assumed to be exponential to y, and its magnitude is assumed to be constant in time.    Then, the equation expressing the wave form y v.s. the phase angle x in each time is given as ,                    (2)
where c and k indicates degrees in which the viscosity, the countercurrent and etc. have an influence to the relative difference of the phase velocity in respect to the height y of the wave surface.
If we calculate Eq.(2) as varying the time with the use of computer in the case of c=k=1, the seashore wave forms are drawn as shown in the following.
In this case, these forms may be said to resemble to the real ones of seashore waves.        Fig.2 The wave forms obtained by Eq.(2)

 In purpose to calculate the numerical coordinates data of the wave form as shown in Fig.2, a C++ program originated from Eq. (2) is given by .      By executing this C++ program, a common text file named "wave2.txt" including the calculated data is produced.      Each interval of these data is divided by 'comma'.      After moving these calculated data into an excel file, we obtain a wave form with the use of a graph wizard attached on the excel file.        Fig.3 The wave forms which are painted in Fig.2
 If Fig.3 is shown in animation, it becomes as following.        Fig.4 Animation configured based on Fig.3

_ returning to the page which opened just before with 'return' of browser _

or

_ returning to the HOME with the following button _

Updated: 2009.02.03, edited by N. Yamamoto.
Revised on Jul. 27, 2013, Feb. 04, 2014, Jun. 11, 2014, Mar. 16, 2015, May 05, 2020, Feb. 03, 2021, May 06, 2021 and Apr. 01, 2022.