NearCoM: B2DWAVE Program
Mark Orzech, T.H.C. Herbers,
Mark Orzech, (831)656-1012
Herbers et al., "Shoaling transformation of wave frequency-directional spectra", J. Geophysical Research, 108(C1), 3013, 2003.
A README file can be found here (doc)
The 2-d Boussinesq equations for a gently sloping beach with straight and parallel depth contours are solved for a continuous spectrum of waves. Evolution equations for the frequency/alongshore wavenumber spectrum and bispectrum (Eq's 5a & 5b in Herbers et al.) are integrated using a fourth-order Runge-Kutta scheme. The user provides the bottom profile and initial offshore surface elevation spectrum, while the initial bispectrum is generated based on the steady flat bottom solution (Eq 14).
NOTE THAT B2DWAVE IS STAND-ALONE CODE AND NOT PRESENTLY INTEGRATED INTO THE NEARCOM MODEL.
Use and initialization of the program:
Bottom profile depths and spacing must be provided by user in an ASCII text file. This file should contain a single-column list of nx+2 single-precision real numbers, of which the first two must be (1) number of cross-shore steps on the profile (nx) and (2) uniform cross-shore spacing (dx, meters). The remaining nx values in the list should be positive depths h(1) to h(nx), in meters, with h(1) furthest offshore and h(nx) nearest to shore.
Offshore input frequency-wavenumber spectrum must also be provided by user in a second text file. For a spectrum with nf frequencies and nd wavenumbers, the spectral input text file must contain a single-column list of 4+(nf*nd) single-precision real numbers, of which the first four must be (1) number of frequency bins (nf), (2) number of positive wavenumbers ((nd-1)/2), (3) frequency spacing (df, rad/s), and (4) wavenumber spacing (dd, rad/m). The remaining values in the file should be the surface elevation spectrum values (S(freq,wavenum), cubic meters-seconds per radian squared). The first values should be S(1, 1:nd), then S(2, 1:nd), and so on; the final values in the file should be S(nf,1:nd). There must be an odd number of wavenumbers (nd), evenly spaced around zero.
Output provided by the program:
Infragravity variance (sq m), significant wave height (m), skewness, and asymmetry at every other step on the profile. Complete frequency-wavenumber spectra (cubic meters-seconds per radian squared) returned at locations specified by the user. See the README for further details.
Variables required by the program:
Input bathymetry file and spectral file, with the format described above. Upon startup, the program prompts the user for several additional parameters (see the README for further information).
fyshiATudel.edu, AT to @ for a human email
latest update: 2 / 28 / 2012