Manual
Manual
Department of Commerce
National Oceanic and Atmospheric Administration
National Weather Service
National Centers for Environmental Prediction
5830 University Research Court
College Park, MD 20740
Technical Note
(WW3DG)
March 2019
Contents
1 Introduction 1
1.1 The WAVEWATCH III Modeling Framework . . . . . . 1
1.2 About this manual . . . . . . . . . . . . . . . . . . . . . 2
1.3 Licensing terms . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Copyrights and trademarks . . . . . . . . . . . . . . . . 6
1.5 The WAVEWATCH III
R
Development Group (WW3DG) 6
1.6 Acknowledgments . . . . . . . . . . . . . . . . . . . . . 11
2 Governing equations 14
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2 Propagation . . . . . . . . . . . . . . . . . . . . . . . . 16
2.3 Source terms . . . . . . . . . . . . . . . . . . . . . . . . 17
2.3.1 General concepts . . . . . . . . . . . . . . . . . . 17
2.3.2 Snl : Discrete Interaction Approximation (DIA) . 19
2.3.3 Snl : Full Boltzmann Integral (WRT) . . . . . . . 21
2.3.4 Snl : Generalized Multiple DIA (GMD) . . . . . . 25
2.3.5 Snl : Two-Scale Approximation (TSA) . . . . . . 28
2.3.6 Snl : Nonlinear Filter . . . . . . . . . . . . . . . . 32
2.3.7 Sin + Sds : WAM cycle 3 . . . . . . . . . . . . . . 34
2.3.8 Sin + Sds : Tolman and Chalikov 1996 . . . . . . 36
2.3.9 Sin + Sds : WAM cycle 4 (ECWAM) . . . . . . . 42
2.3.10 Sin + Sds : Ardhuin et al. 2010 ... . . . . . . . . . 47
2.3.11 Sin + Sds : Rogers et al. 2012 & Zieger et al. 2015 55
2.3.12 Sln : Cavaleri and Malanotte-Rizzoli 1981 . . . . 64
2.3.13 Sbot : JONSWAP bottom friction . . . . . . . . . 65
2.3.14 Sbot : SHOWEX bottom friction . . . . . . . . . . 65
2.3.15 Smud : Dissipation by viscous mud (D&L) . . . . 67
2.3.16 Smud : Dissipation by viscous mud (Ng) . . . . . 69
2.3.17 Sdb : Battjes and Janssen 1978 . . . . . . . . . . . 69
2.3.18 Str : Triad nonlinear interactions (LTA) . . . . . 71
2.3.19 Sbs : Bottom scattering . . . . . . . . . . . . . . . 73
2.3.20 Suo : Unresolved Obstacles Source Term . . . . . 75
2.3.21 Sxx : User defined . . . . . . . . . . . . . . . . . . 78
2.4 Source terms for wave-ice interactions . . . . . . . . . . 79
ii WAVEWATCH III version 6.07 DRAFT
References 297
APPENDICES
1 Introduction
WAVEWATCH III
R
is a community wave modeling framework that includes
the latest scientific advancements in the field of wind-wave modeling and
dynamics.
The core of the framework consists of the WAVEWATCH III third-
generation wave model, developed at the US National Centers for Envi-
ronmental Prediction (NOAA/NCEP) in the spirit of the WAM model
(Komen et al., 1994). The current framework evolved from earlier WAVE-
WATCH I & II model packages (Tolman, 1991, 1992), and differs from its
predecessors in many important points such as governing equations, model
structure, numerical methods and physical parameterizations.
WAVEWATCH III solves the random phase spectral action density bal-
ance equation for wavenumber-direction spectra. The implicit assumption of
this equation is that properties of medium (water depth and current) as well
as the wave field itself vary on time and space scales that are much larger
than the variation scales of a single wave. The model includes options for
shallow-water (surf zone) applications, as well as wetting and drying of grid
points. Propagation of a wave spectrum can be solved using regular (rec-
tilinear or curvilinear) and unstructured (triangular) grids, individually or
combined into multi-grid mosaics.
Source terms for physical processes (source terms) include parameteriza-
tions for wave growth due to the actions of wind, exact and parametrized
forms accounting for nonlinear resonant wave-wave interactions, scattering
due to wave-bottom interactions, triad interactions, and dissipation due to
whitecapping, bottom friction, surf-breaking, and interactions with mud and
ice. The model includes several alleviation methods for the Garden Sprin-
kler Effect, and computes other transofrmation processes such as the effects
of surface currents to wind and wave fields, and sub-grid blocking due to
unresolved islands.
Inputs to WAVEWATCH III may be provided via external files or via
coupling using the OASIS or ESMF/NUOPC frameworks. Input data is
dynamically updated within the wave model driver, and may include ice
coverage, mud, current fields, bottom properties for dissipation on a moveable
2 WAVEWATCH III version 6.07 DRAFT
bed, and data for assimilation within a data assimilation placeholder module
that may be developed by users.
WAVEWATCH III is written in ANSI standard FORTRAN 90, fully mod-
ular and fully allocatable. The model is set up for traditional one-way nesting,
and also using a ‘mosaic’ or multiple-grid approach, where an arbitrary num-
ber of grids can be considered with full two-way interactions between all grids.
Individual or multi-grid mosaics can be used as moving frame of reference
that allows high-resolution modeling of hurricanes away from the coast.
Wave energy spectra are discretized using a constant directional increment
(covering all directions), and a spatially varying wavenumber grid. First-,
second- and third-order accurate numerical schemes are available to describe
wave propagation. Source terms are integrated in time using a dynamically
adjusted time stepping algorithm, which concentrates computational efforts
in conditions with rapid spectral changes. WAVEWATCH III can optionally
be compiled to include shared memory parallelisms using OpenMP compiler
directives, and/or for a distributed memory environment using the Message
Passing Interface.
This is the user manual and system documentation of version 6.07 of the
WAVEWATCH III
R
wind-wave modeling framework. Although code man-
agement of the framework is primarily undertaken by NCEP/NOAA, the
model development itself relies on a community of developers, the WAVE-
WATCH III Development Group (WW3DG) with membership indicated be-
low. This manual is describes the wave modeling framework as follows.
A user wishing to install the framework may thus jump directly to Chap-
ter 5, and then successively modify input files in example runs (eg, Chapter 4).
DRAFT WAVEWATCH III version 6.07 3
The present model version (6.07) is the new public version based on the
previous official model release (version 5.16). The following are new features
added and code-structure modifications made in WAVEWATCH III 6.07since
the previous release.
• Updates the namelist options for the following programs: ww3 ounf,
ww3 ounp, ww3 trnc, ww3 bounc, and ww3 shel (model version
6.05).
• Adding IC5 (the extended FS model) as a sea ice source term option
(model version 6.06)
• Public release (model version 6.07)
Up to date information on this model can be found (including bugs and bug
fixes) on the WAVEWATCH III GitHub wiki page
https://github.com/NOAA-EMC/WW3/wiki
and at the NCEP WAVEWATCH III page,
http://polar.ncep.noaa.gov/waves/wavewatch/
and comments, questions and suggestions should be directed to the code man-
agers, Ali Abdolali ([email protected]) and Jose-Henrique Alves (hen-
[email protected]), or the general WAVEWATCH III users mailing group
list
Starting with model version 3.14, WAVEWATCH III is distributed under the
following licensing terms:
in writing, that they have read and understood the license and have agreed to
its terms. Licensee is responsible for employing reasonable efforts to assure
that only those of its employees that should have access to the software, in
fact, have access.
The Licensee may use the software for any purpose relating to sea state
prediction.
No disclosure of any portion of the software, whether by means of a media
or verbally, may be made to any third party by the Licensee or the Licensee’s
employees
The Licensee is responsible for compliance with any applicable export or
import control laws of the United States.
The software will be distributed through our web site after the Licensee has
agreed to the license terms.
WAVEWATCH III
R
c 2009-2016 National Weather Service, National
Oceanic and Atmospheric Administration. All rights reserved. WAVE-
WATCH III
R
is a trademark of the National Weather Service. No unau-
thorized use without permission.
1.6 Acknowledgments
The WAVEWATCH III wind wave model was started by Hendrik Tolman
with the development of the WAVEWATCH model at Delft University and
WAVE- WATCH II at NASA, Goddard Space Flight Center in the early
1990s. Subsequently a research program started under the auspices of the
12 WAVEWATCH III version 6.07 DRAFT
2 Governing equations
2.1 Introduction
Waves or spectral wave components in water with limited depth and non-zero
mean currents are generally described using several phase and amplitude pa-
rameters. Phase parameters are the wavenumber vector k, the wavenumber
k, the direction θ and several frequencies. If effects of mean currents on waves
are to be considered, a distinction is made between the relative or intrinsic
(radian) frequency σ (= 2πfr ), which is observed in a frame of reference mov-
ing with the mean current, and the absolute (radian) frequency ω (= 2πfa ),
which is observed in a fixed frame of reference. The direction θ is by defi-
nition perpendicular to the crest of the wave (or spectral component), and
equals the direction of k. Equations given here follow the geometrical optics
approximation, which is exact in the limit when scales of variation of depths
and currents are much larger than those of an individual wave1 . Diffraction,
scattering and interference effects that are neglected by this approximation
can be added a posteriori as source terms in the wave action equation. Under
this approximation of slowly varying current and depth, the quasi-uniform
(linear) wave theory then can be applied locally, giving the following disper-
sion relation and Doppler-type equation to interrelate the phase parameters
σ 2 = gk tanh kd , (2.1)
ω =σ+k·U, (2.2)
where d is the mean water depth and U is the (depth- and time- averaged
over the scales of individual waves) current velocity. The assumption of slowly
varying depths and currents implies a large-scale bathymetry, for which wave
diffraction can generally be ignored. The usual definition of k and ω from
the phase function of a wave or wave component implies that the number of
wave crests is conserved (see, e.g., Phillips, 1977; Mei, 1983)
∂k
+ ∇ω = 0 . (2.3)
∂t
1
Even with a factor 5 change in wave height over half a wavelength, the geometrical
optics approximation can provide reasonable results as was shown over submarine canyons
(Magne et al., 2007)
DRAFT WAVEWATCH III version 6.07 15
From Eqs. (2.1) through (2.3) the rates of change of the phase parame-
ters can be calculated (e.g., Christoffersen, 1982; Mei, 1983; Tolman, 1990,
equations not reproduced here).
For irregular wind waves, the (random) variance of the sea surface is de-
scribed using the surface elevation variance density spectrum F . In the wave
modeling community this is usually called the ‘energy spectrum’. This spec-
trum F is a function of all independent phase parameters, i.e., F (k, σ, ω), and
furthermore varies in space and time at scales larger than those of individ-
ual waves, e.g., F (k, σ, ω; x, t). However, for waves shorter than 3 times the
dominant wind sea frequency (Leckler et al., 2015), the energy is very close
to the linear dispersion relation so that Eqs. (2.1) and (2.2) interrelate k, σ
and ω. Consequently only two independent phase parameters exist, and the
local and instantaneous spectrum becomes two-dimensional. The effect of
non-linear contributions of bound waves can be added in WAVEWATCH III
as post-processing, following the method of Janssen (2009).
Within WAVEWATCH III the basic spectrum is the wavenumber-
direction spectrum F (k, θ), which has been selected because of its invari-
ance characteristics with respect to physics of wave growth and decay for
variable water depths. The output of WAVEWATCH III, however, consists
of the more traditional frequency-direction spectrum F (fr , θ). The differ-
ent spectra can be calculated from F (k, θ) using straightforward Jacobian
transformations
∂k 2π
F (fr , θ) = F (k, θ) = F (k, θ) , (2.4)
∂fr cg
−1
∂k 2π k·U
F (fa , θ) = F (k, θ) = 1+ F (k, θ) , (2.5)
∂fa cg kcg
∂σ σ 1 kd
cg = =n , n= + , (2.6)
∂k k 2 sinh 2kd
where cg is the group velocity. From any of these spectra one-dimensional
spectra can be generated by integration over directions, whereas integration
over the entire spectrum by definition gives the total variance E (in the wave
modeling community usually denoted as the wave energy).
In cases without currents, the variance (energy) of a wave packet is a
conserved quantity. In cases with currents the energy or variance of a spec-
tral component is no longer conserved, due to the work done by current on
the mean momentum transfer of waves (Longuet-Higgins and Stewart, 1961,
16 WAVEWATCH III version 6.07 DRAFT
DN S
= , (2.7)
Dt σ
where D/Dt represents the total derivative (moving with a wave component)
and S represents the net effect of sources and sinks for the spectrum F . Be-
cause the left side of Eq. (2.7) generally considers linear propagation without
scattering, effects of nonlinear wave propagation (i.e., wave-wave interactions)
and partial wave reflections arise in S. Propagation and source terms will be
discussed separately in the following sections.
2.2 Propagation
∂N ∂ ∂ S
+ ∇x · ẋN + k̇N + θ̇N = , (2.8)
∂t ∂k ∂θ σ
ẋ = cg + U , (2.9)
∂σ ∂d ∂U
k̇ = − −k· , (2.10)
∂d ∂s ∂s
DRAFT WAVEWATCH III version 6.07 17
1 ∂σ ∂d ∂U
θ̇ = − +k· , (2.11)
k ∂d ∂m ∂m
where cg = (cg sin θ, cg cos θ, s is a coordinate in the direction θ and m is
a coordinate perpendicular to s. Equation (2.8) is valid for Cartesian coor-
dinates. For large-scale applications, this equation is usually transferred to
spherical coordinates, defined by longitude λ and latitude φ, but maintain-
ing the definition of the local variance (i.e., per unit surface, as in WAMDIG,
1988)
∂N 1 ∂ ∂ ∂ ∂ S
+ φ̇N cos θ + λ̇N + k̇N + θ̇g N = , (2.12)
∂t cos φ ∂φ ∂λ ∂k ∂θ σ
cg cos θ + Uφ
φ̇ = , (2.13)
R
cg sin θ + Uλ
λ̇ = , (2.14)
R cos φ
cg tan φ cos θ
θ̇g = θ̇ − , (2.15)
R
where R is the radius of the earth and Uφ and Uλ are current components.
Equation (2.15) includes a correction term for propagation along great circles,
using a Cartesian definition of θ where θ = 0 corresponds to waves traveling
from west to east. WAVEWATCH III can be run using either Cartesian or
Spherical coordinates. Note that unresolved obstacles such as islands can be
included in the equations. In WAVEWATCH III this is done at the level of
the numerical scheme, as is discussed in section 3.4.7. Also, depth variations
at the scale of the wavelength can be introduced by a scattering source term
described in section 2.3.19.
Finally, both Cartesian and spherical coordinates can be discretized in
many ways, using quadrangles (rectangular, curvilinear or SMC grids) and
triangles. That aspect is treated in chapter 3.
In deep water, the net source term S is generally considered to consist of three
parts, an atmosphere-wave interaction term Sin , which is usually a positive
18 WAVEWATCH III version 6.07 DRAFT
energy input but can also be negative in the case of swell, a nonlinear wave-
wave interactions term Snl and a wave-ocean interaction term that is generally
dominated by wave breaking Sds . The input term Sin is dominated by the
exponential wind-wave growth term, and this source term generally describes
this dominant process only. For model initialization, and to provide more
realistic initial wave growth, a linear input term Sln can also be added in
WAVEWATCH III.
In shallow water additional processes have to be considered, most notably
wave-bottom interactions Sbot (e.g., Shemdin et al., 1978). In extremely shal-
low water, an additional breaking term (Sdb ) should be considered, if not well
represented in Sds (see Filipot and Ardhuin, 2012a). Triad wave-wave inter-
actions (Str ) may also be considered, but present parameterizations have
limited accuracy. Also available in WAVEWATCH III are source terms for
scattering of waves by bottom features (Ssc ), wave-ice interactions (Sice ), re-
flection off shorelines or floating objects such as icebergs which can include
sources of infragravity wave energy (Sref ), and a general purpose slot for
additional, user defined source terms (Suser ).
This defines the general source terms used in WAVEWATCH III as
S = Sln + Sin + Snl + Sds + Sbot + Sdb + Str + Ssc + Sice + Sref + Suser . (2.16)
Other source terms could be easily added. Those source terms are defined
for the energy spectra. In the model, however, most source terms are directly
calculated for the action spectrum. The latter source terms are denoted as
S ≡ S/σ.
The explicit treatment of the nonlinear interactions defines third-
generation wave models. Therefore, the options for the calculation of Snl
will be discussed first, starting in section 2.3.2. Sin and Sds represent sepa-
rate processes, but are often interrelated, because the balance of these two
source terms governs the integral growth characteristics of the wave energy.
Several combinations of these basic source terms are available, and are de-
scribed in section 2.3.7 and following. The description of linear input starts in
section 2.3.12, and section 2.3.13 and following describe available additional
processes, mostly related to shallow water and sea ice.
A third-generation wave model effectively integrates the spectrum only
up to a cut-off frequency fhf (or wavenumber khf ), that is ideally equal to
the highest discretization frequency. In practice the source terms parameter-
ization or the time step used may not allow a proper balance to be obtained,
DRAFT WAVEWATCH III version 6.07 19
and thus fhf may be taken within the model frequency range. Above the
cut-off frequency a parametric tail is applied (e.g., WAMDIG, 1988)
−m
fr
F (fr , θ) = F (fr,hf , θ) , (2.17)
fr,hf
which is easily transformed to any other spectrum using the Jacobian trans-
formations as discussed above. For instance, for the present action spectrum,
the parametric tail can be expressed as (assuming deep water for the wave
components in the tail)
−m−2
fr
N (k, θ) = N (khf , θ) , (2.18)
fr,hf
the actual values of m and the expressions for fr,hf depend on the source
term parameterization used, and will be given below.
Before actual source term parameterizations are described, the definition
of the wind requires some attention. In cases with currents, one can either
consider the wind to be defined in a fixed frame of reference, or in a frame of
reference moving with the current. Both definitions are available in WAVE-
WATCH III, and can be selected during compilation. The output of the
program, however, will always be the wind speed which is not in any way
corrected for the current.
The treatment of partial ice coverage (ice concentration) in the source
terms follows the concept of a limited air-sea interface. This means that the
momentum transferred from the atmosphere to the waves is limited. There-
fore, input and dissipation terms are scaled by the fraction of ice concentra-
tion. The nonlinear wave-wave interaction term can be used in areas of open
water and ice (Polnikov and Lavrenov, 2007). The scaling is implemented so
that it is independent of the source term selected.
Switch: NL1
Origination: WAM model
Provided by: H. L. Tolman
20 WAVEWATCH III version 6.07 DRAFT
where λnl is a constant. For these quadruplets, the contribution δSnl to the
interaction for each discrete (fr , θ) combination of the spectrum correspond-
ing to k1 is calculated as
δSnl,1 −2
δSnl,3 = D 1 Cg −4 fr,1 11
×
δSnl,4 1
2 F3 F4 2F1 F3 F4
F1 + − , (2.20)
(1 + λnl )4 (1 − λnl )4 (1 − λ2nl )4
λnl C
ST6 0.25 3.00 107
WAM-3 0.25 2.78 107
ST4 (Ardhuin et al.) 0.25 2.50 107
Tolman and Chalikov 0.25 1.00 107
The shallow water correction of Eq. (2.21) is valid for intermediate depths
only. For this reason the mean relative depth k̄d is not allowed to become
smaller than 0.5 (as in WAM). All above constants can be reset by the user
in the input files of the model (see Section 4.4.3).
Switch: NL2
Origination: Exact-NL model
Provided by: G. Ph. van Vledder
22 WAVEWATCH III version 6.07 DRAFT
ZZZ
∂N1
= G (k1 , k2 , k3 , k4 ) δ (k1 + k2 − k3 − k4 ) δ (σ1 + σ2 − σ3 − σ4 )
∂t
× [N1 N3 (N4 − N2 ) + N2 N4 (N3 − N1 )] dk2 dk3 dk4 , (2.27)
ZZ
T (k1 , k3 ) = G (k1 , k2 , k3 , k4 ) δ (k1 + k2 − k3 − k4 )
× δ (σ1 + σ2 − σ3 − σ4 ) θ (k1 , k3 , k4 )
× [N1 N3 (N4 − N2 ) + N2 N4 (N3 − N1 )] dk2 dk4 , (2.29)
in which
DRAFT WAVEWATCH III version 6.07 23
1 when |k1 − k3 | ≤ |k1 − k4 |
θ (k1 , k3 , k4 ) = (2.30)
0 when |k1 − k3 | > |k1 − k4 |
The delta functions in Eq. (2.29) determine a region in wavenumber space
along which the integration should be carried out. The function θ determines
a section of the integral which is not defined due to the assumption that k1 is
closer to k3 than k2 . The crux of the Webb method consists of using a local
coordinate system along a so-named locus, that is, the path in k space given
by the resonance conditions for a given combination of k1 and k3 . To that
end the (kx , ky ) coordinate system is replaced by a (s, n) coordinate system,
where s (n) is the tangential (normal) direction along the locus. After some
transformations, the transfer integral can then be written as a closed line
integral along the closed locus
I
∂W (s, n) −1
T (k1 , k3 ) = G θ(k1 , k3 , k4 )
∂n
× [N1 N3 (N4 − N2 ) + N2 N4 (N3 − N1 )] ds , (2.31)
in which P (si ) is the product term for a given point on the locus, ns is the
number of segments, and si is the discrete coordinate along the locus. Finally,
the rate of change for a given wavenumber k1 is given by
nk X
X nθ
∂N (k1 )
≈ k3 T (k1 , k3 ) ∆kik3 ∆θiθ3 , (2.33)
∂t i =1 i =1
k3 θ3
nary Quadruplet File, BQF). If a BQF file exists, the program checks if this
BQF file has been generated with the proper spectral grid. If this is not the
case, the existing BQF file is overwritten with the correct BQF file. During
a wave model run with various depths, the optimal BQF is used, by looking
at the nearest water depths for which a valid BQF file has been generated.
In addition, the result is rescaled using the ratio of the depth scaling factors
(2.21) for the target depth and the depth corresponding to the BQF file.
Switch: NL3
Origination: WAVEWATCH III
Provided by: H. L. Tolman
The GMD has been developed as an extension to the DIA. Its development is
documented in a set of Technical notes (Tolman, 2003a, 2005, 2008a, 2010b),
reports (Tolman and Krasnopolsky, 2004; Tolman, 2009a, 2011a), and papers
(Tolman, 2004, 2013a). As part of the development of the GMD, a holistic
genetic optimization technique was developed (Tolman and Grumbine, 2013).
A package to perform this optimization within WAVEWATCH III was first
provided by Tolman (2010c). The most recent version of this package is
version 1.5 (Tolman, 2014b).
The GMD expands on the DIA in three ways. First, the definition of
the representative quadruplets is expanded. Second, the equations are devel-
oped for arbitrary depths, including the description of strong interactions in
extremely shallow water (e.g., Webb, 1978). Third, multiple representative
quadruplets are used.
The GMD allows for arbitrary configurations of the representative quadru-
plet, by expanding on the resonance conditions (2.19) as
σ1 = a1 σ r
σ2 = a2 σ r
σ3 = a3 σ r , (2.34)
σ4 = a4 σ r
θ12 = θ1 ± θ12
where a1 + a2 = a3 + a4 to satisfy the general resonance conditions (2.26),
26 WAVEWATCH III version 6.07 DRAFT
parameters a1 a2 a3 a4 θ12 σr
(λ) 1 1 1+λ 1−λ 0 σd
(λ, µ) 1+µ 1−µ 1+λ 1−λ implied* σd
σd
(λ, µ, θ12 ) 1 + µ 1−µ 1+λ 1−λ free 1+µ
*
assuming k1 + k2 = k3 + k4 = 2kd
σr is a reference frequency, and θ12 is the angular gap between the wave-
numbers k1 and k2 . The latter parameter can either be implicit to the
quadruplet definition, or can be an explicitly tunable parameter. With this,
a one- (λ), two- (λ, µ) or three-parameter (λ, µ, θ12 ) quadruplet definition
have been constructed as outlined in Table 2.2. Note that, unlike in the DIA,
all quadruplets are evaluated for the actual water depth and frequency.
In the GMD, the discrete interactions are computed for arbitrary depths.
Somewhat surprisingly, interactions computed for the F (f, θ) spectrum and
converted to the native WAVEWATCH III spectrum N (k, θ) using a Ja-
cobian transformation proved more easily optimizable than computing the
interaction contributions for the latter spectrum directly. Furthermore, a
two-component scaling function was introduced with a ‘deep’ scaling func-
tion for the traditionally represented weak interactions in intermediate to
deep water, and a ‘shallow’ scaling function representing strong interactions
in extremely shallow water. With these modifications, the discrete interac-
DRAFT WAVEWATCH III version 6.07 27
where Bdeep and Bshal are the deep and shallow water scaling functions
k 4+m σ 13−2m
Bdeep = , (2.36)
(2π)11 g 4−m c2g
g 2 k 11
Bshal = (kd)n , (2.37)
(2π)11 cg
with m and n as tunable parameters, Cdeep and Cshal in Eq. (2.35) are the
corresponding deep and shallow water tunable proportionality constants, and
nq,d and nq,s are the number of representative quadruplets with deep and
shallow water scaling, respectively, representing the feature of the GMD that
multiple representative quadruplets can be used.
In the namelists snl3 and anl3 the user defines the number of quadru-
plets, and per quadruplet λ, µ, θ12 , Cdeep and Cshal . Values of m and n are
defined once, and used for all quadruplets. Finally relative depth below which
deep water scaling is not used and above which shallow water scaling is not
used are defined. Examples of some of the GMD configurations from Tolman
(2010b) are included in the example input file ww3 grid.inp in Section 4.4.3.
The default setting is to reproduce the traditional DIA.
Note that the GMD is significantly more complex that the DIA formu-
lation, and requires evaluation of the quadruplet layout for every spectral
frequency (compared to a single layout used for the DIA). For effective com-
putation, quadruplet layouts are pre-computed and stored in memory for a
set of nondimensional depths. Even with these and other optimizations, the
GMD is roughly twice as expensive to compute for a single representative
quadruplet than the DIA when using the one-parameter quadruplet layout.
Using the two- or three-parameter quadruplet layout, the GMD has four
28 WAVEWATCH III version 6.07 DRAFT
rather than two quadruplet realizations, making the GMD per quadruplet
four times as expensive as the traditional DIA. Using multiple representative
quadruplets is linearly additive in computational costs. For more in depth as-
sessment of computational costs of a model including the GMD, see Tolman
(2010b) and Tolman (2013a).
The Boltzmann integral describes the rate of change of action density of a par-
ticular wavenumber due to resonant interactions among four wavenumbers.
The wavenumbers must satisfy a resonance:
k1 + k2 = k3 + k4 . (2.38)
Z Z
∂n(k1 )
= T (k1 , k3 )dk3 (2.39)
∂t
DRAFT WAVEWATCH III version 6.07 29
W = ω1 + ω2 − ω3 − ω4 (2.41)
TSA and FBI For FBI, as well as for WRT, we numerically compute the
discretized form of Eq.(2.40) as a finite sum of many line integrals (around
locus s) of T (k1 , k3 ) for all discrete combinations of k1 and k3 . The line inte-
gral is determined by dividing the locus into a finite number of segments, each
with the length ds. A complete ‘exact’ computation is expensive, requiring
103 − 104 times DIAs run time.
The methodology for TSA is to decompose a directional spectrum into a
parametric (broadscale) spectrum and a (local-scale) nonparametric residual
component. The residual component allows the decomposition to retain the
same number of degrees of freedom as the original spectrum, a prerequisite
for the nonlinear transfer source term in 3G models. As explained in the
cited literature, this decomposition leads to a representation of the nonlin-
ear wave-wave interactions in terms of the broadscale interactions, local-scale
interactions, and the cross terms: the interactions between the broadscale
and local-scale components of the spectrum. This method allows the broad-
scale interactions and certain portions of the local-scale interactions to be
pre-computed. TSA’s accuracy is dependent on the accuracy of the parame-
terization used to represent the broadscale component.
30 WAVEWATCH III version 6.07 DRAFT
to cancel. TSA’s ability to match the FBI (or WRT) results for test spectra is
used to justify the approach. Moreover, the broadscale terms n̂2 and n̂4 , tend
to have much longer lengths along locus s and therefore should contribute
more to the net transfer integral. Thus, RP08 show that
Z Z I −1
3 ∂W
Snl (k1 ) = B + L + X = B + N∗ C dsk3 dθ3 dk3 , (2.45)
∂n
where N∗3 is what’s left from all the cross terms, after neglecting terms in-
volving n′2 and n′4 ,
N∗3 = n̂2 n̂4 (n′3 − n′1 ) + n′1 n′3 (n̂4 − n̂2 ) + n̂1 n′3 (n̂4 − n̂2 ) + n′1 n̂3 (n̂4 − n̂2 ), . (2.46)
and they use known scaling relations, with specific parameterizations, for
example for f −4 or f −5 based spectra. To implement this formulation, we
generally fit each peak separately.
It should be noted that to speed up the computation, a pre-computed
set of multi-dimensional arrays, for example the grid geometry arrays and
the gradient array, which are functions of spectral parameters, number of
segments on the locus and depth, are generated and saved in a file with
filename ‘grd dfrq nrng nang npts ndep.dat’, for example, ‘grd 1.1025-
35 36 30 37.dat’, etc.
The flow chart for TSA’s main subroutine W3SNL4 in w3snl4md.ftn is
as follows:
/
|
|*** It’s called from:
| -----------------
| (1) W3SRCE in w3srcemd.ftn; to calc. & integrate source
| term at single pt
| (2) GXEXPO in gx_outp.ftn; to perform point output
| (3) W3EXPO in ww3_outp.ftn; to perform point output
| (4) W3EXNC in ww3_ounp.ftn; to perform point output
|*** It can also be called from:
| (5) W3IOGR in w3iogrmd.ftn; to perform I/O of "mod_def.ww3"
|
W3SNL4 -->|
|
|*** It calls:
| ---------
| /
32 WAVEWATCH III version 6.07 DRAFT
| |
| |*** It’s called from:
| | -----------------
| | W3SNL4 in w3snl4md.ftn; main TSA subr.
| |*** It can also be called from: subr W3IOGR
| | W3IOGR in w3iogrmd.ftn; I/O of mod_def.ww3
| |
| |*** It calls:
| | ---------
| |--> wkfnc (function)
| |--> cgfnc (function)
|(1) |
|--> INSNL4 -->| /
| | |--> shloxr (uses func wkfnc)
| |--> gridsetr -->|--> shlocr
| | |--> cplshr
| | \
|(2) \
|--> optsa2
|
| /
|(3) | if (ialt=2)
|--> snlr_tsa -->|--> interp2
| |
| \
|
|
| /
|(4) | if (ialt=2)
|--> snlr_fbi -->|--> interp2
| |
| \
|
\
Switch: NLS
Origination: WAVEWATCH III
Provided by: H. L. Tolman
When the DIA of Eqs. (2.19) and (2.20) is applied with a quadruplet where
DRAFT WAVEWATCH III version 6.07 33
λnl is small enough so that the resulting quadruplet is not resolved by the dis-
crete spectral grid, then the resulting numerical form of the DIA corresponds
to a simple diffusion tensor. If this tensor is filtered so that it is applied to
the high-frequency tail of the spectrum only, then a conservative filter re-
sults, which retains all conservation properties of the nonlinear interactions
(Tolman, 2008a, 2011b). This filter can be used as a part of a parameteri-
zation of nonlinear interactions. For instance, it was shown to be effective
in removing high-frequency spectral noise in some GMD configurations in
Figs. 5 and 6 of Tolman (2011b). Since it is essential that the quadruplet
is not resolved by the spectral grid, the free parameter of the filter defining
the quadruplet is the relative offset of quadruplets 3 and 4 in the discrete
frequency grid (α34 , 0 < α34 < 1), from which λnl is computed as
where Xσ is the increment factor for the discrete frequency grid, typically
Xσ = 1.1 [Eq. (3.1)]. Using the native spectral description of WAVE-
WATCH III, the change in spectral density δNi at quadruplet component
i, is written in the form of a discrete diffusion equation as (Tolman, 2011b,
page 294)
δN3 0 1
δN1 = N1 1 + N1 S∆t −2 , (2.48)
N1
δN4 0 1
with
Cnlf k 4 σ 12 N12 N3 N4 N1 N3 N4
S= + −2 , (2.49)
(2π)9 g 4 cg k12 k3 k4 k1 k3 k4
where Cnlf is the proportionality constant of the DIA used in the filter. The
DIA results in changes S for two mirror-image quadruplets (Sa and Sb ). A
JONSWAP style filter (Φ) is applied to localize the smoother at higher fre-
quencies only, with
" −c3 #
f
Φ(f ) = exp −c1 , (2.50)
c2 fp
Accounting for the redistribution of the changes Sa,b over the neighboring
discrete spectral grids points, the effective nondimensional strengths (S̃a,b ) of
the interactions for both quadruplets become
Switch: ST1
Origination: WAM model
Provided by: H. L. Tolman
DRAFT WAVEWATCH III version 6.07 35
The input and dissipation source terms of WAM cycles 1 through 3 are based
on Snyder et al. (1981) and Komen et al. (1984) (see also WAMDIG, 1988).
The input source term is given as
ρa 28 u∗
Sin (k, θ) = Cin max 0, cos(θ − θw ) − 1 σ N (k, θ) , (2.55)
ρw c
p
u∗ = u10 (0.8 + 0.065u10 )10−3 , (2.56)
where Cin is a constant (Cin = 0.25), ρa (ρw ) is the density of air (water),
u∗ is the wind friction velocity (Charnock, 1955; Wu, 1982), c is the phase
velocity σ/k, u10 is the wind speed at 10 m above the mean sea level and θw
is the mean wind direction. The corresponding dissipation term is given as
2
k α̂
Sds (k, θ) = Cds σ̂ N (k, θ) , (2.57)
k̂ α̂P M
−1
σ̂ = σ −1 , (2.58)
α̂ = E k̂ 2 g −2 , (2.59)
where Cds is a constant (Cds = −2.36 10−5 ), α̂P M is the value of α̂ for a pm
spectrum (α̂P M = 3.02 10−3 ) and where k̂ is given by Eq. (2.25).
The parametric tail [Eqs. (2.17) and (2.18)] corresponding to these source
terms is given by2 m = 4.5 and by
h i
fhf = max 2.5 fˆr , 4 fP M , (2.60)
g
fP M = , (2.61)
28 u∗
where fP M is the Pierson and Moskowitz (1964) frequency, estimated from
the wind friction velocity u∗ . The shape and attachment point of this tail
is hardcoded to the present model. The tunable parameters Cin , Cds and
αP M are preset to their default values, but can be redefined by the user in
the input files of the model. Alternative fP M and αP M values proposed by
Alves et al. (2003) may also be used.
2
originally, WAM used m = 5, present setting used for consistent limit behavior (e.g.,
Tolman, 1992).
36 WAVEWATCH III version 6.07 DRAFT
Switch: ST2
Origination: WAVEWATCH III
Provided by: H. L. Tolman
The source term package of Tolman and Chalikov (1996) consists of the input
source term of Chalikov and Belevich (1993) and Chalikov (1995), and two
dissipation constituents. The input source term is given as
−a1 σ̃a2 − a2 , σ̃a < −1
a3 σ̃a (a4 σ̃a − a5 ) − a6 , −1 ≤ σ̃a < Ω1 /2
4
10 β = (a4 σ̃a − a5 )σ̃a , Ω1 /2 ≤ σ̃a < Ω1 (2.63)
a7 σ̃a − a8 , Ω1 ≤ σ̃a < Ω2
a9 (σ̃a − 1)2 + a10 , Ω2 ≤ σ̃a
where
σ uλ
σ̃a = cos(θ − θw ) (2.64)
g
2π
λa = . (2.65)
k| cos(θ − θw )|
The parameters a1 − a10 and Ω1 , Ω2 in Eq. (2.63) depend on the drag coeffi-
cient Cλ at the height z = λa :
DRAFT WAVEWATCH III version 6.07 37
Cr = κ2 [R − ln(C)]2 , (2.68)
where
zr g
R = ln √ , (2.69)
χ αu2r
where χ = 0.2 is a constant, and where α is the conventional nondimensional
energy level at high frequencies. An accurate explicit approximation to these
implicit relations is given as
−3 10.4
Cr = 10 0.021 + 1.23 . (2.70)
R + 1.85
The estimation of the drag coefficient thus requires an estimate of the
high-frequency energy level α, which could be estimated directly from the
wave model. However, the corresponding part of the spectrum is generally
not well resolved, tends to be noisy, and is tainted by errors in several source
terms. Therefore, α is estimated parametrically as (Janssen, 1989)
3/2
u∗
α = 0.57 . (2.71)
cp
38 WAVEWATCH III version 6.07 DRAFT
As the latter equation depends on the drag coefficient, Eqs. (2.69) through
(2.71) formally need to be solved iteratively. Such iterations are performed
during the model initialization, but are not necessary during the actual
model run, as u∗ generally changes slowly. Note that Eq. (2.71) can be
considered as an internal relation to the parameterization of Cr , and can
therefore deviate from actual model behavior without loss of generality. In
Tolman and Chalikov (1996), Cr is therefore expressed directly in terms of
cp .
Using the definition of the drag coefficient and Eq. (2.67) the roughness
parameter z0 becomes
z0 = zr exp −κCr−1/2 , (2.72)
and the wind velocity and drag coefficient at height λ become
ln(λa /z0 )
u λ = ur , (2.73)
ln(zr /z0 )
2
ua
Cλ = Cr , (2.74)
uλ
Finally, Eq. (2.71) requires an estimate for the peak frequency fp . To ob-
tain a consistent estimate of the peak frequency of actively generated waves,
even in complex multimodal spectra, this frequency is estimated from the
equivalent peak frequency of the positive part of the input source term (see
Tolman and Chalikov, 1996)
R R −2 −1
f cg max [ 0 , Swind (k, θ) ] df dθ
fp,i = R R −3 −1 , (2.75)
f cg max [ 0 , Swind (k, θ) ] df dθ
from which the actual peak frequency is estimated as (the tilde identifies
nondimensional parameter based on u∗ and g)
Si for β ≥ 0 or f > 0.8fp
Si,m = Xs Si for β < 0 and f < 0.6fp , (2.77)
Xs Si for β < 0 and 0.6fp < f < 0.8fp
where f is the frequency, fp is the peak frequency of the wind sea as computed
from the input source term, Si is the input source term (2.62), and 0 < Xs < 1
is a reduction factor for Si , which is applied to swell with negative β only
(defined by the user). Xs represents a linear reduction of Xs with fp providing
a smooth transition between the original and reduced input.
The drag coefficient that follows from Eq. (2.71) becomes unrealistically
high for hurricane strength wind speeds, leading to unrealistically high wave
growth rates. To alleviate this, the drag coefficient at the reference height
Cr can be capped with a maximum allowed drag coefficient Cr,max , either as
a simple hard limit
φ = b0 + b1 f˜p,i + b2 f˜p,i
−b3
. (2.82)
where h is a mixing scale determined from the high-frequency energy content
of the wave field and where φ is an empirical function accounting for the
development stage of the wave field. The linear part of Eq. (2.82) describes
dissipation for growing waves. The nonlinear term has been added to allow
40 WAVEWATCH III version 6.07 DRAFT
for some control over fully grown conditions by defining a minimum value
for φ (φmin ) for a minimum value of fp,i (fp,i,min ). If φmin is below the linear
curve, b2 and b3 are given as
b2 = f˜b3 φmin − b0 − b1 f˜p,i,min ,
p,i,min (2.83)
b3 = 8 . (2.84)
If φmin is above the linear curve, b2 and b3 are given as
φmin − b0 n o
˜
fa = ˜ ˜
, fb = max fa − 0.0025 , fp,i,min˜ , (2.85)
b1
h i
b2 = f˜bb3 φmin − b0 − b1 f˜b , (2.86)
b1 f˜b
b3 = . (2.87)
φmin − b0 − b1 f˜b
The above estimate of b3 results in ∂φ/∂ f˜p,i = 0 for f˜p,i = f˜b . For f˜p,i < f˜b ,
φ is kept constant (φ = φmin ).
The empirical high-frequency dissipation is defined as
2
u∗
Sds,h (k, θ) = −a0 f 3 αnB N (k, θ) , (2.88)
g
−a2
f u∗
B = a1 ,
g
Z 2π
σ6
αn = N (k, θ) dθ , (2.89)
cg g 2 αr 0
where αn is Phillips’ nondimensional high-frequency energy level normalized
with αr , and where a0 through a2 and αr are empirical constants. This
parameterization implies that m = 5 in the parametric tail, which has been
preset in the model. Note that in the model Eq. (2.89) is solved assuming a
deep water dispersion relation, in which case αn is evaluated as
2 k3
αn = F (k) . (2.90)
αr
The two constituents of the dissipation source term are combined using a
simple linear combination, defined by the frequencies f1 and f2 .
DRAFT WAVEWATCH III version 6.07 41
Tuned to : a0 a1 a2 b0 b1 φmin
KC stable 4.8 1.7 10−4 2.0 0.3 10−3 0.47 0.003
KC unstable 4.5 2.3 10−3 1.5 −5.8 10−3 0.60 0.003
Table 2.3: Suggested constants in the source term package of Tolman and
Chalikov. KC denotes Kahma and Calkoen (1992, 1994). First line repre-
sents default model settings.
−m−2
fi
N (ki , θ) = (1 − B) N (ki , θ) + BN (ki−1 , θ) , (2.93)
fi−1
hg Ta − Ts
ST = , (2.98)
u2h T0
where ST is a bulk stability parameter, and Ta , Ts and T0 are the air, sea
and reference temperature, respectively. Furthermore, f1 ≤ 0, c1 and c2
have opposite signs and f2 = f1 c1 /c2 . Following Tolman (2002f), default
settings of c0 = 1.4, c1 = −0.1, c2 = 0.1, f1 = −150 and ST o = −0.01
in combination with the tuning to stable stratification wave growth data
(‘KC stable’ parameter values in Table 2.3) are used. Note that this effective
wind speed was derived for winds at 10 m height. The wind correction can
be switched off by the user during compilation of the model, and default
parameter settings can be redefined by the user in the program input files.
This stability correction is activated with the STAB2 switch. The air-sea
temperature differences need to be provided by the user, e.g. using ww3 prep.
Switch: ST3
Origination: WAM model
Provided by: F. Ardhuin
DRAFT WAVEWATCH III version 6.07 43
The wind-wave interaction source terms described here are based on the wave
growth theory of Miles (1957), modified by Janssen (1982). The pressure-
slope correlations that give rise to part of the wave generation are parame-
terized following Janssen (1991).
This parameterization was further extended by Abdalla and Bidlot (2002)
to take into account a stronger gustiness in unstable atmospheric conditions.
This effect is included in the present parameterization and is activated with
the optional STAB3 switch. The formula used in STAB3 is not described herein.
For that, the reader is referred to Abdalla and Bidlot (2002). If STAB3 is used,
the air-sea temperature differences should be provided by the user, e.g. using
ww3 prep.
Efforts have been made to make the present implementation as close as
possible to the one in the ECWAM model (Bidlot et al., 2005), in particular
the stress lookup tables were verified to be identical. Later modifications
include the addition of a negative part in the wind input to represent swell
dissipation.
The source term reads (Janssen, 2004)
ρa βmax Z 4 u⋆ 2
Sin (k, θ) = e Z + z α cospin (θ − θu )σN (k, θ) + Sout (k, θ),
ρw κ 2 C
(2.99)
where ρa and ρw are the air and water densities, βmax is a non-dimensional
growth parameter (constant), κ is von Kármán’ constant, and pin is a
constant that controls the directional distribution of Sin . In the present
implementation the air/water density ratio ρa /ρw is constant. We define
Z = log(µ) where µ is given by Janssen (1991) Eq. (16), and corrected for
intermediate water depths, so that
u⋆ zu
U10 = log (2.101)
κ z1
τ
z1 = α0 p , (2.102)
1 − τw /τ
where τ = u2⋆ , and zu is the height at which the wind is specified. These two
equations provide an implicit functional dependence of u⋆ on U10 and τw /τ .
This relationship is then tabulated (Janssen, 1991; Bidlot et al., 2007).
An important part of the parameterization is the calculation of the wave-
supported stress τw ,
Z kmax Z 2π
Sin (k ′ , θ)
τw = (cos θ, sin θ) dk dθ + τhf (u⋆ , α) (cos θu , sin θu ) ,
′
0 0 C
(2.103)
which includes the resolved part of the spectrum, up to kmax , as well as
the stress supported by shorter waves, τhf . Assuming a f −X diagnostic tail
beyond the highest frequency, τhf is given by
Z 2π
u2⋆ σmax
X
2πσ
τhf (u⋆ , α) = 2 N (kmax , θ) max {0, cos (θ − θu )}3 dθ
g 2πCg (kmax ) 0
Z
βmax 0.05∗g/u⋆ eZhf Zhf
4
× 2 dσ (2.104)
κ σmax σ X−4
where the second integral is a function of u⋆ and the Charnock coefficient
α only, which is easily tabulated. In practice the calculation is coded with
X = 5, and the variable Zhf is defined by,
Table 2.4: Parameter values for WAM4, BJA and the 2012 update in the
ECWAM model. Source term parameterizations that can be reset via the
SIN3 and SDS3 namelist. BJA is generally better than WAM4. The default
parameters in ST3 corresponds to BJA. Please note that the names of the
variables only apply to the namelists. In the source term module the names
are slightly different, with a doubled first letter, in order to differentiate the
variables from the pointers to these variables.
ρa u⋆ 2 κC
Sout (k, θ) = 2s1 κ cos (θ − θu ) − (2.106)
ρw C u⋆ log(kz0 )
Table 2.5: Parameter values for WAM4, BJA and the update by Bidlot (2012).
Source term parameterizations that can be reset via the SDS3 namelist. BJA
is generally better than WAM4. Please note that the names of the variables
only apply to the namelists. In the source term module the names are slightly
different, with a doubled first letter, in order to differentiate the variables
from the pointers to these variables.
" 2 #
k k
Sds (k, θ)WAM = Cds α2 σ δ1 + δ2 N (k, θ) (2.107)
k k
where Cds is a non-dimensional constant δ1 and δ2 are weight parameters,
R p 1/p
k N (k, θ) dθ
k= R (2.108)
N (k, θ) dθ
with p a constant power. Similarly, the mean frequency is defined as
R 1/p
σ p N (k, θ) dθ
σ= R , (2.109)
N (k, θ) dθ
2
so that the mean steepness is α = Ek .
The mean frequency also occurs in the definition of the maximum fre-
quency of prognostic integration of the source terms. Since the definition of
that frequency may be different from that of the source term it is defined
with another exponent ptail .
Unfortunately these parameterizations are sensitive to swell. An increase
in swell height typically reduces dissipation at the windsea peak because the
mean wavenumber k and thus the mean steepness α are reduced. For p < 2,
as in the WAM-Cycle 4 and BJA parameterizations, this sensitivity is much
DRAFT WAVEWATCH III version 6.07 47
larger and opposite to the expected effect of short wave modulation by long
waves.
The source term code was generalized to allow the use of WAM4, BJA
or others ECWAM parameterization, via a simple change of the parameters
in the namelists SIN3 and SDS3, see Tables 2.4 and 2.5. At present, the
default values of the namelist parameters correspond to BJA (Bidlot et al.,
2005).
Switch: ST4
Origination: WAVEWATCH III
Provided by: F. Ardhuin
This family of parameterizations uses a positive part of the wind input taken
from WAM cycle 4 with an ad hoc reduction of u⋆ , implemented in order to
allow a balance with a saturation-based dissipation that uses different options
for a cumulative term. This correction also reduces the drag coefficient at
high winds. This is done by reducing the wind input for high frequencies
and high winds. Many different adjustments can be made by changing the
namelist parameters. A few successful combinations are given by tables 2.6
and 2.7, with results described by (Rascle and Ardhuin, 2013; Stopa et al.,
2016). Further calibration to any particular wind field should be done for
best performance. Guidance for this is given by Stopa (2018). We also note
that the particular set of parameters T400 corresponds to setting IPHYS=1
in the ECWAM code cycle 45R2, with a few differences related to the fact
that precomputed stress tables have now been removed from ECWAM.
The reduction of u⋆ in eq. (2.99) is obtained by replacing it with u′⋆ (k)
defined for each frequency as
Z k Z 2π
2 2 Sin (k ′ , θ)
(u′⋆ ) = u⋆ (cos θu , sin θu ) − |su | (cos θ, sin θ) dk dθ,
′
0 0 C
(2.110)
where the sheltering coefficient |su | ∼ 1 can be used to tune the stresses
at high winds, which would be largely overestimated for su = 0. For su >
0 this sheltering is also applied within the diagnostic tail in eq. (2.104),
48 WAVEWATCH III version 6.07 DRAFT
which requires the estimation of a 3-dimensional look-up table for the high
frequency stress, the third parameter being the energy level of the tail.
The STAB3 switch, described above for use with ST3, may also be used
with ST4. If STAB3 is used, the air-sea temperature differences should be
provided by the user, e.g. using ww3 prep.
The swell dissipation parameterization of Ardhuin et al. (2009a) is acti-
vated by setting s1 to a non-zero integer value, and is given by a combination
of the viscous boundary layer value,
ρa n √ o
Sout,vis (k, θ) = −s5 2k 2νσ N (k, θ) , (2.111)
ρw
with the turbulent boundary layer expression
ρa
Sout,tur (k, θ) = − 16fe σ 2 uorb,s /g N (k, θ) , (2.112)
ρw
giving the full term
where the two weights rvis and rtur are defined from a modified air-sea bound-
ary layer significant Reynolds number Re = 2uorb,s Hs /νa
The first equation (2.111) is the linear viscous decay by Dore (1978), with
νa the air viscosity and s5 is an O(1) tuning parameter. A few tests have
indicated that a threshold Rec = 2×105 ×(4 m/Hs )(1−s6 ) provides reasonable
result with s6 = 0, although it may also be a function of the wind speed, and
we have no explanation for the dependence on Hs . With s6 = 1, a constant
threshold close to 2 × 105 provides similar – but less accurate – results.
DRAFT
Par. WWATCH var. namelist T471 T471f T400/Iphys = 1 T405 T500 T601
zu ZWND SIN4 10.0 10.0 10.0 10.0 10.0 10.0
α0 ALPHA0 SIN4 0.0095 0.0095 0.0062 0.0095 0.0095 0.0095
βmax BETAMAX SIN4 1.43 1.33 1.42 1.55 1.52 2.0
pin SINTHP SIN4 2 2 2 2 2 1
zα ZALP SIN4 0.006 0.006 0.008 0.006 0.006 0.006
Table 2.6: Parameter values for T471, T471f, T400, T405, T500, and T601 source term parameterizations
that can be reset via the SIN4 namelist. Please note that the names of the variables only apply to the
namelists. In the source term module the names are slightly different, with a doubled first letter, in order
to differentiate the variables from the pointers to these variables, and the SWELLFx are combined in one
array SSWELLF. Values highlighted in bold are different from the default values set by ww3 grid.
49
50 WAVEWATCH III version 6.07 DRAFT
TEST471 generally provides the best results at global scale when using
ECMWF winds, with the only serious problem being a low bias for Hs >
8 m. TEST451f corresponds to a retuning for CSFR wind reanalysis from
NCEP/NCAR (Saha et al., 2010), and has almost no bias all the way to
Hs = 15 m. Simulations and papers prepared before March 2012, used
slightly different values, e.g. TEST441 and TEST441f can be recovered by
setting SWELLF7 to 0, and TEST471 also used su = 1 and a few other
adjustements (see manual of version 4.18). TEST405 is slightly superior for
short fetches, and TEST500 is intermediate in terms of quality but it also
includes depth-induced breaking in the same formulation, and thus may be
more appropriate for depth-limited conditions.
Eq. (2.112) is a parameterization for the nonlinear turbulent decay. When
comparing model results to observations, it was found that the model tended
to underestimate large swells and overestimate small swells, with regional
biases. This defect is likely due, in part, to errors in the generation or non-
linear evolution of theses swells. However, it was chosen to adjust fe as a
function of the wind speed and direction,
where fe,GM is the friction factor given by Grant and Madsen’s (1979) theory
for rough oscillatory boundary layers without a mean flow, using a roughness
length adjusted to rz times the roughness for the wind z1 . The coefficient
s1 is an O(1) tuning parameter, and the coefficients s2 and s3 are two other
adjustable parameters for the effect of the wind on the oscillatory air-sea
boundary layer. When s2 < 0, wind opposing swells are more dissipated than
following swells. Further, if s3 > 0, Sout is applied to the entire spectrum
and not just the swell.
The dissipation term is parameterized from the wave spectrum saturation,
following the general ideas of Phillips (1985), which were initially explored
in a numerical modeling framework by Alves and Banner (2003). However,
using a saturation parameterization only makes sense when the spectrum
is smooth. In general, going from the spectral space to the physical space
requires integrating the saturation over a finite spectral band in wavenumber
and direction to compute the breaking probability and then deconvolve this
integral to obtain a spectral dissipation rate. Because such operations would
be too time consuming we have implemented two approaches. One uses on
integration over directions only (Ardhuin et al., 2010), while the other uses
DRAFT WAVEWATCH III version 6.07 51
As a result, a sea state with two systems of same energy but opposite direction
will typically produce less dissipation than a sea state with all the energy
radiated in the same direction.
Based on recent analysis by Veras Guimarães et al. (2018) and
Peureux et al. (2019), this saturation is enhanced by a factor that represents
the effect of long waves on short waves
√ √
1 + Mθ mssθ + Nθ nssθ . (2.119)
where
B (k) = max {B ′ (k, θ), θ ∈ [0, 2π[} . (2.121)
52 WAVEWATCH III version 6.07 DRAFT
However, because they used a zero-crossing analysis, for a given wave scale,
there are many times when waves are not counted because the record is
dominated by another scale: in their analysis there is only one wave at any
given time. This tends to overestimate the breaking probability by a factor
of 2 (Filipot et al., 2010), compared to the present approach in which it is
considered that several waves (of different scales) may be present at the same
place and time. This effect is corrected simply dividing P by 2.
With this approach the spectral
R density of crest length (breaking or not)
per unit surface l(k) such that l(k)dkx dky , we take
and the spectral density of breaking crest length per unit surface is Λ(k) =
l(k)P (k). Assuming that any breaking wave instantly dissipates all the en-
ergy of all waves with frequencies higher than a factor rcu or more, the cu-
mulative dissipation rate is simply given by the rate at which these shorter
waves are taken over by larger breaking waves, times the spectral density,
namely Z
Sbk,cu (k, θ) = −Ccu N (k, θ) ∆C Λ(k′ )dk′ , (2.124)
f ′ <rcu f
DRAFT WAVEWATCH III version 6.07 53
where rcu defines the maximum ratio of the frequencies of long waves that
will wipe out short waves. This gives the source term,
−14.2Ccu
Sbk,cu (k, θ) = N (k, θ)
π2
Z rcu
2 k Z 2π np p o2
max B(f ′ , θ′ ) − Br , 0 dθ′ dk ′(. 2.125)
0 0
TURB ρa u2⋆
Sds (k, θ) = −2Cturb σ cos(θu − θ)k N (k, θ) . (2.126)
gρw
The coefficient Cturb is of order 1 and can be used to adjust for ocean strati-
fication and wave groupiness.
All relevant source term parameters can be set via the namelists SIN4 and
SDS4 to yield parameterizations TEST441b, TEST405, both described by
Ardhuin et al. (2010) or TEST500 described by Filipot and Ardhuin (2012b)
(see Tables 2.6 and 2.7). Please note that the DIA constant C has been
slightly adjusted in TEST441b, C = 2.5 × 107 . TEST441f corresponds to a
re-tuned wind input formulation when using NCEP/NCAR winds.
54
Par. WWATCH var. namelist T471 T400/Iphys = 1 T405 T500 T601
fFM FXFM3 SDS4 2.5 2.5 2.5 9.9 5
SDSC1 SDS4 0 0 0 1.0 0
sat
Cds SDSC2 SDS4 −2.2 × 10−5 −2.2 × 10−5 −2.2 × 10−5 0.0 −2.2 × 10−5
BCK
Cds SDSBCK SDS4 0 0 0 0.185 0
HCK
Cds SDSHCK SDS4 0 0 0 1.5 0
Table 2.7: Same as Table 2.6, for the SDS4 and SNL1 namelists. Bold values are different from the default
values set by ww3 grid.
DRAFT
DRAFT WAVEWATCH III version 6.07 55
2.3.11 Sin + Sds : Rogers et al. 2012 & Zieger et al. 2015
Switch: ST6
Origination: AUSWEX, Lake George
Provided by: A. Babanin, I. Young, M. Donelan, E. Rogers, S. Zieger, Q. Liu
Wind input. Apart from first direct field measurements of the wind input
under strong wind forcing, the Lake George experiment revealed a number
of new physical features for wind-wave exchange, previously not accounted
for: (i) full air-flow separation that leads to a relative reduction of wind
input for conditions of strong winds/steep waves; (ii) dependence of the wave
growth rate on wave steepness, which signifies nonlinear behavior of the wind-
input source function; (iii) enhancement of input in the presence of wave
breaking (Donelan et al., 2006; Babanin et al., 2007) (the last feature was
not implemented in here). Following Rogers et al. (2012), this input source
term is formulated as
ρa
Sin (k, θ) = σ γ(k, θ) N (k, θ), (2.127)
ρw
p
γ(k, θ) = G Bn W, (2.128)
p
G = 2.8 − 1 + tanh(10 Bn W − 11) , (2.129)
Bn = A(k) N (k)σ k 3 , (2.130)
2
Us
W = −1 . (2.131)
c
In (2.127)−(2.131) ρa and ρw are densities of air and water, respectively, Us
is the scaling wind speed, c refers to wave phase speed, σ is radian frequency
56 WAVEWATCH III version 6.07 DRAFT
U
2
W1 = max 0, cos(θ − θw ) − 1 , (2.133)
c
2 U
W2 = min 0, cos(θ − θw ) − 1 . (2.134)
c
The directional distribution of W is implemented as the sum of favorable
winds (2.133) and adverse winds (2.134), so that they complement one an-
other (i.e. W = {W1 ∪ W2 }, see Negative Input later this section):
W = W 1 − a0 W 2 . (2.135)
Wind input constraint. One important part of the input is the calcula-
tion of the momentum flux from the atmosphere to the ocean, which must
agree with the flux received by the waves. At the surface, the stress ~τ can
be written as the sum of the viscous and wave-supported stress: ~τ = ~τv + ~τw .
The wave-supported stress ~τw is used as the principal constraint for the wind
input and cannot exceed the total stress ~τ ≤ ~τtot . Here the total stress is de-
termined by the flux parameterization: ~τtot = ρa u⋆ |u⋆ |. The wave-supported
stress τw can be calculated by integration over the wind-momentum-input
function:
Z 2π Z kmax
Sin (k ′ , θ)
~τw = ρw g cos θ, sin θ dk ′ dθ. (2.136)
0 0 c
DRAFT WAVEWATCH III version 6.07 57
The reduction (2.137) is a function of wind speed and phase speed and follows
an exponential form designed to reduce energy from the discrete part of the
spectrum. The strength of reduction is controlled by coefficient µ, which has
a greater impact at high frequencies and only little impact on the energy-
dominant part of the spectrum. The value of µ is dynamically calculated by
iteration at each integration time step (Tsagareli et al., 2010).
The drag coefficient is given by
Negative Input. Apart from the positive input, ST6 also has a negative
input term in order to attenuate the growth of waves in those parts of the
wave spectrum where an adverse component of the wind stress is present
58 WAVEWATCH III version 6.07 DRAFT
(2.133–2.134). The growth rate for adverse winds is negative (Donelan, 1999)
and is applied after the constraint of the wave-supported stress τw is met.
The value of a0 (in 2.135) is a tuning parameter in the parameterization of
the input and is adjustable through the SIN6 namelist parameter SINA0.
generic spectral density used for normalization, then the inherent breaking
component can be calculated as
p
σ ∆(k) 1
T1 (k) = a1 A(k) . (2.142)
2π F(k)
The cumulative dissipation term is not local in frequency space and is based
on an integral that grows towards higher frequencies, dominating at smaller
scales:
Zk p
cg ∆(k) 2
T2 (k) = a2 A(k) dk. (2.143)
2π F(k)
0
Parameter WWATCH var. namelist vers. 4.18 vers. 5.16 vers. 6.07
FT SDSET SDS6 T T T
a1 SDSA1 SDS6 6.24E-7 3.74E-7 4.75E-6
p1 SDSP1 SDS6 4 4 4
a2 SDSA2 SDS6 8.74E-6 5.24E-6 7.00E-5
p2 SDSP2 SDS6 4 4 4
Υ† SINWS SIN6 n/a n/a 32.0
Nhf † SINFC SIN6 n/a n/a 6.0
a0 SINA0 SIN6 0.04 0.09 0.09
b1 is constant CSTB1 SWL6 n/a F F
b1 , B 1 SWLB1 SWL6 0.25E-3 0.0032 0.0041
FAC CDFAC FLX4 1.00E-4 1.00E-4 1.0
C NLPROP SNL1 3.00E7 3.00E7 3.00E7
†
In WW3 version 4.18 and 5.16, Υ = 28.0 and Nhf = 6.0 were hard-coded in
ST6 module.
Updates since vers. 6.07 Following Rogers et al. (2012), the scaling wind
speed Us = 28u∗ (2.132) were adopted in vers. 4.18 and vers. 5.16 (Table 2.8).
Such configurations of ST6 have been proven skillful for different spatial scales
and under different weather conditions (e.g. Zieger et al., 2015; Liu et al.,
2017). Zieger et al. (2015, their Fig. 5), however, also suggested ST6 (vers.
4.18 and vers. 5.16) was inclined to overestimate the energy level of the high-
frequency tail of the spectrum, indicating an inaccurate balance of different
source terms in this specific frequency range.
Rogers (2014, unpublished work) found that using Us = 32u∗ (i.e.,
Υ = 32) could improve model skills in estimating tail level in the ST6 im-
plementation in SWAN [see also Rogers (2017)]. Following this, Liu et al.
(2019) carried out a thorough recalibration of ST6 with WW3, and the new
set of parameters (i.e., a0 , a1 , a2 , B1 ) is summarized in the last column
of Table 2.8. The updated ST6 package not only performs well in predict-
ing commonly-used bulk wave parameters (e.g., significant wave height and
wave period) but also yields a clearly-improved estimation of high-frequency
energy level (in terms of saturation spectrum and mean square slope). In the
duration-limited test, the omnidirectional frequency spectrum E(f ) from the
recalibrated ST6 shows a clear transition behavior from the power law of ap-
proximately f −4 to the power law of about f −5 , comparable to previous field
studies (Forristall, 1981).
Apart from applying ST6 with the DIA (section 2.3.2) nonlinear solver,
Liu et al. (2019) also made an attempt to run ST6 with the GMD parame-
terization of Snl (section 2.3.4). As a first step, only the GMD configuration
with 5 quadruplets and a three-parameter quadruplet definition (i.e., G35
in Tolman, 2013a) was adopted. The tunable parameters of the GMD which
were specifically optimized for ST6 by using the holistic genetic optimization
62 WAVEWATCH III version 6.07 DRAFT
ST6 a0 a1 a2 B1
0.05 4.75 × 10−6 7.00 × 10−5 6.00 × 10−3
GMD λ µ θ12 (◦ ) Cdeep
0.127 0.000 3.0 4.88 × 107
0.127 0.097 21.0 1.26 × 108
0.233 0.098 26.5 6.20 × 107
0.283 0.237 24.7 2.83 × 107
0.355 0.183 − 1.17 × 107
Table 2.9: Summary of calibration parameters for ST6 when it is applied with
the GMD nonlinear solver (or specifically, G35)
where Hs is the significant wave height, d is the water depth, ǫp is the signif-
icant steepness of the spectral peak, given by
ǫp = Hp kp /2
hR R i1/2 (2.148)
2π 1.3f
Hp = 4 0 0.7fpp F (f, θ)df dθ
where kp and fp are the peak wavenumber and frequency, respectively. Note
that only the contribution from wind seas is considered when we calculate Hs ,
Hp and fp (kp ) from F (f, θ) (Eqs. 2.147 and 2.148). Following Janssen et al.
(1989) and Bidlot (2001), we consider spectral components as wind seas when
c(k)
< βw , (2.149)
U10 cos(θ − θu )
where c(k) is the phase velocity, U10 is the wind speed at 10 m above the
sea surface, θu is the wind direction and βw is the constant wind forcing
parameter. We implemented βw as a tunable parameter (the MISC namelist
parameter BTBET), and used βw = 1.2 by default.
Bulk Adjustments. The source term ST6 has been calibrated with flux
parameterization FLX4. Bulk adjustment to the wind filed can be achieved by
re-scaling the drag parameterization FLX4 through the FLX4 namelist pa-
rameter CDFAC=1.0E-46 . This has a similar effect to tuning variable βmax
in ST4 source term package, equations (2.99) and (2.104), which is cus-
tomizable through namelist parameter BETAMAX (see section 2.3.9–2.3.10).
Ardhuin et al. (2011a) and Rascle and Ardhuin (2013) listed different sets
of values that allow us to adjust to different wind fields. When optimizing
the wave model, it is recommended to only re-tune parameters a0 , b1 and
FAC. Again, FAC can potentially eliminate a bias in the wind field, which
6
This was changed to CDFAC=1.0 since vers. 6.07 as the magnitude 10−4 was hard-coded
in FLX4 module. (Table 2.8)
64 WAVEWATCH III version 6.07 DRAFT
typically changes with the selection of the reanalysis product. This reduc-
tion was tested for extreme wind conditions such as hurricanes (Zieger et al.,
2015). In a global hindcast, the coefficient for the negative input can be used
to tune the bulk of the wave heights in scatter comparisons, whereas the scal-
ing coefficient for swell dissipation primarily affects large sea states. When
the discrete interaction approximation (DIA) is used to compute the four-
wave interaction, the default value for the proportionality constant changes
to C = 3.00 × 107 .
Limitations of the code: For vers. 4.18 and vers. 5.16, in cases where
the minimum time step for the dynamical source term integration is much
smaller than the overall time step (i.e. less than 1/15th), the model becomes
unstable. The issue has been solved since vers. 6.07.
Switch: LN1
Origination: Pre-WAM
Provided by: H. L. Tolman
A linear input source term is useful to allow for the consistent spin-up of a
model from quiescent conditions, and to improve initial wave growth behavior.
The parameterization of Cavaleri and Malanotte-Rizzoli (1981) is available
in WAVEWATCH III, with a filter for low-frequency energy as introduced
by Tolman (1992). The input term can be expressed as
2
ρa
Slin (k, θ) = 80 g −2 k −1 max [0, u∗ cos(θ − θw )]4 G , (2.150)
ρw
where ρa and ρw are the densities of air and water, respectively, and where
G is the filter function
" −4 #
f
G = exp − . (2.151)
ff ilt
In Tolman (1992) the filter frequency ff ilt was given as the Pierson-Moskowitz
frequency fP M , which in turn was estimated as in Eq. (2.61). In the present
implementation, the filter can be related to both fP M and the cut-off fre-
quency of the prognostic part of the spectrum fhf as defined in Eq. (2.17)
DRAFT WAVEWATCH III version 6.07 65
Switch: BT1
Origination: JONSWAP experiment
Provided by: H. L. Tolman
Switch: BT4
Origination: Crest model
Provided by: F. Ardhuin
Table 2.10: Parameter values for the SHOWEX bottom friction (default
values) and the original parameter values used by Tolman (1994). Source
term parameters can be modified via the BT4 namelist. Please note that the
name of the variables only apply to the namelists. In the source term module
the seven variables are contained in the array SBTCX.
σ2
Sbot (k, θ) = −fe ub N (k, θ) , (2.154)
2g sinh2 (kd)
roughness ks ,
A 2
ψ
kr = ab × A1 , (2.155)
ψc
u2.8
b a−0.4
b
ks = 0.57 . (2.156)
[g (s − 1)] (2π)2
1.4
Switch: BT8
Origination: NRL/SWAN
Provided by: M. Orzech and E. Rogers
68 WAVEWATCH III version 6.07 DRAFT
Two formulations for wave damping by viscous fluid mud have been imple-
mented in WAVEWATCH III based on earlier implementations in a SWAN
code at NRL. As with wave damping by ice (Sect. 2.4.1), both rely on the
concept of complex wave number (Eq. (2.182)). Both treat the mud layer
as a viscous fluid, and both assume that the mud depth is comparable to its
Stokes’ boundary layer thickness. The first formulation (Dalrymple and Liu
(1978); hereafter D&L) is a numerical solution. The second formulation (Ng
(2000); hereafter Ng) is an analytical, asymptotic solution, so calculations
tend to be much faster than with D&L. For the range of mud characteristics
used by Rogers and Holland (2009), which are based on field measurements
(and estimates), the methods produce very similar results.
In each case, the mud-induced dissipation is added to contributions from
other source/sink terms in Eq. (2.8).
its effect is not passed back to the main program. The only effect is via ki
(dissipation). Full implementation of kr , already possible with IC3, and will
be available in a future version of the model.
Limitations of the physics: 1) Both models (BT8, BT9) neglect elasticity in
the mud layer. 2) Non-Newtonian response of the mud (e.g. as a thixotropic
fluid) is not available. 3) Mud thickness should be interpreted not as the total
mud thickness, but rather as the thickness of the fluidized mud layer. This
value is notoriously difficult to determine in practice (Rogers and Holland
(2009)). Fortunately, since WAVEWATCH III supports nonstationary and
non-uniform input for the mud parameters, it is possible to address items (2)
and (3) via coupling with a numerical model of the mud layer: no additional
changes to the WAVEWATCH III code are required for this.
Switch: BT9
Origination: NRL/SWAN
Provided by: M. Orzech and E. Rogers
To activate viscous mud effects with the Ng routines, the user specifies BT9
in the switch parameter file. The Ng method computes ki as:
δm (Br′ + Bi′ )k1 2
ki ≈ Dmud ≡ , (2.164)
sinh2k1 d + 2k1 d
Here, δm is the Stokes boundary layer thickness for mud, d is water depth,
and k1 is leading order term of the real part of the mud-modified wave number
kmud , respectively, in a Taylor expansion about the mud-water interface, and
Dmud is the leading order term in the full expansion of ki . B ′ is a complex
coefficient affecting the depth profile of the velocities. For additional details,
see Section 2.3.15 and Ng (2000).
2
δ = 0.25 Qb fm Hmax , (2.165)
where Qb is the fraction of breaking waves in the random field, fm is the
mean frequency and Hmax is the maximum individual height a component in
the random wave field can reach without breaking (conversely, above which
all waves would break). In BJ78 the maximum wave height Hmax is defined
using a Miche-type criterion (Miche, 1944),
Hmax = γ d, (2.167)
where d is the local water depth and γ is a constant derived from field and
laboratory observation of breaking waves. This approach will exclusively
represent depth-induced breaking. Although more general breaking criteria
for Hmax as a simple function of local depth exist (e.g., Thornton and Guza,
1983), it should be noted that the coefficient γ refers to the maximum height
of an individual breaking wave within the random field. McCowan (1894)
DRAFT WAVEWATCH III version 6.07 71
δ H2
Sdb (k, θ) = −α F (k, θ) = −0.25 α Qb fm max F (k, θ), (2.169)
E E
where E is the total spectral energy, and α = 1.0 is a tunable parameter.
The user can select between Eqs. (2.166) and (2.167), and adjust γ and α.
Defaults are Eq. (2.167), γ = 0.73 and α = 1.0.
Switch: TR1
Origination: SWAN
Provided by: A. Van der Westhuysen
g Hs Tm01 2
Ur = √ . (2.171)
8 2π 2 d2
The biamplitude is obtained by spatially integrating the evolution equa-
tion for the bispectrum, by which the biamplitude is rendered a spatially local
function. This result in a expression for the biamplitude which has a spa-
tially slowly-varying component and a fast-oscillating component, of which
the latter is neglected. Using the derived expressions for the biphase and
biamplitude, the spectral evolution equation (a one-equation model) can be
solved. To reduce the computational cost even further, the complete set of all
interacting triads are represented by only the set of self sum interactions, that
is, triads in which a component of frequency σ interacts with a component of
the same frequency to exchange energy flux with a component of frequency
σ + σ = 2σ. The final expression for the effect of triad interactions on a com-
ponent with frequency σ is made up of two contributions—one adding energy
flux to σ (transferred flux arriving from 1/2σ) and one subtracting energy
flux from σ (transfer going to 2σ). The expression implemented, adapted for
radian frequencies, reads:
− +
Snl3 (σ, θ) = Snl3 (σ, θ) + Snl3 (σ, θ), (2.172)
with
+
Snl3 (σ, θ) = max[0, αEB 2πccg J 2 | sin β| E 2 (σ/2, θ) − 2E(σ/2, θ)E(σ, θ) ],
(2.173)
and
− +
Snl3 (σ, θ) = −2Snl3 (2σ, θ) . (2.174)
DRAFT WAVEWATCH III version 6.07 73
Because of a Jacobian in the transfer of the energy flux from σ to 2σ, the flux
density arriving at 2σ is half that leaving σ (hence the factor 2 appearing in
Eq. (2.174)). The interaction coefficient J, describing self interaction in the
nonlinearity range 0 ≤ U r ≤ 1, is given by (Madsen and Sorensen, 1993):
2
kσ/2 (gd + 2c2σ/2 )
J= 2 . (2.175)
kσ d(gd + 15
gd3 kσ2 − 52 σ 2 d2 )
The LTA formulation is implemented along each propagation direction of the
directional spectrum, yielding an isotropic, directionally decoupled represen-
tation of triad interaction. The value of the proportionality coefficient is
set at αEB = 0.05. The results produced by the LTA are furthermore quite
sensitive to the choice of the frequency up to which the interactions are cal-
culated, denoted here as fmax,EB . (Eldeberky, 1995) recommends that the
interactions be computed up to a frequency of 2.5 times the mean frequency
(fmax,EB = 2.5fm01 ).
Switch: BS1
Origination: CREST model
Provided by: F. Ardhuin
Z 2π
π k ′2 M 2 (k, k′ )
Sbs (k) = F B (k − k′ ) [N (k′ ) − N (k)] dθ′ , (2.176)
2 0 σσ k Cg + k · U
′ ′ ′
gk · k′
M (k, k′ ) ≃ Mb (k, k′ ) = (2.177)
cosh(kd) cosh(k ′ d)
where the effect of bottom-induced current and elevation changes are ne-
glected, as appropriate for low to moderate current velocity relative to the
intrinsic phase speed, i.e. U/C < 0.3. For larger Froude numbers, in partic-
ular in near-blocking conditions, the present implementation is not expected
to be accurate. In Eq. (2.176), k and k ′ are related by the resonance condi-
tion, ω = ω ′ , i.e. σ + k · U = σ ′ + k′ · U, where U is the phase advection
velocity (see, e.g., WISE Group, 2007).
The bottom spectrum F B (k) is specified in the file bottom spectrum.inp.
This spectrum may be determined from multi-beam bathymetric data. In the
absence of detailed bathymetric data, the sand dune spectrum may be pa-
rameterized based on the work of Hino (1968). Recent observations generally
confirm the earlier data on sand dune spectra (Ardhuin and Magne, 2007),
with a non-dimensional constant spectrum for large k, i.e. F B (k) ∼ k −4 .
The bottom spectrum is double-sided for simplicity of calculation and
normalized such that the bottom variance (in square meters) is
Z ∞Z ∞
2
< d >= F B (kx , ky )dkx dky . (2.178)
−∞ −∞
Switch: UOST
Origination: WAVEWATCH III
Provided by: L. Mentaschi
1 − βl (k) cg (k)
Sld = −ψld (k) N , (2.180)
βl (k) ∆L
βu (k) cg (k)
Sse = −ψse (k) −1 N , (2.181)
αu (k) ∆L
where Sld and Sse are the local dissipation and the shadow effect, N is
the spectral density, k is the wave vector, cg is the group velocity, ∆L is
the path length of the spectral component in the cell, and the ψ factors
model the reduction of the dissipation in presence of local wave growth. The
subscripts l and u of α and β indicate that these coefficients can be referred,
respectively, to the cell and to the upstream polygon. For a more detailed
explanation on the theoretical framework of UOST, the reader is referred to
(Mentaschi et al., 2015b, 2018a).
Automatic generation of mesh parameters. An open-source python
package (alphaBetaLab, https://github.com/menta78/alphaBetaLab) was
developed for the automatic estimation, from real-world bathymetry, of the
upstream polygons, of the transparency coefficients αl , βl , αu , βu , and of the
other parameters needed by UOST. alphaBetaLab considers the cells as free
polygons, and estimates the transparency coefficients from the cross section
of the unresolved obstacles versus the incident spectral component (figure
2.1cd). This involves, that it can be applied to any type of mesh, including
unstructured triangular and SMC meshes (as of August 2018 only regular
and triangular meshes are handled, but support for SMC meshes will be
soon added). We need to mention that while UOST would be able to modu-
late the energy dissipation with the spectral frequency, only the direction is
currently considered in alphaBetaLab. For more details on the algorithms im-
plemented in alphaBetaLab, the user is referred to Mentaschi et al. (2018a).
Mentaschi et al. (2018c) provides the documentation of the software and of
its architecture, along with use guidance and illustrative examples.
Time step settings. In WAVEWATCH III the source terms are ap-
plied at the end of each global time step. Therefore, to work properly on a
given cell, UOST needs a global time step lower or equal to the critical CFL
DRAFT WAVEWATCH III version 6.07 77
Figure 2.1: a: a square cell (A) and its upstream polygon (A', delimited by
blue line, in light blue color) for a spectral component propagating with group
velocity cg . The joint BCD polygon represents the neighborhood polygon. b:
same as a, but for a triangular mesh (the hexagons approximate the median
dual cells). c: Computation of α and β for a square cell, Ns = 4, and
a spectral component propagating along the x axis. d: Like c, but for a
hexagonal cell and for a tilted spectral component. In panel d the gray
squares represent unresolved obstacles.
78 WAVEWATCH III version 6.07 DRAFT
Namelist parameter
Description default value
UOSTFILELOCAL Local α/β input obstructions local.gridname.in
file path
UOSTFILESHADOW Shadow α/β in- obstructions shadow.gridname.in
put file path
UOSTFACTORLOCAL Calibration 1
factor for local
transparencies
UOSTFACTORSHADOW Calibration fac- 1
tor for shadow
transparencies
time step of the cell, i.e., the amount of time needed by the fastest spectral
component to entirely cross the cell. Otherwise, part of the energy will leak
through the cell without being blocked (Mentaschi et al., 2018a).
In unstructured grids with cells of very different sizes, the application
of UOST to all the cells, including the smallest ones, may come with an
excedingly small global time step that would affect the economy of the model.
To avoid this problem the user can set alphaBetaLab in order to neglect cells
smaller than a user-defined threshold, and then set in WAVEWATCH III
a global time step equal to the critical CFL time step related with that
threshold (Mentaschi et al., 2018c).
Switch: XXn
Origination: —
Provided by: user
This slot is intended for a source term that is not yet classified in Eq. (2.16).
Almost by definition, it cannot be provided here.
DRAFT WAVEWATCH III version 6.07 79
k = kr + iki , (2.182)
with the real part kr representing impact of the sea ice on the physical wave-
length and propagation speeds, producing effects analogous to shoaling and
refraction by bathymetry, whereas the imaginary part of the complex wave-
number, ki , is an exponential decay coefficient ki (x, y, t, σ) (depending on lo-
cation, time and frequency, respectively), producing wave attenuation. The
ki is introduced as Sice /E = −2cg ki , where Sice is a source term (see also
Komen et al. (1994), pg. 170). With the methods that provide kr , e.g. IC2,
IC3, and IC5, the sea ice effects require solution of a new dispersion relation.
The effect of sea ice on ki is used for all source functions in WAVE-
WATCH III version 6: IC1, ..., IC5. The effect of sea ice on kr has been
implemented for IC2 and IC3, but is exported for use in the rest of the code
only for IC3, and this remains an experimental feature.
The ice source functions are scaled by ice concentration.
In the case of ice, up to five input parameters are allowed as non-
stationary and non-uniform fields. These can be referred to generically as
Cice,1 , Cice,2 , ..., Cice,5 . The meaning of the ice parameters will vary depend-
ing on which Sice routine is selected. For example, in case of IC1, only one
parameter is specified, Cice,1 . In some cases, e.g. IC3 and IC4, there are
options for taking the simpler approach of inputting the same variables as
stationary and uniform, defined using namelist parameters.
The reader is referred to the regression tests ww3 tic1.1-3 and ww3 tic2.1
for examples of how to use the new ice source functions.
Use within ww3 shel: Non-stationary and non-uniform input ice parame-
DRAFT WAVEWATCH III version 6.07 81
ters are permitted. In the case where any of the ice and mud source functions
are activated with the switches IC1, IC2, IC3, BT8, or BT9, ww3 shel will antic-
ipate intructions for 8 fields (5 for ice, then 3 for mud). These are given prior
to the “water levels” information. The new fields can optionally be specified
as a homogeneous field using lines found near the end of ww3 shel.inp.
Use within ww3 multi (New in WAVEWATCH III version 6): Using the
namelist method of providing instructions to ww3 multi, it is now possible to
prescribe mud and ice coefficients as non-stationary and non-uniform fields in
ww3 multi. Prior to version 6, this was only possible with ww3 shel. However,
the new method of reading these instructions via ww3 multi.nml has not yet
been tested by this author at time of writing.
Separation of the source terms: The source terms IC1,...,IC5 predict dis-
sipation of wave energy. The reflection and scattering of waves from sea ice
(e.g. Wadhams (1975)) are not dissipation: they are conservative processes.
They are treated separately in IS1 and IS2.
Switch: IC1
Origination: WAVEWATCH III/NRL
Provided by: E. Rogers and S. Zieger
The first implemented method (IC1) is for the user to specify ki (x, t),
which is uniform in frequency space, Cice,1 = ki . The parameters
Cice,2 ,...,Cice,5 are not used. An example setting is Cice,1 = 2 × 10−5 . De-
scriptions specific to IC2 and IC3 are given in following sections.
A full description of IC1 can be found in Rogers and Orzech (2013) and a
concise summary is given in Rogers et al. (2018a). This simple method was
applied in Li et al. (2015) and is used as the modeling component of a model-
data inversion procedure by Rogers et al. (2016), Rogers et al. (2018a), and
Rogers et al. (2018b).
82 WAVEWATCH III version 6.07 DRAFT
Switch: IC2
Origination: WAVEWATCH III/NRL
Provided by: E. Rogers, S. Zieger, F. Ardhuin
This method for representing the dissipation of wave energy by wave-ice inter-
action is based on the papers by Liu and Mollo-Christensen (1988), Liu et al.
(1991) and Ardhuin et al. (2015). The main input ice parameters is the ice
thickness (in meters) that can vary spatially and temporally and is the forcing
field Cice,1 .
This is a model for attenuation by a sea ice cover, derived on the assump-
tion that dissipation is caused by friction in the boundary layer below the
ice, with the ice modeled as a continuous thin elastic plate. The original
form by Liu and Mollo-Christensen (1988) is activated by setting the IC2
namelist SIC2 parameter IC2DISPER = .TRUE.. That form assumes that
the boundary layer is always laminar but it uses an eddy viscosity ν that can
vary spatially and is the forcing field Cice,2 .
IC2 and IS2 share the optional use of the Liu and Mollo-Christensen
(1988) dispersion relation for unbroken ice,
2 5
ρice hkice
σ = gkice + Bkice / 1/ tanh(kice H) + , (2.183)
ρw
5
cg = (g + (5 + 4kice M )Bkice )/(2σ(1 + kice M )2 ). (2.184)
B and M quantify the effects of, respectively, ice bending due to waves
and ice inertia. The group velocity under the ice, derived from the same
relation, is used in the module W3SIS2MD and computed in W3DISPMD. See
Liu and Mollo-Christensen (1988) for details.
For IC2, the dispersion relation is defined by
In our notation, hw is water depth and hi is ice thickness. The variables B and
M quantify the effects of the bending of the ice and inertia of the ice, respec-
tively. Both of these variables depend on hi (see Liu and Mollo-Christensen,
1988; Liu et al., 1991).
This equation is only solved when ICEDISP=TRUE in the MISC
namelist. Otherwise, kice = k, just like in open water. Note that the ef-
fect of kice is not passed back to the main program.
Stopa et al. (2016) improved IC2 by adding a better alternative to the
eddy viscosity representation of dissipation. They distinguish between lam-
inar and turbulent regimes, allowing this is activated by setting IC2DISPER
= .FALSE.. In that case the dissipation goes from a laminar form using the
molecular viscosity multiplied by an empirical adjustment factor IC2VISC
to a turbulent form, amplified by a factor IC2TURB, for Reynolds numbers
above a user-defined threshold IC2REYNOLDS. This transition is smoothed
over a range IC2SMOOTH to take into account the random nature of the wave
field. In the turbulent regime, the friction factor is estimated from a user-
specified under-ice roughness length IC2ROUGH, expected to be of the order of
10−4 m. Possibility has also been added to perform a heuristic reduction of
the dissipation rate when the floe diameters are much shorter than the ocean
wave wavelength (see Ardhuin et al., for details). It relies on the hypothesis
that, in these conditions, ice floes follow at least partly the horizontal mo-
tion and it is thus logical to reduce the relative velocity between the ice and
the water from which the dissipation rate is estimated. This reduction is
controlled by the factor called rD in Ardhuin et al. which value can be set
through the namelist parameter IC2DMAX. Reduction of the dissipation rate
occures for waves longer than Dmax /rD (Dmax being the maximum floe size),
and there is no reduction for maximum floe diameters of the order of the
wavelength or more.
The parameter IC2TURBS is an ad hoc enhancement of turbulent dissi-
pation in the Southern hemisphere that was introduced for test purposes to
investigate sources of bias. This will be deprecated in future versions. It now
appears that combining IC2 with ineleastic dissipation in IS2 can provide
good results for dominant waves in both hemispheres (Ardhuin et al.).
A full description of the original form of IC2 can be found in
Rogers and Orzech (2013). It is applied in Li et al. (2015). A concise sum-
mary of the present code is given in Rogers et al. (2018a). A description
of the improvement of the dissipation mechanism of IC2 can be found in
Appendix B of Stopa et al. (2016), where it is used.
84 WAVEWATCH III version 6.07 DRAFT
Switch: IC3
Origination: Clarkson U. Fortran-77 code
Provided by: E. Rogers, X. Zhao, S. Cheng, S. Zieger
The IC3CHENG option is new in model version 5. When set to TRUE, the
model will use an alternative solution technique provided by S. Cheng. This
has two important features. First, stability is improved, such that there is
no need to use the ice limiter, i.e. the IC3HILIM parameter. Second, this
method requires that three of four ice rheology parameters be stationary and
uniform, input via namelist parameters (see below).
If IC3CHENG is set to FALSE, the user is advised to use the ice thickness
limiter IC3HILIM to ensure stability (value of 25 to 100 cm is suggested). The
parameter IC3KILIM was required for stable and fast computations in some
prior development versions of WAVEWATCH III, but is now unnecessary
and may be ignored by the user.
In model version 4.18, four ice rheology parameters (ice thickness, effec-
tive viscosity, effective elasticity, and ice density) were allowed to be non-
stationary and non-uniform. This could be provided using ww3 prep. Or
in cases where ww3 shel is used and non-uniform inputs are unnecessary, the
“homogeneous” option of ww3 shel was available for rheology input. In model
version 5.16, an option is added to specify the four ice rheology parameters
via the namelist SIC3. Two restrictions apply: 1) If IC3CHENG is set to FALSE
and USECGICE is set to TRUE, the namelist method cannot be used, and 2) If
IC3CHENG is set to TRUE, the namelist method must be used for three of the
rheology parameters (effective viscosity, effective elasticity, and ice density).
If IC3CHENG is set to TRUE or USECGICE is set to FALSE, the fourth ice rhe-
ology parameter (ice thickness) can be input by either method (namelist or
86 WAVEWATCH III version 6.07 DRAFT
non-namelist). The model performs error checking to ensure that the user
has specified input for each parameter by a single method (neither method
of input is assumed to supercede the other).
The kr modified by ice is incorporated into the governing equation (2.8)
via the cg (group velocity) and c (phase velocity) calculations on the
left-hand side; e.g. Rogers and Holland (2009, and subsequent unpublished
work). The modification of wavenumber and group velocity can be optionally
passed back to the main program to produce effects analogous to refraction
and shoaling by bathymetry. However, this feature has been used so far only
in academic studies, rather than in routine application to realistic scenarios.
centration exceeds IC3MAXCNC and ice thickness exceeds IC3MAXTHK, the IC2
dissipation (more specifically, the non-default, non-dispersive boundary layer
scheme sub-option of IC2) is used in place of the dispersion-based dissipa-
tion estimate of Wang and Shen (2010). See description of IC2 for more
information. Since it is non-dispersive, this feature should not be used with
USECGICE = TRUE.
IC3 first appeared in WAVEWATCH III
R
version 4 and the first simple
testing was reported in Rogers and Zieger (2014). It has since been used in
Li et al. (2015), Wang et al. (2016), Rogers et al. (2016), and Cheng et al.
(2017).
Switch: IC4
Origination: WAVEWATCH III/NRL
Provided by: C. Collins and E. Rogers
The fourth option (IC4) for damping of waves by sea ice was introduced
by Collins and Rogers (2017). It gives methods to implement one of several
simple, empirical/parametric forms for the dissipation of wave energy by sea
ice. The motivation for IC4 is to provide a simple, flexible, and efficient
source term which reproduces, albeit in a highly parameterized way, some
basic physics of wave-ice interaction. The method is set by the integer value
(presently 1 to 7) for IC4METHOD namelist parameter: 1) an exponential fit to
the field data of Wadhams et al. (1988), 2) the polynomial fit in Meylan et al.
(2014), 3) a quadratic fit to the calculations of Kohout and Meylan (2008)
given in Horvat and Tziperman (2015), 4) Eq. 1 of Kohout et al. (2014),
5) a simple step function with up to 4 steps (may be nonstationary and
non-uniform), and 6) a simple step function with up to 10 steps (must be
stationary and uniform), and 7) a formula from Doble et al. (2015) which uses
ice thickness. All but the fourth method of IC4 feature frequency-dependent
attenuation. With the fourth method, attenuation varies with waveheight
but is uniform in frequency space.
In the following discussion we use IC4M1 to denote IC4 method 1, and
so forth. IC4 appears in the switch and namelist IC4METHOD=1 (for example)
appears in the file ww3 grid.inp. Whereas in IC1, Cice,1 is the user-determined
88 WAVEWATCH III version 6.07 DRAFT
attenuation, for IC4M1, IC4M2, and IC4M4 Cice,n are constants of the equa-
tions. For IC4M3, Cice,1 is ice thickness. For IC4M5, Cice,n controls the step
function. Note that Cice,n may be provided by the user as non-stationary
and non-uniform using methods analogous to methods used to input water
levels.
IC4M1: an exponential equation was chosen to fit the data contained in
table 2 of Wadhams et al. (1988) which results in preferential attenuation of
high frequency waves. This parameterizes the well-known low-pass filtering
effect of ice. The equation has the following form:
−2πCice,1
α = exp − Cice,2 (2.188)
σ
Here, α is the exponential decay rate for energy, which is twice that for
amplitude: α = 2ki . The values determined from the data are Cice,1...2 =
[0.18, 7.3], but these may be modified by the user. This method is described
and applied in Collins and Rogers (2017).
IC4M2: In this method, the dissipation is represented using a user-
specified polynomial. It is a powerful method, since many shapes can be rep-
resented, e.g. by fitting to observation-based dissipation rates. The method
is described and applied in Collins and Rogers (2017). The equation is the
following:
hσi h σ i2 h σ i3 h σ i4
α = Cice,1 + Cice,2 + Cice,3 + Cice,4 + Cice,5 (2.189)
2π 2π 2π 2π
If a user wishes to follow Meylan et al. (2014), the suggested values for the co-
efficients are Cice,1...5 = [0, 0, 2.12×10−3 , 0, 4.59×10−2 ]. Additional suggested
polynomials can be found in Rogers et al. (2018b).
With appropriate coefficients, this polynomial method can be used to re-
produce the so-called roll-over effect where the attenuation is non-monotonic
in frequency space. However, some recent studies do not indicate this effect,
e.g. Rogers et al. (2016) and Li et al. (2017), and it may just be a spurious
artifact in prior observational studies.
IC4M3: Horvat and Tziperman (2015) fit a quadratic equation to the at-
tenuation coefficient calculated by Kohout and Meylan (2008) as a function
of frequency, T , and ice thickness, h. Attenuation increases for thicker ice
and higher frequencies (lower periods). The number of coefficients of the
quadratic equation were prohibitively large to be user-determined, so the
DRAFT WAVEWATCH III version 6.07 89
where ki = ∂H s
∂dx
/Hs .
The values given in Kohout et al. (2014) are Cice,1...2 = [5.35 ×
10−6 , 16.05 × 10−6 ]. See regression test ww3 tic1.1/input IC4/M4 for exam-
ples. This method is described and applied in Collins and Rogers (2017).
IC4M5: This is a simple step function with up to 4 steps. It is controlled by
the optionally nonstationary and non-uniform parameters Cice,1...7 . Param-
eters Cice,1...4 control the step levels, which are in terms of dissipation rate,
ki . Parameters Cice,5...7 control the step boundaries (given in Hz). See regres-
sion test ww3 tic1.1/input IC4/M5 for examples. This method is described in
Collins and Rogers (2017).
IC4M6: This is a simple step function with up to 10 steps. It is controlled
by the stationary and uniform namelist parameters IC4KI and IC4FC. Array
IC4KI controls the step levels, which are in terms of dissipation rate, ki , in
radians per meter. Array IC4FC controls the step boundaries (given in Hz).
See regression test ww3 tic1.1/input IC4/M6 for examples.
IC4M7: This is a formula for dissipation from Doble et al. (2015), devel-
oped for a mixture of pancake and frazil ice, using data collected in the
90 WAVEWATCH III version 6.07 DRAFT
Weddell Sea (Antarctica). The formula depends on wave frequency and ice
thickness:
α = 0.2T −2.13 h . (2.192)
This method is described in Rogers et al. (2018a).
Switch: IC5
Origination: U. of Otago MATLAB code
Provided by: Q. Liu, E. Rogers, A. Babanin
The fifth method for representing ice-induced wave decay is based on another
viscoelastic-type model, i.e., the EFS ice layer model described in Mosig et al.
(2015). The authors introduced viscosity into the thin elastic plate model of
Fox and Squire (1994) and restricted it to one horizontal dimension (replac-
ing a plate by a beam). The dispersion relation given by the EFS model can
be written in the form
Qgk tanh(kd) − σ 2 = 0, (2.193)
Gη h3i 4 ρi h i σ 2
Q= (1 + ν)k − + 1. (2.194)
6ρw g ρw g
In Eq. (2.193)−(2.194), Gη = G − iσρi η is the complex shear modulus, where
G is the effective elastic shear modulus and η is the effective viscosity; ρw (ρi )
is the density of water (ice), d is water depth, hi is the ice cover thickness,
σ is the radian frequency, k = kr + iki is the complex wavenumber, g is the
gravitational acceleration and ν = 0.3 refers to the Poisson ratio of sea ice.
Same as IC3, IC5 requires four ice parameters as input: Cice,1 for ice
thickness hi (m), Cice,2 for the effective viscosity η (m2 s−1 ), Cice,3 for ice
density ρi (kg m−3 ) and Cice,4 for the effective shear modulus G (Pa). For
example, as shown in Mosig et al. (2015, see their Fig. 8), a setting of
Cice,1,...,4 = [1.0 m, 5.0 × 107 m2 s−1 , 917.0 kg m−3 , 4.9 × 1012 Pa] (with
a water depth d of 4300 m) can be used to fit the observed wave attenuation
rates reported in Meylan et al. (2014). The application of the EFS model to
two realistic case studies is presented in Liu et al. (submitted).
The dispersion relation shown above is solved iteratively using the
Newton-Raphson method. The numerical solver, however, may fail for small
DRAFT WAVEWATCH III version 6.07 91
wave periods in some rare cases (particularly for shallow water depth d and
low G). In such cases, the estimated wavelength kr is unreasonably low. Sev-
eral namelist variables (limiters) are introduced to improve the code stability:
Note that the EFS model used here regards the ice cover as a continuous
homogeneous medium and characterizes various ice types with two totally em-
pirical rheological parameters, namely the elastic shear modulus G and the
viscosity η. As argued in Mosig et al. (2015), these two parameters “cannot
be measured directly as they do not represent observable physical processes”.
Therefore, “no restrictions on the acceptable values of the rheological param-
eters, except positiveness, can be imposed.” So strictly speaking, the EFS
model is better termed as an effective medium model rather than a viscoelas-
tic model.
Switch: IS1
Origination: WAVEWATCH III/NRL
Provided by: S. Zieger
ice has been implemented in switch IS1 and represents a simple form of
scattering. It is assumed that the floe size is smaller than the grid size and
that a fraction αice of the incoming wave energy is scattered isotropically.
The fraction is determined from sea ice concentration ICE using a simple
linear transfer function
Switch: IS2
Origination: WAVEWATCH III
Provided by: F. Ardhuin, C. Sevigny, G. Boutin, D. Dumont, T. Williams
The first criterion is simply checking that the new value of Dmax will be
larger than Dmin and smaller than the previous value of Dmax .
The second criterion relies on Mellor (1986) with the correction specified
in Boutin et al. (2018), where Dc is defined as
1/4
1 π 4 Y ∗ h3
Dc = . (2.199)
2 48ρg(1 − ν 2 )
The third criterion corresponds to the flexural strain threshold. The
horizontal strain caused by waves is related to the curvature of the ice layer,
which, in one dimension is ε = 0.5h∂ 2 ηice /∂x2 . The strain variance is given
2 Z k2
2 h 4
hε i = kice F (k)dk, (2.200)
2 k1
where h is the ice thickness and kice is the wavenumber 2π/λice . Borrowing
from wave breaking ideas (Banner et al., 2000), the integration of the curva-
ture variance is limited around the local wavenumber kice . We also note that
we have defined an effective minimum ice thickness hmin so that, if h < hmin ,
the strain variance is computed with h = hmin to avoid unbreakable elastic
thin ice in the model that does not correspond to usual observations. We
thus take Dmax to be half the wavelength of the shortest waves for which the
following criterion is met √ σc
Fbreak ε2 > ∗ , (2.201)
Y
where σc is the ice flexural strength. Fbreak is a factor representing random
waves and adjustable with the SIS2 namelist parameter IS2BREAKF. It
should in theory depend on the duration for which the ice is forced by
the waves, and, based on the typical maximum value over 500 Rayleigh-
distributes waves, was taken to be Fbreak = 3.6. Fbreak Es is thus the
maximum strain for random waves.
B is the floe law constant and is a function of ice temperature. Using the
normalized parameter estimated by Cole et al. (1998) from laboratory exper-
iments, A = 1011 , and a uniform ice temperature of 270 K gives a value of
B = 107 s1/3 . The volumic dissipation rate is
de 4
= |σxx /(2B)3 |. (2.203)
dt
Also, the cyclic deformation of the ice can require a much larger elastic
energy than the gravity potential energy, but this is only true if the ice
is not broken. As a result, working with a wave elevation spectrum E(k)
could introduce large changes in E(k) when the ice is broken or reformed.
Instead we prefer to work with an energy spectrum RCg E(k)/Cg,ice , using
the coefficient R introduced by Wadhams (1973), which is the ratio of elastic
to gravity potential energies. For unbroken ice R is
4Y ∗ h3 π 4
R = 1 + CR , (2.204)
3ρgλ4 (1 − ν 2 )
where we have been careful that Wadhams (1973) used 2h for the ice
thickness, and CR is by default set to 1.0 using the namelist parameter
IS2BREAKE, but it can be set to zero to work with the true elevation
spectrum instead. This factor R is also applied in the calculation of ice
breakup by the waves.
2
A Y∗ Cg
αane = ki2 h3 Fbroken , (2.207)
6 (1 − ν 2 )ρgG GCg,i
where Fbroken is the same as for inelastic dissipation and A is equal to:
4 1
A = σαd δDd , (2.208)
3 exp(αd s) + exp(−αd s)
in which terms are detailed in the table at the end of this section.
Finally we recall the various model parameters used in IS2 in the following
table. Some are defined as constants in the W3IS2MD module, others can be
adjusted with the SIS2 namelist.
DRAFT WAVEWATCH III version 6.07 97
Switch: REF1
Origination: WAVEWATCH III
Provided by: F. Ardhuin
Sea Land
4 3 2 4 3 2 4 3 2
5 0 1 5 0 1 5 0 1
6 7 8 6 7 8 6 7 8
straight coast mild corner sharp corner
4 3 2 4 3 2 4 3 2
5 0 1 5 0 1 5 0 1
6 7 8 6 7 8 6 7 8
straight coast mild corner straight coast
Switch: IG1
Origination: WAVEWATCH III
Provided by: F. Ardhuin
2
AIG = Hs Tm0,−2 , (2.211)
2 2
bIG (f ) = 1.2α12 kg (AIG /4) [min(1., 0.013Hz/f )]1.0 , (2.212)
E
cg 2πf ∆f
bIG (f, θ) = E
E bIG (f )/(2π), (2.213)
p
where the mean period is defined as Tm0,−2 = m−2 /m0 with the moments
DRAFT WAVEWATCH III version 6.07 103
Z 0.5 Hz
mn = E(f )f n df, (2.214)
fmin Hz
and the empirical coefficient α1 is of the order of 10−3 s−1 , and is set by the
SIG1 namelist parameter IGEMPIRICAL. The minimum frequency fmin used
to define Tm0,−2 is set by the namelist parameter IGMAXFREQ and it is also
the maximum frequency of the IG band over which this source of energy
is applied. Also, in this band the IG energy at the coast can be added on
top of pre-existing energy, or the pre-existing energy can be reset to zero.
That latter behavior is the default and controlled by IGBCOVERWRITE = 1.
For other choices, (IGBCOVERWRITE = 0), the results are very sensitive to
the maximum shoreline reflection coefficient allowed (REFRMAX parameter in
namelist REF1).
Finally, IG energy can also be added for frequencies beyond fmin , this is
the default behavior and it is activated by setting IGSWELLMAX = TRUE. For
that part of the IG wave field, the IG wave source is now reduced by a factor
4 which is now hard-coded in w3ref1md.ftn. This should be adjusted together
with the maximum reflection which is defined by the REF1 namelist param-
eter REFRMAX. In the present version, the option IGSWELLMAX = TRUE does
not work well with unstructured grids. We thus advise to use IGSWELLMAX =
FALSE for these grids, this will unfortunately lead to a spectral gap between
the IG band and the swell-windsea band.
Additional subroutines are provided within WAVEWATCH III for use as part
of coupled ocean-wave or ocean-atmosphere systems. These subroutines are
designed to compute additional quantities related to the surface wave field
which are intended to be passed to external models (e.g. ocean models). The
motivation for these subroutines is to allow the external model to include the
impact of waves on quantities such as the wind stress and the upper ocean
turbulence.
104 WAVEWATCH III version 6.07 DRAFT
where ~τν is the viscous stress vector and ~τf is the wave form drag. At the
air-sea interface, the wave form drag can be computed as the contribution of
the momentum flux into all waves:
Z kmax Z π
~τf = ρw βg (k, θ)σF (k, θ)dθ~kdk, (2.216)
kmin −π
Switch: FLD1
Origination: WAVEWATCH III
Provided by: B. Reichl
where τt is the turbulent stress and is equal to the viscous stress very near
the surface. The wave form stress can be expressed as:
Z k=δ/z Z π
~τf (z) = ρw βg (k, θ)σF (k, θ)dθ~kdk, (2.218)
kmin −π
that is, the wave form stress at height z is equal to the integration of the
wave form stress at the surface for wavenumbers below k = δ/z, where δ/k is
the inner layer height (Hara and Belcher, 2004) for waves at a wavenumber
k. This expression is derived by assuming that the wave-induced stress is
significant from the surface up to the inner layer height, but is negligible
further above. Since at the surface
Z kmax Z π
~τ = ~τν + ~τf (z = 0) = ~τν + ρw βg (k, θ)σF (k, θ)dθ~kdk, (2.219)
kmin −π
In this model it is assumed that the turbulent stress at the inner layer
height z = δ/k determines the growth rate of waves at wavenumber k:
|τt (z = δ/k)|
βg (k, θ) = cβ σ cos2 (θ − θτ ), (2.221)
ρw c 2
where θτ is the direction of the turbulent stress at the inner layer height.
The turbulent stress at the inner layer height is used in place of the total
wind stress because longer waves reduce the effective wind forcing on shorter
waves (wave sheltering).
The growth rate coefficient cβ varies depending on the ratio of the wave
phase speed to the local pturbulent friction velocity (friction velocity at the
l
inner layer height), u⋆ = τt (z = δ/k)/ρa ).
25 : cos(θ − θw ) > 0 : c/ul⋆ < 10
10 + 15 cos[π(c/u⋆ − 10)/15] : : 10 ≤ c/ul⋆ < 25
cβ =
−5 : : 25 ≤ c/ul⋆
−25 : cos(θ − θw ) < 0
(2.222)
DRAFT WAVEWATCH III version 6.07 107
Finally, above the inner layer height of the longest waves the wave effect is
negligible and the wind shear is aligned in the direction of the wind stress:
d~u u⋆ ~τtot
= . (2.226)
dz κz |~τtot |
Note that when using the FLD1 switch, internal variables and output
values of the viscous stress, friction velocity, surface roughness length and
Charnock parameter are recalculated and overwritten.
Switch: FLD2
Origination: UMWM
Provided by: B. Reichl
0.11, : uλ/2 cos θ > c, for wind forced sea
A1 = 0.01 : 0 < uλ/2 cos θ < c, for swell faster than the wind
0.1 : cos θ < 0, for swell opposing the wind
(2.228)
where A1 is the proportionality coefficient determined empirically (so that
modeled wave spectra agree with field observations), uλ/2 is the wind speed
at the height of half the wavelength (up to 20 m), θw is the wind direction,
and c is the wave phase speed. The wind speed is calculated using the law
of the wall for rough surfaces:
u⋆ z
u(z) = ln , (2.229)
κ z0
where κ is the von Kármán coefficient (default 0.4). The viscous stress is
calculated from the law of the wall for smooth surfaces. The viscous drag
coefficient, Cdν is adjusted to account for sheltering:
′ Cdν 2Cdν
Cdν = 1+ , (2.230)
3 Cdν + Cdf
where Cdf is the wave form drag coefficient. The viscous stress can then be
solved for as:
~τν = ρa Cd′ν |uz | uz . (2.231)
Note that when using the FLD2 switch, internal variables and output
values of the viscous stress, friction velocity, surface roughness length and
Charnock parameter are recalculated and overwritten.
The wave model can output parameters on the geographical grid of the model
that can be integrated parameters or parameters as a function of frequency,
with one grid for each frequency. All parameters that are a function of fre-
quency (e.g. EF or USF) require the setting of specific namelist parameters
in the OUTS namelist defined in ww3 grid.inp or ww3 grid.nml . This is to
reduce the memory use if these parameters are not needed.
DRAFT WAVEWATCH III version 6.07 109
I) Forcing fields
1) DPT The mean water depth (m). This includes varying water levels.
2) CUR The mean current velocity (vector, m/s).
3) WND The mean wind speed (vector, m/s). This wind speed is
always the speed as input to the model, i.e., is not corrected for the
current speed.
4) AST The air-sea temperature difference (◦ C).
5) WLV Water level.
6) ICE Ice concentration.
7) IBG Wave attenuation due to icebergs: this parameter is the inverse
110 WAVEWATCH III version 6.07 DRAFT
Lm = 2πk −1 . (2.233)
2) TH1M Mean direction for each frequency (degr.; Kuik et al., 1988)
b1 (f )
θ1 (f ) = atan , (2.242)
a1 (f )
Z 2π Z ∞
a1 (f ) = 2π cos(θ)F (σ, θ) dθ , (2.243)
0 0
Z 2π Z ∞
b1 (f ) = 2π sin(θ)F (σ, θ) dθ . (2.244)
0 0
112 WAVEWATCH III version 6.07 DRAFT
σ 2 = gk tanh(kD) , (2.250)
V) Atmosphere-waves layer
1) UST The friction velocity u∗ (scalar). Definition depends on se-
lected source term parameterization (m/s). An alternative vector
114 WAVEWATCH III version 6.07 DRAFT
Cg E = ρw gCg E . (2.253)
where
1 kd
n=+ . (2.257)
2 sinh 2kd
2) TWO Wave to ocean momentum flux
3) BHD Bernoulli head (m2 /s2 )
ZZ
k
J =g F (k, θ) dkdθ , (2.258)
sinh 2kd
X) User defined
1) U1 Slot for user defined parameter (requires modification of code).
2) U2 Idem.
DRAFT WAVEWATCH III version 6.07 117
The contribution of short waves (above the maximum frequency of the model)
should be added to these for a comparison with observations such as the
backscatter power (σ 0 ) of near-nadir optical or radar data (altimeters, GPM
or CFOSAT/SWIM data).
3 Numerical approaches
The Wave Action Equation in Cartesian (2.8) or spherical (2.12) coordinates
is the basic equations of the wave model. However, modified versions of these
equations are used in the model, where (a) they are solved on a variable
wavenumber grid (see below), where (b) modified versions of these equations
are used to properly describe dispersion for discretized equations in selected
numerical schemes (see Section 3.4), and where (c) sub-grid obstacles such
as islands are considered (see Section 3.4).
σm+1 = Xσ σm , (3.1)
∂k ∂σ ∂d ∂U
κ̇ = c−1
g + U · ∇x d −k· . (3.3)
∂κ ∂d ∂t ∂s
∂ N ∂ κ̇N ∂ θ̇N
2. Intra-spectral part 1: integration over ∆tg /2 of ∂t cg
+ ∂κ cg
+ ∂θ cg
=0
∂ N ∂ ẋN ∂ ẏN
3. Spatial propagation: integration over ∆tg of ∂t cg
+ ∂x cg
+ ∂y cg
=0
∂ N ∂ κ̇N ∂ θ̇N
4. Intra-spectral part 2: integration over ∆tg /2 of ∂t cg
+ ∂κ cg
+ ∂θ cg
=0
∂ N Sno ice
5. Source term integration: integration over ∆tg of ∂t cg
= σcg
∂ N Sice
6. Ice source term integration: integration over ∆tg of ∂t cg
= σcg
The succession of these 6 steps is, in the limit ∆tg → 0, equivalent to the
integration of Eq. (3.2) over a global time step ∆tg .
This splitting in multiple steps allows an efficient vectorization and paral-
lelization at the same time. The time splitting furthermore allows for the use
of separate partial or dynamically adjusted time steps in the different frac-
tional steps of the model. WAVEWATCH III makes a distinction between 4
different time steps.
122 WAVEWATCH III version 6.07 DRAFT
1) The ‘global’ time step ∆tg , is the common step of all the splitted
sub-integrations. In that sense, it is the smallest time step for which
a physically meaningful solution can be obtained, because all terms
in the equation have been integrated. As a result, this is a possible
time step for evaluating model output or coupling with other models,
and, in the case of a multi-grid system, it is the time step at which
communication between grids is performed. In the case of a forced
– not coupled – model, input winds and currents are interpolated at
this global step. This time step is provided by the user in the input
file of ww3 grid, but can be reduced within the model to reach a
requested input or output time.
2) The second time step is the time step for spatial propagation. This is
not used for triangular-based grids, for which the advection step is –
in the case of explicit schemes – adjusted internally for each spectral
component. For other grid types, the user supplies a reference max-
imum propagation time step for the lowest model frequency ∆tp,r ,
assuming no currents, and no grid motion. For the frequency with
counter m, the maximum time step ∆tp,m is calculated within the
model as
ẋp,r
∆tp,m = ∆tp,r , (3.4)
ẋp,m
where ẋp,r is the maximum advection speed for the longest waves
without currents or grid motion, and ẋp,m is the actual maximum
advection speed (including current) for frequency m. If the propaga-
tion time step is smaller than the global time step, the propagation
effects are calculated with a number of successive smaller time steps.
This generally implies that several partial time steps are used for the
lowest frequency, but that the highest frequencies are propagated
over the interval ∆tg with a single calculation. The latter results
in a significantly more efficient model, particularly if higher-order
accurate propagation schemes are used. Note that ∆tp,m may be de-
fined bigger than ∆tg , and that this has potential impact in model
economy for cases with (strong) currents.
3) The third time step is the time step for intra-spectral propagation.
For large-scale and deep-water grids this time step can generally be
taken equal to the global time step ∆tg . For shallow water grids,
smaller intra-spectral propagation time steps allow for larger effects
DRAFT WAVEWATCH III version 6.07 123
The following sections deal with the separate steps in the fractional step
method, and various subjects associated with this. The main issue are cov-
ered in Section 3.3, which addresses treatment of temporal variations of the
water depth, Section 3.4 which addresses spatial propagation, Section 3.5
which addresses intra-spectral propagation, and Sections 3.6 and 3.7 which
address the numerical integration of non-icea and ice source terms. The other
sections deal with additional numerical approaches and techniques, cover-
ing the treatment of winds and currents (Section 3.9), including tides (Sec-
tion 3.10), calculating space-time extremes (Section 3.11), treatment of ice
(Section 3.8), spectral partitioning and the corresponding tracking of wave
systems in space and time (Sections 3.12, 3.13), and nesting (Section 3.14).
The time step of updating the water level is generally dictated by physical
time scales of water level variations, but not by numerical considerations
(Tolman and Booij, 1998).
The interpolation to the new wavenumber grid is performed with a simple
conservative interpolation method. In this interpolation the old spectrum is
first converted to discrete action densities by multiplication with the spectral
bin widths. This discrete action then is redistributed over the new grid cf.
a regular linear interpolation. The new discrete actions then are converted
into a spectrum by division by the (new) spectral bin widths. The conversion
requires a parametric extension of the original spectrum at high and low
frequencies because the old grid generally will not completely cover the new
grid. Energy/action in the old spectrum at low wavenumbers that are not
resolved by the new grid is simply removed. At low wavenumbers in the
new grid that are not resolved by the old grid zero energy/action is assumed.
At high wavenumbers in the new grid the usual parametric tail is applied if
necessary. The latter correction is rare, as the highest wavenumbers usually
correspond to deep water.
In practical applications the grid modification is usually relevant for a
small fraction of the grid points only. To avoid unnecessary calculations,
the grid is transformed only if the smallest relative depth kd in the discrete
spectrum is smaller than 4. Furthermore, the spectrum is interpolated only
if the spatial grid point is not covered by ice, and if the largest change of
wavenumber is at least 0.05∆k.
equations for the more complicated spherical grid are presented only. Con-
version to a Cartesian grid is generally a simplification and is trivial.
The spatial grids can use two different coordinate systems, either a ‘flat’
Cartesian coordinate system typically used for small scale and idealized test
applications, and a spherical (latitude-longitude) system used for most real-
world applications. In model version 3.14, the coordinate system was selected
at compile time with the XYG or LLG switches. In more recent model ver-
sions, the grid type is now a variable defined in ww3 grid and stored in the
mod def.ww3 file.
First-order scheme
Switch: PR1
Origination: WAVEWATCH III
Provided by: H. L. Tolman
A simple and cheap first order upwind scheme has been included, mainly
for testing during development of WAVEWATCH III. To assure numerical
conservation of action, a flux or control volume formulation is used. The flux
between grid points with counters i and i − 1 in φ-space (Fi,− ) is calculated
as
h in
Fi,− = φ̇b Nu , (3.6)
j,l,m
φ̇b = 0.5 φ̇i−1 + φ̇i , (3.7)
j,l,m
Ni−1 for φ̇b ≥ 0
Nu = , (3.8)
Ni for φ̇b < 0
where j, l and m are discrete grid counters in λ-, θ- and k-spaces, respectively,
and n is a discrete time step counter. φ̇b represents the propagation velocity
at the ‘cell boundary’ between points i and i − 1, and the subscript u denotes
the ‘upstream’ grid point. At land-sea boundaries, φ̇b is replaced by φ̇ at the
sea point. Fluxes between points i and i + 1 (Fi,+ ) are obtained by replacing
i − 1 with i and i with i + 1. Fluxes in λ-space are calculated similarly,
changing the appropriate grid counters and increments. The ‘action density’
(N n+1 ) at time n + 1 is estimated as
n+1 n ∆t ∆t
Ni,j,l,m = Ni,j,l,m + [Fi,− − Fi,+ ] + [Fj,− − Fj,+ ] , (3.9)
∆φ ∆λ
where ∆t is the propagation time step, and ∆φ and ∆λ are the latitude and
longitude increments, respectively. Equations (3.6) through (3.8) with N = 0
DRAFT WAVEWATCH III version 6.07 127
on land and applying Eq. (3.9) on sea points only automatically invokes the
required boundary conditions.
Note that Eq. (3.9) represents a two-dimensional implementation of the
scheme, for which the norm of the actual advection vectors needs to be used
in Eq. (3.4). Note furthermore, that this implies a CFL criterion for the full
equation, which is generally more stringent than that for a scheme where
λ and φ propagation are treated separately as in the third order schemes
discussed below. For a grid with equal increments √ in both directions, this
results in a maximum time step that is a factor 1/ 2 smaller for the first
order scheme than for the third order schemes.
The upstream non-oscillatory 2nd order (UNO) advection scheme (Li, 2008)
is an extension of the MINMOD scheme (Roe, 1986). In the UNO scheme,
the interpolated wave action value at the mid-flux point for the cell face
between cell i -1 and cell i is given by
∗ (1 − C)
Ni− = Nc + sign (Nd − Nc ) min (|Nu − Nc |, |Nc − Nd |) , (3.10)
2
where i - is the cell face index; C = φ̇b ∆t/∆φ is the absolute CFL num-
ber; and the subscripts u, c and d indicate the upstream, central and down-
stream cells, respectively, relative to the given i - cell face velocity φ̇b . If
φ̇b > 0, u = i -2, c=i -1, d =i for the cell face between cell i -1 and cell i.
If φ̇b ≤ 0 then u=i +1, c=i, d =i -1. Details of the UNO scheme are given
in Li (2008) alongside standard numerical tests which demonstrate that the
UNO scheme on Cartesian multiple-cell grids is non-oscillatory, conservative,
shape-preserving, and faster than its classical counterpart as long as the CFL
number is less than 1.0.
The flux and cell value update follow the same formulations as the first
order upstream scheme, that is,
˙ ∗; ∆t
Fi− = φb N i− Nin+1 = Nin + (Fi− − Fi+ ) , (3.11)
∆φ
128 WAVEWATCH III version 6.07 DRAFT
where Fi+ is the flux for the cell face between cell i and cell i +1. It can
be estimated with a mid-flux value similar to (3.10) but with i replaced
with i +1. An advective-conservative hybrid operator (Leonard et al., 1996)
that reduces the time-splitting error is used to extend the UNO schemes to
multi-dimensions.
1h i 1 − C2
Nb = (1 + C)Ni−1 + (1 − C)Ni − CU ∆φ2 , (3.14)
2 6
( Ni−2 − 2Ni−1 + Ni ) ∆φ−2 for φ̇b ≥ 0
CU = , (3.15)
( Ni−1 − 2Ni + Ni+1 ) ∆φ−2 for φ̇b < 0
φ̇b ∆t
C= , (3.16)
∆φ
7
Fluxes (Fi,+ ) between grid points with counters i + 1 and i again are obtained by
substituting the appropriate indices.
DRAFT WAVEWATCH III version 6.07 129
To assess if the initial state and the solution show similar monotonic or non-
monotonic behavior, the normalized action Ñ is defined
N − Nu
Ñ = . (3.18)
Nd − Nu
If the initial state is monotonic (i.e., 0 ≤ Ñc ≤ 1), the (normalized) action
at the cell boundary Nb is limited to
n+1 n ∆t
Ni,j,l,m = Ni,j,l,m + [Fi,− − Fi,+ ] . (3.23)
∆φ
130 WAVEWATCH III version 6.07 DRAFT
the grid type. In cases where this grid string is ‘RECT’, the model processes
input for a regular grid. In case where this grid string is ‘CURV’ , the model
processes input for an irregular grid. [Note that with WAVEWATCH III
version 4.00, the coordinate system (i.e. degrees vs. meters) and the clo-
sure type (e.g. global/wrapping grid) are also specified in ww3 grid.inp ; the
switches LLG and XYG are deprecated.]
With WAVEWATCH III version 5, capability is added to run on a special
type of curvilinear grid, the “tripole grid” using the first-order propagation
scheme. In the northern hemisphere, this grid type uses two poles instead
of one, and both are over land to prevent singularities in grid spacing. This
type of grid is sometimes used in ocean models, e.g. (Murray, 1996) and
(Metzger et al., 2014). No special switch is required, and the grid is read
in as any other irregular grid would be, but the user must specify a closure
type (CSTRG) of TRPL in ww3 grid.inp. Specific details can be found in the
documentation for ww3 grid.inp in Section 4.4.3. Propagation and gradient
calculations are modified to deal with the new closure method. The TRPL
closure type is compatible only with the first-order PR1 propagation scheme.
An attractive feature of the tripole grid is that it allows the user to run a
single grid which extends all the way to the North Pole. However, though
the three poles are over land, there is still a convergence of meridians at the
sea points nearest to them, meaning that the grid spacing in terms of real
distances (which determines the maximum propagation time step) is still
highly variable. More efficient grid spacing (meaning: with less variation
of grid spacing in terms of real distances) can be achieved through the use
of the multi-grid capability. Though this scheme addresses singularities in
grid spacing at the pole, it does not address the singularity associated with
definition of wave direction.
Origination: WWM-II
Provided by: A. Roland, F. Ardhuin, M. Dutour-Sikirić, A. Abdolali
schemes have been adopted to the wave action balance equation in (Roland,
2009) and have been implemented in the Wind Wave Model-II (WWM-II)
and in WW-III. With respect to the time integration methods, explicit and
implicit schemes are available for unstructured grids. If the explicit solver is
chosen the original fractional step method of WW3 is used, where the solu-
tion of the two dimensional hyperbolic part in geographical space is solved
on unstructured grids based on the above mentioned methods. In this case
the spectral part and the source terms are integrated in a similar way as
in the structured version of WW3. The definition of the time steps is also
done in the same way as for the structured part except that the number of
sub-iterations for the unstructured part are estimated automatically based
on the maximal CFL number in the domain. If implicit methods are chosen,
a linear equation system is assembled based on the CRD-N schemes follow-
ing (Roland, 2009). The spectral propagation part is solved with simple
implicit 1st order upwind schemes and the source terms are written in the
matrix in the same way as in the dynamic scheme of WW3 using ǫ = 1 in eq.
3.61 and assembling the equation system following simple Patankar rules.
The full description of new implementations is discussed in Roland et al.
(2019) It can be shown analytically and by numerical experiment that for
CFL <1 the explicit and the implicit methods give similar results. This
was also demonstrated in practical applications e.g. (Abdolali et al., 2018;
Smith et al., 2018; Abdolali et al., 2019; Aboulali et al., 2019). However, for
CFL >1 the transient solutions of the implicit schemes have a time step
depedency since the source terms are linearized in time. The time step in
the implicit schemes is equal the global timestep and the other time steps
for spectral space or source terms have no effect. The fractional step meth-
ods has a time step dependency as well due to the splitting errors, which
become especially predominant in shallow water (Roland, 2009). For both
numerical methods proper convergence analysis with respect to the global
time step and the spatial resolution need to be carried out unless the level
of accuracy is satisfactory for the given applications. The numerical imple-
mentations have subsequently been evaluated in WWIII (e.g. Ardhuin et al.,
2009b; Babanin et al., 2011; Bertin et al., 2014, 2015; Dodet et al., 2013;
Ferrarin et al., 2008, 2013; Janekovic et al.; Kerr et al., 2013; Liau et al.,
2011; Magne et al., 2010; Perrie et al., 2018, 2013b; Roland et al., 2006a,b,
2009, 2012; Roland and Ardhuin, 2014b; Sikirić et al., 2012, 2013, 2018;
Zanke et al., 2006).
This option is activated by setting the grid string to ‘UNST’ in ww3 grid.inp.
DRAFT WAVEWATCH III version 6.07 133
Four schemes have been implemented, and the choice of one or the other is
done with the UNST namelist. These are the CRD-N-scheme (1st order), the
CRD-PSI-scheme (better than 1st order, 2nd order on triangular structured
grids), the CRD-FCT-scheme (2nd order space-time), and the implicit N-
scheme. The default is the most efficient but diffusive explicit N-scheme.
An implicit variant of the RD-Schemes using the method of lines and the
N-Scheme for the space discretization was implemented in the SWAN model
by Zijlema (2010) a similar discretization is chosen in the actual version of
ECWAM see Roland (2012).
In this method the evolution of the spectrum at the nodes, where it is eval-
uated, is based on the redistribution over the nodes of the flux convergence
into the median dual cells associated with the nodes (see Figure 3.1). For
any spectral component, the advection equation, Eq. (3.5), is solved on the
median dual cells: the incoming flux into a cell gives the rate of change of the
wave action at the corresponding node. The various schemes implemented
have different discretization for the estimation of this flux. The schemes have
been presented in (see Roland, 2009, for a review).
We note that these advection schemes do not include corrections for the
garden sprinkler effect (GSE). In the usual sense of GSE corrections it was
found that the N-Scheme has sufficient numerical cross-diffusion to well com-
pensate for this effect. However, higher order schemes such as CRD-PSI
or CRD-FCT may create significant GSE effecting depending on the spatial
resolution.
The parallelization of the unstructured grid schemes is done either using
the Card Deck approach, as done for the structured grids, or using domain
decomposition methods. The domain decompositions methods are based on
ParMetis (Karypis, 2011), which is a C implementation of a parallel graph
partitioning algorithm. ParMetis is being interfaced using PDLIB (Paral-
lel Decomposition Library) in Fortran, which beside interfacing ParMetis
provides the needed exchange routines for unstructured grids using the For-
tran2002 standard. The exchange routines do all the needed communication
for the decomposed grids between the various threads based on the decom-
position provided by ParMetis. In this way, all the domain decomposition
parts are incorporated in the main source with just one line of code. For
the compilation of the PDLIB option in the switch files, which activates the
domain decomposition parallelization, ParMetis needs to be installed and the
code needs to be compiled with using MPI. PDLIB works with all usual MPI
implementations, such as OpenMPI or MPICH2 and others. An schematic
134 WAVEWATCH III version 6.07 DRAFT
Switch: SMC
Origination: WAVEWATCH III(MetOffice)
Provided by: J.-G. Li
DRAFT WAVEWATCH III version 6.07 135
25.80‘ 3 2
1 92.2
2 1
3
4
25.70‘ Triangle
Coastline Node
4 92.0
Latitude (48dN)
5 Node 5
y (km)
25.60‘ 6
Median dual
91.8
cell
25.50‘
91.6
25.40‘
91.4
1.20‘ 1.00‘ 0.80‘ 0.60‘ 0.40‘
Longitude ( 5dW)
Figure 3.2: The schematic difference between Domain Decomposition (a) and
Card Deck approach (b) on 11 computational cores represented by colors.
The grid has ∼3k nodes and is build for Shinnecock Inlet, NY taken from an
ADCIRC example problem.
DRAFT WAVEWATCH III version 6.07 137
9
Presently this grid is activated by a compile switch and can only be used as a stand-
alone grid. This will become a run time option in upcoming model versions.
138 WAVEWATCH III version 6.07 DRAFT
Another important use of the SMC grid is for multi-resolution grids. The
base level SMC grid cell can be refined into 4 quarterly cells by halving both
the longitude and latitude grid lengths. Any cell on this refined level can
be further divided into another 4 quarterly cells. This refinement can go on
as required, resulting in multi-resolution grids in a few refined levels. For
consistency, the single resolution SMC grid is considered to have only one
level. The normal regular grid input files, such as the water depth, land-sea
masks, and sub-grid obstruction, are no longer required, replaced with sea-
point only cell and face arrays and a sub-grid obstruction file. The water
depth is stored in the cell array in the last (5-th) column as an integer in
meter. The masks will be defined inside ww3 grid with the sea-point cell
array.
Wind and ocean current (if any) forcing can be applied using a regular
grid at the base resolution as default input forcing for any SMC grid (single
or multi-level). It will be interpolated on to the refined levels (if any) inside
the model. One option of sea-point only wind and current input for SMC grid
can be switched on by the SEAWND logical variable in the PSMC namelist.
This sea-point only option not only removes the need to interpolate the wind
(and current, if any) inside the model but also allows different resolution wind
(and current) forcings to be mixed up and interpolated to multi-resolution
cells directly, making it a truly multi-resolution model.
One important feature of the SMC grid is that it is an unstructured grid,
that is, the cells are not required to be listed side by side as in their physical
position. For the convenience of multi-resolution SMC grid, the cells are
sorted by their sizes so that cells on one given level are grouped together in
one sub-loop for a shared sub-time-step. The base level time step is halved
as the grid length for the refined level sub-step. This effectively avoids the
model to be slowed down by the refined cells due to their CFL restrictions.
Neighboring cells information for propagation schemes are provided with cell
face arrays, which are pre-calculated for the given cell array list. So there
is no need to expand the sea point only SMC grid cells onto a full grid for
propagation. Fig. 3.3 illustrates how SMC cell arrays are defined and Fig. 3.4
shows the Arctic region in a 6-12-25 km three level SMC grid. The golden
and red circles mark the global and Arctic parts in the SMC6-25 grid. The
Arctic part within the golden circle requires a fixed reference direction to
define its wave directional bins. The global part (up to the golden circle) can
be run independently without the Arctic part. The 4 rows from the red to
the golden circles are duplicated in the Arctic part as boundary cells if the
DRAFT WAVEWATCH III version 6.07 139
Arctic part is activated with the ARC option. Separate cell and face arrays
are used for the Arctic part and they are merged into the global ones within
the wave model for propagation.
Some IDL and F90 programs have been developed for generation of SMC
grid cell and face arrays and visualization of the grid mesh and wave fields
but they have not been formally included in the WW3 package yet. An
IDL program (Glob50SMCels.pro) is provided in smc docs/SMCG TKs/ to
generate a global 50km SMC grid using a 50km regular grid bathymetry
ASCII input file (G50kmBathy.dat). Face array generation is done with two
F90 programs, one for the global part (G50SGlSide.f90) and one for the
Arctic part (G50SAcSide.f90). Due to the special treatment of the polar cell
(Li, 2012), face arrays for the Arctic polar cell requires a different approach
than other cells. The cell array file has to be sorted with a simple Linux script
(countcells) before it is fed into the face array generation program. The face
arrays also need to be sorted with a Linux script (countijsd) to determine
the multi-level sub-loop counts. An independent spectral propagation test
(G50SMCSRGD.f90) can be run to test the cell and face arrays and its output
can be visualized with an IDL script, g50smstrspb.pro, which uses the saved
projection files from the SMC grid visualization program, g50smcgrids.pro.
140 WAVEWATCH III version 6.07 DRAFT
No GSE alleviation
Switch: PR0 / PR1
Origination: WAVEWATCH III
Provided by: H. L. Tolman
∂N ∂ ∂N ∂ ∂N ∂ 2N
+ ẋN − Dxx + ẏN − Dyy − 2Dxy = 0 , (3.24)
∂t ∂x ∂x ∂y ∂y ∂x∂y
2
σm Ts
Dnn = ∆θ , (3.32)
2km 12
where Xσ is defined as in Eq. (3.1). With these two assumptions, the diffusion
tensor becomes constant throughout the spatial domain for each separate
spectral component.
Equation (3.30) is solved using a forward-time central-space scheme. At
the cell interface between points i and i − 1 in φ (x) space, the term in
brackets in the first term on the right side of Eq. (3.30) (denoted as Di,− ) is
estimated as
∂N Ni − Ni−1
Dxx ≈ Di,− = Dxx . (3.33)
∂x ∆x j,l,m
Corresponding values for counters i and i+1, and for gradients in λ (y) space
again are obtained by rotating indices and increments. If one of the two grid
points is located on land, Eq. (3.33) is set to zero. The mixed derivative at
the right side of Eq. (3.30) (denoted as Dij,−− ) is estimated for the grid point
i and i − 1 in x-space and j and j − 1 in y-space as
−Ni,j + Ni−1,j + Ni,j−1 − Ni−1,j−1
Dij,−− = Dxy . (3.34)
0.5(∆xj + ∆xj−1 ) ∆y
l,m
Note that the increment ∆x is a function of y due to the use of the spherical
grid. This term is evaluated only if all four grid points considered are sea
points, otherwise it is set to zero. Using a forward in time discretization
of the first term in Eq. (3.30), and central in space discretizations for the
remainder of the first and second term on the right side, the final algorithm
becomes
n+1 n ∆t ∆t
Ni,j,l,m = Ni,j,l,m + (Di,+ − Di,− ) + (Dj,+ − Dj,− )
∆x ∆y
∆t
+ (Dij,−− + Dij,−+ + Dij,+− + Dij,++ ) . (3.35)
4
Stable solutions are obtained for (e.g., Fletcher, 1988, Part I section 7.1.1)
Dmax ∆t
≤ 0.5 , (3.36)
min(∆x, ∆y)2
DRAFT WAVEWATCH III version 6.07 145
The above diffusion is needed for swell propagation, but is not realistic
for growing wind seas. For wind seas, the ULTIMATE QUICKEST scheme
without the dispersion correction is sufficiently smooth to render stable fetch-
limited growth curves (Tolman, 1995b). To remove minor oscillations, a small
isotropic diffusion is used for growing wave components. To assure that this
diffusion is small and equivalent for all spectral components, it is calculated
from a preset cell Reynolds (or cell Peclet) number R = cg ∆xDg−1 = 10,
where Dg is the isotropic diffusion for growing components
cg min(∆x, ∆y)
Dg = . (3.38)
R
The diffusion for swell and for wind seas are combined using a linear com-
bination depending on the nondimensional wind speed or inverse wave age
u10 c−1 = u10 kσ −1 as
k u10
Xg = min 1 , max 0 , 3.3 − 2.3 , (3.39)
σ
Dss = Xg Dg + (1 − Xg )Dss,p , (3.40)
Dnn = Xg Dg + (1 − Xg )Dnn,p , (3.41)
where the suffix p denotes propagation diffusion as defined in Eqs. (3.31) and
(3.32). The constants in Eqs (3.38) and (3.39) are preset in the model.
146 WAVEWATCH III version 6.07 DRAFT
Spatial averaging
Switch: PR3
Origination: WAVEWATCH III
Provided by: H. L. Tolman
The major drawback of the above GSE alleviation method is its potential
impact on model economy as discussed in relation to Eq. (3.36) and in Tolman
(2001, 2002a). For this reason, an alternative additional GSE alleviation
method has been developed for WAVEWATCH III.
This method which represents the default for WAVEWATCH III, replaces
the additional diffusion step (3.30) with a separate fractional step in which
direct averaging of the field of energy densities for a given spectral component
is considered. The area around each grid point over which the averaging is
performed extends in the propagation (s) and normal (n) directions as
where γa,s and γa,n are tunable constants, the default value of which is
set to 1.5. This averaging is illustrated in Fig. 3.5. Note that these val-
ues may require some retuning for practical applications, as discussed in
Tolman (2002a). Appendix A of the latter paper presents details of the av-
eraging scheme, including conservation considerations. Consistency with the
Booij and Holthuijsen (1987) approach furthermore implies that γa,s and γa,n
should vary with the spatial grid resolution (see Chawla and Tolman, 2008,
Appendix).
Note that this kind of averaging with dominant directions s and n is
similar to the Booij and Holthuijsen (1987) diffusion method, that uses the
same main directions. The averaging method, however, never influences the
time step, because it is completely separated from the actual propagation.
Moreover, if explicit schemes are used with typically cg ∆t/∆x < 1, it is
obvious that the averaging over the area as defined in (3.42) will generally
require information at directly neighboring spatial grid points only, as in
Fig. 3.5. Furthermore, this method does not require high-latitude filtering.
As is illustrated in Tolman (2002a,d), this method gives virtually identical
results as the previous method, but does so at slightly lower costs. For high-
resolution applications, the averaging method may become dramatically more
economical.
DRAFT WAVEWATCH III version 6.07 147
Finally, the GSE can be alleviated somewhat by assuring that the dis-
crete spectral directions do not coincide with spatial grid lines. This can be
achieved by defining the first discrete direction θ1 as
θ1 = αθ ∆θ , (3.43)
where −0.5 ≤ αθ ≤ 0.5 can be defined by the user. Note that setting α 6= 0
is beneficial to the first-order scheme, but has negligible impact on the third-
order scheme.
148 WAVEWATCH III version 6.07 DRAFT
Even at the time of the original tuning of WAVEWATCH III version 1.15
(Tolman, 2002f), it was clear that unresolved islands groups are a major
source of local wave model errors. This was illustrated in some more de-
tail in Tolman (2001, Fig. 3), and Tolman et al. (2002, Fig. 8). In WAVE-
WATCH III, two approaches are available for the parameterization of un-
resolved obstacles. The first, originally from SWAN (Booij et al., 1999;
Holthuijsen et al., 2001), applies the effects of unresolved obstacles at the
cell boundaries of the spatial grid within the numerical scheme, and is estab-
lished for regular grids. The second approach, proposed by (Mentaschi et al.,
2015b), is based on source terms, and can be applied to different types of
mesh. In this section the first approach is presented, while for a description
of the second approach the reader is referred to section 2.3.20.
In the propagation-based approach, the numerical fluxes between cells
through their common boundary are suppressed according to the degree of
obstruction provided by the unresolved obstacle. In this approach, the numer-
ical propagation scheme of the ULTIMATE QUICKEST scheme of Eq. (3.23)
is modified as
n+1 n ∆t
Ni,j,l,m = Ni,j,l,m + [αi,− Fi,− − αi,+ Fi,+ ] , (3.44)
∆φ
where αi,− and αi,+ are ‘transmissions’ of the corresponding cell boundaries,
ranging from 0 (closed boundary) to 1 (no obstructions). For outflow bound-
aries, transparencies by definition are 1, otherwise energy will artificially
accumulate in cells. For inflow boundaries, transparencies less than 1 result
in elimination of obstructed energy at the cell boundary. This approach is
illustrated in Fig. 3.6. Note that a similar approach is easily adopted in the
first- and second-order schemes. Note, furthermore, that an alternate ob-
struction approach with obstructions as a function of the spectral direction
θ has been used by Hardy and Young (1996) and Hardy et al. (2000).
Two methods for defining the obstructions are available in the model. The
first defines the obstructions directly at the grid boundary. This requires the
generation of staggered depth-transparency grids. The second allows the
user to define depths and transparencies at the same grid. In this case, the
DRAFT WAVEWATCH III version 6.07 149
WARNING
The continuously moving grid version of WAVEWATCH III is only
intended for testing wave model properties in highly-idealized con-
ditions. This model version should only be used for deep water
without mean currents and land masses. Furthermore, to avoid
complications with great circle propagation, only a Cartesian grid
should be used. The option is furthermore implemented only for
propagation options pr1 and pr3. Note that this is not checked
in the scripts or programs at either the compile or run time level.
This option is not considered to be for general application.
WARNING
The advection velocity and direction is input to the shell similar to the input
of homogeneous currents (see bottom of file ww3 shel.inp in Section 4.4.10),
exchanging the keyword ‘CUR’ with ‘MOV’. The advection velocity can be
changed in time like all homogeneous input fields. An example of run-
ning with a moving grid model is given in test case ww3 ts3. A similar
capability exist in ww3 multi.inp in Section 4.4.12, and is tested in test case
mww3 test 05.
152 WAVEWATCH III version 6.07 DRAFT
These subroutines are self-contained and can be extracted outside the model
for pre- or post-processing of rotated grid files. Some conversion tools have
been developed based on these subroutines but have not been included in
WAVEWATCH III yet. Refer to the regression test regtests/ww3 tp2.11
for an example of a rotated grid model (NAEW). Users may find more
information in smc docs/Rotated Grid.pdf or contact Jian-Guo Li for help
([email protected]).
The third step of the numerical fractional step algorithm considers refraction
and residual (current-induced) wavenumber shifts. Irrespective of the spatial
grid discretization and coordinate system, the equation to be solved in this
step becomes
∂N ∂ ∂
+ k̇g N + θ̇g N = 0 , (3.49)
∂t ∂k ∂θ
∂σ U · ∇x d ∂U
k̇g = −k· , (3.50)
∂d cg ∂s
where k̇g is the wavenumber velocity relative to the grid, and θ̇g is given by
(2.15) and (2.11). This equation does not require boundary conditions in
θ-space, as the model by definition uses the full (closed) directional space. In
154 WAVEWATCH III version 6.07 DRAFT
θ̇ = Xrd (λ, φ, k) θ˙d + θ˙c + θ˙g , (3.51)
where the indices d, c and g refer to the depth, current and great-circle related
fraction of the refraction velocity in (2.11). The filter factor Xrd is calculated
for every wavenumber and location separately, and is determined so that the
CFL number for propagation in θ-space due to the depth refraction term
cannot exceed a pre-set (user defined) value (default 0.7). This corresponds
to a reduction of the bottom slope for some low frequency wave components.
For mid-latitudes, the affected components are expected to carry little energy
because they are in extremely shallow water. Long wave components carrying
significant energy are usually traveling toward the coast, where their energy
is dissipated anyway. This filtering is also important for short waves, and
close to the pole. The effect of this filter can be tested by reducing the
time steps for intraspectral refraction and by looking at the maximum CFL
numbers in the output of the model. These are computed just before the
filter is applied.
The spectral space is always discretized with constants directional incre-
ments and a logarithmic frequency grid (3.1) to accommodate computations
of the nonlinear interaction Snl . First, second and third orders schemes are
available, and are presented in the following sections.
DRAFT WAVEWATCH III version 6.07 155
In the first order scheme the fluxes in θ- and k-space are calculated using
Eqs. (3.6) through (3.8) (replacing N with N and rotating the appropriate
counters). The complete first order scheme becomes
n+1 n ∆t ∆t
Ni,j,l,m = Ni,j,l,m + [Fl,− − Fl,+ ] + [Fm,− − Fm,+ ] , (3.52)
∆θ ∆km
The UNO scheme for the directional θ-space is identical to the regular grid
one assuming that the directional bins are regularly spaced. For the k -space,
however, the UNO scheme uses its irregular version, which uses local gradi-
ents instead of differences to estimate wave action value at the mid-flux point
for the cell face between spectral bin i -1 and i, that is:
∆kc − |k̇i− |∆t
∗ Nu − Nc Nc − Nd
Ni− = Nc + sign (Nd − Nc ) min | |, | | ,
2 ku − kc kc − kd
(3.53)
where i - is the wave number k bin index; the subscripts u, c and d indicate
the upstream, central and downstream cells, respectively, relative to the given
156 WAVEWATCH III version 6.07 DRAFT
i - face velocity k̇i− ; kc is the central bin wave number and ∆kc is the central
bin widith. Details of the irregular grid UNO scheme are given in Li (2008).
Boundary conditions for the θ-space is the natural periodic condition. For
the k -space, two more zero spectral bins are added to each end of the wave
spectral domain as the UNO scheme is 2nd order in accuracy.
k̇g,b ∆t
C= , (3.58)
∆km−1/2
where ∆km is the discrete band or cell width at grid point m, and where
∆km−1/2 is the distance between grid points with counters m and m − 1.
The ULTIMATE limiter can be applied as in Eqs. (3.17) through (3.20), if
the CFL number of Eq. (3.58) is used. At the low- and high-wavenumber
boundaries the fluxes again are estimated using a first-order upwind approach,
with boundary conditions as above defined for the first-order scheme. The
final scheme in k-space becomes
DRAFT WAVEWATCH III version 6.07 157
n+1 n ∆t
Ni,j,l,m = Ni,j,l,m + [Fm,− − Fm,+ ] , (3.59)
∆km
The source terms not involving ice are accounted for by solving
∂N
= Sno ice . (3.60)
∂t
As in WAM, a semi-implicit integration scheme is used. In this scheme the
discrete change of action density ∆N becomes (WAMDIG, 1988)
S(k, θ)
∆N (k, θ) = , (3.61)
1 − ǫD(k, θ)∆t
where D represents the diagonal terms of the derivative of S with respect
to N (WAMDIG, 1988, Eqs. 4.1 through 4.10), and where ǫ defines the
offset of the scheme. Originally, ǫ = 0.5 was implemented to obtain a second-
order accurate scheme. Presently, ǫ = 1 is used because it is more appro-
priate for the large time steps in the equilibrium range of the spectrum
(Hargreaves and Annan, 1998, 2001) and it results in much smoother inte-
gration of the spectrum. The change of ǫ has little impact on mean wave
parameters, but makes the dynamical time stepping as described below more
economical.
The semi-implicit scheme is applied in the framework of a dynamic time-
stepping scheme (Tolman, 1992). In this scheme, integration over the global
time step ∆tg can be performed in several dynamic time steps ∆td , depending
on the net source term S, a maximum change of action density ∆Nm and
the remaining time in the interval ∆tg . For the nth dynamic time step in the
integration over the interval ∆tg , ∆tnd is calculated in three steps as
" −1 #
∆N m ∆N m
∆tnd = min 1 + ǫD , (3.62)
f <fhf |S| |S|
" n−1
#
X
∆tnd = min ∆tnd , ∆tg − ∆tid , (3.64)
i=1
Xp Xr Xf ∆td,min
π
WAM equivalent 24
10−3 ∆t ∞(≥ 1) – ∆tg
suggested 0.1-0.2 0.1-0.2 0.05 ≈ 0.1∆tg
default setting 0.15 0.10 0.05 –
1
Nmin (kseed , θ) = 6.25 × 10−4 3 max 0. , cos2 (θ − θw )
kseed σseed
|u10 |
min 1 , max 0 , −1 − 1 , (3.70)
Xseed gσseed
−1
where gσseed approximates the equilibrium wind speed for the highest discrete
spectral frequency. This minimum action distribution is aligned with the
wind direction, goes to zero for low wind speeds, and is proportional to the
integration limiter (3.67) for large wind speeds. Xseed ≥ 1 is a user-defined
parameter to shift seeding to higher frequencies. Seeding starts if the wind
speed reaches Xseed times the equilibrium wind speed for the highest discrete
frequency, and reaches its full strength for twice as high wind speeds. The
default model settings include the seeding algorithm, with Xseed = 1.
In model version 3.11, surf-zone physics parameterizations have been in-
troduced. Such physics, particularly depth-induced breaking, operate on
much smaller time scales than deep water and limited-depth physics outside
the surf zone. To assure reasonable behavior for larger time steps, an addi-
tional optional limiter has been adopted from the SWAN model, which can
be used instead of modeling surf-breaking explicitly. This limiter is similar
to the Miche style maximum wave height in the depth-limited wave breaking
source term of Eq. (2.166). In this limiter, the maximum wave energy Em is
computed as
160 WAVEWATCH III version 6.07 DRAFT
1
Em = [γlim tanh(k̄d)/k̄]2 , (3.71)
16
where γlim is a factor comparable to γM in Eq. (2.166), with the caveat that
γM is representative for an individual wave, whereas γlim is representative
for the significant wave height. For monochromatic waves, the original ex-
pression by Miche (1944) would correspond to γlim = 0.94 and replacing Hs
by the height H of the waves. Here this idea is applied to random waves.
In shallow water, this limits Hs to be less than γlim d. If the total spectral
energy E is larger than the maximum energy Em , the limiter is applied by
simply rescaling the spectrum by the factor E/Em , loosely following the ar-
gumentation from Eldeberky and Battjes (1996) and used in Section 2.3.17.
This limiter can be switched on or off in the compilation of the model, and
γlim can be adjusted by the user. The default is set to γlim = 1.6 because
Hrms values close to d have indeed been recorded and thus taking a ratio
Hs /Hrms of 1.4, using 1.6 allows this large steepness to be exceeded by some
margin. Note that this limiter should be used as a ‘safety valve’ only, and
hence that it should be less strict than the breaking criterion in the surf-
breaking or whitecapping source terms, if these source terms are modeled
explicitly.
Also, this limiter does not guarantee that all parts of the spectrum are
realistic. Indeed, the use of a mean wavenumber, as in the Komen et al.
dissipation, makes it possible to have unrealistically steep short waves in
the presence of swell. A future extension of this limiter could be to limit the
steepness with a partial spectral integration in frequencies, to make sure that
waves of all scales are indeed not too steep.
Because the attenuation and scattering in the ice can be very strong (al-
though they are linear), it is convenient to perform a separate integration of
the ice terms Sice = Sid + Sis . This combines a dissipation term
M = V DV T , (3.74)
where N is the average over all directions. As a result, for a spatially homo-
geneous field, the spectrum exponentially tends to isotropy over a time scale
1/(βid ).
162 WAVEWATCH III version 6.07 DRAFT
1 for ǫ∆x < l0 1 for ǫ∆y < l0
αx = 0 for ǫ∆x > ln , αy = 0 for ǫ∆y > ln . (3.81)
ln −ǫ∆x ln −ǫ∆y
ln −l0
otherwise ln −l0
otherwise
The above description pertains to the switch IC0. Note that either ice
transmissions for propagation (IC0), or ice as a source term can be used (IC1,
IC2, IC3), but not both approaches at the same time.
Model input mainly consists of wind and current fields. Within the model,
winds and currents are updated at every time step ∆tg and represent values
at the end of the time step considered. Several interpolation methods are
available (selected during compilation). By default, the interpolation in time
consists of a linear interpolation of the velocity and the direction (turning the
wind or current over the smallest angle). The wind speed or current velocity
can optionally be corrected to (approximately) conserve the energy instead
of the wind velocity. The corresponding correction factor Xu is calculated as
u10,rms
Xu = max 1.25 , , (3.82)
u10,l
where u10,l is the linearly interpolated velocity and u10,rms is the rms interpo-
lated velocity. Finally, winds can optionally be kept constant and changed
discontinuously (option not available for current).
Note that the auxiliary programs of WAVEWATCH III include a program
to pre-process input fields (see Section 4.4.7). This program transfers gridded
fields to the grid of the wave model. For winds and currents this program
utilizes a bilinear interpolation of vector components. This interpolation can
be corrected to (approximately) conserve the velocity or the energy of the
wind or the current by utilizing a correction factor similar to Eq. (3.82).
In order to reduce the volume of input files, the water levels and currents can
be defined by their tidal amplitudes and phases. This is made possible by
164 WAVEWATCH III version 6.07 DRAFT
using the TIDE switch which activates the detection of the needed information
in current.ww3 and level.ww3 files. The tidal analysis can be performed
from NetCDF current or water level files, using the ww3 prnc preprocessing
program. In that case the analysis method uses the flexible tide analysis
package by Foreman et al. (2009). The precomputed tidal constituents can
be used at run time by ww3 shel.
However, that method may not be very efficient due to the large memory
required to store a large number of tidal constituents because, like other forc-
ing parameters, they are not decomposed across processors: each processor
stores the full spatial grid of forcing parameters. To avoid this, the tidal
constituents can be used to generated time series with the tidal prediction
program ww3 prtide, which produces the usual current.ww3 or level.ww3 files.
The choice of tidal constituents for the analysis and prediction are speci-
fied in the input files for ww3 prnc and ww3 prtide. Two short-cuts are defined.
VFAST is the following selection of 20 components, Z0 (mean), SSA, MSM,
MSF, MF, 2N2, MU2, N2, NU2, M2, S2, K2, MSN2, MN4, M4, MS4, S4,
M6, 2MS6, and M8. When using ww3 shel to do the tidal prediction, the
time step for currents or water is set to 1800 s.
In ww3 prtide, there is also a quality check on the values of the tidal
constituents that is performed: unrealistically large values of the amplitudes
for some constituents can be defined in ww3 prtide.inp. For model grid points
where these are exceeded, all components are set to zero, except for UNST
grids, in which the neighbors are searched to provide a reasonable value and
avoid strong gradients.
was formulated by Fedele (2012) for Gaussian sea waves, and extended to
second-order nonlinear spatial wave fields by Fedele et al. (2013) and spatio-
temporal fields by Benetazzo et al. (2015). The proposed ST extreme lin-
ear model was assessed with numerical simulations (Barbariol et al., 2015,
2016), while the extension to second-order nonlinear waves was verified us-
ing stereo imaging (Fedele et al., 2013; Benetazzo et al., 2015). According
to those models, the probability of exceedance of the second-order nonlinear
ST maximal crest height η2STm is approximated (for large threshold z2 with
respect to the standard deviation of the surface elevation σ) as:
z 2 z
1 1 z12
P (η2STm > z2 ) ≈ N3D + N2D + N1D exp − 2 , (3.83)
σ σ 2σ
where the nonlinear threshold z2 is related to its linear approximation z1 via
the Tayfun quadratic equation using the steepness parameter µ, strictly valid
in deep waters, which accounts for bandwidth effects. Parameters N3D , N2D ,
and N1D express the average number of 3D, 2D, and 1D waves within the
ST region, respectively, and are determined from the moments mijl of the
directional wave spectrum S(k, θ) defined as follows:
Z
mijl = kxi kyj ω l S(k, θ)dkdθ. (3.84)
The average number of waves in Eq. (3.83) also depends on the size
of the spatio-temporal domain, namely the spatial dimension X along the
mean direction of wave propagation, the spatial dimension Y orthogonal to
the mean direction of wave propagation, and the duration D. The expected
value η̄2STm (output parameter STMAXE, in meters) of the random variable
η2STm is given by
η̄2STm = E {η2STm } =
" −1 #
µ 2 2N3D h1 + N2D
σ (h1 + h1 ) + γ h1 − (1 + µh1 ) , (3.85)
2 N3D h21 + N2D h1 + N1D
where ψ1∗ < 0 is the value of the first minimum of the temporal autocovariance
function computed from the spectrum as
Z
ψ1 (τ ) = S(ω) cos (ωτ )dω, (3.89)
and η̄1STm ψ1∗ /σ 2 < 0 is the expected displacement of the wave trough pre-
ceding or following the expected linear extreme crest height η̄1STm , which is
computed using Eq. (3.85) after letting the wave steepness µ = 0. For a
given linear group, the height H̄1cm is generally smaller than the maximum
expected wave height H̄1m (output parameter HMAXE, in meters), which
is computed as
p
H̄1m = E {H1m } = η̄1STm 2(1 − ψ1∗ /σ 2 ). (3.90)
The sea-states predicted by numerical wave models are often complex, due
to the presence of multiple wave trains formed as a result of both local wind
action and more distant storms. In order to better describe these local wind-
sea and remote swell components, without dealing with the full complexity
of the model wave spectrum, the spectrum can be partitioned into collections
of spectral bins from which more recognisable wave statistics (height, period,
direction) can be derived.
Fig. 3.7 shows an example surface plot of an energy density spectrum at
one grid point at a specific time. The amount of energy density at each
frequency-direction intersection is shown by this surface. The surface is di-
vided into shaded areas or partitions representing energy from sub-peaks
within the spectrum. Fig. 3.7 shows four spectral partitions, an area of
windsea and three swell trains. The total energy represented by this spec-
trum can be defined by bulk parameters, such as the significant wave height
Hs . The shaded areas, called partitions of the spectrum, show spectral sub-
features that give more information about this grid point’s energy situation.
WAVEWATCH III has point and field output options available to provide
quantitative descriptions of these individual spectral partition such as parti-
tion wave height, peak period of partition (parabolic fit), peak wavelength
of partition, mean direction of partition, wind-sea fraction of partition (W )
using Eq. (2.251), and the number of partitions. In the field output, these
parameters correspond to spectral partitioned output fields 1 through 17 and
can be found in Section 2.7.
Across the wave forecasting community, various methods of spectral par-
titioning and definition of waves as sea or swell have been adopted. Two
varieties of partitioning are available from the W3PARTMD module.
1. Topographic partitioning that groups spectral bins together into (mul-
tiple) distinct wave systems.
2. A simple frequency based cutoff that produces two partitions; one above
and one below a cutoff frquency.
The topographic partitioning methods in WAVEWATCH III are all based on
DRAFT WAVEWATCH III version 6.07 169
Since the two-dimensional spectrum in Fig. 3.7 looks like a topological sur-
face, it is logical to apply an image processing partitioning algorithm that
treats the spectral surface like a topographical surface. The partitioning
shown in Fig. 3.7 is based on a digital image processing watershed algorithm
(Vincent and Soille, 1991) first prototyped by Hanson and Jensen (2004) for
the analysis of ocean wave data. The US continental divide where everything
to the east goes into the Atlantic Ocean and everything to the west goes into
the Pacific Ocean is a typical example of a watershed line. The oceans rep-
resent minima that determine the watershed line. If the spectral surface
is inverted, the spectral peaks become catchments and watershed lines or
partition boundaries can be determined using the Vincent and Soille (1991)
algorithm. Calculation of parameters for each spectral partition can then be
accomplished and wave system analysis as described in Hanson and Phillips
(2001) can be applied. Hanson and Jensen (2004) and Hanson et al. (2006)
used a MATLAB code to apply the Vincent and Soille (1991) algorithm10 .
This code has been transformed to an efficient FORTRAN routine for use in
WAVEWATCH IIIsince version 3.11. Coding follows the Vincent and Soille
(1991) paper but incorporates an efficient sort routine (O(n)) discussed in
Tracy et al. (2006).
• PTM=2: Wind sea and swells defined using topographic partitions and
spectral wave-age cutoff. Outputs wind-sea plus swell 1,2,3 etc.
• PTM=4: Wind sea and swell defined using spectral wave-age cutoff.
Outputs wind-sea and single swell partition.
PTM3 does not classify the topographic partitions into wind-sea or swell
- it simply orders them by wave height. This approach is useful for producing
data for spectral reconstruction applications using a limited number of par-
titions (e.g. Bunney et al. (2013)), where the classification of the partition
as wind-sea or swell is less important than the proportion of overall spectral
energy each partition represents.
Methods 4 and 5 do not use the watershedding partitioning method, but
adopt a simpler frequency cutoff that produces just two partitions. PTM4
uses the wave age criterion derived from the local wind speed to split the
spectrum in to a wind-sea and single swell partition. In this case waves with
a celerity greater than the directional component of the local wind speed are
considered to be freely propogating swell (i.e. unforced by the wind). This
is similar to the method commonly used to generate wind-sea and swell from
the WAM model.
PTM5 works in a similar fashion but applies a user defined static fre-
quency cutoff to split the spectrum into a low- and high-band partition. The
cutoff frequency is defined as PTFCUT in the MISC namelist and defaults
to 0.1Hz. This method is useful if you have a downstream application that
defines swell simply as those waves in a spectrum with period greater than a
predefined constant value. This is similar to the default partitioning method
found in SWAN.
For methods PTM1, PTM2 and PTM4 the wind cutoff can be controlled
by modifying the WSM factor in the MISC namelist. This applies a constant
multiplier to the wind speed and defaults to 1.0.
At present the outputs using methods PTM1 and PTM2 should be ob-
tained using any of the WAVEWATCH III standard output processing tools.
The full range of partitioning methods are available for gridded outputs using
the ww3 ounf module, and the netCDF file(s) that are produced will include
the partitioning method used within the variable attributes.
Note that for methods PTM4 and PTM5, only two partitions will ever be
created, therefore the NOSWLL parameter (defined in the MISC namelist;
default=5) will be overriden with a value of 2. Similarly, the wind sea fraction
cutoff value WSCUT will be set to 0.0.
Regression test regtests/ww3 tpt1.1 provides examples of each partition-
ing method.
DRAFT WAVEWATCH III version 6.07 173
!2 !2 !2
n n n
Tp − T̃p,i θp − θ̃p,i Hm0 − H̃m0,i
GoFi = + + , (3.92)
∆Tn ∆θn ∆Hn
where ∆Tn , ∆θn and ∆Hn are combining criteria (Van der Westhuysen et al.,
2016). If either of the first two terms on the right hand side of (3.92) exceed
unity for the closest match, the difference is considered too great and a new
wave system is assigned to that partition. Here, the search range for neigh-
boring points is set at 1, so that a maximum of four previously-associated
neighbors can be found (e.g. location 15 will have the previously processed
neighbors 3, 4, 5 and 14). In some cases, iterative combining is required.
The next step is to correlate these wave systems over time. Each system
i at the current time level t is associated with its closest match amongst
the systems j at the previous time level (t − 1). Three characteristics of
174 WAVEWATCH III version 6.07 DRAFT
21 22
20 7 8 9 10
19 6 1 2 11
18 5 4 3 12
17 16 15 14 13
the wave systems are considered in this process, namely: (i) the spatial
s
mean peak wave period over the system, T̃p,t,i , with s denoting the system
s
mean, (ii) the spatial mean peak wave direction, θ̃p,t,i and (iii) the number of
overlapping grid points between the two systems in geographical space ∩i,j .
These characteristics are combined to form the following GoF function:
!2 !2 2
s s s s
T̃p,t,i − T̃p,t−1,j θ̃p,t,i − θ̃p,t−1,j Nt−1,j − ∩i,j
GoFi,j = + + ,
∆Ts ∆θs 0.5Nt−1,j
(3.93)
where ∆Ts and ∆θs are combining criteria, and N is the total number of
grid points in a system, see Van der Westhuysen et al. (2016). In order to
focus the tracking process on high-energy regions in the wave field, the spa-
tial mean period and peak direction values of each system are weighted with
the square of the significant wave height. System i at the current time level
t is assigned the system j from the previous time level (t − 1) that minimizes
(3.93). If any of the three terms on the right hand side of (3.93) exceed unity
for the system that minimizes (3.93), a new system number is assigned. For
DRAFT WAVEWATCH III version 6.07 175
the last term, this implies a minimum spatial overlap requirement, arbitrar-
ily set at 50%. This term mostly has an impact over basin scale domains,
where systems are typically smaller than the computational area. In order to
improve robustness, the details of identified systems are stored for five time
levels, after which the system association is released.
3.14 Nesting
Origination: WAVEWATCH III
Provided by: H. L. Tolman
The conventional wave model program ww3 shel considers a single wave
model grid. This program includes options to transfer boundary conditions
from large-scale runs to small-scale runs. Each run can simultaneously accept
one data set with boundary conditions, and generate up to 9 data sets with
boundary conditions. To assure conservation of wave energy with incom-
patible depths and currents, the boundary data consists of energy spectra
F (σ, θ). The data file consists of spectra at grid points of the generating run,
and information needed to interpolate spectra at the requested boundary
points. The size of the transfer files is thus minimized if the input points for
a small-scale run are located on grid lines in the large-scale run. When used
as input, the spectra are interpolated in space and time for every global time
step ∆tg , using a linear interpolation of spectral components.
176 WAVEWATCH III version 6.07 DRAFT
❝ ❝ ❝ s ❝ ❝ ❝
internal scheme
✲
❝ ❝ ❝ s ❝ ❝ ❝
❝ ❝ ❝ s ❝ ❝ ❝ ✲ space
bound. scheme
Figure 3.9: Traditional one-way nesting approach as used in ww3 shel. One-
dimensional representation in space and time, symbols represent grid points.
Model version 3.14 includes an option to use the multi-grid or mosaic ap-
proach to wave modeling with the program ww3 multi (Tolman, 2006, 2007,
2008b). In this program, an arbitrary number of grids with arbitrary resolu-
tions is considered, with data exchange between grids at each relevant model
time step. The grids are given a rank number, where lower rank corresponds
to lower resolution, and equal rank corresponds to similar resolution (but not
necessarily equal resolution). Three types of data transfer between grids are
considered:
❝✈ ❝ ❝ ❝ ✈❝ ❝ ❝ ❝✈ ❝
❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝
❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝
✈ ✈ ✈
❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝
❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝
❝✈ ❝ ❝ ❝ ✈❝ ❝ ❝ ❝✈ ❝
Figure 3.10: Concept for reconciling lower ranked grid with higher ranked
grid in two-way nesting approach. ◦ and hashed lines represent the higher
ranked grid points and grid boxes, respectively, • and solid lines represent
lower ranked grid and central grid box.
✛ A B C ✲
s s s s s s s
❝ ❝ ❝ ❝ ❝ ❝ ❝
s s s s s s s
❝ ❝ ❝ ❝ ❝ ❝ ❝
s s s s s s s
❝ ❝ ❝ ❝ ❝ ❝ ❝
s s s s s s s
❝ ❝ ❝ ❝ ❝ ❝ ❝
s s s s s s s
❝ ❝ ❝ ❝ ❝ ❝ ❝
Figure 3.11: Concept for reconciling grids with identical rank and therefore
similar resolution. ◦ represents points of grid 1, • represents grid 2.
the grid box i in the lower ranked grid, normalized with the surface of the
lower ranked grid box i. This is illustrated in Fig. 3.10. To avoid circular
reconciliation, grid points in the lower ranked grid that contribute to the
boundary data in the higher ranked grid are not updated in this manner.
Overlapping grids with similar rank cannot use the above two-way nesting
technique to consistently exchange data. Instead, all such grids are propa-
gated one time step, after which the grids are reconciled as is illustrated in
Fig. 3.11. For grid 1 (◦ in Fig. 3.11) two areas can be distinguished. In area
C, the influence of the boundary has propagated into the grid since the last
reconciliation. The actual depth of penetration depends on the stencil width
of the numerical scheme, and the number of propagation time steps. In areas
A and B, information from the boundary has not yet penetrated, and this
area can be considered as the ‘interior’ of grid 1. Similarly, area A represents
the boundary penetration depth for grid 2 (• in Fig. 3.11) whereas B and
C represent the interior of grid 2. A simple and consistent reconciliation be-
tween grid 1 and 2 uses data from grid 1 exclusively in area A (interpolating
data from grid 1 to grid points in grid 2 as necessary), and uses data from
grid 2 exclusively in area C. In area B, where interior parts of both grids over-
lap, a consistent solution can be found by using weighted averages from both
grids. Note that this approach is easily extended to multiple overlapping
grids.
Note that for explicit numerical propagation schemes and overlapping
DRAFT WAVEWATCH III version 6.07 179
grids with identical resolution and coinciding grid points, solutions for over-
lapping grids and the compatible single grid can be identical, as long as the
overlap areas are sufficiently wide.
The two-way nesting techniques in ww3 multi are largely automated. Each
grid is prepared individually, with its own preferred time stepping informa-
tion. Locations where each grid expects to get boundary data from lower
ranked grids are marked as in the one-way nesting approach. All other book-
keeping needed to implement the two-way nesting techniques are automated,
although some iterations may be needed to assure that all input boundary
points defined in each grid can be provided with boundary data from other
grids in the multi-grid application. Alternatively, each grid can obtain data
from an external data file as in the traditional nesting approach. In the
present implementation, each grid has to obtain all boundary data from a
single file, or from other grids in the multi-grid application, but cannot re-
ceive data from file and grids simultaneously. Details on the management
algorithm developed to run all grid simultaneously can be found in Tolman
(2007, section 3.4) and Tolman (2008b), and will not be reproduced here.
Note that the grids used in ww3 multi do not need to have the same
spectral discretization. Spectra are converted on the fly in ww3 multi. Details
on the numerical techniques used for this approach can be found in Tolman
(2007, section 3.5.5). Grid generation for multiple grids in such an approach
can be cumbersome, and consistency between grids is required for consistent
model results. For this reason automated grid generation utilities have been
developed by Chawla and Tolman (2007, 2008).
180 WAVEWATCH III version 6.07 DRAFT
The core of WAVEWATCH III is the wave model subroutine, which can be
called by either a stand-alone program shell or any other program that re-
quires dynamically updated wave data. Two such programs are provided with
the WAVEWATCH III release (e.g., ww3 shel and ww3 multi). Auxiliary pro-
grams include a grid preprocessor ww3 grid, a program to generate artificial
initial conditions ww3 strt, generic program shells for individual ww3 shel or
multi-grid ww3 multi applications, two input pre-processors (ww3 prep and
ww3 prnc), and post-processors for gridded (ww3 outf and ww3 ounf) and
point (ww3 outp and ww3 ounp) output data.
In this section, note that file names will be identified by the file type font,
the contents of a file by the code type font and fortran program elements
by the fortran type font. The main wave model subroutine is w3wave.
Data files are identified with the file extension .ww3, except in the multi-grid
wave model ww3 multi, where the file extension identifies individual grids
part of a chosen multi-grid mosaic. For simplicity, the file extension .ww3
will be used throughout this chapter.
A relational diagram including the basic data flow is presented in Fig. 4.1.
The figure illustrates a typical workflow, as follows. The grid pre-processor
ww3 grid writes a model definition file mod def.ww3 with bottom and obstruc-
tion information and parameter values defining the physical and numerical
approaches. The wave model may have cold or hot starts. Hot starting re-
quires a restart file restart.ww3, created either by the wave model itself in
a previous run, or by the initial conditions program ww3 strt. If a restart
file is not available, the wave model will be initialized automatically. If lin-
ear growth or spectral seeding is switch on, the model may start from a flat
ocean (Hs = 0), otherwise the initial conditions will consist of a parametric
fetch-limited spectrum based on the initial wind field (see the corresponding
option in the initial conditions program).
The wave model routine (w3wave) optionally generates up to 9 restart
files restartn.ww3, where n represents a single digit integer number. For tele-
scoping nest applications, the wave model also optionally reads boundary
conditions from the file nest.ww3 and generates boundary conditions for con-
DRAFT WAVEWATCH III version 6.07 181
secutive nested runs in nestn.ww3. The model furthermore dumps raw data
to the output files out grd.ww3 , out pnt.ww3, track o.ww3 and partition.ww3
(gridded mean wave parameters, spectra at locations, spectra along tracks,
and partitioned wave data, respectively). The tracks along which spectra are
to be presented is defined in the file track i.ww3. Note that the wave model
does not write to standard output, because this would be inconvenient if
WAVEWATCH III is part of an integrated model. Instead, it maintains its
own log file log.ww3 and optionally a test output files test.ww3 for a shared
memory version of the model, or testnnn.ww3 for distributed memory ver-
sions, where nnn is the processor number starting with 1. Finally, various
output post-processors are available (binary post-processing of raw gridded
fields, point output and track output files; NetCDF and GRIB(2) packing of
wave data; post-processing for later GrADS graphical processing of gridded
and spectral data). A more detailed description of all program elements and
their input files is given below. Note that the source codes of each routine are
fully documented. This documentation is an additional source of information
about WAVEWATCH III.
11
Except for ww3 multi.
182 WAVEWATCH III version 6.07 DRAFT
❄ ❄
grid preprocessor input preprocessor
✒
❄ ❄
mod def.ww3 ❅
program
❅
❅ shell
or
✲ initial cond. ✲ restart.ww3 integrated
program
❅
❘
❅ ❄
restart.ww3 ✛✲ wave model
nest.ww3
✻
❄ out pnt.ww3 ❄
output ✛ out grd.ww3 ✛ track i.ww3
postprocessing partition.ww3 track o.ww3
❄
log.ww3
program
test.ww3
file subrout.
✲ data transfer by file
The wave model driver is a subroutine within the WAVEWATCH III frame-
work package. To run the model driver subroutine, a program shell is needed.
WAVEWATCH III is provided with a simple stand-alone shell as will be dis-
cussed in Section 4.4.10, and with a more complex multi-grid model shell as
will be discussed in Section 4.4.12. The present section concentrates on the
wave model driver subroutines.
The wave model initialization routine w3init performs model initializa-
tion for a single wave model grid. This includes setting up part of the I/O
system by defining unit numbers, initializing internal time management, pro-
cessing the model definition file (mod def.ww3), processing initial conditions
(restart.ww3), preparing model output, and calculating grid-dependent pa-
rameters. If the model is compiled for an MPI environment, all necessary
communication for both calculations and output are determined and initial-
ized (the model uses persistent MPI communication throughout).
The wave model routine w3wave can be called any number of times to
propagate the wave field for a single grid in time after the initialization has
taken place. After some initial checks, the subroutine interpolates winds and
currents, updates ice concentrations and water levels, propagates the wave
field, and applies the selected source terms for a number of time steps. The
internal time step is defined by the interval for which the calculations are
to be performed, and by the requested output times. At the end of the
calculations, the routine provides the calling program with the requested
fields of wave data. A documentation of the interface of w3wave can be
found in the source code (w3wavemd.ftn).
Apart from the raw data files as described above, the program maintains
a log file log.ww3. This file is opened by w3init (contained in w3wave
in w3wavemd.ftn), which writes some self-explanatory header information to
this file. Each consecutive call to w3wave adds several lines to an ‘action
table’ in this log file as is shown in Fig. 4.2. The column identified as ‘step’
shows the discrete time step considered. The column identified as ‘pass’
identifies the sequence number of the call to w3wave; i.e., 3 identifies that
this action took place in the third call to w3wave. The third column shows
the ending time of the time step. In the input and output columns the
corresponding actions of the model are shown. A X identifies that the input
has been updated, or that the output has been performed. A F indicates a
184 WAVEWATCH III version 6.07 DRAFT
| input | output |
|-------------|---------------|
step | pass | date time | b w l c i d | g p t r b f c |
-------|------|---------------------|-------------|---------------|
0 | 1 | 1968/06/06 00:00:00 | F | X X |
8 | 1 | 02:00:00 | | X |
12 | 1 | 03:00:00 | | X |
16 | 1 | 04:00:00 | | X |
24 | 1 | 06:00:00 | X | X X |
32 | 2 | 08:00:00 | | X |
36 | 2 | 09:00:00 | | L |
40 | 2 | 10:00:00 | | X |
48 | 2 | 12:00:00 | X X | L L |
-------+------+---------------------+-------------+---------------+
first field read, and an L identifies the last output. The seven input columns
identify boundary conditions (b), wind fields (w), water levels (l), current
fields (c), ice concentrations (i), and data for assimilation (d), respectively.
Note that data assimilation takes place at the end of the time step after
the wave routine call. The seven output columns identify gridded output (g),
point output (p), output along tracks (t), restart files (r), boundary data (b),
and partitioned spectral data (f), and output for coupling (c), respectively.
For the multi-grid wave model (Tolman, 2008b, ww3 multi) a set of rou-
tines is build around the basic wave model routines. The three main routines
are the initialization routine wminit, a time stepping routine wmwave and
a finalization routine wmfinl, with similar functions as the routines for a
single grid as described above. Note that the raw input and output files are
generated for separate grid in the mosaic, and are identified by replacing the
standard file extension ’.ww3’ with a unique identifier for each individual grid
as chosen by the user in the ww3 grid.inp file. Log files are maintained for
each individual grid, as well as an overall log file log.mww3.
DRAFT WAVEWATCH III version 6.07 185
The generic program shell also processes several types of data to be assim-
ilated, and passes it on to the data assimilation interface routine. All data
needs to be preprocessed using the wave model input preprocessor (see Sec-
tion 4.4.7), and will be recognized by the generic shell by file name. Presently,
up to three different data files can be used. Tentatively, these could be mean
wave parameters, one dimensional spectral data, and two dimensional spec-
tral data, respectively. This is, however, not hardwired to the model and in
fact needs to be defined by the user.
All auxiliary programs presented here, with the exception of the track output
post-processor, read input from a pre-defined input file. Contents of that file
determine user choices for each auxiliary program. Comment lines are al-
lowed using a character determined by the user as follows: the first character
on the first line of the input file will be considered to be the comment char-
acter, identifying comment lines throughout the input file. This comment
character has to appear on the first position of input lines to be effective.
In all examples in the following sections, the first character of the first line
is ’$’. Therefore, all lines starting with ’$’ contain only comments that are
not parsed into the auxiliary program. As a standard, auxiliary programs all
write formatted output to the standard output unit.
In the following sections, all available auxiliary programs are described
using an example input file. These are found in the directory inp within
the WAVEWATCH III package. Inside each sample input file, all possible
options that can be activated by the user are included, most of them feature
as comment lines starting with ’$’. Files in the current section reflect actual
contents of sample files. The sections below also show the name of the exe-
cutable program associated with the displayed input file, the program name
(as appears in the program statement), the source code file and input and
output files and their unit numbers (in brackets behind the file name). Input
∗
and output files marked with are optional. The intermediate files mentioned
below are all unformatted, and are not described in detail here. Each file
is written and read by a single routine, to which reference is made for addi-
tional documentation.
two chapters. Examples of test runs of the model are provided with the
source code.
Below is the part of an inp file with the corresponding part of nml file:
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Grid preprocessor input file $
$ -------------------------------------------------------------------- $
$ Grid name (C*30, in quotes)
$
’TEST GRID (GULF OF NOWHERE) ’
$
$ Frequency increment factor and first frequency (Hz) ---------------- $
$ number of frequencies (wavenumbers) and directions, relative offset
$ of first direction in terms of the directional increment [-0.5,0.5].
$ In versions 1.18 and 2.22 of the model this value was by definiton 0,
$ it is added to mitigate the GSE for a first order scheme. Note that
$ this factor is IGNORED in the print plots in ww3_outp.
$
1.1 0.04118 32 24 0.
$
! -------------------------------------------------------------------- !
! WAVEWATCH III - ww3_grid.nml - Grid pre-processing !
! -------------------------------------------------------------------- !
! -------------------------------------------------------------------- !
! Define the spectrum parameterization via SPECTRUM_NML namelist
!
! * namelist must be terminated with /
! * definitions & defaults:
! SPECTRUM%XFR = 0. ! frequency increment
! SPECTRUM%FREQ1 = 0. ! first frequency (Hz)
! SPECTRUM%NK = 0 ! number of frequencies (wavenumbers)
! SPECTRUM%NTH = 0 ! number of direction bins
! SPECTRUM%THOFF = 0. ! relative offset of first direction [-0.5,0.5]
! -------------------------------------------------------------------- !
&SPECTRUM_NML
SPECTRUM%XFR = 1.1
SPECTRUM%FREQ1 = 0.04118
SPECTRUM%NK = 32
SPECTRUM%NTH = 24
DRAFT WAVEWATCH III version 6.07 189
Note that the optional output files are specific to ww3 shel and ww3 multi,
but are not processed by the actual wave model routines. These files are
consequently not needed if the wave model routines are used in a different
shell or in an integrated program. However, the routines reading and writing
these files are system-independent and could therefore be used in customized
applications of the basic wave model. The reading and writing of these
files is performed by the subroutine w3fldg (w3fldsmd.ftn). For additional
documentation and file formats reference if made to this routine.
DRAFT WAVEWATCH III version 6.07 195
See note at the end of the previous section (4.4.7) for tools that can be used
to pack input files in custom programs.
196 WAVEWATCH III version 6.07 DRAFT
The user-provided file current.ww3 tide or level.ww3 tide is a binary file that
can be obtained by running ww3 prnc with the ’AT’ option and then re-
naming the resulting file current.ww3 or level.ww3 into current.ww3 tide or
level.ww3 tide . The choice of tidal constituents used for the tidal prediction
can be a subset of the ones present in these files or all of them.
Because of wetting and drying or grid mismatches, the tidal constituents
may be erroneous or absent for some of the WAVEWATCH III nodes. The
erroneous ones can be detected using a maximum amplitude on particular
components. When the amplitudes exceeds these maxima, then the tidal
constituents are extrapolated from the nearest nodes. This feature has only
been tested on triangular meshes.
DRAFT WAVEWATCH III version 6.07 197
To further automate the splitting of the grid, a script ww3 gspl.sh is provided.
This script runs ww3 gspl, and subsequently generated the mod def files for
all sub-grids. If a file ww3 multi.inp is provided, then this file is updated too.
The workings of the script are shown with the -h command line flag, which
results in the output of the script as shown in Fig. 4.3.
DRAFT WAVEWATCH III version 6.07 199
Figure 4.3: Options for ww3 gspl.sh, as obtained by running it with the -h
command line option.
200 WAVEWATCH III version 6.07 DRAFT
This wave model program requires and produces a plethora of input and
output files consistent with those of ww3 shel in Section 4.4.10, where file
extensions .ww3 are replaced by an identifier for a specific grid. Note that all
files are opened by name, and that the unit number assignment is dynamic
and automatic.
In order to make all existing features available there is a new version of
the input file that uses namelists. This is the version that will be supported
in the future as it allows a more flexible addition of new features. Please
note that the namelist form is not supported by GCC compilers
before version 4.8.2.
DRAFT WAVEWATCH III version 6.07 201
This post processor program takes field data from several overlapping grids
and produces a unified output file. The different model definition and field
output files are identified by the unique identifier associated with each spe-
cific grid. At this moment the program works with curvilinear and rectilinear
grids. A weights file WHTGRIDINT.bin is written that can be read in subse-
quent runs using identical origin-destination grids, saving substantial time in
cases using large number of input grids and/or high-resolution target grids.
Note that this program can be used in concert with the grid splitting program
ww3 gspl, and that ww3 gspl.sh has an option to produce a template input
file for his program (see Section 4.4.11).
202 WAVEWATCH III version 6.07 DRAFT
The extension of the file name of transfer files for itype = 3 identifies the
content of the file. The file extension for each data type is given in Table 4.1
on page 221.
DRAFT WAVEWATCH III version 6.07 203
When a single field is put in the file, the abbreviated field name (file exten-
sions from ww3 outf) for each data type is given in Table 4.1 on page 221.
204 WAVEWATCH III version 6.07 DRAFT
This post-processor generates input files with gridded model parameters for
the Grid Analysis and Display System (GrADS, Doty, 1995). Although
GrADS can also work with GRIB files, the present preprocessor is prefer-
able, as the data file also gives access to a land-sea-ice map.
DRAFT WAVEWATCH III version 6.07 205
All above strings are read as characters using free format, and therefore need
to be enclosed in quotes.
208 WAVEWATCH III version 6.07 DRAFT
This post-processor will convert the raw track output data to an integer
compressed formatted file. The file contains the following header records :
For each output point varying in time and position, the following records are
printed :
This post-processor will convert the raw track output data to a NetCDF file.
The output NetCDF file contains the following variables :
For each output point varying in time and position, the following records are
printed :
Program currently implemented for regular grids only. The spatial and tem-
poral tracking is performed on the basis of the spectral partition data file.
Both the time interval and geographic domain over which wave systems are
tracked can be subsets of the data contained in the partition file. The combin-
ing parameters dirKnob and perKnob are used to influence the strictness of
the system combining algorithm in geographic space, and dirTimeKnob and
perTimeKnob are the corresponding parameters in temporal space. Lower val-
ues imply stricter criteria, which results in smaller, more numerous systems.
This also typically increases the processing time. Recommended values are
given above. These values can be influenced locally, for example around an
island, by defining a mask file sys mask.ww3. Parameters hsKnob and wetPts
are a low-energy and small system filters—all wave systems with an average
DRAFT WAVEWATCH III version 6.07 213
Hm0 below hsKnob or with a size of less than wetPts*100% of the overall do-
main size are purged. Parameters seedLat and seedLon influence the origin
of the wave system search spiral, with default at the center of model domain
(indicated by 0. 0.). At the end of a tracking run, the end state of system
memory is stored in sys restart1.ww3. This file, renamed as sys restart.ww3,
can be used to restart a tracking sequence from this previous system memory
state.
214 WAVEWATCH III version 6.07 DRAFT
Introduction
The majority of the observations for the sea surface wave field is observa-
tions of the diagnostic variable: Significant Wave Height (SWH). Therefore,
the wave data assimilation (WDA) often takes space in the SWH space and
subsequently this information has to be transfered to the prognostic space,
wave spectrum (WS) to be imposed as boundary and/or initial condition
(BIC).
Core algorithm
The ww3 uprstr sets the SWH of the background spectra equal to the
SWH of the analysis and modifies the shape of the spectrum according to the
user’s prescibed spectrum shape. The ww3 uprstr has been implemented
as an extension of the restart reader and it requires as inputs: the restart
file, the SWH of the analysis, and the ww3 uprstr.inp (see above) with the
user’s defined options; additional files may be required in order to reduce the
calculations on the fly.
NX NY
VAL0001
VAL0002
...
VAL(NX*NY)
216 WAVEWATCH III version 6.07 DRAFT
Tips
• The restart file has to be created with the same WW3 version as the
ww3 uprstr; there is not backwards compatibility.
• The starting time of the assimilation defined at ww3 uprstr.inp has
to be the same with the time at the restart file.
• By using the T, the ww3 uprstr.inp exports the fields of SWH from
the background restart file, the analysis and of the updated restart file.
In addition, the spectra from the restart files before and after and the
update are exported as text files.
Update method
The users have to define the update algorithm of their choice at the
ww3 uprstr.inp. The options for updating the restart file are defined at
the ww3 uprstr.inp with the flag UPD[N], where N could be 0F, 0C, 1, 2,...
For UPDN, with N <2, the same correction is applied to the whole grid;
Expected input: PRCNTG, as defined at fac. For UPDN, with N >1 each
gridpoint has its own update factor and the input is at grb2txt format. For
more details about the current implementation see the 4.4.
The following UPD options are available:
Figure 4.4: Flowchart of the implemented methods for updating the wave
spectra at the WW3 restart file. Additional methods can be implemented by
adding UPD options to the namelist.
218 WAVEWATCH III version 6.07 DRAFT
5. UPD3 :: Option 3 The update factor is a surface with the shape of the
background spectrum.
Example
In this section, an example of the simplest WDA application is discussed.
The figure 4.5 shows how the ww3 uprstr is used in the framework of a
simple wave analysis system.
A WW3 run (from the previous cycle or from the hindcast) provides the
background field of SWH and the corresponding restart file at the appropriate
time. The format of the background SWH field has to be compatible with
the WDA module inputs.
The WDA module uses the background field and the available observa-
tions for the time of analysis, produces the analysis and exports the field of
SWH in grbtxt format (XXXX.grbtxt) .
The analysis file, the mod def.ww3, the restart.ww3 file and the
ww3 uprstr.inp are the input files for the ww3 uprstr. If all the options
and input files are correctly prepared, it takes approxmately one minute
to update a grid of 260000 grid nodes and generate the output on a single
processor. The updated restart file has to be renamed, at the expected file
name, in the case of this example to restart.ww3.
DRAFT WAVEWATCH III version 6.07 219
Note: All NCEP’s WDA systems use GRIB2 format, thereore there is al-
ways an intermediate step to transfer the grib files to the appropriate format.
The used software is WGRIB2 and more information can be retrieve from
the official website.
DRAFT WAVEWATCH III version 6.07 221
5.1 Introduction
WARNING
If version 6.07 is implemented as an upgrade to previous versions
of WAVEWATCH III, please note that this version may not be
compatible with previous model versions. It is therefore prudent
NOT to install the new version of WAVEWATCH III on top of the
old version.
WARNING
5.2 Distribution
5.3 Installing
5.4 Setting up
After cloning the WAVEWATCH III repo, there are two steps to follow.
The first step is to run the script model/bin/w3 setup which will compile
auxiliary programs and setup the environment file wwatch3.env, which will
be stored locally in the bin directory. This file sets options for default C and
FORTRAN compilers which will only be used by the preprocessor. Except
in specific cases, this default setting can be used as is. Running the script
alone will give full usage, or to execute also supply the source dir, which is
the location of the model directory. If you run from the top level directory:
There are three prompts requiring user input in this script. The first asks
for the path the the top level directory, the second asks if you want to delete
the tar file that is copied (likely the answer is n for no) and the last asks to
keep a folder that is used by this script (likely the answer is n for no).
After cloning the WAVEWATCH III repository, the following directories are
found on the top level.
The following directories are generated in the ‘model’ directory after compil-
ing the code.
The aux directory has various additional tools, see the actual directory
for its contents. These include contributed Matlab codes, IDL tools, bash
scripts and GrADS and FORTRAN programs.
Setting up WAVEWATCH III runs the installation the auxiliary programs
will first process FORTRAN codes, using the compiler as defined in the setup
226 WAVEWATCH III version 6.07 DRAFT
file wwatch3.env. Note that these codes are still in fixed format FORTRAN-
77. The executables are stored in the directory bin. A more detailed descrip-
tion of these programs (including instructions on running the executables)
can be found in the documentation included in the above source code files.
After the compilation of these programs, several UNIX shell scripts and aux-
iliary files are installed in the bin directory.
The bin directory has various UNIX scripts to manage the WAVE-
WATCH III framework. The use of these scripts is explained in Section 5.7.
Note that the following scripts acquire setup information from the WAVE-
WATCH III environment setup file defined by WWATCH3 ENV. Either defined
by w3 setenv which read the local wwatch3.env or by the user environment
file.
install ww3 tar Script to install WAVEWATCH III from tar files.
w3 setup Script for creating/editing the WAVEWATCH III
environment setup file. The default setup file is
bin/.wwatch3.env. switch and compiler are given in
arguments. (see options)
w3 clean Script to clean up WAVEWATCH III directories by
removing files generated during compilation or test
runs. 3 levels of clean-up. (see options)
w3 make Script to compile and link components of WAVE-
WATCH III using a makefile. A list of programs
can be given in arguments.
DRAFT WAVEWATCH III version 6.07 227
Subprograms called :
Extra programs :
After installation in the bin directory, several GrADS scripts are installed
in the aux directory.
The nf-config utility program (part of the NetCDF-4 install or nc-config for
old versions) is used to determine the appropriate compile and link flags
for the WWATCH3 NETCDF = NC4 compile. The NetCDF-4 compile requires
NetCDF version 4.1.1 or higher. Use the command
nf-config --version
nf-config --has-nc4
For the first compilation, the WAVEWATCH III environment must be set up
using the script w3 setup with the model directory path in argument. Some
options are available to define the compiler options and the switch file located
in the bin directory. For instance,
the <comp> keyword can be mpt, intel, gfortran, pgi for optimized com-
pilation options or could be mpt debug, intel debug, gfortran debug,
pgi debug for debugging compilation options. If system-dependant options
are needed, it can be done by modifying the script cmplr.env. Some old
comp/link templates from different clusters are still available but not recom-
mended. The <switch> keyword can be the suffix of a provided switch file
or your own one. Running this script will create these three scripts/files :
The easiest way to compile WAVEWATCH III is using the script w3 automake
to automatically detect which programs to compile and to compile it. It
will force pre- and post-processing programs to be compiled as sequential
implementation and others depending on the switches from openMP, MPI
or hybrid configurations. If the netCDF library is correctly set up, the
netCDF dedicated programs will be also compiled. The same test is done for
SCRIPNC, PDLIB, OASIS, ESMF, TRKNC and TIDE keywords to manage
the program compilation in the best way. For instance,
w3 automake
the compiled programs will all be stored in the exe directory with a copy of
the switch, comp and link files used.
In case of troubles during the compilation of a program, the log files will be
stored in a temporary directory which will differs between sequential mode
(tmp SEQ) and distributed mode like MPI (tmp MPI), OMP (tmp OMP) or
hybrid (tmp HYB). There are usually three log files per program:
ww3 <prog>.l full program with only the matching lines of codes
based on the switches and at the end the compila-
tion command line.
ww3 <prog>.out warning messages
ww3 <prog>.err error messages
w3 clean -m
w3 clean -c
DRAFT WAVEWATCH III version 6.07 233
WARNING
The auxiliary scripts w3 make etc. use the switch, comp and link
files from the ./bin directory under the WAVEWATCH III home
directory, NOT from the local directory.
WARNING
After the appropriate changes have been made, or the appropriate example
scripts have been copied in, (parts of) WAVEWATCH III can be compiled
12
Note that before running w3 make several user interventions are needed as described
in the remainder of this section.
234 WAVEWATCH III version 6.07 DRAFT
1
w3 make
1,2,3 1
make makefile.sh w3 new
1 4
make (unix) ad3 w3adc
comp
1
Suitable for interactive use.
2
If makefile does not exist.
3
link
If switch file has been updated.
4 Files with extension .ftn only.
and linked. When the program is compiled for the first time, it is suggested
to compile program parts one-by-one to avoid lengthy errors messages, and
to set up error capturing in comp. A good place to start is compilation of
the simple test code ctest. First go to the directory work and make a link
to the source code of this routine by typing
ln3 ctest
This link is made to facilitate later inclusion of errors to test or set-up error
capturing in the script comp. The inner workings of the preprocessor w3adc
can be seen by typing the command
which will show how the actual source code is constructed from ctest.ftn,
include files and program switches. Next, the compilation of this subroutine
can be tested by typing
ad3 ctest 1
which invokes both the preprocessor w3adc and the compile script comp. The
1 at the end of this line activates test output. If it is omitted, this command
should result in a single line of output, identifying that the routine is being
processed. If ad3 works as expected, an object file obj/ctest.o is generated. If
requested during the initial set up, a source code and listing file (ctest.f and
DRAFT WAVEWATCH III version 6.07 235
ctest.l) can be found in the scratch directory. The listing file is also retained
if compilation errors are detected by comp. At this time, it is prudent to test
error capturing in the script comp by adding errors and warnings to ctest.ftn
in the work directory. The error capturing is discussed in some detail in
the documentation of comp. After comp has been tested, and the errors
in ctest.ftn have been removed, the link to the work directory and the file
obj/ctest.o can be deleted.
After a single routine has been compiled successfully, the next step is to
try to compile and link an entire program. The grid preprocessor can be
compiled by typing
w3 make ww3 grid
If the compilation appears successful, and if the input files have been installed
(see above), the grid preprocessor can be tested by typing
ww3 grid
in the work directory. If the input files have been installed, a link to the
input file ww3 grid.inp will be present in the work directory, and the grid
preprocessor will run and send its output to the screen. Output files of the
grid preprocessor will appear in the work directory. When a program is
compiled for the first time, the operating system might not be able to find
the executable. If this occurs, try to type
rehash
or open a new shell to work from. In this way all separate programs can be
compiled and tested. To clean up all temporarily files (such as listings) and
data files of the test runs, type
w3 clean
Note that w3 make only checks the switch file for changes. If the user changes
the compile options in the compile and link scripts comp and link, it is advised
to force the recompilation of the entire program. This can be achieved by
typing
w3 new all or w3 new
before invoking w3 make. This might also be useful if the compilation is
unsuccessful for no apparent reason.
236 WAVEWATCH III version 6.07 DRAFT
The file switch in the bin directory contains a set of strings identifying model
options to be selected. Many options are available. Of several groups of
options it is mandatory to select exactly one. These mandatory switches are
described in Section 5.9.1. Other switches are optional, and are described
in Section 5.9.2. Default model setting are identified in Section 5.9.3. The
order in which the switches appear in switch is arbitrary. How these switches
are included in the source code files is described in Section 6.2.
Hardware model (first group) and message passing protocol (second group).
Note that these two groups share a switch. This implies that the mpi switch
can only be used in combination with the dist switch.
Selection of input and dissipation. stabn switches are optional and addi-
tional to corresponding stn switch:
ref0 No reflection.
ref1 Enables reflection of shorelines and icebergs
wnt0 No interpolation.
wnt1 Linear interpolation.
wnt2 Approximately quadratic interpolation.
crt0 No interpolation.
240 WAVEWATCH III version 6.07 DRAFT
All switches below activate model behavior if selected, but do not require
particular combinations. The following switches control optional output for
WAVEWATCH III programs.
The following switches enable parallelization of the model using OpenMP di-
rectives, also known as ‘threading’. Before model version 5.01, threading and
parallelization using the mpi switch could no be used simultaneously. With
version 5.01, pure MPI,pure OMP and hybrid MPI-OMP approaches became
available. Switches used in version 5.01 and higher are not compatible with
switches used in previous model versions.
ompg General loop parallelization directives used for both exclu-
sive OpenMP parallelization and hybrid MPI-OpenMP par-
allelization.
ompx Idem, but for directives used only for exclusive OpenMP
parallelization.
omph Idem, but for directives used only for hybrid MPI-OpenMP
parallelization.
pdlib Domain Decomposition for Explicit and Implicit Solver on
triangular unstructured grids. (ParMetis is required for
this option)
Note that these switches can only be used in certain combinations, as enforced
in the model installation scripts (particularly make makefile.sh. A pure MPI
approach requires the dist and mpi switches. A pure OpenMP approach re-
quires the shrd, ompg and ompx switches, and the hybrid approach requires
the dist, mpi, ompg, and omph switches.
242 WAVEWATCH III version 6.07 DRAFT
The following switches are associated with the continuously moving grid op-
tions. The first switch activates the option, the other two are optional addi-
tions.
The following compiler dependent switches are available. They may not have
been maintained for recent compiler versions.
nnt Generate file test data nnn.ww3 with spectra and nonlin-
ear interactions for training and testing of NNIA.
oasis Initializes OASIS Coupler (App. E.3).
oasacm OASIS atmospheric model coupling fields(App. E.3).
oasocm OASIS oceanic model coupling fields (App. E.3).
oasicm OASIS sea ice model coupling fields (App. E.3).
refrx Enables refraction based on spatial gradients in phase ve-
locity (Section 2.4.3)
reft Test output for shoreline reflection (which is activated with
ref1).
rtd Rotated grid option.
rwnd Correct wind speed for current velocity.
s Enable subroutine tracing in the main WAVEWATCH III
subroutines by activating calls to the subroutine strace.
scrip Enable SCRIP remapping routines (App. D.3)
scripnc Enable storage of remapping weights in NetCDF files
(App. D.3)
sec1 Enable the use of global time steps less than 1 s, but does
not allow output at time steps less than 1 s.
smc Activate SMC grid.
t Enable test output throughout the program(s).
tn Id.
tdyn Dynamic increment of swell age in diffusive dispersion cor-
rection (test cases only).
tide Enables tidal analysis: used for pre-processing of input files,
run-time tidal prediction in ww3 shel or tidal prediction
with ww3 prtide.
tidet test output for tidal analysis.
trknc Activates the NetCDF API in the wave system tracking
post-processing program. Selecting TRKNC alone will gen-
erate NetCDF-3 files. Selecting both TRKNC and NC4 will
generate NetCDF-4 files.
uost Enable the unresolved obstacles source term.
xw0 Swell diffusion only in ULTIMATE QUICKEST scheme.
xw1 Id. wave growth diffusion only.
244 WAVEWATCH III version 6.07 DRAFT
Up to model version 3.14, the NCEP operational model setup was considered
as the default model setup. However, with subsequent versions of WAVE-
WATCH III, the model has evolved into a modeling framework rather than
a single model. With this, WAVEWATCH III is run differently at various
centers, and a clear “default” model version can no longer be identified. Nev-
ertheless, in order to be able to concisely identify in publications exactly
which model setup is used, “default” configurations of various centers are now
provided in the bin directory. These configurations are provided in example
switch files and README files, such as switch NCEP st2 and README.NCEP.
Note that these files are provided to simplify referring to model version, but
do not imply an endorsement of the specific model configuration.; in this
context, it should be noted that by nature, model versions at operational
centers are in a continuous state of development.
Source code can obviously be modified by editing the source code files in the
ftn directory. However, it is usually more convenient to modify source code
files from the work directory work. This can be done by generating a link
between the ftn and work directories. Such a link can be generated by typing
ln3 filename
where filename is the name of a source code or include file, with or without
its proper extension. Working from the work directory is recommended for
several reasons. First, the program can be tested from the same directory,
because of similar links to the input files. Secondly, links to the relevant
switch, compile and link programs are also available in this directory. Third,
it makes it easy to keep track of files which have been changed (i.e., only
those files to which links have been created might have been changed), and
finally, source codes will not disappear if files (links) are accidentally removed
from the work directory.
Modifying source codes is straightforward. Adding new switches to ex-
isting subroutines, or adding new modules requires modification of the au-
tomated compilation scripts. If a new subroutine is added to an existing
DRAFT WAVEWATCH III version 6.07 245
For details of inclusion, see the actual scripts. Adding a new switch to the
compilation systems requires the following actions:
These modifications need only be made if the switch selects program parts.
For test output etc., it is sufficient to simply add the switch to the source
code. Finally, adding an old switch to an additional subroutine requires these
actions:
arc wwatch3
246 WAVEWATCH III version 6.07 DRAFT
where the more command is added to allow for on-screen inspection of the
output. This | more can be replaced by redirection to an output file, e.g.
Note that ww3 grib will only provide GRIB output if a user-supplied packing
routine is linked in. Note furthermore that no simple interactive test case
DRAFT WAVEWATCH III version 6.07 247
for ww3 multi is provided. GrADS can then be run from the work directory
to generate graphical output for these calculations. All intermediate output
files are placed in the work directory, and can be removed conveniently by
typing
w3 clean
Up to version 3.14, WAVEWATCH III was provided with a set of simple
tests to established assess the proper behavior of the basic functionality of
the model. In the early development of the next release of the model, Erick
Rogers and Tim Campbell converted these in regression tests that could be
run more easily in an automated version. Up to model version 4.06, these
modified tests were gathered in the nrltest directory, while keeping the old
tests in the test directory. In model version 4.07, the nrltest were adopted as
the new test cases for WAVEWATCH III in a new regtests directory, while
eventually the remaining real-world test cases in test were moved to the cases
directory, while discontinuing the test directory completely. The following
regression tests are available in the regtests directory.
These regression tests are now run using the run test script in the regtests/bin
directory (primary author: Tim Campbell). How to run this script, including
options, is shown by running
run test -h
The output of running this command is shown here in Fig. 5.2. The test cases
are stored in directories under the regtests directory, e.g. regtests/ww3 tp1.1.
For example, the contents of /ww3 tp1.1 might be
Also provided now is a matrix if regression tests, used by the code developers
to assure that new model versions do not break older model versions. The
core of this matrix is the file regtests/bin/matrix.base. An example of how to
run this is given in regtests/bin/matrix zeus HLT, which is Hendrik’s driver
for the matrix at the NCEP Zeus R&D computer14 . To run this, make a link
to it in the regtests directory and execute after setting the desired option
flags in the script. This will make a file matrix in retests, which can then be
run interactively or in batch mode as desired. The file can also be manually
edited further if so desired. The bin directory under regtests contains the
following tools.
Note that efficient running of the matrix of regression tests requires a min-
imization of the need to recompile code between regression tests. This is
achieved by the ordering of the regression tests in matrix.base. A way to as-
sure that identical switch files are identified as such is to systematically sort
them. This can be done with the script sort switch in the main bin directory.
This script will add default values of missing switches and can also be used
to remove or add switches from the file. Run
comp switch -h
Finally, the cases directory hold the real-world test cases as described below.
Each of these cases is a single script executing the entire model run. Before
executing the script, compile the model with the switches indicated in the
documentation at the head of the script. Additional data used by these
scripts is contained in the directories
mww3 data 00 Wind fields and ice data used by all example cases.
mww3 data nn Specific data needed for script mww3 case nn.
These examples can be used as blueprints for setting up other real model
applications.
DRAFT WAVEWATCH III version 6.07 251
Figure 5.2: Options for run test, as obtained by running it with the -h com-
mand line option.
252 WAVEWATCH III version 6.07 DRAFT
6 System documentation
6.1 Introduction
The WAVEWATCH III source code files are not ready to use FORTRAN
files; mandatory and optional program options still have to be selected, and
test output may be activated15 . Compile level options are activated using
‘switches’. The arbitrary switch ’swt’ is included in the WAVEWATCH III
files as comment of the form !/swt, where the switch name swt is followed
by a space or by a ’/’. If a switch is selected, the preprocessor removes the
comment characters, thus activating the corresponding source code line. If ’/’
follows the switch, it is also removed, thus allowing the selective inclusion of
hardware-dependent compiler directives etc. The switches are case sensitive,
and available switches are presented in Section 5.9. Files which contain the
switch c/swt can be found by typing
A list of all switches included in the WAVEWATCH III files can be obtained
by typing
all switches
15
Exceptions are some modules that are not originally part of WAVEWATCH III, like
the exact interaction modules. Such modules with the extension .f of .f90 bypass the
preprocessor and get copied to the work directory with the .f extension.
DRAFT WAVEWATCH III version 6.07 253
0 1
constants.ftn’ constants.f’
’F90 NOGRB SHRD PR3 UQ FLX2 LN1 ST2 STAB2
NL1 BT1 DB1 MLIM TR0 BS0 XX0 WNX1 WNT1 CRX1 CRT1
O0 O1 O2 O3 O4 O5 O6 O7 O11 O14’
A test indicator 0 disables test output, and increasing values increase the
detail of the test output. A compress indicator 0 leaves the file as is. A
compress indicator 1 results in the removal of all comment lines indicated
by ’!’, except for empty switches, i.e., lines starting with ’!/’. A compress
indicator 2 results in the subsequent removal of all comments. Comment
lines are not allowed in this input file. The above input for w3adc is read
using free format. Therefore quotes are needed around strings. Echo and
test output is send to the standard output device. To facilitate the use of
the preprocessor, several UNIX scripts are provided with WAVEWATCH III
16
Presently still in fixed-format FORTRAN-77.
254 WAVEWATCH III version 6.07 DRAFT
as discussed in Section 5.7. Note that compiler directives are protected from
file compression by defining them using a switch.
The WAVEWATCH III source code files are stored in files with the extension
ftn17 . Starting with version 2.00, the code has been organized in modules.
Only the main programs are not packaged in modules. Originally, variables
were bundled with the code modules, resulting in a single static data struc-
ture. In model version 3.06, a separate dynamical data structure was intro-
duced, allow for the presence of multiple wave grids in a single program, as
a preparation for the development of the the multi-grid model driver.
The subroutines contained in the modules are described in some detail
below. The relation between the various subroutines is graphically depicted
in Figs. 6.2 and 6.3. Three groups of codes are considered. The first are
the main wave model subroutine modules, which are generally identified by
the file name structure w3xxxxmd.ftn. These modules are described in Sec-
tion 6.3.1. The second group consists of modules specific to the multi-grid
wave model driver, which are generally identified by the file name structure
wmxxxxmd.ftn. These modules are described in Section 6.3.2. The final group
consists of auxiliary programs and wave model drivers, and is described in
Section 6.3.4. Section 6.3.3 briefly describes the data assimilation module.
At the core of the wave model are the wave model initialization module and
the wave model module.
The configuration files such as traditional form (.inp) and namelist form
(.nml) are processed differently in the program. The traditional configuration
file is directly read in the main program. The namelist configuration file is
read by the subroutines in the following modules.
The input fields such as winds and currents are transferred to the model
through the parameter list of w3wave. The information is processed within
w3wave by the routines in the following module.
There are seven types of WAVEWATCH III data files (other than the pre-
processed input fields, which are part of the program shall rather than the
actual wave model). The corresponding routines are gathered in six modules.
There are presently several propagation schemes and GSE alleviation tech-
niques available for rectangular and curvilinear grids, as well as a ’slot’ for
a user supplied propagation routine, and there are four schemes for triangle-
based grids. The propagation schemes are packaged in the following modules.
Input and dissipation module (slot for user supplied routines) w3srcxmd.ftn
These routines provide the interface to the WRT routines. The WRT routines
are provided in the files mod constants.f90, mod fileio.f90, mod xnl4v4.f90, and
serv xnl4v4.f90. For details on these files, see Van Vledder (2002b).
Module for unclassified source term (slot for user supplied routines)
w3sxxxmd.ftn
To complete the basic wave model, several additional modules are needed.
For the actual contents of the service modules see the documentation in the
source code files.
w3init w3iogr
w3iors w3mpii
w3iopp w3mpio
w3mpip
w3flgrdupdt
Figure 6.2: Subroutine structure for wave model initialization routine with-
out service routines, data base management routines and MPI calls. Note
that w3iogr on reading data in calls all necessary initialization routines for
interpolation tables and physics parameterizations.
This completes the description of the basic wave model routines. The re-
lation between the initialization routine and other routines is illustrated in
Fig. 6.2. A similar relational diagram for the wave model routine is presented
in Fig. 6.3.
DRAFT WAVEWATCH III version 6.07 271
input
w3wave w3ice3wncg w3ucur
propagation
w3ktpn w3qckn
w3gath(smc)
w3xypn w3unon
w3xypug
w3scat(smc)
w3psmc
w3srce
output source terms
w3cprt w3outg w3sprn w3flxn
Figure 6.3: Subroutine structure for wave model routine without service
routines, routines managing the data structures, and mpi routines. ‘. . . ’
identifies additional source term routines.
272 WAVEWATCH III version 6.07 DRAFT
The multi-grid wave model shel ww3 multi provides a shell around the basic
wave model as described in the previous section. This shell manages the side-
by-side running of multiple wave model grids, and all communication between
the grids. To achieve this various additional modules have been developed.
At the core are the initialization, multi-grid model and finalization routines.
These routines are designed to become part of a coupled model. For the
structure of the actual wave model routine, reference is made to Tolman
(2007). The resulting wave model driver ww3 multi consequently becomes
extremely simple; it initializes the MPI environment, and then calls the above
three modules consecutively.
The main multi-grid wave model routines require an expansion of the
data structure used by WAVEWATCH III. Furthermore, main activities are
gathered in subroutines in various modules.
WAVEWATCH III
R
includes a data assimilation module that can work
in conjunction with the main wave model routine, and is integrated in the
generic program shell. The module is intended as an interface to a data
assimilation package to be provided by the user.
WAVEWATCH III
R
has several auxiliary pre- and post-processors, and two
wave model shells (see Section 4.4). These auxiliary programs and some
additional routines are stored in the following files. Generally, subroutines
used only by the programs are stored as internal subroutines with the main
program. There is no need for using the module structure in this case. The
exception is an additional module w3fldsmd.ftn which deals with the data
flow of input fields for the wave model between the field pre-processor and
the stand-alone model shell. The latter module does not have any explicit
WAVEWATCH III dependencies, and can therefore be integrated in any cus-
tom data pre-processor.
6.4 Optimization
place mainly in the loop calling the source term routine w3srce and the
different propagation routines. OpenMP directives are activated by the cor-
responding preprocessor switches (ompn).
Parallelization for distributed memory machines is discussed in some de-
tail in section 6.5.2.
Note that an important part of the optimization is the use of interpolation
tables for the solution of the dispersion relation and for the calculation of
the wind-wave interaction parameter.
280 WAVEWATCH III version 6.07 DRAFT
ny
ny-1
l ny-2
a
t ...
i
t ...
u
d 3
e 2
1
(nx) 1 2 3 ... . . . nx-2 nx-1 nx (1)
longitude
Figure 6.4: Layout of the spatial grid. Grid points are denoted as boxes,
dotted boxes denoted repeated columns for global model applications.
The remainder of this chapter will deal with the internal data storage used by
WAVEWATCH III. In Section 6.5.1 the layout of a single wave model grid as
used in ww3 shel is discussed. In Section 6.5.2 the parallelization approaches
for a single grid are discussed. In Section 6.5.3 the simultaneous storage of
multiple wave grids is discussed. Finally, the actual wave model variables are
described in Section 6.6. Note that the code is fully documented, including
the variables defining the data storage.
6.5.1 Grids
For convenience and economy of programming, spatial and spectral grids are
considered separately. This approach is inspired by the splitting technique
described in chapter 3. For spatial propagation, a simple ‘rectangular’ spatial
grid is used, as is illustrated in Fig. 6.4. The grid can either be a Cartesian
‘(x, y)’ grid, a spherical grid (with regular steps on latitude and longitude), a
curvilinear grid, or a triangle-based grid. In a spherical grid, the longitudes
DRAFT WAVEWATCH III version 6.07 281
are denoted throughout the program by the counter ix, and latitudes by
the counter iy, and the corresponding grid dimensions (nx,ny). All spatial
field arrays are dynamically allocated within the code, corresponding work
arrays are usually automatic, to allow for thread-safe code. The closure of
the grid in case of a global applications is handled within the model, and
does not require user intervention. To simplify the calculation of derivatives
of in particular the current, the outer grid points (ix=1,nx, unless the grid
is global) and (iy=1,ny) will be considered as land points, inactive points or
active boundary points. The minimum grid size therefore is nx=3, ny=3,
except for triangle-based grids. In that latter case, all the nodes are listed as
a long vector of dimension nx, while ny=1, allowing to keep the same code
structure. Input arrays are typically assumed to be of the form
array(nx,ny) ,
and are read row by row (see also chapter 4). Within the program, however,
they are typically stored with rotated indices
array(ny,nx) .
This makes it easier to provide global closure, which typically requires ex-
tension of the x axis. Furthermore, such two-dimensional array are usually
treated as one-dimensional arrays, to increase vector lengths. The array ar-
ray, its one-dimensional equivalent varray and ixy are defined as
array(my,mx) , varray(my*mx) ,
ixy = iy + (ix-1)*my .
Note that this representation of the grid is used internally within the model
only.
The spectral grid for a given spatial grid point (ix,iy) is defined similarly,
using a directional counter ith and a wavenumber counter ik (Fig. 6.5). The
size of the spectral grid is set using dynamic allocation. As with the spatial
grid, the internal description of the spectrum a is defined as
a(nth,nk) ,
and equivalent one-dimensional arrays are used throughout the program. In-
282 WAVEWATCH III version 6.07 DRAFT
nk
w nk-1
a nk-2
v
e
n ...
u
m ...
b 3
e
r 2
1
(nth) 1 2 3 ... ... ... . . . nth (1)
direction
Figure 6.5: Layout of the spectral grid. Dotted boxes denoted repeated
columns for directional closure.
a(ith,ik,isea) .
An example of the layout of this storage grid in relation to the full grid of
Fig. 6.4 is given in Fig. 6.6. Obviously, the relation between the storage grid
and the full spatial grid requires some bookkeeping. For this purpose, two
‘maps’ mapfs and mapsf are defined.
DRAFT WAVEWATCH III version 6.07 283
8 ❅❅❅❅
❅❅❅❅❅❅❅❅❅❅ ❅❅❅❅❅ ❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅
❅
❅
❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅ ❅❅❅❅❅ ❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅
❅❅❅❅
7 ❅❅❅❅
❅❅❅❅❅❅❅❅❅❅ ❅❅❅❅❅ ❅ 24 25 ❅ ❅❅❅
❅
l ❅
❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅ ❅❅❅❅ 23 ❅
❅❅❅❅
a 6 ❅❅❅❅
❅❅❅❅❅❅❅❅❅❅ ❅ 20 21 22 ❅ ❅❅❅
❅
t ❅
❅❅❅❅❅❅❅❅❅❅❅❅❅❅ 19 ❅
❅❅❅❅
5 ❅❅❅❅
❅❅❅❅❅❅ 15 16 17 18 ❅ ❅❅❅
❅
i ❅
❅❅❅❅❅❅❅❅❅ 14 ❅
❅❅❅❅
t ❅❅❅❅
u 4 ❅
❅❅❅❅ 10
❅ 11 12 ❅ ❅
❅❅❅
❅❅❅❅❅
❅❅❅❅❅
❅
❅❅❅❅ 13 ❅
❅❅❅❅
❅
❅❅❅❅
d 3 ❅❅❅❅
❅ 8 ❅ ❅❅❅
❅❅❅❅❅❅ ❅❅❅❅
❅
e ❅❅❅❅ 6
❅ 7 ❅❅❅❅❅❅❅❅❅❅ 9 ❅ ❅❅❅❅
(iy) 2 ❅❅❅❅
❅ 4 ❅ ❅❅❅
❅ ❅❅❅❅
❅
❅❅❅❅ 1
❅ 2 3 ❅❅❅❅ 5 ❅
❅ ❅❅❅❅
1 ❅❅❅❅
❅❅❅❅❅❅❅❅❅❅ ❅❅❅❅❅ ❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅
❅
❅
❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅ ❅❅❅❅❅ ❅❅❅❅❅❅❅❅❅❅❅❅❅❅❅
❅❅❅❅
1 2 3 4 5 6 7 8
longitude (ix)
mapsf(isea,1) = ix ,
mapsf(isea,2) = iy ,
mapsf(isea,3) = ixy ,
mapfs(iy,ix) = vmapfs(ixy) = isea ,
Sea points and active boundary point which are not considered in the wave
model due to the presence of ice are marked by their corresponding negative
status indicator (-1 or -2). mapst2 contains secondary information. For
excluded points mapsta(iy,ix) = 0, this map distinguished between land
284 WAVEWATCH III version 6.07 DRAFT
bit identifies
1 Ice coverage
2 Point dried out
3 Land in moving grid or inferred in nesting
4 Masked in two-way nesting
Two additional considerations have been made. First, the two status
maps can be collapsed into a single map for storage. To assure that the
storage is backward compatible with the previous mode version, the two
maps are combined into a single map maptmp
considering that only the first few bits of mapsta contain data. It is this
map MAPTMP that is saved in NetCDF files. The original maps can be
recovered as
Second, a single map is used in the graphics output program, to simplify the
plotting of the status of grid points. In the graphics files, the map is defined
as
map implies
2 Active boundary point
1 Active sea point
0 Land point (including as identified in MAPST2
-1 Point covered by ice, but wet
-2 Dry point, not covered by ice
-3 Dry point covered by ice
-4 Point masked in the two-way nesting scheme
-5 Other disabled point
DRAFT WAVEWATCH III version 6.07 285
Similarly, a single map can be used to simplify processing in the grid prepa-
ration program ww3 grid. In this map a distinction is made between points
as follows:
map implies
3 Excluded points
2 Active boundary point
1 Active sea point
0 Land point
The general grid structure described in the previous paragraph is used for
both shared and distributed memory versions of the model, with some minor
differences. For the distributed memory version of the model, not all data is
kept at each processor. Instead, each spectrum is kept at a single processor
only. The spectra on the storage grid are distributed over the available
processors with a constant stride. Because only part of the spectra are stored
locally on a given processor, a distinction needs to be made between the
above global sea point counter isea, and the local sea point counter jsea. If
the actual number of processors used in the computation is naproc, and if
iaproc is the processor number ranging form 1 to naproc, these parameters
are related in the following way
In model version 3.10, a further refinement was introduced. The actual num-
ber of processors naproc can be smaller than the total number of processors
used by the program (ntproc). Processors where naproc < iaproc ≤ nt-
proc are reserved for output processing only.
With this data distribution, source terms and intra-spectral propagation
can be calculated at the each given processor without the need for com-
munication between processors. For spatial propagation, however, a data
transpose is required where the spectral components (ith,ik) for all spatial
grid points have to be gathered at a single processor. After propagation has
286 WAVEWATCH III version 6.07 DRAFT
been performed, the modified data have to be scattered back to their ‘home’
processor. Individual spectral components are assigned to specific processors
in such a way that the number of partial propagation steps to be performed
by each processor is roughly identical. This makes a good load balance pos-
sible. The actual algorithm can be found in section 4.d of the subroutine
w3init (w3initmd.ftn).
The data transpose for the gather operation is implemented in two steps
using the Message Passing Interface (MPI) standard (e.g. Gropp et al., 1997).
First, values for each spatial grid point for a given spectral bin (ith,ik) are
gathered in a single target processor in a one-dimensional array store(isea),
which then is converted to the full two-dimensional field of spectral compo-
nents. After propagation has been performed, the transpose for the scatter
operation reverses this process, using the same one-dimensional array store.
Whereas the algorithm for distributing spatial propagation over individual
processors assures a global (per time step) load balance, it does not assure
that communication is synchronized, because not each calculation at each
processor will take the same effort. To avoid that this results in a load im-
balance, non-blocking communication has been used. Furthermore, the one-
dimensional array store(isea) is replaced by store(isea,ibuf), where the
added dimension of the array supplies an actively managed buffer space (see
w3gath and w3scat in w3wavemd.ftn). These buffers allow that spare clock
cycles as may occur during communication can be used for calculation, and
that hiding of communication behind calculation will occur if the hardware
is capable of doing this. To avoid problems with incompatibilities between
FORTRAN and MPI, separate gather and scatter data arrays are used. The
buffered data transposes are graphically depicted in Fig. 6.7. More details
can be found in Tolman (2002b).
1 ❙
❙❙
♦
❙
❙ buffer space
2 ◗❙❙
❦
◗◗◗❙
◗◗❙❙
◗◗
s✲
✇
❙
◗ ✲
3 ✛ ✸
✑◗
❙
✑
✼
✓ active ✛ propagate
✑ ✓✑
✓
✑ ✑
✑ ✑✓✓
... ✰
✑✑ ✓✓
✓✓
✓✓ at target processor
naproc ✓
✴
Figure 6.7: Data transpose in distributed memory model version. First, the
data is moved from left to right in the figure during the gather operation.
After the calculation is performed, the data is moved from right to left in the
scatter operation.
iostyp implies
0 Restart file written from each individual process.
1 Each file written from assigned process.
2 Each file written from a single dedicated output process.
3 Dedicated output processes for each output type.
Note that the restart file is a direct access file, so that each processor can
efficiently gather only the locally stored spectra, without the need of reading
through the entire file. The restart file is either written by each individual
process directly, or all data is funneled through a dedicated processor. The
first method requires a parallel file system, the second method is generally
applicable.
The present algorithm for data distribution has been chosen for several
reasons. First, it results in an automatic and efficient load balancing with
respect to the (dynamic) integration of source terms, the exclusion of ice
covered grid points, and of intra-spectral propagation. Secondly, the com-
munication by definition becomes independent of the numerical propagation
scheme, unlike for the more conventional domain decomposition. In the lat-
ter case, only a so-called ‘halo’ of boundary data needs to be converted to
288 WAVEWATCH III version 6.07 DRAFT
neighboring ‘blocks’ of grid points. The size of the halo depends on the
propagation scheme selected. The main disadvantage of the present data dis-
tribution scheme is that the amount of data to be communicated each time
step is much larger than for a more conventional domain decomposition, par-
ticularly when relatively small numbers of processors are used. On an IBM
RS6000 SP, on which the distributed memory version of WAVEWATCH III
was tested, the relatively large amount of communication did not constitute
a significant part of the overall time of computation, and the model shows
excellent scaling behavior for up to O(100) processors (Tolman, 2002b).
More recently, hybrid parallelization techniques have been developed us-
ing a combination of a course scale domain decomposition and a local data
transpose, using approaches already available in ww3 multi. To accommo-
date this, the file ww3 gspl(.sh) tools were introduced in model version 4.10.
Although this approach still needs some work with respect to the model mem-
ory footprint in the initialization in ww3 multi, initial scaling results obtained
with this approach are encouraging (see Tolman, 2013b).
So far, only a single wave model grid has been considered. To make it possible
to run several model grids in a single program, a data structure needs to be
devised in which all different model grids and internal work arrays for all
models are retained simultaneously, with a simple mechanism to choose the
actual wave model grid to work on. In order to achieve this, some FORTRAN
90 features (e.g., Metcalf and Reid, 1999) are used in the following way:
1) Define one or more data structures in the model code that contain
the model setup and relevant work arrays, using a type declara-
tion.
!/
!/ Data structures
!/
TYPE GRID
INTEGER :: NX, NY, NSEA
REAL, POINTER :: ZB(:)
END TYPE GRID
!/
!/ Data storage
!/
TYPE(GRID), TARGET, ALLOCATABLE :: GRIDS(:)
!/
!/ Data aliasses
!/
INTEGER, POINTER :: NX, NY, NSEA
REAL, POINTER :: ZB(:):
!/
allocate grids(imod)%zb(nsea)
After this statement, the alias pointer zb again needs to be pointed to the
proper element of the structure for this alias to properly point to the newly
allocated space. For this reason, the subroutine w3dimx, which allocates the
arrays in this structure, includes at the end a call to the subroutine w3setx,
290 WAVEWATCH III version 6.07 DRAFT
!
NX => GRIDS(IMOD)%NX
NY => GRIDS(IMOD)%NY
NSEA => GRIDS(IMOD)%NSEA
!
ZB => GRIDS(IMOD)%ZB
!
Figure 6.9: Example of the source code used to activate the pointer aliases
in Fig. 6.8 for the model number imod.
which in turn sets all pointer aliases for the selected grid. The same is true
for other subroutines setting array sizes in other structures.
Several modules have internally used parameter settings. Here only parame-
ter settings that are generally usable or impact model behavior are presented.
∗
idstr cp ID string for file.
Several routines contain interpolation tables that are set up with parameter
statements, including
Some service routines contain parameters that can be used to influence, for
instance, the model output.
As outlined in Section 6.5.3, the core of the wave model consists of a set of
data structures allowing for the consecutive storage of data for multiple grids.
The individual storage structures are contained in the following modules:
The data structures are fully documented in the above files, and the docu-
mentation is no linger reproduced here in the manual.
296 WAVEWATCH III version 6.07 DRAFT
References
Abdalla, S., and J. R. Bidlot (2002), Wind gustiness and air density effects
and other key changes to wave model in CY25R1, Tech. Rep. Memomran-
dum R60.9/SA/0273, Research Department, ECMWF, Reading, U. K.
Abdolali, A., A. Roland, A. van der Westhuysen, Z. Ma, and A. Chawla
(2018), Wind wave modeling of storm-induced hurricanes using implicit
scheme in WAVEWATCH III model over large scale resolved bathymetries,
modeling of storm-induced hurricanes inundation through a comprehensive
flexible coupling framework, 98th AMS Annual Meeting - American Mete-
orological Society, Austin, TX, USA.
Abdolali, A., A. Roland, A. van der Westhuysen, A. Chawla, S. Moghimi,
and S. Vinogradov (2019), On the comparison of implicit with explicit
schemes in WAVEWATCH III, 99th AMS Annual Meeting - American
Meteorological Society, Phoenix, AZ, USA.
Aboulali, A., A. Roland, A. van der Westhuysen, J. Meixner, A. Chawla,
T. J. Hesser, and J. M. Smith (2019), Large-scale hurricane modeling using
domain decomposition parallelization and implicit scheme implemented in
WAVEWATCH III wave model, Ocean Modeling, under review.
Alves, J.-H. G., and M. L. Banner (2003), Performance of a saturation-based
dissipation-rate source term in modeling the fetch-limited evolution of wind
waves, J. Phys. Oceanogr., 33(6), 1274–1298, doi:10.1175/1520-0485(2003)
033h1274:POASDSi2.0.CO;2.
Alves, J. H. G., M. L. Banner, and I. R. Young (2003), Revisiting the pierson–
moskowitz asymptotic limits for fully developed wind waves, Journal of
physical oceanography, 33(7), 1301–1323.
Alves, J.-H. G. M., A. Chawla, H. L. Tolman, D. Schwab, G. Lang, and
G. Mann (2014), The operational implementation of a great lakes wave
forecasting system at noaa/ncep, Weather and Forecasting, 29(6), 1473–
1497, doi:10.1175/WAF-D-12-00049.1.
Ardhuin, F., and A. Boyer (2006), Numerical modelling of sea states: valida-
tion of spectral shapes (in French), Navigation, 54, 55–71.
Ardhuin, F., and T. H. C. Herbers (2002), Bragg scattering of random surface
gravity waves by irregular seabed topography, J. Fluid Mech., 451, 1–33.
Ardhuin, F., and A. D. Jenkins (2006), On the interaction of surface waves
and upper ocean turbulence, J. Phys. Oceanogr., 36(3), 551–557.
Ardhuin, F., and R. Magne (2007), Scattering of surface gravity waves by
bottom topography with a current, J. Fluid Mech., 576, 235–264.
298 WAVEWATCH III version 6.07 DRAFT
10.1002/2016GL068204.
Babanin, A., T.-W. Hsu, A. Roland, S.-H. Ou, D.-J. Doong, and C. Kao
(2011), Spectral wave modelling of typhoon krosa, Natural Hazards and
Earth System Sciences, 11(2), 501–511.
Babanin, A. V. (2009), Breaking of ocean surface waves, Acta Phys. Slovaca,
59(4), 305–535.
Babanin, A. V. (2011), Breaking and dissipation of ocean surface waves, Cam-
bridge University Press, 480 pp.
Babanin, A. V., and Y. P. Soloviev (1987), Parameterization of width of
directional energy distributions of wind-generated waves at limited fetches,
Izvestiya, Atmos. and Oceanic Phys., 23, 645–651.
Babanin, A. V., and I. R. Young (2005), Two-phase behaviour of the spec-
tral dissipation of wind waves, in Proc. Fifth Int. Symp. Ocean Waves
Measurement and Analysis.
Babanin, A. V., I. R. Young, and M. L. Banner (2001), Breaking probabilities
for dominant surface waves on water of finite constant depth, J. Geophys.
Res., 106, 11,659–11,676, doi:10.1029/2000JC000215.
Babanin, A. V., M. L. Banner, I. R. Young, and M. A. Donelan (2007), Wave-
follower field measurements of the wind-input spectral function. Part iii:
Parameterization of the wind-input enhancement due to wave breaking, J.
Phys. Oceanogr., 37, 2,764–2,775.
Babanin, A. V., K. N. Tsagareli, I. R. Young, and D. J. Walker (2010),
Numerical investigation of spectral evolution of wind waves. Part II: Dis-
sipation term and evolution tests, J. Phys. Oceanogr., 40, 667–683.
Banner, M. L., and W. L. Peirson (1998), Tangential stress beneath wind-
driven air–water interfaces, J. Fluid Mech., 364, 115–145.
Banner, M. L., A. V. Babanin, and I. R. Young (2000), Breaking probability
for dominant waves on the sea surface, J. Phys. Oceanogr., 30, 3,145–3,160.
Barbariol, F., A. Benetazzo, S. Carniel, and M. Sclavo (2015), Space-time
wave extremes: The role of metocean forcings, J. Phys. Oceanogr., 45(7),
1,897–1,916, doi:10.1175/JPO-D-14-0232.1.
Barbariol, F., J.-H. G. M. Alves, A. Benetazzo, F. Bergamasco, L. Bertotti,
S. Carniel, L. Cavaleri, Y. Y. Chao, A. Chawla, A. Ricchi, M. Sclavo, and
H. L. Tolman (2016), Numerical modeling of space-time wave extremes
using WAVEWATCH III, Ocean Dynamics, Under rev.
Battjes, J. A., and J. P. F. M. Janssen (1978), Energy loss and set-up due
to breaking of random waves, in Proc. 16th Int. Conf. Coastal Eng., pp.
569–587, ASCE.
300 WAVEWATCH III version 6.07 DRAFT
numerical wave model output using a spiral search algorithm, in 2009 WRI
World Congress on Computer Science and Information Engineering, Los
Angeles, CA, vol. 2, pp. 404–408, doi:10.1109/CSIE.2009.1021.
Doble, M. J., and J.-R. Bidlot (2013), Wave buoy measurements at the
Antarctic sea ice edge compared with an enhanced ECMWF WAM:
Progress towards global waves-in-ice modelling, Ocean Mod., 70, 166–173.
Doble, M. J., G. D. Carolis, M. H. Meylan, J.-R. Bidlot, and P. Wadhams
(2015), Relating wave attenuation to pancake ice thickness, using field
measurements and model results, Geophys. Res. Lett., 42, 4473–4481, doi:
10.1002/2015GL063628.
Dodet, G., X. Bertin, N. Bruneau, A. B. Fortunato, A. Nahon, and A. Roland
(2013), Wave-current interactions in a wave-dominated tidal inlet, Journal
of Geophysical Research: Oceans, 118(3), 1587–1605.
Donelan, M. A. (1999), Wind-induced growth and attenuation of laboratory
waves, in Wind-over-wave couplings: Perspectives and prospects, pp. 183–
194, Clarendon Press.
Donelan, M. A. (2001), A nonlinear dissipation function due to wave breaking,
in Proc. ECMWF Workshop on Ocean Wave Forecasting, pp. 87–94.
Donelan, M. A., A. V. Babanin, I. R. Young, and M. L. Banner (2006),
Wave follower measurements of the wind-input spectral function. Part II.
Parameterization of the wind input, J. Phys. Oceanogr., 36, 1,672–1,689.
Donelan, M. A., M. Curcic, S. S. Chen, and A. K. Magnusson (2012), Mod-
eling waves and wind stress., J. Geophys. Res., 117, 1–26.
Dore, B. D. (1978), Some effects of the air-water interface on gravity waves,
Geophys. Astrophys. Fluid. Dyn., 10, 215–230.
Doty, B. (1995), The grid analysis and display system GrADS, COLA,
http://www.iges.org/grads.
Dumont, D., A. Kohout, and L. Bertino (2011), A wave-based model for the
marginal ice zone including a floe breaking parameterization, J. Geophys.
Res., 116(C4), doi:10.1029/2010JC006682, c04001.
Eldeberky, Y. (1995), Personal communication with R. Ris, Tech. rep.
Eldeberky, Y. (1996), Nonlinear transformationations of wave spectra in the
nearshore zone, Ph.D. thesis, Delft University of Technology, Delft, The
Netherlands, 203 pp.
Eldeberky, Y., and J. A. Battjes (1996), Spectral modelling of wave breaking:
Application to boussinesq equations, J. Geophys. Res., 101, 1,253–1,264.
Elgar, S., T. H. C. Herbers, and R. T. Guza (1994), Reflection of ocean
surface gravity waves from a natural beach, J. Phys. Oceanogr., 24, 1,503–
DRAFT WAVEWATCH III version 6.07 303
1,511.
Falconer, R. A., and Cayhono (1993), Water quality modelling in well mixed
estuaries using higher order accurate differencing schemes, in Advances
in Hydro- Science and Engineering, edited by S. S. Y. Wang, pp. 81–92,
CCHE, University of Mississippi.
Fedele, F. (2012), Space–time extremes in short-crested storm seas, J. Phys.
Oceanogr., 42(9), 1,601–1,615.
Fedele, F., G. Gallego, A. Yezzi, A. Benetazzo, L. Cavaleri, M. Sclavo, and
M. Bastianini (2012), Euler characteristics of oceanic sea states, Mathe-
matics and Computers in Simulation, 82(6), 1,102–1,111.
Fedele, F., A. Benetazzo, G. Gallego, P.-C. Shih, A. Yezzi, F. Barbariol, and
F. Ardhuin (2013), Space-time measurements of oceanic sea states, Ocean
Mod., 70, 103–115.
Ferrarin, C., G. Umgiesser, A. Cucco, T.-W. Hsu, A. Roland, and C. L.
Amos (2008), Development and validation of a finite element morphological
model for shallow water basins, Coastal Engineering, 55(9), 716–731.
Ferrarin, C., A. Roland, M. Bajo, G. Umgiesser, A. Cucco, S. Davolio,
A. Buzzi, P. Malguzzi, and O. Drofa (2013), Tide-surge-wave modelling
and forecasting in the mediterranean sea with focus on the italian coast,
Ocean Mod., 61, 38–48.
Filipot, J.-F., and F. Ardhuin (2012a), A unified spectral parameterization
for wave breaking: from the deep ocean to the surf zone, J. Geophys. Res.,
117, C00J08, doi:10.1029/2011JC007784.
Filipot, J.-F., and F. Ardhuin (2012b), A unified spectral parameterization
for wave breaking: From the deep ocean to the surf zone, J. Geophys. Res.,
117(C11).
Filipot, J.-F., F. Ardhuin, and A. Babanin (2010), A unified deep-to-
shallow-water wave-breaking probability parameterization, J. Geophys.
Res., 115(C4).
Fletcher, C. A. J. (1988), Computational techniques for fluid dynamics, part
I and II, Springer, 484 pp.
Foreman, M. G. G., J. Y. Cherniawsky, and V. A. Ballantyne (2009), Ver-
satile harmonic tidal analysis: Improvements and applications, J. Atmos.
Oceanic Techn., 26, 806–817.
Forristall, G. Z. (1981), Measurements of a saturated range in ocean wave
spectra, J. Geophys. Res., 86(C9), 8075, doi:10.1029/JC086iC09p08075.
Fox, C., and V. A. Squire (1994), On the oblique reflexion and transmission
of ocean waves at shore fast sea ice, Philosophical Transactions of the Royal
304 WAVEWATCH III version 6.07 DRAFT
32–43.
Meylan, M., L. Bennets, and A. Kohout (2014), In situ measurements and
analysis of ocean waves in the Antarctic marginal ice zone, Geophys. Res.
Lett., 41(C14), 5,046–5,051.
Meylan, M. H., and D. Masson (2006), Physics-based parameterization of
air-sea momentum flux at high wind speeds and its impact on hurricane
intensity predictions, Ocean Mod., 11, 417–427.
Miche, A. (1944), Mouvements ondulatoire de la mer en profondeur crois-
sante ou décroissante. Forme limite de la houle lors de son déferlement.
Application aux digues maritimes. Deuxième partie. Mouvements ondula-
toires périodiques en profondeur régulièrement décroissante, Annales des
Ponts et Chaussées, 114, 25–78,131–164, 270–292,369–406.
Miles, J. W. (1957), On the generation of surface waves by shear flows, J.
Fluid Mech., 3.
Moon, I. J., I. Ginnis, T. Hara, and B. Thomas (2006), Physics-based param-
eterization of air-sea momentum flux at high wind speeds and its impact
on hurricane intensity predictions, Mon. Wea. Rev., 135, 2,869–2,878.
Mosig, J. E. M., F. Montiel, and V. A. Squire (2015), Comparison
of viscoelastic-type models for ocean wave attenuation in ice-covered
seas, Journal of Geophysical Research: Oceans, pp. 1–17, doi:10.1002/
2015JC010700.Received.
Murray, R. J. (1996), Explicit generation of orthogonal grids for ocean mod-
els, J. Comput. Physics, 126(2), 251–273.
NCEP (1998), GRIB, Office Note 388, NOAA/NWS/NCEP, available by
anonymous ftp from ftp://nic.fb4.noaa.gov.
Nelson, R. C. (1994), Depth limited wave heights in very flat regions, Coastal
Eng., 23, 43–59.
Nelson, R. C. (1997), Height limits in top down and bottom up wave envi-
ronments., Coastal Eng., 32, 247–254.
Ng, C. (2000), Water waves over a muddy bed: a two-layer Stokes’ boundary
layer model, Coastal Eng., 40(3), 221–242.
O’Reilly, W. C., R. T. Guza, and R. J. Seymour (1999), Wave prediction in
the Santa Barbara Channel, in 5th California Islands Symposium, March
29-31, Mineral Management Service, Santa Barbara CA.
Perrie, W., and D. T. Resio (2009), A two-scale approximation for effi-
cient representation of nonlinear energy transfers in a wind wave spectrum.
Part II: Application to observed wave spectra, J. Phys. Oceanogr., 39(10),
2,451–2,476, doi:10.1175/2009JPO3947.1.
DRAFT WAVEWATCH III version 6.07 311
Model time steps are set on a grid-by-grid basis and are considered as a part
of the model setup in the model definition file mod def.ww3. This implies that
in a multi-grid model set-up (using the model driver ww3 multi) each grid
is associated with its own time step setting. In this section some guidance
is given for setting time steps for individual grids, and for grids in a mosaic
approach. Examples of practical time step setting for practical grids can be
found in the individual grids used in the test cases mww3 case 01 through
mww3 case 03.
cg,max ∆t
Cc = , (A.1)
min(∆x, ∆y)
where cg,max is the maximum group velocity, and ∆t, ∆x, and ∆y are time and
space increments. The maximum group velocity is the group velocity for the
lowest discrete model frequency. Noting that for a given frequency the largest
group velocity occurs in intermediate water depth, this maximum velocity is
approximately 1.15 times the deep water group velocity for the lowest discrete
spectral frequency. Note that the CFL number formally includes affects of
currents [Eq. (2.9)] and grid movement [Eq. (3.45)]. The latter two effects
are accounted for internally in the model by adjusting the corresponding
minimum time step dynamically depending on the current velocity and the
grid movement speed. Hence, the user can define this minimum propagation
time step ignoring currents and grid movement. For the schemes used here
the critical CFL number is 1.
The second time step to consider is the overall time step (the first time
step identified in ww3 grid.inp). For maximum numerical accuracy, this time
step should be set smaller than or equal to the above CFL time step. However,
A.2 WAVEWATCH III version 6.07 DRAFT
particularly in spherical grids, the critical CFL condition occurs only in a few
grid points. In most grid points, CFL numbers will be much smaller. In such
grids, accuracy does not suffer significantly if the overall time step is take as 2
to 4 times the critical CFL time steps. Such a setting generally has a major
positive impact on model economy. The key to numerical accuracy is the
interpretation of the CFL number. This number represents the normalized
distance over which information propagates in a single time step. Inaccuracy
occurs if information propagates over several grid boxes before source terms
are applied. With CFL ≈ 1 and the overall time step four times the CFL time
step, information will propagate over four grid boxes before source terms are
applied. This may lead to model inaccuracies. If, however, the maximum
CFL number is 1, but the average CFL number is only 0.25, as is the case even
for the lowest frequency in many spherical grids, information only propagates
over one grid box in a single overall time step, and no issues with accuracy
develop.
An effective overall time step also considers requested time intervals at
which model forcing is available, and at which model output is requested.
If input and output time steps are multiple integer times the overall time
step, a balanced and consistent numerical integration scheme exists, although
the model does not require this. Most important in this consideration is
reproducibility of results. If input or output time steps are modified so that
they are no longer an integer multiple of the overall model time step, then
the actual discrete time stepping in the model will be modified by these input
and output time steps, and hence an impact on actual model results may be
expected. Such an impact may be notable, but is generally very minor.
The third time step to consider is the maximum refraction (and wavenum-
ber shift) time step. For maximum model economy, this time step should
be set equal to (or larger than) the overall time step. However, this will
alternate the order of spatial and refraction computations for consecutive
model time steps, which in cases of strong refraction may lead to a minor
oscillation of wave parameter with a period of 2∆t. Such oscillations can
be avoided altogether by setting the maximum refraction time step to half
the overall time step. Considering the minor cost of the refraction term in
the model, this generally has a negligible impact on model economy. The
preferred refraction time step is therefore half the overall model time step.
One note of caution is appropriate with setting this time step. To as-
sure numerical stability, the characteristic refraction velocities are filter as in
Eq. (3.51). This filtering suppresses refraction in cases with rapidly changing
DRAFT WAVEWATCH III version 6.07 A.3
bottom topography. The impact of this filtering is reduced when the refrac-
tion time step is reduced. It is therefore prudent to test a model grid with
much smaller intra-spectral model time steps to assess the impact of this
filtering.
The final time step to set is the minimum time step for the dynamical
source term integration in Section 3.6. This is a safety valve to avoid pro-
hibitively small time steps in the source term integration. Depending on the
grid increment size this is typically set to 5 to 15s. Note that increasing this
time step does not necessarily improve model economy; a larger minimum
source term integration time step will increase the spectral noise in the inte-
gration, which in turn may reduce the average source term integration time
step!
• Overall time steps for individual grids do not need to ‘match’ in any
way for the management algorithm for the mosaic approach to work
properly. However, if identically ranked grids share overall time steps,
and if integer ratios between time steps of grids with different ranks are
employed, then it will be much easier to follow and predict the working
of the management algorithm,
• If two grids with identical rank overlap, then the required width of
the overlap area will be defined by the stencil width of the numerical
scheme, and the number of times this scheme is called for the longest
wave component (ratio of overall time step to maximum CFL time step).
Thus, model economy for individual grids will improve with increased
overall model time step, but the required overlap of equally ranked
grids will then increase, reducing the economy of the mosaic approach.
This page is intentionally left blank.
DRAFT WAVEWATCH III version 6.07 B.1
The mechanics of running nested models using the single-grid wave model
program ww3 shel in principle is simple. A large scale model produces a file
with boundary data, for instance nest1.ww3. This file is then renamed to
nest.ww3 and put in the directory in which the nested (small scale) model is
run. The small scale model then will automatically process the file and up-
date the boundary conditions as required and available. Setting up the nest-
ing consistently is more involved. A simple step-by-step method is presented
here. Another possibility, described in the next subsection is to assemble the
nest.ww3 file from spectral output using ww3 bound.
1) The first step is to set up the large scale model completely, but
without generating boundary data for the nested model(s). Include
the proper wind fields, graphical outputs etc. Test this model until
you are satisfied that it works properly.
2) Set up the small scale model, for the moment ignoring the boundary
conditions. Take into consideration that the boundary conditions
ideally should coincide with grid lines in the large scale model to
minimize the file size of the boundary data files. Set up this model
in the same way as the large scale model, and test it thoroughly.
3) When the small scale model is set up satisfactorily in the above
way, the boundary conditions need to be defined. Go into the file
ww3 grid.inp for the small scale model, and mark all the intended
input boundaries as outlined in the documentation in section 4.4.3.
Make sure that the model switch !/O1 is selected in the switch file,
and recompile if necessary. Run ww3 grid and save the screen output.
The output of this program now includes a list of all points that
are marked as input boundary points. Also make sure that stored
copies of mod def.ww3 for the small scale model (if any) are properly
updated.
4) The next step is to include all the input boundary points in the
above list as output boundary points in the large scale model. Keep
B.2 WAVEWATCH III version 6.07 DRAFT
the list handy, and go to the file ww3 grid.inp for the large scale
model. Add all points of the above list as output boundary points
as indicated in the documentation in section 4.4.3. Make sure that
all data (an no other data) is sent to a single file, and run ww3 grid
with the proper input file. This should now give a list of output
boundary points that should be consistent with the above list of
input boundary points. Note that the order in which the points
occur in the list is inconsequential. Again make sure that stored
copies of mod def.ww3 for the large scale model (if any) are properly
updated.
6) The next step is to start generating the boundary data from the large
scale model. This requires the nesting output to be activated in the
large scale model. The output is already set up and included in the
model definition file (mod def.ww3) of the large scale model in the
above steps. It now needs to be activated by setting the beginning
time, time increment and ending time in the input file ww3 shel.inp
for the actual model run of the large scale model. This step does not
need to be performed if a second or consecutive nest is added. The
large scale model will now produce the file with boundary data. If
this is the first nest included the output file will be nest1.ww3. This
file needs to be saved for use in the small scale model.
7) To include the nesting data in the small scale model, the above
boundary data file needs to be renamed to nest.ww3 and needs to be
put in the directory from which ww3 shel for the small scale model is
run. If the small scale model has properly defined the input boundary
points in its definition file mod def.ww3, it will automatically process
the file nest.ww3 and update the boundary data as available. At this
point, two additional tests are recommended.
• When first running the small scale model with the file nest.ww3
present, pay close attention to the output of ww3 shel to as-
sure that (i) the program reports that the file nest.ww3 has
been processed and has been found OK, and (ii) that no addi-
tional warnings are present regarding incompatible or missing
DRAFT WAVEWATCH III version 6.07 B.3
boundary data. Also check the log file log.ww3 to assure that
the boundary data are updated at the expected times.
• When all data apparently are processed, it is illustrative and
prudent to make a model run of the small scale model where
the wind fields are switched off in ww3 shel.inp, and where no
restart file restart.ww3 is made available. In such a model run,
wave energy can only enter the domain from the boundaries.
This is a good test to assure that the boundary data is passed
from the large scale model to the small scale model as expected.
Additional nested models can be added in the same way. Adding a second
level nest from the small scale model is also done in the same way. The model
is presently set up for producing up to 9 files with boundary data per model
run. There are no limitations on the number of consecutive (‘telescoping’)
nests.
Performing two-way nesting in the wave model driver ww3 multi is greatly
simplified compared to using the wave model driver ww3 shel, because all
data transfer needed is performed internally in the multi-grid wave model
routines. A mosaic model system is set up by iteratively going through the
following steps.
1) Set up a grid using the ww3 grid utility. Define the grid, its active
boundary points and all other model information such as time steps,
but do not attempt to generate output nesting data for other grids.
This will be assessed automatically by the multi-grid wave model
routines in ww3 multi. Note that the lowest ranked grid can option-
ally use active boundary data, either as read from file or to be kept
constant during computation. Higher ranked grids will require active
boundary point in order to be valid in the mosaic approach,
2) Add this grid as an extra grid to the input file ww3 multi.inp with
the appropriate rank number. Running ww3 multi will identify dis-
crepancies between grids and requested boundary data points that
can be resolved iteratively, and other discrepancies between grids.
It can be tedious to remove such discrepancies by hand. The grid
generation package of Chawla and Tolman (2007, 2008) checks for
such discrepancies automatically, and is therefore recommended for
grid generation for this version of WAVEWATCH III.
Note that grid on which input data fields are defined can be added in a
similar way. Note that the use of land-sea masks in oceanic input fields
(current, water level and ice) is recommended to assure realistic input values
at coastal points.
Generally, lower ranked grids are developed first, although grid of any
rank could be added at any time.
DRAFT WAVEWATCH III version 6.07 C.1
make MPI
or in
w3 automake
#!/bin/sh
cp switch switch.hold
sed -e ’s/DIST/SHRD/g’ \
-e ’s/MPI //g’ switch.hold > switch.shrd
sed ’s/SHRD/DIST MPI/g’ switch.hold > switch.MPI
cp switch.shrd switch
w3_make ww3_grid ww3_strt ww3_prep ww3_outf ww3_outp \
ww3_trck ww3_grib gx_outf gx_outp
cp switch.MPI switch
w3_make ww3_shel ww3_multi
cp switch.shrd switch
# cp switch.hold switch
# Clean up
# end of script
where the -np $NP option typically requests a number of processes from a
resource file ($NP is a shell script variable with a numerical value). For details
of running parallel codes on your system, please refer to the manual or user
support (if available).
Note that the as a part of the parallel model setup, I/O options are
available to select between parallel and non-parallel file systems (see also
Tolman, 2003a).
Some of the most common errors made in attempting to run ww3 shel and
ww3 multi under MPI are:
This will result in corrupted data files, because all processes are at-
tempting to write to the same file. This can be identified by the stan-
dard output of ww3 shel. The proper parallel version of the code will
produce each output line only once. The non-parallel version will pro-
duce one copy of each output line for each individual process started.
This will result in corrupted data files, because all processes are at-
tempting to write to the same file. This can be identified by the stan-
dard output of the programs, which will produce multiple copies of each
output line.
• ww3 shel or ww3 multi are compiled properly, but not run in a parallel
environment.
This is the most common source of compiling, linking and run time
errors of the code. Follow the steps outlined in the previous section to
avoid this.
Running ww3 multi in parallel with several large overlapping grids involves
a large number of concurrently active MPI point-to-point communications
(MPI send/recv pairs). For correct execution, each active MPI message must
have a unique envelope (send id, recv id, tag, communicator) with an allowed
tag value. In this context two types of MPI point-to-point communication
errors may occur: (1) the MPI message tag value exceeds an upper-bound or
(2) two or more MPI messages have the same envelope. The first error may
result in ww3 multi crashing with a MPI “invalid tag” error or an internal
tag upper-bound exceeded error. The second error may result in spectra sent
from one MPI task to another being delivered to the wrong location. The
second error is more difficult to detect in that it is not trapped by MPI and
may only be manifested as strange results in model output.
To address these possible errors the allowed ranges of MPI tags for the
different sets of point-to-point communication in ww3 multi are controlled by
the M T AGB, M T AG0, M T AG1, M T AG2, and M T AG U B parameters
defined in WMMDATMD. These parameters must satisfy M T AGB ≥ 0 and
7 ∗ N RGRD − 1 ≤ M T AG0 < M T AG1 < M T AG2 < M T AG U B ≤
M P I T AG U B, where M P I T AG U B is the tag upper-bound for the MPI
implementation.
The value of M P I T AG U B for a specific MPI implementation can be
obtained at run-time using the M P I COM M GET AT T R routine. An
MPI implementation is free to set the value of M P I T AG U B larger than the
minimum set by the MPI standard (32767 = 215 − 1). In the current release
version of OpenMPI, the value of M P I T AG U B is 2147483647 (231 − 1).
On the Cray XC40 with Cray MPICH, the value of M P I T AG U B is much
smaller, that is, 2097151 (221 − 1). As the currently known lowest value of
M P I T AG U B amongst available parallel platforms, the Cray XC40 value
is used to set M T AG U B in WMMDATMD.
C.6 WAVEWATCH III version 6.07 DRAFT
D.1 Introduction
D.2 SCRIP-WW3
WAVEWATCH III are found in Section 5.7 and in the file w3 make. With
SCRIPNC activated, for each source/destination grid pair, a NetCDF file
will be created, e.g. rmp src to dst conserv 002 001.nc, with 002 and 001 re-
ferring to the source and destination grid respectively; the numbering of
grids is assigned by ww3 multi and is indicated in screen output of that pro-
gram. This .nc file contains all information required by WAVEWATCH III
for remapping. Additional diagnostic information about the remapping can
be included in the .nc file by adding the switch T38. Note: switch should
include either ‘SCRIP SCRIPNC’ or ‘SCRIP’; using SCRIPNC without
SCRIP will result in a compile error.
Though it is not required, SCRIP-WW3 may be utilized for remapping
between regular grids. In the case of spherical (lat/lon) grids, there may
be slight differences using SCRIP-WW3, since SCRIP-WW3 calculates areas
based on real distances, and the non-SCRIP approach uses degrees lat/lon.
that are targetted with this feature: Mode A) Precalculate weights, where
SCRIP STOP exists and .nc files do not exist. Mode B) Use precalculated
weights, where SCRIP STOP does not exist and .nc files do exist. If both
files types exist (through accident) in the work directory, ww3 multi will fail
with an error. In a hypothetical operational context, Mode A is used for the
first run and Mode B is used for all subsequent runs with the same grid set.
The scalability is limited by the most expensive remapping pair, i.e. load
balancing is an issue. For a case where 12 remapping pairs are calculated
and each pair requires 1/12th of the computation time, speed-up will be by
factor twelve. For another case with 12 remapping pairs, where one remap-
ping pair takes 50% of computation time, speed-up will be by factor two only.
Note that resources are maximized by using a number of processes equal to
the number of remapping pairs: extra processes will not be used.
To further explain the options available to users, take an example of a
multi-grid system with 9 grids and 12 remapping pairs, with many sea points,
run twice a day for several months, for a total of 1000 forecasts. The user
may handle this in different ways:
1) Using SCRIP, SCRIPNC, and MPI, and using the SCRIP STOP
feature, the calculation of weights will be done in parallel. The
first time the model is applied, this may take 5 to 10 minutes to
calculate remapping weights (Mode A above) and 20 minutes to
perform the model forecast (Mode B above). For forecasts 2 to
1000, only the 20 minutes to perform the model forecast (Mode
B) is needed.
2) Using SCRIP, SCRIPNC and the SCRIP STOP feature, but cre-
ating the .nc files running in serial mode and running the forecast
with MPI, the first time the model is applied, this may take 20
minutes to calculate remapping weights and 20 minutes to per-
form the model forecast. For forecasts 2 to 1000, only the 20
minutes to perform the model forecast is needed.
3) Using SCRIP, SCRIPNC, and MPI, without using the
SCRIP STOP feature, the calculation of weights will not be done
in parallel, and will even be slower than if run in serial, because
of communications. The first time the model is applied, this may
take 40 minutes to calculate remapping weights and 20 minutes
to perform the model forecast. For forecasts 2 to 1000, only the
20 minutes to perform the model forecast is needed.
DRAFT WAVEWATCH III version 6.07 D.5
D.5 Limitations
Two features are not yet addressed, and will be addressed in a later version:
1) Communication between equal rank grids is still limited to regular
grids. If one of the grids is irregular or unstructured, ww3 multi
will terminate with an error message. It is possible to have non-
regular grids as part of a multi-grid system which includes equal
rank grids, as long as the overlapping equal-ranked grids are all
regular.
2) The “input grid” (or “F modid”) option for defining input fields
(e.g. winds) is not implemented yet for irregular or unstructured
D.6 WAVEWATCH III version 6.07 DRAFT
E Ocean-Ice-Waves-Atmosphere coupling
with OASIS
E.1 Introduction
• ... doesn’t have an executable (we don’t need to give it processes when
we launch a coupling simulation)
• ... uses an input file called namcouple that allows changes to the cou-
pling characteristics (exchange time, interpolation type, number of ex-
change fields) without recompiling the code...
1
https://verc.enes.org/oasis/
E.2 WAVEWATCH III version 6.07 DRAFT
• switch COU, to perform the coupling : reading the ww3 shel.inp input file
and define the number of variable exchanged and the time exchange.
Only the program ww3 shel is compiled with the OASIS library, all the
other programs can be used as usual.
The switches for interpolation in time of the wind and current forcing
fields must not be used regarding the fact that coupling mechanisms cannot
provided the future value of the forcing field. Depending on the type of
coupling, the switch WNT0 must be set for atmospheric coupling and the
switch CRT0 must be set for oceanic coupling.
To launch a coupling simulation, for example with Intel Mpi, we need the:
• input files for WW3 : ww3 shel.inp, and the usual *.ww3 files.
E.5 Limitations
A few limitations are not yet addressed, and will be addressed in a later
version:
• the coupling with OASIS is only coding for ww3 shel program, not yet
for the ww3 multi
• in the WW3 suite, there are 2 versions of SCRIP, one for OASIS and
one for the ww3 multi
• ...
DRAFT WAVEWATCH III version 6.07 F.1
F.1 Introduction
To make the library that will contain the WAVEWATCH III code and cap
that can be included in a NUOPC coupled model, use modelesmfMakefile.
For example, in the NOAA Environmental Modeling System (NEMS) the
command is:
The avaiable fields for import and export are listed below. Please see Section
F.4 for information on how to activate coupling for an import field.
Import Fields:
1
https://earthsystemcog.org/projects/nuopc/
2
https://www.earthsystemcog.org/projects/esmf/
F.2 WAVEWATCH III version 6.07 DRAFT
Export:
While the cap is designed to be used in coupled systems outside of the scope
of this documentation. A script to run a regression test of the standalone
WAVEWATCH III cap is provided in the regtestrun esmf test suite
script.
DRAFT WAVEWATCH III version 6.07 G.1
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Grid preprocessor input file $
$ -------------------------------------------------------------------- $
$ Grid name (C*30, in quotes)
$
’TEST GRID (GULF OF NOWHERE) ’
$
$ Frequency increment factor and first frequency (Hz) ---------------- $
$ number of frequencies (wavenumbers) and directions, relative offset
$ of first direction in terms of the directional increment [-0.5,0.5].
$ In versions 1.18 and 2.22 of the model this value was by definiton 0,
$ it is added to mitigate the GSE for a first order scheme. Note that
$ this factor is IGNORED in the print plots in ww3_outp.
$
1.1 0.04118 25 24 0.
$
$ Set model flags ---------------------------------------------------- $
$ - FLDRY Dry run (input/output only, no calculation).
$ - FLCX, FLCY Activate X and Y component of propagation.
$ - FLCTH, FLCK Activate direction and wavenumber shifts.
$ - FLSOU Activate source terms.
$
F T T T F T
$
$ Set time steps ----------------------------------------------------- $
$ - Time step information (this information is always read)
$ maximum global time step, maximum CFL time step for x-y and
$ k-theta, minimum source term time step (all in seconds).
$
G.2 WAVEWATCH III version 6.07 DRAFT
END OF NAMELISTS
$
$ Define grid -------------------------------------------------------- $
$
$ Five records containing :
$
$ 1 Type of grid, coordinate system and type of closure: GSTRG, FLAGLL,
$ CSTRG. Grid closure can only be applied in spherical coordinates.
$ GSTRG : String indicating type of grid :
$ ’RECT’ : rectilinear
$ ’CURV’ : curvilinear
$ ’UNST’ : unstructured (triangle-based)
$ FLAGLL : Flag to indicate coordinate system :
$ T : Spherical (lon/lat in degrees)
$ F : Cartesian (meters)
$ CSTRG : String indicating the type of grid index space closure :
$ ’NONE’ : No closure is applied
$ ’SMPL’ : Simple grid closure : Grid is periodic in the
$ : i-index and wraps at i=NX+1. In other words,
$ : (NX+1,J) => (1,J). A grid with simple closure
$ : may be rectilinear or curvilinear.
$ ’TRPL’ : Tripole grid closure : Grid is periodic in the
$ : i-index and wraps at i=NX+1 and has closure at
$ : j=NY+1. In other words, (NX+1,J<=NY) => (1,J)
$ : and (I,NY+1) => (NX-I+1,NY). Tripole
$ : grid closure requires that NX be even. A grid
$ : with tripole closure must be curvilinear.
$ 2 NX, NY. As the outer grid lines are always defined as land
$ points, the minimum size is 3x3.
$
$ Branch here based on grid type
$
$ IF ( RECTILINEAR GRID ) THEN
$
$ 3 Grid increments SX, SY (degr.or m) and scaling (division) factor.
$ If CSTRG=’SMPL’, then SX is set to 360/NX.
$ 4 Coordinates of (1,1) (degr.) and scaling (division) factor.
$
$ ELSE IF ( CURVILINEAR GRID ) THEN
$
$ 3 Unit number of file with x-coordinate.
$ Scale factor and add offset: x <= scale_fac * x_read + add_offset.
$ IDLA, IDFM, format for formatted read, FROM and filename.
$ IDLA : Layout indicator :
$ 1 : Read line-by-line bottom to top.
DRAFT WAVEWATCH III version 6.07 G.13
$ 12 12
$
$ 10 0.25 -0.5 3 1 ’(....)’ ’NAME’ ’x.inp’
$
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$ 1 2 3 4 5 6 7 8 9 10 11 12
$
$ 10 0.25 0.5 3 1 ’(....)’ ’NAME’ ’y.inp’
$
$ 1 1 1 1 1 1 1 1 1 1 1 1
$ 2 2 2 2 2 2 2 2 2 2 2 2
$ 3 3 3 3 3 3 3 3 3 3 3 3
$ 4 4 4 4 4 4 4 4 4 4 4 4
$ 5 5 5 5 5 5 5 5 5 5 5 5
$ 6 6 6 6 6 6 6 6 6 6 6 6
$ 7 7 7 7 7 7 7 7 7 7 7 7
$ 8 8 8 8 8 8 8 8 8 8 8 8
$ 9 9 9 9 9 9 9 9 9 9 9 9
$ 10 10 10 10 10 10 10 10 10 10 10 10
$ 11 11 11 11 11 11 11 11 11 11 11 11
$ 12 12 12 12 12 12 12 12 12 12 12 12
$
$ -0.1 2.50 10 -10. 3 1 ’(....)’ ’NAME’ ’bottom.inp’
$
$ 6 6 6 6 6 6 6 6 6 6 6 6
$ 6 6 6 5 4 2 0 2 4 5 6 6
$ 6 6 6 5 4 2 0 2 4 5 6 6
$ 6 6 6 5 4 2 0 2 4 5 6 6
$ 6 6 6 5 4 2 0 0 4 5 6 6
$ 6 6 6 5 4 4 2 2 4 5 6 6
$ 6 6 6 6 5 5 4 4 5 6 6 6
$ 6 6 6 6 6 6 5 5 6 6 6 6
$ 6 6 6 6 6 6 6 6 6 6 6 6
$ 6 6 6 6 6 6 6 6 6 6 6 6
$ 6 6 6 6 6 6 6 6 6 6 6 6
G.16 WAVEWATCH III version 6.07 DRAFT
$ 6 6 6 6 6 6 6 6 6 6 6 6
$
$ -------------------------------------------------------------
$ SMC grid use the same spherical lat-lon grid parameters
$ ’RECT’ T ’SMPL’
$ 1024 704
$ SMC grid base level resolution dlon dlat and start lon lat
$ 0.35156250 0.23437500 1.
$ 0.17578125 -78.6328125 1.
$
$ Normal depth input line is used to passing the minimum depth
$ though the depth file is not read for SMC grid.
$ -0.1 10.0 30 -1. 1 1 ’(....)’ ’NAME’ ’SMC25Depth.dat’
$ SMC cell and face arrays and obstruction ratio:
$ 32 1 1 ’(....)’ ’S6125MCels.dat’
$ 33 1 1 ’(....)’ ’S6125ISide.dat’
$ 34 1 1 ’(....)’ ’S6125JSide.dat’
$ 31 1.0 1 1 ’(...)’ ’NAME’ ’SMC25Subtr.dat’
$ The input boundary cell file is only needed when NBISMC > 0.
$ 35 1 1 ’(....)’ ’S6125Bundy.dat’
$ Extra cell and face arrays for Arctic part if ARC is selected.
$ 36 1 1 ’(....)’ ’S6125MBArc.dat’
$ 37 1 1 ’(....)’ ’S6125AISid.dat’
$ 38 1 1 ’(....)’ ’S6125AJSid.dat’
$ Normal land-sea mask file input line is kept but file is not used.
$ 39 1 1 ’(....)’ ’NAME’ ’S6125Masks.dat’
$ Boundary cell id list file (unit 35) is only required if boundary
$ cell number entered above is non-zero. The cell id number should b
$ the sequential number in the cell array (unit 32) S625MCels.dat.
$
$ If sub-grid information is available as indicated by FLAGTR above,
$ additional input to define this is needed below. In such cases a
$ field of fractional obstructions at or between grid points needs to
$ be supplied. First the location and format of the data is defined
$ by (as above) :
$ - Unit number of file (can be 10, and/or identical to bottom depth
$ unit), scale factor for fractional obstruction, IDLA, IDFM,
$ format for formatted read, FROM and filename
$
10 0.2 3 1 ’(....)’ ’NAME’ ’obstr.inp’
$
$ *** NOTE if this unit number is the same as the previous bottom
$ depth unit number, it is assumed that this is the same file
$ without further checks. ***
$
DRAFT WAVEWATCH III version 6.07 G.17
$ If the above unit number equals 10, the bottom data is read from
$ this file and follows below (no intermediate comment lines allowed,
$ except between the two fields).
$
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 5 0 0 0 0 0
0 0 0 0 0 0 5 0 0 0 0 0
0 0 0 0 0 0 4 0 0 0 0 0
0 0 0 0 0 0 4 0 0 0 0 0
0 0 0 0 0 0 5 0 0 0 0 0
0 0 0 0 0 0 5 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
$
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 5 5 5 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
$
$ *** NOTE size of fields is always NX * NY ***
$
$ Input boundary points and excluded points -------------------------- $
$ The first line identifies where to get the map data, by unit number
$ IDLA and IDFM, format for formatted read, FROM and filename
$ if FROM = ’PART’, then segmented data is read from below, else
$ the data is read from file as with the other inputs (as INTEGER)
$
10 3 1 ’(....)’ ’PART’ ’mapsta.inp’
$
$ Read the status map from file ( FROM != PART ) --------------------- $
$
$ 3 3 3 3 3 3 3 3 3 3 3 3
$ 3 2 1 1 1 1 0 1 1 1 1 3
$ 3 2 1 1 1 1 0 1 1 1 1 3
G.18 WAVEWATCH III version 6.07 DRAFT
$ 3 2 1 1 1 1 0 1 1 1 1 3
$ 3 2 1 1 1 1 0 0 1 1 1 3
$ 3 2 1 1 1 1 1 1 1 1 1 3
$ 3 2 1 1 1 1 1 1 1 1 1 3
$ 3 2 1 1 1 1 1 1 1 1 1 3
$ 3 2 1 1 1 1 1 1 1 1 1 3
$ 3 2 1 1 1 1 1 1 1 1 1 3
$ 3 2 1 1 1 1 1 1 1 1 1 3
$ 3 3 3 3 3 3 3 3 3 3 3 3
$
$ The legend for the input map is :
$
$ 0 : Land point.
$ 1 : Regular sea point.
$ 2 : Active boundary point.
$ 3 : Point excluded from grid.
$
$ Input boundary points from segment data ( FROM = PART ) ------------ $
$ An unlimited number of lines identifying points at which input
$ boundary conditions are to be defined. If the actual input data is
$ not defined in the actual wave model run, the initial conditions
$ will be applied as constant boundary conditions. Each line contains:
$ Discrete grid counters (IX,IY) of the active point and a
$ connect flag. If this flag is true, and the present and previous
$ point are on a grid line or diagonal, all intermediate points
$ are also defined as boundary points.
$
2 2 F
2 11 T
$
$ Close list by defining point (0,0) (mandatory)
$
0 0 F
$
$ Excluded grid points from segment data ( FROM != PART )
$ First defined as lines, identical to the definition of the input
$ boundary points, and closed the same way.
$
0 0 F
$
$ Second, define a point in a closed body of sea points to remove
$ the entire body of sea points. Also close by point (0,0)
$
0 0
$
DRAFT WAVEWATCH III version 6.07 G.19
! -------------------------------------------------------------------- !
! WAVEWATCH III - ww3_grid.nml - Grid pre-processing !
! -------------------------------------------------------------------- !
! -------------------------------------------------------------------- !
! Define the spectrum parameterization via SPECTRUM_NML namelist
!
! * namelist must be terminated with /
! * definitions & defaults:
G.20 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
! Define the run parameterization via RUN_NML namelist
!
! * namelist must be terminated with /
! * definitions & defaults:
! RUN%FLDRY = F ! dry run (I/O only, no calcu
! RUN%FLCX = F ! x-component of propagation
! RUN%FLCY = F ! y-component of propagation
! RUN%FLCTH = F ! direction shift
! RUN%FLCK = F ! wavenumber shift
! RUN%FLSOU = F ! source terms
! -------------------------------------------------------------------- !
&RUN_NML
RUN%FLCX = T
RUN%FLCY = T
RUN%FLCTH = T
RUN%FLSOU = T
/
! -------------------------------------------------------------------- !
! Define the timesteps parameterization via TIMESTEPS_NML namelist
!
! * It is highly recommended to set up time steps which are multiple
! between them.
!
! * The first time step to calculate is the maximum CFL time step
! which depend on the lowest frequency FREQ1 previously set up and the
! lowest spatial grid resolution in meters DXY.
! reminder : 1 degree=60minutes // 1minute=1mile // 1mile=1.852km
! The formula for the CFL time is :
DRAFT WAVEWATCH III version 6.07 G.21
! -------------------------------------------------------------------- !
! Define the grid to preprocess via GRID_NML namelist
!
! * the tunable parameters for source terms, propagation schemes, and
! numerics are read using namelists.
! * Any namelist found in the folowing sections is temporarily written
! to param.scratch, and read from there if necessary.
! * The order of the namelists is immaterial.
! * Namelists not needed for the given switch settings will be skipped
! automatically
!
! * grid type can be :
! ’RECT’ : rectilinear
! ’CURV’ : curvilinear
! ’UNST’ : unstructured (triangle-based)
!
! * coordinate system can be :
G.22 WAVEWATCH III version 6.07 DRAFT
GRID%CLOS = ’SMPL’
GRID%ZLIM = -0.10
GRID%DMIN = 2.5
/
! -------------------------------------------------------------------- !
! Define the rectilinear grid type via RECT_NML namelist
! - only for RECT grids -
!
! * The minimum grid size is 3x3.
!
! * If the grid increments SX and SY are given in minutes of arc, the sc
! factor SF must be set to 60. to provide an increment factor in degre
!
! * If CSTRG=’SMPL’, then SX is forced to 360/NX.
!
! * value <= value_read / scale_fac
!
! * namelist must be terminated with /
! * definitions & defaults:
! RECT%NX = 0 ! number of points along x-axis
! RECT%NY = 0 ! number of points along y-axis
!
! RECT%SX = 0. ! grid increment along x-axis
! RECT%SY = 0. ! grid increment along y-axis
! RECT%SF = 1. ! scaling division factor for x-y
!
! RECT%X0 = 0. ! x-coordinate of lower-left corn
! RECT%Y0 = 0. ! y-coordinate of lower-left corn
! RECT%SF0 = 1. ! scaling division factor for x0,
! -------------------------------------------------------------------- !
&RECT_NML
RECT%NX = 720
RECT%NY = 360
/
! -------------------------------------------------------------------- !
! Define the curvilinear grid type via CURV_NML namelist
! - only for CURV grids -
!
! * The minimum grid size is 3x3.
G.24 WAVEWATCH III version 6.07 DRAFT
!
! * If CSTRG=’SMPL’, then SX is forced to 360/NX.
!
! * value <= scale_fac * value_read + add_offset
!
! * IDLA : Layout indicator :
! 1 : Read line-by-line bottom to top. (default)
! 2 : Like 1, single read statement.
! 3 : Read line-by-line top to bottom.
! 4 : Like 3, single read statement.
! * IDFM : format indicator :
! 1 : Free format. (default)
! 2 : Fixed format.
! 3 : Unformatted.
! * FORMAT : element format to read :
! ’(....)’ : auto detected (default)
! ’(f10.6)’ : float type
!
! * Example :
! IDF SF OFF IDLA IDFM FORMAT FILENAME
! 21 0.25 -0.5 3 1 ’(....)’ ’x.inp’
! 22 0.25 0.5 3 1 ’(....)’ ’y.inp’
!
! * namelist must be terminated with /
! * definitions & defaults:
! CURV%NX = 0 ! number of points along x-axis
! CURV%NY = 0 ! number of points along y-axis
!
! CURV%XCOORD%SF = 1. ! x-coord scale factor
! CURV%XCOORD%OFF = 0. ! x-coord add offset
! CURV%XCOORD%FILENAME = ’unset’ ! x-coord filename
! CURV%XCOORD%IDF = 21 ! x-coord file unit number
! CURV%XCOORD%IDLA = 1 ! x-coord layout indicator
! CURV%XCOORD%IDFM = 1 ! x-coord format indicator
! CURV%XCOORD%FORMAT = ’(....)’ ! x-coord formatted read format
!
! CURV%YCOORD%SF = 1. ! y-coord scale factor
! CURV%YCOORD%OFF = 0. ! y-coord add offset
! CURV%YCOORD%FILENAME = ’unset’ ! y-coord filename
! CURV%YCOORD%IDF = 22 ! y-coord file unit number
! CURV%YCOORD%IDLA = 1 ! y-coord layout indicator
! CURV%YCOORD%IDFM = 1 ! y-coord format indicator
! CURV%YCOORD%FORMAT = ’(....)’ ! y-coord formatted read format
! -------------------------------------------------------------------- !
&CURV_NML
DRAFT WAVEWATCH III version 6.07 G.25
CURV%NX = 720
CURV%NY = 360
!
CURV%XCOORD%SF = 0.25
CURV%XCOORD%OFF = -0.5
CURV%XCOORD%FILENAME = ’x.inp’
CURV%XCOORD%IDLA = 3
!
CURV%YCOORD%SF = 0.25
CURV%YCOORD%OFF = 0.5
CURV%YCOORD%FILENAME = ’y.inp’
CURV%YCOORD%IDLA = 3
/
! -------------------------------------------------------------------- !
! Define the unstructured grid type via UNST_NML namelist
! - only for UNST grids -
!
! * The minimum grid size is 3x3.
!
! * &MISC namelist must be removed
!
! * The depth value must have negative values under the mean sea level
!
! * The map value must be set as :
! -2 : Excluded boundary point (covered by ice)
! -1 : Excluded sea point (covered by ice)
! 0 : Excluded land point
! 1 : Sea point
! 2 : Active boundary point
! 3 : Excluded grid point
! 7 : Ice point
!
! * the file must be a GMESH grid file containing node and element lists
!
! * Extra open boundary list file with UGOBCFILE in namelist &UNST
! An example is given in regtest ww3_tp2.7
!
! * value <= scale_fac * value_read
!
! * IDLA : Layout indicator :
! 1 : Read line-by-line bottom to top. (default)
! 2 : Like 1, single read statement.
! 3 : Read line-by-line top to bottom.
G.26 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
! Define the spherical multiple-cell grid via SMC_NML namelist
! - only for SMC grids -
!
! * SMC cell ’MCELS’ and face ’ISIDE & JSIDE’ arrays
! and obstruction ratio ’SUBTR’.
!
! * The input boundary cell file ’BUNDY’ is only needed when NBISMC > 0.
! Boundary cell id list file (unit 35) is only required if boundary
! cell number entered above is non-zero. The cell id number should be
! the sequential number in the cell array (unit 31) S625MCels.dat.
!
DRAFT WAVEWATCH III version 6.07 G.27
! * Extra cell and face arrays for Arctic part if switch ARC is selected
!
! * Example :
! IDF IDLA IDFM FORMAT FILENAME
! 31 1 1 ’(....)’ ’S6125MCels.dat’
! 32 1 1 ’(....)’ ’S6125ISide.dat’
! 33 1 1 ’(....)’ ’S6125JSide.dat’
! 34 1 1 ’(....)’ ’SMC25Subtr.dat’
! 35 1 1 ’(....)’ ’S6125Bundy.dat’
! 36 1 1 ’(....)’ ’S6125MBArc.dat’
! 37 1 1 ’(....)’ ’S6125AISid.dat’
! 38 1 1 ’(....)’ ’S6125AJSid.dat’
!
! * namelist must be terminated with /
! * definitions & defaults:
! SMC%MCELS%FILENAME = ’unset’ ! MCels filename
! SMC%MCELS%IDF = 31 ! MCels file unit number
! SMC%MCELS%IDLA = 1 ! MCels layout indicator
! SMC%MCELS%IDFM = 1 ! MCels format indicator
! SMC%MCELS%FORMAT = ’(....)’ ! MCels formatted read format
!
! SMC%ISIDE%FILENAME = ’unset’ ! ISide filename
! SMC%ISIDE%IDF = 32 ! ISide file unit number
! SMC%ISIDE%IDLA = 1 ! ISide layout indicator
! SMC%ISIDE%IDFM = 1 ! ISide format indicator
! SMC%ISIDE%FORMAT = ’(....)’ ! ISide formatted read format
!
! SMC%JSIDE%FILENAME = ’unset’ ! JSide filename
! SMC%JSIDE%IDF = 33 ! JSide file unit number
! SMC%JSIDE%IDLA = 1 ! JSide layout indicator
! SMC%JSIDE%IDFM = 1 ! JSide format indicator
! SMC%JSIDE%FORMAT = ’(....)’ ! JSide formatted read format
!
! SMC%SUBTR%FILENAME = ’unset’ ! Subtr filename
! SMC%SUBTR%IDF = 34 ! Subtr file unit number
! SMC%SUBTR%IDLA = 1 ! Subtr layout indicator
! SMC%SUBTR%IDFM = 1 ! Subtr format indicator
! SMC%SUBTR%FORMAT = ’(....)’ ! Subtr formatted read format
!
! SMC%BUNDY%FILENAME = ’unset’ ! Bundy filename
! SMC%BUNDY%IDF = 35 ! Bundy file unit number
! SMC%BUNDY%IDLA = 1 ! Bundy layout indicator
! SMC%BUNDY%IDFM = 1 ! Bundy format indicator
! SMC%BUNDY%FORMAT = ’(....)’ ! Bundy formatted read format
!
G.28 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
! Define the depth to preprocess via DEPTH_NML namelist
! - for RECT and CURV grids -
!
! * if no obstruction subgrid, need to set &MISC FLAGTR = 0
!
! * The depth value must have negative values under the mean sea level
!
! * value <= value_read * scale_fac
!
! * IDLA : Layout indicator :
! 1 : Read line-by-line bottom to top. (default)
! 2 : Like 1, single read statement.
! 3 : Read line-by-line top to bottom.
DRAFT WAVEWATCH III version 6.07 G.29
! -------------------------------------------------------------------- !
! Define the point status map via MASK_NML namelist
! - only for RECT and CURV grids -
!
! * If no mask defined, INBOUND can be used to set active boundaries
!
! * IDLA : Layout indicator :
! 1 : Read line-by-line bottom to top. (default)
! 2 : Like 1, single read statement.
! 3 : Read line-by-line top to bottom.
! 4 : Like 3, single read statement.
! * IDFM : format indicator :
! 1 : Free format. (default)
! 2 : Fixed format.
! 3 : Unformatted.
! * FORMAT : element format to read :
G.30 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
! Define the obstruction map via OBST_NML namelist
! - only for RECT and CURV grids -
!
! * only used if &MISC FLAGTR = 1 in param.nml
! (transparencies at cell boundaries)
! or if &MISC FLAGTR = 2 in param.nml
! (transparencies at cell centers)
! or if &MISC FLAGTR = 3 in param.nml
! (transparencies at cell boundaries with cont. ice)
! or if &MISC FLAGTR = 4 in param.nml
! (transparencies at cell centers with cont. ice)
!
! * value <= value_read * scale_fac
DRAFT WAVEWATCH III version 6.07 G.31
!
! * IDLA : Layout indicator :
! 1 : Read line-by-line bottom to top. (default)
! 2 : Like 1, single read statement.
! 3 : Read line-by-line top to bottom.
! 4 : Like 3, single read statement.
! * IDFM : format indicator :
! 1 : Free format. (default)
! 2 : Fixed format.
! 3 : Unformatted.
! * FORMAT : element format to read :
! ’(....)’ : auto detected (default)
! ’(f10.6)’ : float type
!
! * Example :
! IDF SF IDLA IDFM FORMAT FILENAME
! 70 0.0001 1 1 ’(....)’ ’GLOB-30M.obst’
!
! * If the file unit number equals 10, then the data is read from this
! file. The data must follow the above record. No comment lines are
! allowed within the data input.
!
! * In the case of unstructured grids, no obstruction file can be added
!
! * namelist must be terminated with /
! * definitions & defaults:
! OBST%SF = 1. ! scale factor
! OBST%FILENAME = ’unset’ ! filename
! OBST%IDF = 70 ! file unit number
! OBST%IDLA = 1 ! layout indicator
! OBST%IDFM = 1 ! format indicator
! OBST%FORMAT = ’(....)’ ! formatted read format
! -------------------------------------------------------------------- !
&OBST_NML
OBST%SF = 0.0001
OBST%FILENAME = ’GLOB-30M.obst’
/
! -------------------------------------------------------------------- !
! Define the reflexion slope map via SLOPE_NML namelist
! - only for RECT and CURV grids -
!
! * only used if &REF1 REFMAP = 2 defined in param.nml
G.32 WAVEWATCH III version 6.07 DRAFT
!
! * value <= value_read * scale_fac
!
! * IDLA : Layout indicator :
! 1 : Read line-by-line bottom to top. (default)
! 2 : Like 1, single read statement.
! 3 : Read line-by-line top to bottom.
! 4 : Like 3, single read statement.
! * IDFM : format indicator :
! 1 : Free format. (default)
! 2 : Fixed format.
! 3 : Unformatted.
! * FORMAT : element format to read :
! ’(....)’ : auto detected (default)
! ’(f10.6)’ : float type
!
! * Example :
! IDF SF IDLA IDFM FORMAT FILENAME
! 80 0.0001 1 1 ’(....)’ ’GLOB-30M.slope’
!
! * In the case of unstructured grids, no sed file can be added
!
! * namelist must be terminated with /
! * definitions & defaults:
! SLOPE%SF = 1. ! scale factor
! SLOPE%FILENAME = ’unset’ ! filename
! SLOPE%IDF = 80 ! file unit number
! SLOPE%IDLA = 1 ! layout indicator
! SLOPE%IDFM = 1 ! format indicator
! SLOPE%FORMAT = ’(....)’ ! formatted read format
! -------------------------------------------------------------------- !
&SLOPE_NML
SLOPE%SF = 0.0001
SLOPE%FILENAME = ’GLOB-30M.slope’
/
! -------------------------------------------------------------------- !
! Define the sedimentary bottom map via SED_NML namelist
!
! * only used if &SBT4 SEDMAPD50 = T defined in param.nml
!
! * value <= value_read * scale_fac
!
DRAFT WAVEWATCH III version 6.07 G.33
! -------------------------------------------------------------------- !
! Define the input boundary points via INBND_COUNT_NML and
! INBND_POINT_NML namelist
! - for RECT, CURV and UNST grids -
!
! * If no mask defined, INBOUND can be used
!
! * If the actual input data is not defined in the actual wave model run
G.34 WAVEWATCH III version 6.07 DRAFT
&INBND_POINT_NML
INBND_POINT(1) = 2 2 F
INBND_POINT(2) = 2 11 T
/
! -------------------------------------------------------------------- !
! Define the excluded points and bodies via EXCL_COUNT_NML, EXCL_POINT_N
! and EXCL_BODY_NML namelist
! - only for RECT and CURV grids -
!
! * If no mask defined, EXCL can NOT be used
!
DRAFT WAVEWATCH III version 6.07 G.35
&EXCL_POINT_NML
EXCL_POINT(1) = 20 2 F
EXCL_POINT(2) = 20 11 T
/
&EXCL_BODY_NML
G.36 WAVEWATCH III version 6.07 DRAFT
EXCL_BODY(1) = 10 15
/
! -------------------------------------------------------------------- !
! Define the output boundary points via OUTBND_COUNT_NML and
! OUTBND_LINE_NML namelist
! - only for RECT and CURV grids -
!
! * It will creates a nest file with output boundaries for a inner grid.
! The prefered way to do it is to use ww3_bounc program.
!
! * These do not need to be defined for data transfer between grids in
! the multi grid driver.
!
! * The number of lines are defined by OUTBND_COUNT
!
! * The lines must start from index 1 to N
!
! * Output boundary points are defined as a number of straight lines,
! defined by its starting point (X0,Y0), increments (DX,DY) and number
! of points. A negative number of points starts a new output file.
!
! * Example for spherical grid in degrees :
! ’1.75 1.50 0.25 -0.10 3’
! ’2.25 1.50 -0.10 0.00 -6’
! ’0.10 0.10 0.10 0.00 -10’
!
! * namelist must be terminated with /
! * definitions & defaults:
! OUTBND_COUNT%N_LINE = 0 ! number of lines
!
! OUTBND_LINE(I)%X0 = 0. ! x index start point
! OUTBND_LINE(I)%Y0 = 0. ! y index start point
! OUTBND_LINE(I)%DX = 0. ! x-along increment
! OUTBND_LINE(I)%DY = 0. ! y-along increment
! OUTBND_LINE(I)%NP = 0 ! number of points
! OR
! OUTBND_LINE(I) = 0. 0. 0. 0. 0 ! included lines
! -------------------------------------------------------------------- !
&OUTBND_COUNT_NML
OUTBND_COUNT%N_LINE = 3
/
&OUTBND_LINE_NML
DRAFT WAVEWATCH III version 6.07 G.37
! -------------------------------------------------------------------- !
! WAVEWATCH III - end of namelist !
! -------------------------------------------------------------------- !
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Initial conditions input file $
$--------------------------------------------------------------------- $
$ type of initial field ITYPE .
$
1
$
$ ITYPE = 1 ---------------------------------------------------------- $
$ Gaussian in frequency and space, cos type in direction.
$ - fp and spread (Hz), mean direction (degr., oceanographic
$ convention) and cosine power, Xm and spread (degr. or m) Ym and
$ spread (degr. or m), Hmax (m) (Example for lon-lat grid in degr.).
$
$ 0.10 0.01 270. 2 1. 0.5 1. 0.5 2.5
0.10 0.01 270. 2 0. 1000. 1. 1000. 2.5
$ 0.10 0.01 270. 2 0. 1000. 1. 1000. 0.01
$ 0.10 0.01 270. 2 0. 1000. 1. 1000. 0.
G.38 WAVEWATCH III version 6.07 DRAFT
$
$ ITYPE = 2 ---------------------------------------------------------- $
$ JONSWAP spectrum with Hasselmann et al. (1980) direct. distribution.
$ - alfa, peak freq. (Hz), mean direction (degr., oceanographical
$ convention), gamma, sigA, sigB, Xm and spread (degr. or m) Ym and
$ spread (degr. or m) (Example for lon-lat grid in degr.).
$ alfa, sigA, sigB give default values if less than or equal to 0.
$
$ 0.0081 0.1 270. 1.0 0. 0. 1. 100. 1. 100.
$
$ ITYPE = 3 ---------------------------------------------------------- $
$ Fetch-limited JONSWAP
$ - No additional data, the local spectrum is calculated using the
$ local wind speed and direction, using the spatial grid size as
$ fetch, and assuring that the spectrum is within the discrete
$ frequency range.
$
$ ITYPE = 4 ---------------------------------------------------------- $
$ User-defined spectrum
$ - Scale factor., defaults to 1 if less than or equal 0.
$ - Spectrum F(f,theta) (single read statement)
$
$ -0.1
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 1 4 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 1 2 3 2 1 1 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 1 3 9 7 5 3 2 1 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 1 3 4 3 2 1 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DRAFT WAVEWATCH III version 6.07 G.39
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$
$ ITYPE = 5 ---------------------------------------------------------- $
$ Starting from calm conditions.
$ - No additional data.
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Ascii boundary input processing $
$--------------------------------------------------------------------- $
$
$ Boundary option: READ or WRITE
$
WRITE
$
$ Interpolation method: 1: nearest
$ 2: linear interpolation
2
$
$ Verbose mode [0-1]
$
0
$
$ List of spectra files. These ASCII files use the WAVEWATCH III
$ format as described in the ww3_outp.inp file. The files are
$ defined relative to the directory in which the program is run.
G.40 WAVEWATCH III version 6.07 DRAFT
$
$ Examples of such files can be found at (for example):
$ ftp://polar.ncep.noaa.gov/pub/waves/develop/glw.latest_run/
$ (the *.spec.gz files)
$ http://tinyurl.com/iowagaftp/HINDCAST/GLOBAL/2009_ECMWF/SPEC
$
$ If data is used other than from previous WAVEWATCH III runs, then
$ this data will need to be converted to the WAVEWATCH III format.
$
$ In the case of NetCDF files see ww3_bounc.inp
$
SPECTRI/mww3.W004N476.spec
SPECTRI/mww3.W0042N476.spec
SPECTRI/mww3.W0044N476.spec
SPECTRI/mww3.W0046N476.spec
SPECTRI/mww3.W0048N476.spec
SPECTRI/mww3.W005N476.spec
SPECTRI/mww3.W0052N476.spec
SPECTRI/mww3.W0054N476.spec
SPECTRI/mww3.W0056N476.spec
SPECTRI/mww3.W0058N489.spec
SPECTRI/mww3.W006N478.spec
SPECTRI/mww3.W006N482.spec
SPECTRI/mww3.W006N486.spec
SPECTRI/mww3.W006N489.spec
’STOPSTRING’
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III NetCDF boundary input processing $
$--------------------------------------------------------------------- $
$
$ Boundary option: READ or WRITE
$
WRITE
$
$ Interpolation method: 1: nearest
$ 2: linear interpolation
2
$ Verbose (0, 1, 2)
1
$
$ List of spectra files. These NetCDF files use the WAVEWATCH III
$ format as described in the ww3_ounp.inp file. The files are
$ defined relative to the directory in which the program is run.
$
SPECTRA_NC/ww3.62163_spec.nc
SPECTRA_NC/ww3.62069_spec.nc
’STOPSTRING’
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
! -------------------------------------------------------------------- !
! WAVEWATCH III - ww3_bounc.nml - Boundary input post-processing !
! -------------------------------------------------------------------- !
! -------------------------------------------------------------------- !
! Define the input boundaries to preprocess via BOUND_NML namelist
!
! * namelist must be terminated with /
G.42 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
! WAVEWATCH III - end of namelist !
! -------------------------------------------------------------------- !
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Field preprocessor input file $
$ -------------------------------------------------------------------- $
$ Major types of field and time flag
$ Field types : IC1 Ice thickness.
$ IC5 Ice floe mean diameter.
$ ICE Ice concentrations.
$ ISI Icebergs and sea ice.
$ LEV Water levels.
$ WND Winds.
$ WNS Winds (including air-sea temp. dif.)
$ CUR Currents.
$ DAT Data for assimilation.
$
$ Format types : AI Transfer field ’as is’.
$ LL Field defined on rectilinear grid (in same
$ coordinate system as model grid)
DRAFT WAVEWATCH III version 6.07 G.43
$
$ Define data files -------------------------------------------------- $
$ The first input line identifies the file format with FROM, IDLA and
$ IDFM, the second (third) lines give the file unit number and name.
$
’UNIT’ 3 1 ’(..T..)’ ’(..F..)’
10 ’data_file.1’
$ 10 ’data_file.2’
$
$ If the above unit numbers are 10, data is read from this file
$ (no intermediate comment lines allowed),
$ This example is an ice concentration field.
$
1. 1. 1. 1. 1. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0.
1. 1. .5 .5 .5 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
$
$ This example is mean parameter assimilation data
$ First record gives number of data records, data are read as as
$ individual records of reals with record length as given above
$
$ 3
$ 1.5 1.6 0.70 10.3
$ 1.7 1.5 0.75 9.8
$ 1.9 1.4 0.77 11.1
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Field preprocessor input file $
$ -------------------------------------------------------------------- $
$ Major types of field and time flag
$ Field types : IC1 Ice thickness.
$ IC5 Ice floe mean diameter.
$ ICE Ice concentrations.
$ ISI Icebergs and sea ice.
$ LEV Water levels.
$ WND Winds.
$ WNS Winds (including air-sea temp. dif.)
$ CUR Currents.
$ DAT Data for assimilation.
$
$ Format types : AI Transfer field ’as is’. (ITYPE 1)
$ LL Field defined on regular longitude-latitude
$ or Cartesian grid. (ITYPE 2)
$ Format types : AT Transfer field ’as is’, performs tidal
$ analysis on the time series (ITYPE 6)
$ When using AT, another line should be added
$ with the choice of tidal constituents:
$ FAST or VFAST or a list: e.g. ’M2 S2’
$
$ - Format type not used for field type ’DAT’.
$
$ Time flag : If true, time is included in file.
$ Header flag : If true, header is added to file.
$ (necessary for reading, FALSE is used only for
$ incremental generation of a data file.)
$
’WND’ ’LL’ T T
$
$ Name of spatial dimensions------------------------------------------ $
$ NB: time dimension is expected to be called ’time’ and must respect
$ Julian or Gregorian calendar with leap day.
$
longitude latitude
$
$ Variables to use --------------------------------------------------- $
$
U V
$
$ Additional time input ---------------------------------------------- $
$ If time flag is .FALSE., give time of field in yyyymmdd hhmmss format.
$
G.46 WAVEWATCH III version 6.07 DRAFT
$ 19680606 053000
$
$ Define data files -------------------------------------------------- $
$ The input line identifies the filename using for the forcing field.
$
’wind.nc’
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
! -------------------------------------------------------------------- !
! WAVEWATCH III - ww3_prnc.nml - Field preprocessor !
! -------------------------------------------------------------------- !
! -------------------------------------------------------------------- !
! Define the forcing fields to preprocess via FORCING_NML namelist
!
! * only one FORCING%FIELD can be set at true
! * only one FORCING%grid can be set at true
! * tidal constituents FORCING%tidal is only available on grid%asis with
!
! * namelist must be terminated with /
! * definitions & defaults:
! FORCING%TIMESTART = ’19000101 000000’ ! Start date for
! FORCING%TIMESTOP = ’29001231 000000’ ! Stop date for
!
! FORCING%FIELD%ICE_PARAM1 = f ! Ice thickness
! FORCING%FIELD%ICE_PARAM2 = f ! Ice viscosity
! FORCING%FIELD%ICE_PARAM3 = f ! Ice density
! FORCING%FIELD%ICE_PARAM4 = f ! Ice modulus
! FORCING%FIELD%ICE_PARAM5 = f ! Ice floe mean diamete
! FORCING%FIELD%MUD_DENSITY = f ! Mud density
! FORCING%FIELD%MUD_THICKNESS = f ! Mud thickness
DRAFT WAVEWATCH III version 6.07 G.47
! -------------------------------------------------------------------- !
! Define the content of the input file via FILE_NML namelist
!
! * input file must respect netCDF format and CF conventions
! * input file must contain :
! -dimension : time, name expected to be called time
! -dimension : longitude/latitude, names can defined in the namelis
! -variable : time defined along time dimension
! -attribute : time with attributes units written as ISO8601 conven
! -attribute : time with attributes calendar set to standard as CF
! -variable : longitude defined along longitude dimension
! -variable : latitude defined along latitude dimension
! -variable : field defined along time,latitude,longitude dimension
! * FILE%VAR(I) must be set for each field component
!
! * namelist must be terminated with /
! * definitions & defaults:
! FILE%FILENAME = ’unset’ ! relative path input file
! FILE%LONGITUDE = ’unset’ ! longitude/x dimension nam
! FILE%LATITUDE = ’unset’ ! latitude/y dimension name
! FILE%VAR(I) = ’unset’ ! field component
! FILE%TIMESHIFT = ’00000000 000000’ ! shift the time value to ’
G.48 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
&FILE_NML
FILE%FILENAME = ’wind.nc’
FILE%LONGITUDE = ’longitude’
FILE%LATITUDE = ’latitude’
FILE%VAR(1) = ’U’
FILE%VAR(2) = ’V’
/
! -------------------------------------------------------------------- !
! WAVEWATCH III - end of namelist !
! -------------------------------------------------------------------- !
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Field preprocessor input file $
$ -------------------------------------------------------------------- $
$ types of field
$ Field types : LEV Water levels.
$ CUR Currents.
’CUR’
$
$ List of tidal constituents------------------------------------------ $
$
Z0 M2
$
$ Maximum allowed values ------------------------------------------ $
$ First line: name of tidal constituents for which the max. are defined
$ these should be chosen among the ones avaialable in the
DRAFT WAVEWATCH III version 6.07 G.49
$ tidal analysis.
$ If analysis was performed with ww3_prnc, the default list
$ is Z0 SSA MSM MSF MF 2N2 MU2 N2 NU2 M2 S2 K2 MSN2 MN4 M4
$ MS4 S4 M6 2MS6 M8
$ Second line: values of maximum magnitude of the amplitude
$ at points where not values are defined or where these maxima are
$ exceeded, the constituents are extrapolated from neighbors
$ (e.g. tidal flats ...)
Z0 SSA MSF
1.0 0.5 0.5
$
$ Start time step end time
19680606 000000 1800 19680607 120000
$
$ Define data files -------------------------------------------------- $
$ The input line identifies the filename using for the forcing field.
$
’ww3_tide’
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III shel input file $
$ -------------------------------------------------------------------- $
$ Define input to be used with F/T/C flag for use or nor or coupling and
$ T/F flag for definition as a homogeneous field.
$
$ Include ice and mud parameters only if IC1/2/3/4 used :
F F Ice parameter 1
G.50 WAVEWATCH III version 6.07 DRAFT
F F Ice parameter 2
F F Ice parameter 3
F F Ice parameter 4
F F Ice parameter 5
F F Mud parameter 1
F F Mud parameter 2
F F Mud parameter 3
F F Water levels
F F Currents
T T Winds
T Ice concentrations
F Assimilation data : Mean parameters
F Assimilation data : 1-D spectra
F Assimilation data : 2-D spectra
$
$ Time frame of calculations ----------------------------------------- $
$ - Starting time in yyyymmdd hhmmss format.
$ - Ending time in yyyymmdd hhmmss format.
$
19680606 000000
19680606 060000
$
$ Define output data ------------------------------------------------- $
$
$ Define output server mode. This is used only in the parallel version
$ of the model. To keep the input file consistent, it is always needed.
$ IOSTYP = 1 is generally recommended. IOSTYP > 2 may be more efficient
$ for massively parallel computations. Only IOSTYP = 0 requires a true
$ parallel file system like GPFS.
$
$ IOSTYP = 0 : No data server processes, direct access output from
$ each process (requires true parallel file system).
$ 1 : No data server process. All output for each type
$ performed by process that performs computations too.
$ 2 : Last process is reserved for all output, and does no
$ computing.
$ 3 : Multiple dedicated output processes.
$
2
$
$ Five output types are available (see below). All output types share
$ a similar format for the first input line:
$ - first time in yyyymmdd hhmmss format, output interval (s), and
$ last time in yyyymmdd hhmmss format (all integers).
$ Output is disabled by setting the output interval to 0.
DRAFT WAVEWATCH III version 6.07 G.51
$
$ ------------------------------------------------------------------- $
$
$ Type 1 : Fields of mean wave parameters
$ Standard line and line with logical flags to activate output
$ fields as defined in section 2.4 of the manual. The logical
$ flags are not supplied if no output is requested. The logical
$ flags can be placed on multiple consecutive lines. However,
$ the total number and order of the logical flags is fixed.
$ The raw data file is out_grd.ww3,
$ see w3iogo.ftn for additional doc.
$
19680606 000000 3600 19680608 000000
$----------------------------------------------------------------
$ Output request flags identifying fields.
$
$ The table below provides a full definition of field output parameters
$ as well as flags indicating if they are available in different field
$ output output file types (ASCII, grib, NetCDF).
$ Further definitions are found in section 2.4 of the manual.
$
$ Selection of field outputs may be made in two ways:
$ F/T flags: first flag is set to F, requests made per group (1st line
$ followed by parameter flags (total of 10 groups).
$ Namelists: first line is set to N, next line contains parameter
$ symbol as per table below.
$
$ Example of F/T flag use is given in this sample ww3_shel.inp, below.
$ For namelist usage, see the sample ww3_ounf.inp for an example.
$
$ ----------------------------------------
$ Output field parameter definitions table
$ ----------------------------------------
$
$ All parameters listed below are available in output file of the types
$ ASCII and NetCDF. If selected output file types are grads or grib,
$ some parameters may not be available. The first two columns in the
$ table below identify such cases by flags, cols 1 (GRB) and 2 (GXO)
$ refer to grib (ww3_grib) and grads (gx_outf), respectively.
$
$ Columns 3 and 4 provide group and parameter numbers per group.
$ Columns 5, 6 and 7 provide:
$ 5 - code name (internal)
$ 6 - output tags (names used is ASCII file extensions, NetCDF
$ variable names and namelist-based selection (see ww3_ounf.inp)
G.52 WAVEWATCH III version 6.07 DRAFT
$ DPT CUR WND AST WLV ICE IBG D50 IC1 IC5
T T T T T F F F F F
$ (2) Standard mean wave Parameters
T
$ HS LM T02 T0M1 T01 FP DIR SPR DP
T T T T T T T T T
$ (3) Frequency-dependent parameters
T
$ EF TH1M STH1M TH2M STH2M WN
T T T F F F
$ (4) Spectral Partition Parameters
T
$ PHS PTP PLP PDIR PSPR PNR PDP PQP PPE PGW PSW PTM10 PT01 PT02 PEP PWS
T T T T T T T T T T T T T T T T
$ (5) Atmosphere-waves layer
T
$ UST CHA CGE FAW TAW TWA WCC WCF WCH WCM FWS
T T T T T T T T T T T
$ (6) Wave-Ocean layer
T
$ SXY TWO BHD FOC TUS USS P2S USF P2L TWI FIC USP
T T T T T T T F F F F T
$ (7) Wave-bottom layer
T
$ ABR UBR BED FBB TBB
T T T T T
$ (8) Spectrum parameters
T
$ MSS MSC WL02 AXT AYT AXY
T T T T T T
$ (9) Numerical diagnostics
T
$ DTD FC CFX CFD CFK
T T T T T
$ (10) User defined (NOEXTR flags needed)
F
$ U1 U2
$ T T
$
$----------------------------------------------------------------
$
$ Type 2 : Point output
$ Standard line and a number of lines identifying the
$ longitude, latitude and name (C*10) of output points.
$ The list is closed by defining a point with the name
G.56 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
! WAVEWATCH III - ww3_shel.nml - single-grid model !
! -------------------------------------------------------------------- !
! -------------------------------------------------------------------- !
! Define top-level model parameters via DOMAIN_NML namelist
!
! * IOSTYP defines the output server mode for parallel implementation.
! 0 : No data server processes, direct access output from
! each process (requires true parallel file system).
! 1 : No data server process. All output for each type
! performed by process that performs computations too.
! 2 : Last process is reserved for all output, and does no
! computing.
! 3 : Multiple dedicated output processes.
!
! * namelist must be terminated with /
! * definitions & defaults:
! DOMAIN%IOSTYP = 1 ! Output server type
! DOMAIN%START = ’19680606 000000’ ! Start date for the entire mod
! DOMAIN%STOP = ’19680607 000000’ ! Stop date for the entire mode
! -------------------------------------------------------------------- !
&DOMAIN_NML
DOMAIN%START = ’20100101 120000’
DOMAIN%STOP = ’20101231 000000’
/
! -------------------------------------------------------------------- !
! Define each forcing via the INPUT_NML namelist
!
! * The FORCING flag can be : ’F’ for "no forcing"
! ’T’ for "external forcing file"
! ’H’ for "homogeneous forcing input"
! ’C’ for "coupled forcing field"
!
! * homogeneous forcing is not available for ICE_CONC
!
DRAFT WAVEWATCH III version 6.07 G.59
! -------------------------------------------------------------------- !
! Define the output types point parameters via OUTPUT_TYPE_NML namelist
!
! * the point file is a space separated values per line : lon lat ’name’
!
! * the full list of field names is :
! All parameters listed below are available in output file of the types
! ASCII and NetCDF. If selected output file types are grads or grib,
! some parameters may not be available. The first two columns in the
! table below identify such cases by flags, cols 1 (GRB) and 2 (GXO)
! refer to grib (ww3_grib) and grads (gx_outf), respectively.
!
! Columns 3 and 4 provide group and parameter numbers per group.
! Columns 5, 6 and 7 provide:
! 5 - code name (internal)
G.60 WAVEWATCH III version 6.07 DRAFT
!
! * coupling fields exchanged list is :
! - Sent fields by ww3:
! - Ocean model : T0M1 OCHA OHS DIR BHD TWO UBR FOC TAW TUS USS LM
! - Atmospheric model : ACHA AHS TP (or FP) FWS
! - Ice model : IC5 TWI
! - Received fields by ww3:
! - Ocean model : SSH CUR
! - Atmospheric model : WND
! - Ice model : ICE IC1 IC5
!
! * namelist must be terminated with /
! * definitions & defaults:
! TYPE%FIELD%LIST = ’unset’
! TYPE%POINT%FILE = ’points.list’
! TYPE%TRACK%FORMAT = T
! TYPE%PARTITION%X0 = 0
! TYPE%PARTITION%XN = 0
! TYPE%PARTITION%NX = 0
! TYPE%PARTITION%Y0 = 0
! TYPE%PARTITION%YN = 0
! TYPE%PARTITION%NY = 0
! TYPE%PARTITION%FORMAT = T
! TYPE%COUPLING%SENT = ’unset’
! TYPE%COUPLING%RECEIVED = ’unset’
!
! -------------------------------------------------------------------- !
&OUTPUT_TYPE_NML
TYPE%FIELD%LIST = ’HS DIR SPR WND ICE CUR LEV’
/
! -------------------------------------------------------------------- !
! Define output dates via OUTPUT_DATE_NML namelist
!
! * start and stop times are with format ’yyyymmdd hhmmss’
! * if time stride is equal ’0’, then output is disabled
! * time stride is given in seconds
!
! * namelist must be terminated with /
! * definitions & defaults:
! DATE%FIELD%START = ’19680606 000000’
! DATE%FIELD%STRIDE = ’0’
! DATE%FIELD%STOP = ’19680607 000000’
G.64 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
! Define homogeneous input via HOMOG_COUNT_NML and HOMOG_INPUT_NML namel
!
! * the number of each homogeneous input is defined by HOMOG_COUNT
! * the total number of homogeneous input is automatically calculated
! * the homogeneous input must start from index 1 to N
! * if VALUE1 is equal 0, then the homogeneous input is desactivated
! * NAME can be IC1, IC2, IC3, IC4, IC5, MDN, MTH, MVS, LEV, CUR, WND, I
! * each homogeneous input is defined over a maximum of 3 values detaill
! - IC1 is defined by thickness
DRAFT WAVEWATCH III version 6.07 G.65
&HOMOG_INPUT_NML
HOMOG_INPUT(1)%NAME = ’WND’
HOMOG_INPUT(1)%DATE =’20100610 000000’
HOMOG_INPUT(1)%VALUE1 = 5.
HOMOG_INPUT(1)%VALUE2 = 90.
G.66 WAVEWATCH III version 6.07 DRAFT
HOMOG_INPUT(2)%NAME = ’WND’
HOMOG_INPUT(2)%DATE = ’20100610 060000’
HOMOG_INPUT(2)%VALUE1 = 25.
HOMOG_INPUT(2)%VALUE2 = 120.
HOMOG_INPUT(3)%NAME = ’LEV’
HOMOG_INPUT(3)%DATE = ’20100610 060000’
HOMOG_INPUT(3)%VALUE1 = 5.
/
! -------------------------------------------------------------------- !
! WAVEWATCH III - end of namelist !
! -------------------------------------------------------------------- !
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Grid splitting input file $
$ -------------------------------------------------------------------- $
$ Grid identifier (file extension for mod_def file of grid to be split)
$
’glo_2d’
$
$ Number of sub-grids to be created, maximum number of iterations,
DRAFT WAVEWATCH III version 6.07 G.67
$ target grid point count std in percent. user defined halo extension
$ (default should be 2, used because of inconsistencies between halo
$ computation in this code and in the main wave model code). Increase
$ the latter number if ww3_multi fails on halo overlaps between
$ equally ranked grids.
$
12 250 0.75 2
$
$ IDLA, IDFM, scale and RFORM for bottom, obstruction and mask files.
$ Note that the third file is integers. Suggest IDFM = 1 and IDLA = 1
$
3 2 1.0 ’(12F11.3)’
3 2 1.0 ’(26F5.2)’
3 2 1 ’(66I2)’
$
$ lowest and highest fraction of communicator to be used for grid.
$ and flag for running grids side-by-side inside fraction
$ F: for test purposes only, defeats most reasons for splitting
$ T: normal operations
$
0.4 1. F
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III multi-grid model driver input file $
$ -------------------------------------------------------------------- $
$
$ *******************************************************************
G.68 WAVEWATCH III version 6.07 DRAFT
$ *** NOTE : This is an example file from the mww3_test_05 script ***
$ *** Unlike other input example files this one CANNOT ***
$ *** be run as an independent interactive run ***
$ *******************************************************************
$
$ The first input line sets up the general multi-grid model definition
$ by defining the following six parameters :
$
$ 1) Number of wave model grids. ( NRGRD )
$ 2) Number of grids defining input fields. ( NRINP )
$ 3) Flag for using unified point output file. ( UNIPTS )
$ 4) Output server type as in ww3_shel.inp
$ 5) Flag for dedicated process for unified point output.
$ 6) Flag for grids sharing dedicated output processes.
$
3 1 T 1 T T
$
$ -------------------------------------------------------------------- $
$ If there are input data grids defined ( NRINP > 0 ), then these
$ grids are defined first. These grids are defined as if they are wave
$ model grids using the file mod_def.MODID. Each grid is defined on
$ a separate input line with MODID, and eight input flags identifying
$ the presence of 1) water levels 2) currents 3) winds 4) ice and
$ 5-7) assimilation data as in the file ww3_shel.inp.
$
’input’ F F T F F F F
$
$ In this example, we need the file mod_def.input to define the grid
$ and the file wind.input to provide the corresponding wind data.
$
$ -------------------------------------------------------------------- $
$ If all point output is gathered in a unified point output file
$ ( UNIPTS = .TRUE. ), then the output spectral grid needs to be
$ defined. This information is taken from a wave model grid, and only
$ the spectral definitions from this grid are relevant. Define the
$ name of this grid here
$
’points’
$
$ In this example, we need the file mod_def.points to define the
$ spectral output grid, and the point output will be written to the
$ file out_pnt.points
$
$ -------------------------------------------------------------------- $
$ Now each actual wave model grid is defined using 13 parameters to be
DRAFT WAVEWATCH III version 6.07 G.69
$ read from a single line in the file. Each line contains the following
$ parameters
$ 1) Define the grid with the extension of the mod_def file.
$ 2-8) Define the inputs used by the grids with 8 keywords
$ corresponding to the 8 flags defining the input in the
$ input files. Valid keywords are:
$ ’no’ : This input is not used.
$ ’native’ : This grid has its own input files, e.g. grid
$ grdX (mod_def.grdX) uses ice.grdX.
$ ’MODID’ : Take input from the grid identified by
$ MODID. In the example below, all grids get
$ their wind from wind.input (mod_def.input).
$ 9) Rank number of grid (internally sorted and reassigned).
$ 10) Group number (internally reassigned so that different
$ ranks result in different group numbers.
$ 11-12) Define fraction of communicator (processes) used for this
$ grid. ’0.00 1.00’ is appropriate in many cases. Partial
$ fractions, i.e. settings other than ’0.00 1.00’, are
$ intended for equal rank grids, to improve scaling. The
$ commented example provided here (partial fractions with
$ non-equal rank) is not generally recommended.
$ 13) Flag identifying dumping of boundary data used by this
$ grid. If true, the file nest.MODID is generated.
$
’grd1’ ’no’ ’no’ ’input’ ’no’ ’no’ ’no’ ’no’ 1 1 0.00 1.00 F
’grd2’ ’no’ ’no’ ’input’ ’no’ ’no’ ’no’ ’no’ 2 1 0.00 1.00 F
’grd3’ ’no’ ’no’ ’input’ ’no’ ’no’ ’no’ ’no’ 3 1 0.00 1.00 F
$ ’grd1’ ’no’ ’no’ ’input’ ’no’ ’no’ ’no’ ’no’ 1 1 0.00 0.50 F
$ ’grd2’ ’no’ ’no’ ’input’ ’no’ ’no’ ’no’ ’no’ 2 1 0.25 0.75 F
$ ’grd3’ ’no’ ’no’ ’input’ ’no’ ’no’ ’no’ ’no’ 3 1 0.50 1.00 F
$
$ In this example three grids are used requiring the files
$ mod_def.grdN. All files get their winds from the grid ’input’
$ defined by mod_def.input, and no other inputs are used. In the lines
$ that are commented out, each grid runs on a part of the pool of
$ processes assigned to the computation.
$
$ Limitations relevant to irregular (curvilinear) grids:
$ 1) Equal rank is not supported when one or more is an irregular
$ grid. Use non-equal rank instead. (see wmgridmd.ftn)
$ 2) Non-native input grids: feature is not supported when either
$ an input grid or computational grids is irregular.
$ (see wmupdtmd.ftn)
$ 3) Irregular grids with unified point output: This is supported
$ but the feature has not been verified for accuracy.
G.70 WAVEWATCH III version 6.07 DRAFT
$ (see wmiopomd.ftn)
$
$ -------------------------------------------------------------------- $
$ Starting and ending times for the entire model run
$
19680606 000000 19680607 000000
$
$ -------------------------------------------------------------------- $
$ Specific multi-scale model settings (single line).
$ Flag for masking computation in two-way nesting (except at
$ output times).
$ Flag for masking at printout time.
$
F F
$
$ -------------------------------------------------------------------- $
$ Conventional output requests as in ww3_shel.inp. Will be applied
$ to all grids.
$
19680606 000000 3600 19680607 000000
$----------------------------------------------------------------
$
$ Output request flags identifying fields as in ww3_shel.inp. See that
$ file for a full documentation of field output options. Namelist type
$ selection is used here (for alternative F/T flags, see ww3_shel.inp).
$
N
DPT CUR WND HS T0M1 FP DP PHS PTP PDIR
$
$----------------------------------------------------------------
$
$ NOTE: If UNIPTS = .TRUE. then the point output needs to be defined
$ here and cannot be redefined below.
$
19680606 000000 3600 19680608 000000
0.E3 0.E3 ’eye ’
0.E3 50.E3 ’mN ’
-35.E3 35.E3 ’mNW ’
-50.E3 0.E3 ’mW ’
-35.E3 -35.E3 ’mSW ’
0.E3 -50.E3 ’mS ’
35.E3 -35.E3 ’mSE ’
50.E3 0.E3 ’mE ’
35.E3 35.E3 ’mNE ’
0.E3 100.E3 ’aN ’
DRAFT WAVEWATCH III version 6.07 G.71
! -------------------------------------------------------------------- !
! WAVEWATCH III - ww3_multi.nml - multi-grid model !
! -------------------------------------------------------------------- !
! -------------------------------------------------------------------- !
! Define top-level model parameters via DOMAIN_NML namelist
!
! * IOSTYP defines the output server mode for parallel implementation.
! 0 : No data server processes, direct access output from
! each process (requires true parallel file system).
! 1 : No data server process. All output for each type
! performed by process that performs computations too.
DRAFT WAVEWATCH III version 6.07 G.73
! -------------------------------------------------------------------- !
! Define each input grid via the INPUT_GRID_NML namelist
!
! * index I must match indexes from 1 to DOMAIN%NRINP
! * INPUT(I)%NAME must be set for each active input grid I
!
! * namelist must be terminated with /
! * definitions & defaults:
! INPUT(I)%NAME = ’unset’
! INPUT(I)%FORCING%WATER_LEVELS = F
! INPUT(I)%FORCING%CURRENTS = F
! INPUT(I)%FORCING%WINDS = F
! INPUT(I)%FORCING%ICE_CONC = F
! INPUT(I)%FORCING%ICE_PARAM1 = F
! INPUT(I)%FORCING%ICE_PARAM2 = F
! INPUT(I)%FORCING%ICE_PARAM3 = F
! INPUT(I)%FORCING%ICE_PARAM4 = F
! INPUT(I)%FORCING%ICE_PARAM5 = F
G.74 WAVEWATCH III version 6.07 DRAFT
! INPUT(I)%FORCING%MUD_DENSITY = F
! INPUT(I)%FORCING%MUD_THICKNESS = F
! INPUT(I)%FORCING%MUD_VISCOSITY = F
! INPUT(I)%ASSIM%MEAN = F
! INPUT(I)%ASSIM%SPEC1D = F
! INPUT(I)%ASSIM%SPEC2D = F
! -------------------------------------------------------------------- !
&INPUT_GRID_NML
INPUT(1)%NAME = ’atm’
INPUT(1)%FORCING%WINDS = T
INPUT(1)%FORCING%MUD_VISCOSITY = T
INPUT(1)%ASSIM%MEAN = T
INPUT(2)%NAME = ’ocn’
INPUT(2)%FORCING%WATER_LEVELS = T
INPUT(2)%FORCING%CURRENTS = T
INPUT(3)%NAME = ’ice’
INPUT(3)%FORCING%ICE_CONC = T
INPUT(3)%FORCING%ICE_PARAM1 = T
INPUT(3)%FORCING%ICE_PARAM2 = T
! -------------------------------------------------------------------- !
! Define each model grid via the MODEL_GRID_NML namelist
!
! * index I must match indexes from 1 to DOMAIN%NRGRD
! * MODEL(I)%NAME must be set for each active model grid I
! * FORCING can be set as :
! - ’no’ : This input is not used.
! - ’native’ : This grid has its own input files, e.g. grid
! grdX (mod_def.grdX) uses ice.grdX.
! - ’INPUT%NAME’ : Take input from the grid identified by
! INPUT%NAME.
! * RESOURCE%RANK_ID : Rank number of grid (internally sorted and reassi
! * RESOURCE%GROUP_ID : Group number (internally reassigned so that diff
! ranks result in different group nu
! * RESOURCE%COMM_FRAC : Fraction of communicator (processes) used for t
! * RESOURCE%BOUND_FLAG : Flag identifying dumping of boundary data used
! grid. If true, the file nest.MODID is generate
!
DRAFT WAVEWATCH III version 6.07 G.75
MODEL(1)%NAME = ’grd1’
MODEL(1)%FORCING%WINDS = ’atm’
MODEL(1)%FORCING%CURRENTS = ’ocn’
MODEL(1)%FORCING%WATER_LEVELS = ’ocn’
MODEL(2)%NAME = ’grd2’
G.76 WAVEWATCH III version 6.07 DRAFT
MODEL(2)%FORCING%WINDS = ’atm’
MODEL(2)%FORCING%CURRENTS = ’ocn’
MODEL(2)%FORCING%WATER_LEVELS = ’ocn’
MODEL(2)%FORCING%ICE_CONC = ’ice’
MODEL(3)%NAME = ’grd3’
MODEL(3)%FORCING%WINDS = ’atm’
MODEL(3)%FORCING%CURRENTS = ’ocn’
MODEL(3)%FORCING%WATER_LEVELS = ’ocn’
MODEL(3)%FORCING%ICE_CONC = ’ice’
MODEL(4)%NAME = ’grd4’
MODEL(5)%NAME = ’grd5’
MODEL(5)%RESOURCE%BOUND_FLAG = T
! -------------------------------------------------------------------- !
! Define the output types point parameters via OUTPUT_TYPE_NML namelist
!
! * index I must match indexes from 1 to DOMAIN%NRGRD
!
! * ALLTYPE will apply the output types for all the model grids
!
! * ITYPE(I) will apply the output types for the model grid number I
!
! * need DOMAIN%UNIPTS equal true to use a unified point output file
!
! * the point file is a space separated values per line : lon lat ’name’
!
! * the detailed list of field names is given in model/nml/ww3_shel.nml
! DPT CUR WND AST WLV ICE IBG D50 IC1 IC5
! HS LM T02 T0M1 T01 FP DIR SPR DP HIG
DRAFT WAVEWATCH III version 6.07 G.77
! -------------------------------------------------------------------- !
! Define output dates via OUTPUT_DATE_NML namelist
!
! * index I must match indexes from 1 to DOMAIN%NRGRD
! * ALLDATE will apply the output dates for all the model grids
! * IDATE(I) will apply the output dates for the model grid number i
! * start and stop times are with format ’yyyymmdd hhmmss’
! * if time stride is equal ’0’, then output is disabled
! * time stride is given in seconds
G.78 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
DRAFT WAVEWATCH III version 6.07 G.79
&HOMOG_INPUT_NML
HOMOG_INPUT(1)%NAME = ’MOV’
HOMOG_INPUT(1)%DATE =’20100610 000000’
HOMOG_INPUT(1)%VALUE1 = 5.
HOMOG_INPUT(1)%VALUE2 = 90.
/
! -------------------------------------------------------------------- !
! WAVEWATCH III - end of namelist !
! -------------------------------------------------------------------- !
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Grid integration input file $
$ -------------------------------------------------------------------- $
$ Time, time increment and number of outputs
$
19680606 060000 10800. 1
$
$ Total number of grids (NGR). The code assumes that the first NGR-1
$ grids are the input grids and the last grid is the target grid in
$ which the output fields are to be interpolated. It also assumes
$ that all the grids have the same output fields switched on
$
$ NGR
$
4
$
$ Grid Ids
$
’grd1’
’grd2’
’grd3’
’grd4’
$
$ In this example grd1, grd2 and grd3 are the input grids. For each
$ of these grids a mod_def.grdN and an out_grd.grdN are available.
$ The target grid is grd4, and a mod_def.grd4 is also made available.
$ Upon execution of the code an out_grd.grd4 is generated via
$ interpolation of output fields from the various out_grd.grdN
$ (N varying from 1 to 3) files.
$
$ Choice of no extrapolation [0] or to extrapolate [1] with wet points [
0
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Grid output post-processing $
$--------------------------------------------------------------------- $
$ Time, time increment and number of outputs
$
19680606 060000 10800. 1
$
$ Output request flags identifying fields as in ww3_shel.inp. See this
$ file for a full documentation of the field output options.
$
N
DPT HS FP T01 WL02 ALPXT ALPYT ALPXY
$
$ Output type ITYPE [0,1,2,3], and IPART [ 0,...,NOSWLL ]
$
1 0
$ -------------------------------------------------------------------- $
$ ITYPE = 0, inventory of file.
$ No additional input, the above time range is ignored.
$
$ -------------------------------------------------------------------- $
$ ITYPE = 1, print plots.
$ IX,IY range and stride, flag for automatic scaling to
$ maximum value (otherwise fixed scaling),
$ vector component flag (dummy for scalar quantities),
$
1 12 1 1 12 1 F T
$
$ -------------------------------------------------------------------- $
$ ITYPE = 2, field statistics.
$ IX,IY range.
$
G.82 WAVEWATCH III version 6.07 DRAFT
$ 1 12 1 12
$
$ -------------------------------------------------------------------- $
$ ITYPE = 3, transfer files.
$ IX, IY range, IDLA and IDFM as in ww3_grid.inp.
$ The additional option IDLA=5 gives longitude, latitude
$ and parameter value(s) per record (defined points only),
$
$ 2 11 2 11 1 2
$
$ For each field and time a new file is generated with the file name
$ ww3.yymmddhh.xxx, where yymmddhh is a conventional time indicator,
$ and xxx is a field identifier. The first record of the file contains
$ a file ID (C*13), the time in yyyymmdd hhmmss format, the lowest,
$ highest and number of longitudes (2R,I), id. latitudes, the file
$ extension name (C*$), a scale factor (R), a unit identifier (C*10),
$ IDLA, IDFM, a format (C*11) and a number identifying undefined or
$ missing values (land, ice, etc.). The field follows as defined by
$ IDFM and IDLA, defined as in the grid preprocessor. IDLA=5 is added
$ and gives a set of records containing the longitude, latitude and
$ parameter value. Note that the actual data is written as an integers.
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Grid output post-processing $
$--------------------------------------------------------------------- $
$ First output time (yyyymmdd hhmmss), increment of output (s),
DRAFT WAVEWATCH III version 6.07 G.83
! -------------------------------------------------------------------- !
! WAVEWATCH III - ww3_ounf.nml - Grid output post-processing !
! -------------------------------------------------------------------- !
! -------------------------------------------------------------------- !
! Define the output fields to postprocess via FIELD_NML namelist
!
! * the detailed list of field names FIELD%LIST is given in ww3_shel.nml
! DPT CUR WND AST WLV ICE IBG D50 IC1 IC5
! HS LM T02 T0M1 T01 FP DIR SPR DP HIG
! EF TH1M STH1M TH2M STH2M WN
! PHS PTP PLP PDIR PSPR PWS PDP PQP PPE PGW PSW PTM10 PT01 PT02 PEP TWS
! UST CHA CGE FAW TAW TWA WCC WCF WCH WCM FWS
! SXY TWO BHD FOC TUS USS P2S USF P2L TWI FIC
! ABR UBR BED FBB TBB
! MSS MSC WL02 AXT AYT AXY
! DTD FC CFX CFD CFK
! U1 U2
!
! * namelist must be terminated with /
! * definitions & defaults:
! FIELD%TIMESTART = ’19000101 000000’ ! Stop date for th
! FIELD%TIMESTRIDE = ’0’ ! Time stride for
! FIELD%TIMECOUNT = ’1000000000’ ! Number of time s
! FIELD%TIMESPLIT = 6 ! [4(yearly),6(mon
! FIELD%LIST = ’unset’ ! List of output f
! FIELD%PARTITION = ’0 1 2 3’ ! List of wave par
! FIELD%SAMEFILE = T ! All the variable
! FIELD%TYPE = 3 ! [2 = SHORT, 3 =
! -------------------------------------------------------------------- !
&FIELD_NML
FIELD%TIMESTART = ’20100101 000000’
FIELD%TIMESTRIDE = ’3600’
FIELD%LIST = ’DPT WND HS FP DIR SPR MSS’
FIELD%SAMEFILE = F
FIELD%TYPE = 4
/
G.86 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
! Define the content of the output file via FILE_NML namelist
!
! * namelist must be terminated with /
! * definitions & defaults:
! FILE%PREFIX = ’ww3.’ ! Prefix for output file na
! FILE%NETCDF = 3 ! Netcdf version [3|4]
! FILE%IX0 = 1 ! First X-axis or node inde
! FILE%IXN = 1000000000 ! Last X-axis or node index
! FILE%IY0 = 1 ! First Y-axis index
! FILE%IYN = 1000000000 ! Last Y-axis index
! -------------------------------------------------------------------- !
&FILE_NML
FILE%NETCDF = 4
/
! -------------------------------------------------------------------- !
! Define the content of the output file via SMC_NML namelist
!
! * For SMC grids, IX0, IXN, IY0 and IYN from FILE_NML are not used.
! Two types of output are available:
! * TYPE=1: Flat 1D "seapoint" array of grid cells.
! * TYPE=2: Re-gridded regular grid with cell sizes being an integer
! * multiple of the smallest SMC grid cells size.
!
! * Note that the first/last longitudes and latitudes will be adjusted
! to snap to the underlying SMC grid edges. CELFAC is only used for
! type 2 output and defines the output cell sizes as an integer
! multiple of the smallest SMC Grid cell size. CELFAC should be a
! power of 2, e.g: 1,2,4,8,16, etc...
!
! * namelist must be terminated with /
! * definitions & defaults:
! SMC%TYPE = 1 ! SMC Grid type (1 or 2)
! SMC%SXO = -999.9 ! First longitude
! SMC%EXO = -999.9 ! Last longitude
! SMC%SYO = -999.9 ! First latitude
! SMC%EYO = -999.9 ! Last latitude
! SMC%CELFAC = 1 ! Cell size factor (SMCTYPE=2 o
! SMC%NOVAL = UNDEF ! Fill value for wet cells with
! -------------------------------------------------------------------- !
&SMC_NML
/
DRAFT WAVEWATCH III version 6.07 G.87
! -------------------------------------------------------------------- !
! WAVEWATCH III - end of namelist !
! -------------------------------------------------------------------- !
G.14 gx outf
G.14.1 gx outf.inp
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Grid output post-processing ( GrADS ) $
$--------------------------------------------------------------------- $
$ Time, time increment and number of outputs.
$
19680606 000000 3600. 25
$
$ Output request flags identifying fields as in ww3_shel.inp. See that
$ file for a full documentation of field output options. Namelist type
$ selection is used here (for alternative F/T flags, see ww3_shel.inp).
$
N
DPT HS FP T01
$
$----------------------------------------------------------------
$ Grid range in discrete counters IXmin,max, IYmin,max, flags for
$ including sea and boundary points in map
$
0 999 0 999 T T
$
$ NOTE : In the Cartesian grid version of the code, X and Y are
$ converted to longitude and latitude assuming that 1 degree
$ equals 100 km if the maximum of X or Y is larger than 1000km.
$ For maxima between 100 and 1000km 1 degree is assumed to be
$ 10km etc. Adjust labels in GrADS scripts accordingly.
G.88 WAVEWATCH III version 6.07 DRAFT
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Grid output post-processing ( GRIB ) $
$--------------------------------------------------------------------- $
$ Time, time increment and number of outputs.
$
19680606 000000 3600. 3
$
$ Output request flags identifying fields as in ww3_shel.inp. See that
$ file for a full documentation of field output options. Namelist type
$ selection is used here (for alternative F/T flags, see ww3_shel.inp).
$
N
DPT HS FP T01
$
$ Additional info needed for grib file
$ Forecast time, center ID, generating process ID, grid definition,
$ GDS/BMS flag and grid definition template number GDTN (0 = regular;
$ 30 = Lambert Conformal, only these two types available now)
$
19680606 010000 7 10 255 192 0
$
$ if GDTN is 30 (lambert conformal) read next line with proj parms
$ LATAN1, LONV, DSX, DSY, SCNMOD, LATIN1, LATIN2, LATSP, LONSP
$ Example for the GLW grid at NCEP
$ 25 265 2.539703 2.539703 64 25 25 -90 0
DRAFT WAVEWATCH III version 6.07 G.89
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Point output post-processing $
$--------------------------------------------------------------------- $
$ First output time (yyyymmdd hhmmss), increment of output (s),
$ and number of output times.
$
19680606 060000 3600. 7
$
$ Points requested --------------------------------------------------- $
$ Define points for which output is to be generated.
$
$ 1
$ 2
3
$ 4
$
$ mandatory end of list
-1
$
$ Output type ITYPE [0,1,2,3,4]
$
1
$ -------------------------------------------------------------------- $
$ ITYPE = 0, inventory of file.
G.90 WAVEWATCH III version 6.07 DRAFT
$ -------------------------------------------------------------------- $
$ ITYPE = 4, Spectral partitions and bulletins
$ - Sub-type OTYPE : 1 : Spectral partitions
$ 2 : Bulletins ASCII format
$ 3 : Bulletins CSV format
$ 4 : Bulletins ASCII and CSV formats
$ - Unit number for transfer file, also used in table file
$ name.
$ - Reference date/time in YYYYMMDD HHMMSS format, used for
$ including in bulletin legend, and computing forecast time
$ in CSV type output (if the first field is negative, the
$ reference time becomes the first simulation time slice)
$ - Three-character code indicating time zone (UTC, EST etc)
$
$ 4 2 19680606 060000 ’UTC’
$
$ The transfer file contains records with the following contents.
$
$ - File ID in quotes, number of frequencies, directions and points.
$ grid name in quotes (for unformatted file C*21,3I,C*30).
$ - Bin frequencies in Hz for all bins.
$ - Bin directions in radians for all bins (Oceanographic conv.).
$ -+
$ - Time in yyyymmdd hhmmss format | loop
$ -+ |
$ - Point name (C*10), lat, lon, d, U10 and | loop | over
$ direction, current speed and direction | over |
$ - E(f,theta) | points | times
$ -+ -+
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III NETCDF Point output post-processing $
$--------------------------------------------------------------------- $
$ First output time (yyyymmdd hhmmss), increment of output (s),
$ and number of output times.
$
19850101 000000 3600. 1000
$
$ Points requested --------------------------------------------------- $
$
$ Define points index for which output is to be generated.
$ If no one defined, all points are selected
$ One index number per line, negative number identifies end of list.
$ 1
$ 2
$ mandatory end of list
-1
$
$--------------------------------------------------------------------- $
$ file prefix
$ number of characters in date [4(yearly),6(monthly),8(daily),10(hourly)
$ netCDF version [3,4]
$ points in same file [T] or not [F]
$ and max number of points to be processed in one pas
$ output type ITYPE [0,1,2,3]
$ flag for global attributes WW3 [0] or variable version [1-2-3-4]
$ flag for dimensions order time,station [T] or station,time [F]
$
ww3.
6
4
T 150
1
0
T
$
$ -------------------------------------------------------------------- $
G.94 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
! WAVEWATCH III - ww3_ounp.nml - Point output post-processing !
! -------------------------------------------------------------------- !
! -------------------------------------------------------------------- !
! Define the output fields to postprocess via POINT_NML namelist
!
!
! * namelist must be terminated with /
! * definitions & defaults:
! POINT%TIMESTART = ’19000101 000000’ ! Stop date for th
! POINT%TIMESTRIDE = ’0’ ! Time stride for
! POINT%TIMECOUNT = ’1000000000’ ! Number of time s
! POINT%TIMESPLIT = 6 ! [4(yearly),6(mon
! POINT%LIST = ’all’ ! List of points i
! POINT%SAMEFILE = T ! All the points i
! POINT%BUFFER = 150 ! Number of points
! POINT%TYPE = 1 ! [0=inventory | 1
! POINT%DIMORDER = T ! [time,station=T
! -------------------------------------------------------------------- !
&POINT_NML
POINT%TIMESTART = ’20100101 000000’
POINT%TIMESTRIDE = ’3600’
/
! -------------------------------------------------------------------- !
! Define the content of the output file via FILE_NML namelist
!
! * namelist must be terminated with /
! * definitions & defaults:
! FILE%PREFIX = ’ww3.’ ! Prefix for output file na
! FILE%NETCDF = 3 ! Netcdf version [3|4]
! -------------------------------------------------------------------- !
&FILE_NML
FILE%NETCDF = 4
/
DRAFT WAVEWATCH III version 6.07 G.97
! -------------------------------------------------------------------- !
! Define the type 0, inventory of file
!
! * namelist must be terminated with /
! * definitions & defaults:
! No additional input, the above time range is ignored.
! -------------------------------------------------------------------- !
! -------------------------------------------------------------------- !
! Define the type 1, spectra via SPECTRA_NML namelist
!
! Table of 1-D spectra content :
! - time, station id, station name, longitude, latitude
! - frequency : unit Hz, center band frequency - linear log scale (XFR
! - ffp, f, th1m, sth1m, alpha : 1D spectral parameters
! - dpt, ust, wnd, wnddir : mean parameters
!
! Transfert file content :
! - time, station id, station name, longitude, latitude
! - frequency : unit Hz, center band frequency - linear log scale (XFR
! - frequency1 : unit Hz, lower band frequency
! - frequency2 : unit Hz, upper band frequency
! - direction : unit degree, convention to, origin East, trigonometric
! - efth(time,station,frequency,direction) : 2D spectral density
! - dpt, wnd, wnddir, cur, curdir : mean parameters
!
! Spectral partitioning content :
! - time, station id, station name, longitude, latitude
! - npart : number of partitions
! - hs, tp, lm, th1m, sth1m, ws, tm10, t01, t02 : partitioned paramete
! - dpt, wnd, wnddir, cur, curdir : mean parameters
!
!
! * namelist must be terminated with /
! * definitions & defaults:
! SPECTRA%OUTPUT = 3 ! 1: Print plots
! ! 2: Table of 1-D spectra
! ! 3: Transfer file
! ! 4: Spectral partitioning
! SPECTRA%SCALE_FAC = 1 ! Scale factor (-1=disabled)
! SPECTRA%OUTPUT_FAC = 0 ! Output factor (0=normalized
! -------------------------------------------------------------------- !
&SPECTRA_NML
G.98 WAVEWATCH III version 6.07 DRAFT
! -------------------------------------------------------------------- !
! Define the type 2, mean parameter via PARAM_NML namelist
!
! Forcing parameters content :
! - dpt, wnd, wnddir, cur, curdir
!
! Mean wave parameters content :
! - hs, lm, tr, th1p, sth1p, fp, th1m, sth1m
!
! Nondimensional parameters (U*) content :
! - ust, efst, fpst, cd, alpha
!
! Nondimensional parameters (U10) content :
! - wnd, efst, fpst, cd, alpha
!
! Validation table content :
! - wnd, wnddir, hs, hsst, cpu, cmu, ast
!
! WMO stantdard output content :
! - wnd, wnddir, hs, tp
!
! * namelist must be terminated with /
! * definitions & defaults:
! PARAM%OUTPUT = 4 ! 1: Forcing parameters
! ! 2: Mean wave parameters
! ! 3: Nondimensional pars. (U*
! ! 4: Nondimensional pars. (U1
! ! 5: Validation table
! ! 6: WMO standard output
! -------------------------------------------------------------------- !
&PARAM_NML
/
! -------------------------------------------------------------------- !
! Define the type 3, source terms via SOURCE_NML namelist
!
! Table of 1-D S(f) content :
! - time, station id, station name, longitude, latitude
! - frequency : unit Hz, center band frequency
! - ef(frequency) : 1D spectral density
! - Sin(frequency) : input source term
DRAFT WAVEWATCH III version 6.07 G.99
! 1 : Nondimens
! 2 : Nondimens
! 3-5: like 0-2
! SOURCE%SPECTRUM = T ! [T|F]
! SOURCE%INPUT = T ! [T|F]
! SOURCE%INTERACTIONS = T ! [T|F]
! SOURCE%DISSIPATION = T ! [T|F]
! SOURCE%BOTTOM = T ! [T|F]
! SOURCE%ICE = T ! [T|F]
! SOURCE%TOTAL = T ! [T|F]
! -------------------------------------------------------------------- !
&SOURCE_NML
/
! -------------------------------------------------------------------- !
! WAVEWATCH III - end of namelist !
! -------------------------------------------------------------------- !
G.18 gx outp
G.18.1 gx outp.inp
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Point output post-processing ( GrADS ) $
$--------------------------------------------------------------------- $
$ First output time (yyyymmdd hhmmss), increment of output (s),
$ and number of output times.
$
19680606 000000 3600. 7
$
$ Points requested --------------------------------------------------- $
$ Define points for which output is to be generated.
$
DRAFT WAVEWATCH III version 6.07 G.101
$ 1
$ 2
3
$ 4
$ mandatory end of list
-1
$
$ -------------------------------------------------------------------- $
$ Flags for plotting F, Sin, Snl, Sds, Sbt, Sice, Stot
$
T T T T T T T
$
$ NOTE : In the Cartesian grid version of the code, X and Y are
$ converted to km. Use source_xy.gs instead of source.gs
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Track output post-processing $
$--------------------------------------------------------------------- $
$ The number of wavenumbers and directions need to be read in as they
$ determine the record length of the data file ...
$
25 24
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
G.102 WAVEWATCH III version 6.07 DRAFT
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Track output post-processing $
$--------------------------------------------------------------------- $
$ First output time (yyyymmdd hhmmss), increment of output (s),
$ and number of output times.
$
19680606 000000 3600. 100000
$
$ Output type -------------------------------------------------------- $
$ netCDF version [3,4]
$ file prefix
$ number of characters in date [4(yearly),6(monthly),8(daily),10(hourly)
$
3
ww3.
6
$
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
! -------------------------------------------------------------------- !
! WAVEWATCH III - ww3_trnc.nml - Track output post-processing !
! -------------------------------------------------------------------- !
! -------------------------------------------------------------------- !
! Define the output fields to postprocess via TRACK_NML namelist
!
! * namelist must be terminated with /
! * definitions & defaults:
! TRACK%TIMESTART = ’19000101 000000’ ! Stop date for th
! TRACK%TIMESTRIDE = ’0’ ! Time stride for
! TRACK%TIMECOUNT = ’1000000000’ ! Number of time s
! TRACK%TIMESPLIT = 6 ! [4(yearly),6(mon
! -------------------------------------------------------------------- !
&TRACK_NML
TRACK%TIMESTART = ’20100101 000000’
TRACK%TIMESTRIDE = ’3600’
/
! -------------------------------------------------------------------- !
! Define the content of the output file via FILE_NML namelist
!
! * namelist must be terminated with /
! * definitions & defaults:
! FILE%PREFIX = ’ww3.’ ! Prefix for output file na
! FILE%NETCDF = 3 ! Netcdf version [3|4]
! -------------------------------------------------------------------- !
&FILE_NML
FILE%NETCDF = 4
/
! -------------------------------------------------------------------- !
! WAVEWATCH III - end of namelist !
! -------------------------------------------------------------------- !
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Spatial and temporal tracking of wave systems $
$--------------------------------------------------------------------- $
$ File name for raw partition data
$
’partition.ww3’
$
$ First time level (yyyymmdd hhmmss), time increment and number of
$ time levels to process.
$
20091122 000000 3600 4
$
$ Output type [1,3,4] [text file, netCDF version 3, netCDF version 4]
$ Note for NetCDF version 3 the TRKNC switch is needed and
$ for NetCDF version 4 the TRKNC and NC4 switches are needed.
1
$
$ Wave tracking domain. First line: longitude limits, longitude interval
$ (NX-1); second line: latitude limits, latitude intervals (NY-1).
$
100. 275. 175
0. 55. 55
$
$ Parameters of tracking algorithm ----------------------------------- $
$ - dirKnob (deg), perKnob (s), hsKnob (m), wetPts (frac),
$ dirTimeKnob (deg), tpTimeKnob (s)
$ - seedLat, seedLon
$
10. 1. 0.25 0.1 10. 1.
0. 0.
$
$ Output points ------------------------------------------------------ $
$ Longitude, latitude. End with 0. 0. string on last line.
$
222.54 40.75
199.42 19.02
205.94 23.55
DRAFT WAVEWATCH III version 6.07 G.105
290.35 31.98
347.60 48.70
337.00 21.00
197.94 24.32
206.10 23.56
0. 0.
$ -------------------------------------------------------------------- $
$ End of input file $
$ -------------------------------------------------------------------- $
$ -------------------------------------------------------------------- $
$ WAVEWATCH III Update Restart input file $
$ -------------------------------------------------------------------- $
$ $
$ Time of Assimilation ----------------------------------------------- $
$ - Starting time in yyyymmdd hhmmss format. $
$ $
$ This is the assimilation starting time and has to be the same with $
$ the time at the restart.ww3. $
$ $
19680607 120000 $
$ $
$ Choose algorithm to update restart file $
$ UPDN for the Nth approach $
$ The UPDN*, with N<2 the same correction factor is applied at all $
$ the grid points $
$ UPD0C:: ELIMINATED $
$ UPDOF:: Option 0F All the spectra are updated with a constant $
$ fac=HsAnl/HsBckg. $
G.106 WAVEWATCH III version 6.07 DRAFT