Xbeach Manual
Xbeach Manual
Manual
1200116/1002266
Report
Unesco-IHE Institute for Water Education, Deltares and Delft
University of Technology
J une 21, 2010 version 6
XBeach Model Description and
Manual
Dano Roelvink (P.I.), Ad Reniers, Ap van Dongeren, J aap van
Thiel de Vries, Jamie Lescinski, Robert McCall
Report
J une 21, 2010
Unesco-IHE Institute for Water Education, Deltares and Delft
University of Technology
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
i
Contents
1 Introduction...................................................................................................... 11
1.1 Motivation.............................................................................................11
1.2 Objective...............................................................................................12
1.3 Context..................................................................................................12
1.4 Model approach.....................................................................................12
2 Model formulations .......................................................................................... 21
2.1 Coordinate system..................................................................................21
2.2 Grid Setup..............................................................................................22
2.3 Wave action equation solver...................................................................23
2.3.1 Wave boundary conditions.........................................................26
2.4 Roller energy equation solver...............................................................213
2.5 Shallow water equations solver ............................................................215
2.5.1 Depth-averaged equations........................................................215
2.5.2 Quasi-3D equations (advanced option) ....................................216
2.5.3 Flow boundary conditions........................................................216
2.6 Sediment transport...............................................................................224
2.6.1 Wave asymmetry.....................................................................226
2.7 Morphological updating.......................................................................226
2.7.1 Avalanching............................................................................226
2.7.2 Morfac options........................................................................228
2.8 Multiple sediment fractions (advanced option).....................................228
2.9 Hard Layers (advanced option) ............................................................230
2.10 Groundwater flow (advanced option)...................................................230
2.10.1 Physical and numerical principles............................................230
2.10.2 Determining groundwater head................................................230
2.10.3 Momentum balance.................................................................231
2.10.4 Determining vertical flow........................................................231
2.10.5 Mass balance...........................................................................233
2.10.6 Groundwater boundary conditions...........................................235
2.11 Drifters (advanced option) ...................................................................236
2.12 Discharge boundaries (river input) (advanced option)...........................238
2.13 Dam break (advanced option)...............................................................240
3 Descripton of program structure...................................................................... 31
3.1 Single domain setup...............................................................................31
3.2 Implementation of parallel computing using MPI ...................................32
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
i i
4 Compiling the model......................................................................................... 41
5 Running the model............................................................................................ 51
5.1 Input file structure..................................................................................51
5.2 Physical processes..................................................................................51
5.3 Specifying grid and depth.......................................................................52
5.4 Physical constants..................................................................................53
5.5 Time management..................................................................................53
5.6 Wave input.............................................................................................54
5.6.1 Action balance...........................................................................54
5.6.2 Wave dissipation model .............................................................55
5.6.3 Roller model..............................................................................55
5.7 Wave boundary conditions.....................................................................56
5.7.1 User input..................................................................................56
5.7.2 Instat =0 to 3. wave boundary condition parameters for non-
spectral input.............................................................................57
5.7.3 Instat =4, spectral parameter input ............................................59
5.7.4 Instat =5, SWAN spectrum input.............................................511
5.7.5 Instat =6, Use of formatted variance density spectrum.............513
5.7.6 Instat =7, reusing existing boundary condition files..................515
5.7.7 Instat =8, boundary conditions for non-hydrostatic model .......515
5.7.8 Instat =9, no boundary condition.............................................515
5.7.9 Instat =40, sequence of stationary sea states............................515
5.7.10 Instat =41, sequence of sea states to make time-varying wave
groups.....................................................................................516
Notes.......................................................................................516
5.7.11 on generation of boundary conditions......................................516
5.8 Flow input............................................................................................518
5.9 Flow boundary conditions....................................................................518
5.9.1 Time-varying tide/surge...........................................................520
5.10 Wind....................................................................................................521
5.11 Limiters...............................................................................................521
5.12 Sediment transport...............................................................................521
5.13 Multiple sediment fractions and hard layers..........................................522
5.14 Morphological updating and avalanching.............................................523
5.15 Groundwater........................................................................................524
5.16 Drifters................................................................................................525
5.17 Discharge boundaries (river input)........................................................525
5.18 Nonhydrostatic.....................................................................................526
5.19 Data types............................................................................................527
5.19.1 Regular spatial output..............................................................527
5.19.2 Time-averaged spatial output...................................................528
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
i i i
5.20 Selecting output data types...................................................................528
5.20.1 Regular spatial output..............................................................528
5.20.2 Time-averaged spatial output...................................................529
5.20.3 Point output.............................................................................529
5.20.4 Cross-sections.........................................................................531
5.20.5 Default values..........................................................................531
5.21 Choosing output times..........................................................................531
5.21.1 Output at fixed intervals..........................................................531
5.21.2 Output times defined by external file.......................................532
5.21.3 Combinations of fixed interval and external files.....................533
5.21.4 Default values..........................................................................533
5.22 NetCDF CF output............................................................................533
5.23 Reading output files in Matlab..............................................................534
5.24 Output variable keywords.....................................................................537
5.25 Example params.txt file........................................................................541
6 References ......................................................................................................... 61
Appendices
A Description of gen.ezs file (instat+2,3)............................................................. A1
B Numerical implementation.............................................................................. B1
B.1 Wave action equation............................................................................ B1
B.2 Shallow water equations........................................................................ B2
B.3 Advection-diffusion equations............................................................... B5
B.4 Bed update............................................................................................ B6
C Multiple sediment fractions proof of concept .............................................. C1
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
i
Abstract
XBeach is a numerical model of nearshore processes intended as a tool to compute the
natural coastal response during time-varying storm and hurricane conditions, including dune
erosion, overwash and breaching.
The model consists of formulations for short wave envelope propagation, nonstationary
shallow water equations, sediment transport and bed update. Innovations include a newly-
developed time-dependent wave action balance solver, which solves the wave refraction and
allows variation of wave action in x, y, time and over the directional space, and can be used
to simulate the propagation and dissipation of wave groups. An added advantage to this set-
up, compared to the existing surfbeat (infragravity wave) model, is that a separate wave
model is not needed to predict the mean wave direction, and it allows different wave groups
to travel in different directions. Wave-current interaction in the short wave propagation is
included. Various wave breaking dissipation model are implemented for use in the
nonstationary and stationary wave energy balance (in other words, when the wave energy
varies on the wave group timescale).
The Generalised Lagrangean Mean (GLM) approach was implemented to represent the
depth-averaged undertow and its effect on bed shear stresses and sediment transport, cf.
Reniers et al. (2004). Quasi 3D formulations are included as well as ground water flow
through a porous medium.
Soulsby Van Rijn transport formulations have been included, which solves the 2DH
advection-diffusion equation and produces total transport vectors, which can be used to
update the bathymetry. The pickup function follows Reniers et al (2004) was implemented.
An avalanching routine was implemented with separate criteria for critical slope at wet or
dry points providing a smooth and robust solution for slumping of sand during dune erosion.
Since length scales are short in terms of wave lengths and supercritical flow frequently
occurs, the numerical implementation is mainly first order upwind, which in combination
with a staggered grid makes the model robust. The momentum-conserving form of Stelling
and Duinmeijer (2004) is applied which improves long-wave runup and backwash on the
beach. The model scheme utilizes explicit schemes with an automatic time step based on
Courant criterion, with output at fixed or user defined time intervals, which keeps the code
simple and makes coupling and parallellization easier, while increasing stability.
The model has been validated with a series of analytical, laboratory and field test cases. The
model performs well in different situations including dune erosion, overwash and breaching
and these cases are all modelled using a standard set of parameter settings.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
1 1
1 Introduction
1.1 Motivation
The devastating effects of hurricanes on low-lying sandy coasts, especially during the 2004
and 2005 seasons have pointed at an urgent need to be able to assess the vulnerability of
coastal areas and (re-)design coastal protection for future events, but also to evaluate the
performance of existing coastal protection projects compared to do-nothing scenarios. In
view of this the Morphos-3D project was initiated by USACE-ERDC, bringing together
models, modelers and data on hurricane winds, storm surges, wave generation and nearshore
processes. Concurrently, the Dutch Dune Safety Assessment required that advanced models
be developed which can be used to assess the protection provided by dunes against flooding
of the hinterland for situations where empirical model assumptions do not hold anymore. In
the Netherlands, most of the central Holland Coast is protected by dunes. For these reasons
an open-source program, XBeach for eXtreme Beach behavior, has been developed to model
the nearshore response to hurricane impacts and storms.
Existing tools to assess dune erosion under extreme storm conditions assume alongshore
uniform conditions and have been applied successfully along relatively undisturbed coasts
(Vellinga, 1986, Steetzel, 1993, Nishi and Kraus, 1996, Larson et al., 2004), but are
inadequate to assess the more complex situation where the coast has significant alongshore
variability. This variability may result from anthropogenic causes, such as the presence of
artificial inlets, sea walls, and revetments, but also from natural causes, such as the variation
in dune height along the coast or the presence of rip-channels and shoals on the shoreface
(Thornton et al., 2007). A particularly complex situation is found when barrier islands
protect storm impact on the main land coast. In that case the elevation, width and length of
the barrier island, as well as the hydrodynamic conditions (surge level) of the back bay
should be taken into account to assess the coastal response. Therefore, the assessment of
storm impact in these more complex situations requires a two-dimensional process-based
prediction tool, which contains the essential physics of dune erosion and overwash,
avalanching, swash motions, infragravity waves and wave groups.
With regard to dune erosion, the development of a scarp and episodic slumping after
undercutting is a dominant process (van Gent et al., 2008). This supplies sand to the swash
and surf zone that is transported seaward by the backwash motion and by the undertow;
without it the upper beach scours down and the dune erosion process slows down
considerably. One-dimensional (cross-shore) models such as DUROSTA (Steetzel, 1993)
focus on the underwater offshore transport and obtain the supply of sand by extrapolating
these transports to the dry dune. Overton and Fisher (1988), Nishi and Kraus (1996) focus
on the supply of sand by the dune based on the concept of wave impact. Both approaches
rely on heuristic estimates of the runup and are well suited for 1D application but difficult to
apply in a horizontally 2D setting. Hence, a more comprehensive modeling of the swash
motions is called for.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
1 2
Swash motions are up to a large degree a result from wave group forcing of infragravity
waves (Tucker, 1954). Depending on the beach configuration and directional properties of
the incident wave spectrum both leaky and trapped infragravity waves contribute to the
swash spectrum (Huntley et al., 1981). Raubenheimer and Guza (1996) show that incident
band swash is saturated, infragravity swash is not, therefore infragravity swash is dominant
in storm conditions. Models range from empirical formulations (e.g. Stockdon et al, 2006)
through analytical approaches (Schaeffer, 1994, Erikson et al, 2005) to numerical models in
1D (e.g. List, 1992, Roelvink, 1993b) and 2DH (e.g. van Dongeren et al, 2003, Reniers et al,
2004a, 2006). 2DH wave group resolving models are well capable of describing low-
frequency motions. However, for such a model to be applied for swash, a robust
drying/flooding formulation is required.
1.2 Objective
The main objective of the XBeach model is to provide a robust and flexible environment in
which to test morphological modeling concepts for the case of dune erosion, overwashing
and breaching. The top priority is to provide numerical stability and robustness, while still
providing accurate results in a reasonable computational time.
1.3 Context
The XBeach model can be used as stand-alone model for small-scale (project-scale) coastal
applications, but will also be used within larger (shelf sea) systems, where it will be driven
by boundary conditions provided by the wind, wave and surge models and its main output to
be transferred back will be the time-varying bathymetry and possibly discharges over
breached barrier island sections.
1.4 Model approach
Our aim is to model processes in different regimes as described by Sallenger (2000). He
defines an Impact Level to denote different regimes of impact on barrier islands by
hurricanes, which are the 1) swash regime, 2) collision regime, 3) overwash regime and 4)
inundation regime. The approach we follow to model the processes in these regimes is
described below:
To resolve the swash dynamics the model employs a novel 2DH description of the wave
groups and accompanying infragravity waves over an arbitrary bathymetry (thus including
bound, free and refractively trapped infragravity waves). The wave group forcing is derived
from the time-varying wave action balance e.g. Phillips (1977) with a dissipation model for
use in combination with wave groups (Roelvink, 1993a). A roller model (Svendsen, 1984,
Nairn et al., 1990, Stive and de Vriend, 1994) is used to represent momentum stored in
surface rollers which leads to a shoreward shift in wave forcing.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
1 3
The wave-group forcing drives infragravity motions and both longshore and cross-shore
currents. Wave-current interaction within the wave boundary layer results in an increased
wave-averaged bed shear stress acting on the infragravity waves and currents (e.g. Soulsby
et al., 1993 and references therein). To account for the randomness of the incident waves the
description by Feddersen et al. (2000) is applied which showed good skill for longshore
current predictions using a constant drag coefficient (Ruessink et al., 2001).
During the swash and collision regime the mass flux carried by the waves and rollers returns
offshore as return flow or rip-current. These offshore directed flows keep the erosion
process going by removing sand from the slumping dune face. Various models have been
proposed for the vertical profile of these currents (see Reniers et al. (2004b) for a review).
However, the vertical variation is not very strong during extreme conditions and has been
neglected for the moment.
Surf and swash zone sediment transport processes are very complex, with sediment stirring
by a combination of short-wave and long-wave orbital motion, currents and breaker-induced
turbulence. However, intra-wave sediment transports due to wave asymmetry and wave
skewness are expected to be relatively minor compared to long-wave and mean current
contributions (van Thiel de Vries et al., 2008). This allows for a relatively simple and
transparent formulation according to Soulsby Van Rijn (Soulsby, 1997) in a short-wave
averaged but wave-group resolving model of surf zone processes. This formulation has been
applied successfully in describing the generation of rip channels (Damgaard et al., 2002
Reniers et al., 2004a) and barrier breaching (Roelvink et al., 2003).
In the collision regime, the transport of sediment from the dry dune face to the wet swash,
i.e. slumping or avalanching, is modeled with an avalanching model accounting for the fact
that saturated sand moves more easily than dry sand, by introducing both a critical wet slope
and dry slope. As a result slumping is predominantly triggered by a combination of
infragravity swash run-up on the previously dry dune face and the (smaller) critical wet-
slope.
During the overwash regime the flow is dominated by low-frequency motions on the time-
scale of wave groups, carrying water over the dunes. This onshore flux of water is an
important landward transport process where dune sand is being deposited on the island and
within the shallow inshore bay as overwash fans (e.g. Leatherman, 1977, Wang and
Horwitz, 2007). To account for this landward transport some heuristic approaches exist in
1D, e.g. in the SBeach overwash module (Larson et al, 2004) which cannot be readily
applied in 2D. Here, the overwash morphodynamics are taken into account with the wave-
group forcing of low frequency motions in combination with a robust momumtum-
conserving drying/flooding formulation (Stelling and Duinmeijer, 2003) and concurrent
sediment transport and bed-elevation changes.
Breaching of barrier islands occurs during the inundation regime, where a new channel is
formed cutting through the island. Visser (1998) presents a semi-empirical approach for
breach evolution based on a schematic uniform cross-section. Here a generic description is
used where the evolution of the channel is calculated from the sediment transports induced
by the dynamic channel flow in combination with avalanche-triggered bank erosion.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
1 4
To this end, the code has the following functionalities:
Flow
- Depth-averaged shallow water equations including time-varying wave forcing
terms; combination of sub- and supercritical flows;
- Numerical scheme in line with Stelling and Duinmeijer method, to improve long-
wave runup and backwash on the beach. The momentum-conserving form is
applied, while retaining the simple first-order approach.
- Generalised Lagrangean Mean (GLM) approach to represent the depth-averaged
undertow and its effect on bed shear stresses and sediment transport, cf. Reniers et
al. (2004)
- Smagorinsky viscosity formulation
- Drifter (passive particle) option
- White-Colebrook roughness
- Quasi 3D formulation
- Automatic time step based on Courant criterion, with output at fixed or user-defined
time intervals.
- Ground water flow
- Discharge boundaries
- Non-hydrostatic formulation
- MPI (Message Passing Interface) implementation with automatic domain
decomposition for parallel (multi-processor) computing
Waves
- Time-varying wave action balance including refraction, shoaling, current refraction
and wave breaking;
- Roller model, including breaker delay
- Wave amplitude effects on wave celerity;
- Wave-current interaction
- Roelvink (1993) wave dissipation model for use in the nonstationary wave energy
balance (in other words, when the wave energy varies on the wave group timescale)
- Baldock et al. (1998) wave dissipation formulation for stationary wave energy
balance.
Sediment transport and bed updating
- Depth-averaged advection-diffusion equation to solve suspended transport;
- Bed updating algorithm including possibility of avalanching;
- Soulsby Van Rijn transport formulations, cf Reniers et al (2004).
- Multiple sediment fractions and bed layer bookkeeping.
- Intra-wave sediment transport
- Avalanching mechanism, with separate criteria for critical slope at wet or dry points.
- Hard structures
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1
2 Model formulations
The model solves coupled 2D horizontal equations for wave propagation, flow, sediment
transport and bottom changes, for varying (spectral) wave and flow boundary conditions.
Because the model takes into account the variation in wave height in time (long known to
surfers) it resolves the long wave motions created by this variation. This so-called surf beat
is responsible for most of the swash waves that actually hit the dune front or overtop it. With
this innovation the XBeach model is better able to model the development of the dune
erosion profile, to predict when a dune or barrier island will start overwashing and
breaching and to model the developments throughout these phases.
2.1 Coordinate system
XBeach uses a coordinate system where the computational x-axis is always oriented towards
the coast, approximately perpendicular to the coastline, and the y-axis is alongshore, see
Figure 2.1 . This coordinate system is defined relative to world coordinates (x
w
,y
w
) through
the origin (x
ori
,y
ori
) and the orientation alfa, defined counter-clockwise w.r.t. the x
w
-axis
(East). The grid size in x- and y-direction may be variable but the grid must be rectilinear.
land
sea
x
y
(xori,yori)
xw
yw
alfa
Figure 2.1 Coordinate system
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2
2.2 Grid Setup
The grid applied is a staggered grid, where the bed levels, water levels, water depths and
concentrations are defined in cell centers, and velocities and sediment transports are defined
in u- and v-points, viz. at the cell interfaces. In the wave energy balance, the energy, roller
energy and radiation stress are defined at the cell centers, whereas the radiation stress
gradients are defined at u- and v-points, see Figure 2.2.
Velocities at the u- and v-points are denoted by uu and vv respectively; velocities u and v at
the cell centers are obtained by interpolation and are for output purpose only. The water
level, zs, and the bed level, zb, are both defined positive upward. uv and vu are the u-
velocity at the v-grid point and the v-velocity at the u-grid point respectively. These are
obtained by interpolation of the values of the velocities at the four surrounding grid points.
The model solves coupled 2D horizontal equations for wave propagation, flow, sediment
transport and bottom changes, for varying (spectral) wave and flow boundary conditions.
Because the model takes into account the variation in wave height in time (long known to
surfers) it resolves the long wave motions created by this variation. This so-called surf beat
is responsible for most of the swash waves that actually hit the dune front or overtop it. With
this innovation the XBeach model is better able to model the development of the dune
erosion profile, to predict when a dune or barrier island will start overwashing and
breaching and to model the developments throughout these phases.
1,1 2,1 3,1 nx-1,1 nx,1 nx+1,1
1,2 2,2 3,2 nx-1,2 nx,2 nx+1,2
1,3 2,3 3,3 nx-1,3 nx,3 nx+1,3
1,ny+1 2,ny+1 3,ny+1 nx-1,ny+1 nx,ny+1 nx+1,ny+1
1,ny 2,ny 3,ny nx-1,ny nx,ny nx+1,ny
1,ny-1 2,ny-1 3,ny-1 nx-1,ny-1 nx,ny-1 nx+1,ny-1
uu,vu
vv,uv
zs,zb,u,v
Figure 2.2 Staggered grid
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3
2.3 Wave action equation solver
The wave forcing in the shallow water momentum equation is obtained from a time
dependent version of the wave action balance equation. Similar to Delft Universitys
(stationary) HISWA model (Holthuijsen et al., 1989), the directional distribution of the
action density is taken into account whereas the frequency spectrum is represented by a
frequency, best represented by the spectral parameter f
m,-1,0
.. The wave action balance is then
given by:
y
x w
c A
c A c A D A
t x y
u
u o
c
c c c
+ + + =
c c c c
(2.1)
with the wave action:
( , , , )
( , , , )
( , , )
w
S x y t
A x y t
x y t
u
u
o
= (2.2)
where u represents the angle of incidence with respect to the x-axis,
w
S represents the
wave energy density in each directional bin and o the intrinsic wave frequency. The wave
action propagation speeds in x- and y-direction are given by:
( , , , ) cos( )
( , , , ) sin( )
L
x g
L
y g
c x y t c u
c x y t c v
u u
u u
= +
= +
(2.3)
With u
L
and v
L
the cross-shore and alongshore depth-averaged Lagrangian velocities
respectively (defined below), and the group velocityc
g
obtained from linear theory. If wave-
current interaction is turned off (wci=0) then the last term in either equation is not taken into
account.
The propagation speed in u -space is obtained from:
( , , , ) sin cos cos sin cos
sinh2
sin sin cos
h h u u
c x y t
kh x y x y
v v
x y
u
o
u u u u u u
u u u
| | | | c c c c
= + +
| |
c c c c
\ . \ .
| | c c
+
|
c c
\ .
(2.4)
taking into account bottom refraction (first term on the RHS) and current refraction (last two
terms on the RHS) and h is the total water depth. If wave-current interaction is turned off
(wci=0) then the last two terms are not taken into account.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 4
The wave number k is obtained from the eikonal equations:
0
0
x
y
k
t x
k
t y
e
e
c c
+ =
c c
c
c
+ =
c c
(2.5)
where the subscripts refer to the direction of the wave vector components and e represents
the absolute radial frequency. The wave number is then obtained from:
2 2
x y
k k k = + (2.6)
The absolute radial frequency is given by:
L L
x y
k u k v e o = + + (2.7)
and the intrinsic frequency is obtained from the linear dispersion relation. If wave-current
interaction is turned off (wci=0) then the last two terms are not taken into account.
The total wave energy dissipation, i.e. directionally integrated, due to wave breaking is
modelled according to Roelvink (1993a), which is coded asbreak=1:
rms
max
max
2
H 8 tanh
=1-exp - , ,
w b w
rep
n
w
b
D Q E
T
E kh
Q H H
H g k
o
=
| |
| |
| = =
|
|
\ .
\ .
(2.8)
with (1) O o = , the water density, the breaker index (a free parameter) and the total
wave energy is given by:
2
0
( , , ) ( , , , )
w w
E x y t S x y t d
t
u u =
}
. (2.9)
In a variation of the above, one could also state (break = 3)
2
rms
w b w
rep
H
D Q E
T h
o
= (2.10)
Finally, Roelvink and Daly (break = 4) developed a breaking formulation based on (2.10)
where the fraction of breaking waves is modelled as
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 5
2
1
0
b rms
b rms
Q if H h
Q if H h
= >
= <
(2.11)
which states that waves are fully breaking is the wave height exceeds a threshold and stop
breaking if the wave height fall below another threshold. Details are in Daly and Roelvink
(ICCE 2010).
In the stationary case, we apply Baldock et al. (1998) (break = 2) which states
,
2 2
1
4
b rep b rms
D Q gf H H o = + (2.12)
With (1) O o = and
rep
f representing a representative intrinsic frequency. The fraction of
breaking waves is given by:
2
2
exp
b
b
rms
H
Q
H
( | |
=
( |
\ .
(2.13)
Where the breaking wave height is:
0.88
tanh
0.88
b
kh
H
k
(
=
(
(2.14)
And is a calibration parameter.
In either instationary or stationary case the total wave dissipation, D, is distributed
proportionally over the wave directions:
( , , , )
( , , , ) ( , , )
( , , )
w
w w
w
S x y t
D x y t D x y t
E x y t
u
u = (2.15)
The bed friction dissipation is modelled as
3
2
3 sinh
f w
rep
H
D f
T kh
t
t
| |
=
|
|
\ .
(2.16)
This closes the set of equations for the wave action balance. Given the spatial distribution of
the wave action and therefore wave energy the radiation stresses can be evaluated (using
linear wave theory):
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 6
,
,
2
,
, ,
2
,
1
( , , ) 1 cos
2
( , , ) sin cos
1
( , , ) 1 sin
2
g
xx w w
g
xy w yx w w
g
yy w w
c
S x y t S d
c
c
S x y t S S d
c
c
S x y t S d
c
u u
u u u
u u
| |
= +
|
\ .
| |
= =
|
\ .
| |
= +
|
\ .
}
}
}
(2.17)
Instationary vs. stationary wave solver
For situations where infragravity motions play an important role the wave and roller
equations must be solved in instationary, wave-group resolving mode (instat=1, by default).
For some applications which do not focus on swash motions and where surfbeats are small,
we have implemented an option (instat=0) to solve the stationary problem directly using a
forward marching technique, where the equations are solved grid row by grid row in an
iterative fashion. The wave module is then called everywavint seconds rather than each time
step, which often means a large reduction in computation time.
2.3.1 Wave boundary conditions
Offshore wave boundary conditions
At present, a number of wave boundary conditions can be specified at the offshore
boundary. These are numbered instat=0 through instat=41. The overview is as follows:
instat abbreviated
name
description
0 stat stationary wave boundary condition (sea state)
1 bichrom bichromatic (two wave component) waves
2 ts_1 first-order timeseries of waves (generated outside XBeach)
3 ts_2 second-order timeseries of waves (generated outside
XBeach)
4 jons wave groups generated using a parametric (J onswap)
spectrum
5 swan wave groups generated using a SWAN 2D output file
6 vardens wave groups generated using a formatted file
7 reuse reuse of wave conditions
8 nonh boundary conditions for nonhydrostatic option
9 off no wave boundary condition
40 stat_table a sequence of stationary conditions (sea states)
41 jons_table a sequence of time-varying wave groups
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 7
In the params.txt file the boundary conditions options can be invoked using either the
number (instat=3 for instance) or by using the name instat=ts_2. The name must be
lower case and match exactly.
Stationary wave boundary conditions (instat = 0).
In this case a uniform, constant wave energy distribution is set, based on given values of
H
rms
, T
m01
, direction and power of directional distribution function.
,
,
max
min
0
2
cos
( ) , / 2
cos
1
8
m
m
mean m
m
m
mean rms
e E
E gH
0
0
0 0
0 0 0 t
0 0 0
= <
A
=
(2.18)
Wave energy varying periodically in time (instat = 1):
In this case regular wave groups (i.e. bichromatic waves) are specified.
,
,
max
min
0
cos 1
( ) * 1 cos 2 ,
2
cos
sin( )
m
m
mean
m
long long
m
g long
long
m
t y
e E
T L
c T
L
0
0
0 0
0 t
0 0 0
0
| | | | | |
| = + | |
| | |
\ . \ . \ . A
=
(2.19)
First-order longcrested, irregular wave groups (instat = 2)
In this case E is read in as a function of time; the timeseries is shifted along the y-axis to
account for the oblique incidence.
,
,
max
min
0 ( )
cos
( , ) ,
cos
sin( )
( )
m
m
t y
m
m
m
g
e y E
y
y
c
t 0
0
0 0
0
0 0 0
0
t
=
A
=
(2.20)
This time series needs to be made by a separate routine (not part of XBeach). An example of
the required input format is given in the Appendix B
Second-order longcrested, irregular wave groups (instat = 3)
In this case a bound wave is added to the wave groups using Longuet-Higgins and Stewarts
(1964) theory. The format is prescribed in Appendix B
Standard J ONSWAP spectrum, based on user-input spectrum coefficients (instat = 4)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 8
With this option alongshore varying timeseries of the wave energy E and bound long wave
z
s
are generated on the basis of a specified analytical 2D J onswap-type spectrum. With this
option realistic second-order bound, directionally-spread seas can be created.
The spectrum is determined by the peak period, wave height, spectral peakedness, mean
angle and directional spreading (see section 5.7 for details on the input values). The routine
follows the procedure as outlined by Van Dongeren et al. (2003), see next paragraph.
Unmodified SWAN 2D spectrum output file (instat = 5)
This option uses a SWAN 2D output file (sp2 file) in unmodified form. The procedure to
calculate the boundary conditions is analoguous to the instat=4 option.
Formatted variance-density spectrum file (instat = 6)
This option uses a formatted variance-density spectrum file, which needs to adhere to
certain criteria (see section 5.5). On the basis of this formatted spectrum, boundary
conditions are calculated using the procedure as outlined under instat = 4.
Reuse boundary condition files from an earlier XBeach simulation (instat = 7)
If the user does not wish to recalculate spectrum-based boundary condition files or
specifically wants to reuse the spectrum-based boundary condition files of another XBeach
simulation, it is possible to do so. In this case the user should select instat = 7 in
params.txt. No further wave boundary condition data need be given in params.txt.
Obviously, the calculation grid should remain the same between runs, as the angles and
number of grid points are embedded in the boundary condition files. In order to use instat 7,
the user should copy ebcflist.bcf and qbcflist.bcf to the current directory. Additionally, the
user should also copy all files listed in ebcflist.bcf and qbcflist.bcf. Generally, these files
have E_ and q_ prefixes.
With instat=4, 5 and 6 time-varying (on the scale of wave groups) boundary conditions are
computed on the basis of stationary input spectra. It is also possible to use a sequence of
varying spectra to compute boundary conditions which not only vary on the time scale of
the wave groups but also have a variation on the longer timescale. The procedure is similar
to the one described above, only the implementation is through the specification of a list of
spectrum files, see section 5.7.
Boundary conditions for non-hydrostatic model (instat = 8)
XBeach can be ran as a non-hydrostatic model, which is essentially the nonlinear shallow
water equations with dispersion terms and without a wave-action driver. The boundary
conditions are described in a separate chapter and are activated using instat=8
No boundary condition (instat = 9)
This is a simple no wave action boundary condition. It still allows for a tidal record to be
specified, however through the zs0file parameter.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 9
Sequence of stationary sea states (instat = 40)
While instat=0 specifies one stationary sea state (stationary in the sense that there are no
wave groups), it is also possible to specify a series of seastates, each with a duration. This is
done through a file as
instat =40
bcfile =jonswap1.txt
where the name of the bcfile is free, but the structure of the contents is not. It should contain
lines with
Hm0, Tp, angle, gamma (3.3), spreading, duration (s), timestep (=0.05)
Ie
0.7 8 90 3.3 5 1000 0.05
0.8 7 110 3.3 5 1000 0.05
Sequence of sea states to make time-varying wave groups (instat = 41).
This is an extension of instat=4. With instat =41 it is possible to specify a sea state on the
basis of which wave groups are imposed on the model for a certain duration, then specify
another sea state and run wave groups again without having to stop the model.
This condition is specified as
instat =41
bcfile =jonswap1.txt
where the name of the file is free and the structure of the contents is as in instat =40.
Procedure for converting spectra to wave energy and bound long wave
boundary conditions
Using instat=4,5,6,7 40 or 41 measured or parametric spectra are used as input to create
time-varying wave amplitudes, the envelopes of wave groups. This is done using a
procedure as outlined by Van Dongeren et al. (2003).
In order to create a time series of wave energy along the offshore boundary, the input
spectrum is assumed to be composed of K single summation wave components [Miles and
Funke, 1989; in van Dongerenet al., 2003] in the range around the spectral peak where the
energy density is greater than a certain fraction of the peak energy density (proscribed by the
keyword sprdthr). Each wave component has a specific frequency, phase, amplitude and
direction. Summed together the wave components create a time series of the sea surface at
the offshore boundary:
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1 0
, , ,
1
0, , cos sin 2
K
i i i i i
i
y t B k y f t q u t
=
= +
(2.21)
whereB
i
represents the amplitude of each wave component.
In order to determine the specific properties of the wave components, the frequencies of all
K components are distributed uniformly in the range around the spectral peak. This choice
leads to a frequency resolution which is dependent on K. Each wave component is given a
wave phase using the random phase model. The direction of each wave component is
determined randomly using the Cumulative Distribution Function of the wave direction of
the input spectrum, see Figure 2.7. At this stage the directional CDF is based on integration
across all frequencies. In the case of strong frequency-directional correlation, it may be
advisable to use frequency dependent CDFs instead.
Figure 2.3 Random wave angles are chosen using a random number generator and the cumulative
distribution function of the directional spreading of the input spectrum
Once the frequency and direction of each wave component has been selected, the amplitude
Bi can be calculated by two dimensional interpolations across the 2D-input wave variance
spectrum. A linear correction is made to the amplitudes of the wave components to ensure
the integrated wave variance of the K components is the same as that of the input spectrum.
The wave number k
i
is determined using the dispersion relation, given the mean still water
depth at the offshore boundary.
Equation (2.21) can now be used to generate a time series of the sea surface elevation at the
offshore boundary. The envelope of the sea surface time series can be calculated using a
Hilbert transform, the amplitude of which being a measure for the wave energy:
, ,
1
, ,
2
i i
E y t gA y t
u u
= (2.22)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1 1
The particle velocity due to bound infragravity waves at the offshore boundary is calculated
according to the expressions developed by Herbers et al. [1994]. It is stated that bound
infragravity waves are generated by the interaction of two wave components with different
frequencies. The frequency of the bound infragravity wave is given as:
3 2 1
f f f = (2.23)
In the equation above, the subscripts on the right hand side refer to the indices of interacting
short wave pairs. In order to ensure positive interaction frequencies, indices should be
ordered according to increasing frequency of the short wave components. It should be noted
that two interacting wave components contribute to only one infragravity wave frequency.
However, one infragravity wave frequency may be forced by many different wave
component interactions.
Similarly, other properties of the bound infragravity wave can be deduced from the
associated properties of the short wave components. The bound wave number, wave group
velocity and wave phase are given as:
,
2 2
3 1 2 1 2 1 2 3
2 cos k k k k k k k u = +
(2.24)
3
3
3
2
g
f
c
k
t
= (2.25)
3 2 1
t = + (2.26)
Note that equation (2.26) is based on the assumption that the short wave groups and bound
long waves are in equilibrium, and therefore are 180 out of phase. The angle of the bound
long wave can be found using the following relation:
2 2 1 1
3
2 2 1 1
sin sin
arctan
cos cos
k k
k k
u u
u
u u
| |
=
|
\ .
(2.27)
The energy related to a bound infragravity wave with a specific frequency is given as [van
Dongeren et al., 2003]:
, ,
, ,
2 2
2
3 3 3 1 2
0 0
3 1 2 2 1
2 , ,
, ,
f
E f D f f f
E f f E f d d df
t t
u u t
u u u u
A
= + +
+
} } }
(2.28)
Where in equation (2.28) the first term behind the triple integral is the interaction coefficient
as defined by Herbers et al.[1994]. This interaction coefficient is determined through a
perturbation expansion of the Bernouilli equation, details are in original publication. In the
wave boundary condition module a modification of the interaction coefficient is
implemented to convert the output to surface level elevation instead of bed level pressure:
,
, ,
3
1 2
cosh
cosh cosh
surface bed
k h
D D
k h k h
= (2.29)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1 2
The amplitude of each bound wave can be found from the bound wave energy [van
Dongerenet al., 2003]:
3 3
2 A E df = (2.30)
Wheredf refers to the frequency resolution of the short waves, i.e. the frequency step used
to generate all K frequency components around the peak of the short wave spectrum.
A time series for the cross shore water flux across the offshore boundary is generated by
means of an Inverse Fourier Transform:
3,
3,
3, 3,
1
(0, ) cos
2
i
K
i i
x g i i
i
A
q t IFFT e c
=
(
=
(
(2.31)
This cross-shore flux is phase-shifted along the offshore boundary as:
3, 3,
3,
3, 3,
1
( , ) cos
2
y i i
K
ik y i i
x g i i
i
A
q y t IFFT e c e
u
=
(
=
(
(2.32)
The cross-shore flux (2.32) and the wave energy (2.22) are specified along the boundary.
Lateral wave boundary conditions
For the lateral boundary conditions we make the following reasonable assumptions for the
incoming wave energy:
- In the stationary case, we assume that the alongshore gradient of the wave energy is
zero; this means we copy the value of one row inside the domain to the boundary, for
the directional bins where the direction is into the model domain;
- In the instationary case, we assume that the gradient along the crest of the wave group is
zero. The direction of the crest is derived from the local mean wave direction and the
values at the boundary are determined by interpolation between the two points on the
row inside around a virtual point taken along the crest direction; in the figure, for
example, the value at point (3,1) is interpolated from points (2,2) and (3,2).
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1 3
Figure 2.4 Example of interpolation at the lateral boundary.
2.4 Roller energy equation solver
The roller energy balance is coupled to the wave action/energy balance where dissipation of
wave energy serves as a source term for the roller energy balance. Similar to the wave action
the directional distribution of the roller energy is taken into account whereas the frequency
spectrum is represented by a single mean frequency.
The roller energy balance is then given by:
y r
r x r r
r w
c S
S c S c S
D D
t x y
u
u
c
c c c
+ + + = +
c c c c
(2.33)
with the roller energy in each directional bin represented by ( , , , )
r
S x y t u .The roller energy
propagation speeds in x- and y-direction are given by:
( , , , ) cos( )
( , , , ) sin( )
L
x
L
y
c x y t c u
c x y t c v
u u
u u
= +
= +
(2.34)
1,1 2,1 3,1 nx-1,1 nx,1 nx+1,1
1,2 2,2 3,2 nx-1,2 nx,2 nx+1,2
1,3 2,3 3,3 nx-1,3 nx,3 nx+1,3
1,ny+1 2,ny+1 3,ny+1 nx-1,ny+1 nx,ny+1 nx+1,ny+1
1,ny 2,ny 3,ny nx-1,ny nx,ny nx+1,ny
1,ny-1 2,ny-1 3,ny-1 nx-1,ny-1 nx,ny-1 nx+1,ny-1
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1 4
where u represents the angle of incidence with respect to the x-axis. If wave-current
interaction is turned off (wci=0) then the last terms in either equation are not taken into
account.
The propagation speed in u -space is identical to the expression used for the wave energy
density propagation, (eq. (2.4), thus assuming that waves and rollers propagate in the same
direction. The phase velocity is obtained from linear wave theory:
c
k
o
= (2.35)
The total roller energy dissipation is given by (Reniers et al., 2004a):
2
r r
r
g E
D
c
|
= (2.36)
which combines concepts by Deigaard (1993) and Svendsen (1984)
Next the total roller dissipation,
r
D , is distributed proportionally over the wave directions:
( , , , )
( , , , ) ( , , )
( , , )
r
r r
r
S x y t
D x y t D x y t
E x y t
u
u = (2.37)
This closes the set of equations for the roller energy balance.
The roller contribution to radiation stress is given by:
2
,
, ,
2
,
( , , ) cos
( , , ) ( , , ) sin cos
( , , ) sin
xx r r
xy r yx r r
yy r r
S x y t S d
S x y t S x y t S d
S x y t S d
u u
u u u
u u
=
= =
=
}
}
}
(2.38)
These roller radiation stress contributions are added to the wave-induced radiation stresses
(eq. (2.17) to calculate the wave forcing utilizing the radiation stress tensor:
, , , ,
, , , ,
( , , )
( , , )
xy w xy r xx w xx r
x
xy w xy r yy w yy r
y
S S S S
F x y t
x y
S S S S
F x y t
x y
c + c + | |
= +
|
c c
\ .
c + c + | |
= +
|
c c
\ .
(2.39)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1 5
2.5 Shallow water equations solver
2.5.1 Depth-averaged equations
For the low-frequency and mean flows we use the shallow water equations. To account for
the wave induced mass-flux and the subsequent (return) flow these are cast into a depth-
averaged Generalized Lagrangian Mean (GLM) formulation (Andrews and McIntyre, 1978,
Walstra et al, 2000). In such a framework, the momentum and continuity equations are
formulated in terms of the Lagrangian velocity, u
L
, which is defined as the distance a water
particle travels in one wave period, divided by that period. This velocity is related to the
Eulerian velocity (the short-wave-averaged velocity observed at a fixed point) by:
L E S L E S
u u u and v v v = + = + (2.40)
Hereu
S
, v
S
represents the Stokes drift in x- and y-direction respectively (Phillips, 1977):
cos sin
S S w w
E E
u and v
hc hc
u u
= = (2.41)
where the wave-group varying short wave energy and direction are obtained from the wave-
action balance (eq.(2.1). The resulting GLM-momentum equations are given by:
2 2
2 2
E L L L L L
L L L sx bx x
h
F u u u u u
u v f v g
t x y x y h h x h
t t q
v
| | c c c c c c
+ + + = +
|
c c c c c c
\ .
(2.42)
2 2
2 2
E
L L L L L
sy by y L L L
h
F
v v v v v
u v f u g
t x y x y h h y h
t t
q
v
| | c c c c c c
+ + + + = + +
|
c c c c c c
\ .
(2.43)
0
L L
hu hv
t x y
q c c c
+ + =
c c c
(2.44)
Here ,
bx by
t t are the bed shear stresses, q is the water level,
x
F ,
y
F are the wave-induced
stresses,
t
v is the horizontal viscosity and f is the Coriolis coefficient. The bottom shear
stress terms are calculated with the Eulerian velocities as experienced by the bed:
E L S E L S
u u u and v v v = = (2.45)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1 6
and not with the GLM velocities. Also, the boundary condition for the flow computations
are expressed in functions of (u
L
, v
L
) and not (u
E
, v
E
).
Smagorinsky viscosity
TEXTO BE INSERTED
White-Colebrook bottom roughness
TEXT TO BE INSERTED
2.5.2 Quasi-3D equations (advanced option)
NOT OPERATIONAL YET TO BE INSERTED
2.5.3 Flow boundary conditions
Offshore flow boundary conditions
Usually, the offshore boundary is an artificial boundary which has no physical meaning. On
the offshore boundary wave and flow conditions are imposed. In the domain waves and
currents will be generated which need to pass through the offshore boundary to the deep sea
with minimal reflection. One way to do this is to impose a weakly reflective-type boundary
condition.
The options are:
front abbreviated
name
description
0 abs1d absorbing-generating (weakly-reflective) boundary in 1D
1 abs2d same, in 2D (default setting)
2 wall no flux wall
3 wlevel water level specification (from file)
4 nonh_1d boundary condition for nonhydrostatic option
1D absorbing-generating boundary condition
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1 7
In XBeach, there are two options with regard to the offshore absorbing-generating boundary
condition. With the parameter setting front = 0 a simple one-dimensional radiating
boundary condition is activitated.
It reads:
i s s0
g
gh g
u= 1+ u +u- (z -z )
c h
| |
|
|
\ .
(2.46)
Where u
i
is the incoming particle velocity and z
s
is the surface elevation of the incoming
bound long wave, and z
s0
is the mean water level (averaged over many wave groups), u is
the mean velocity (current). This boundary condition assumes all incoming and outgoing
waves propagate normal to the boundary. It is therefore only useful for 1D (flume like)
simulations.
2D absorbing-generating boundary condition
With option front =1 (default value) the formulation by Van Dongeren and Svendsen
(1997) is activated which in turn is based on Verboom et al. (1981) and is based on the
Method of Characteristics. This boundary condition allows for obliquely-incident and
reflected waves, and is therefore suited for 1D and 2D computations.
The boundary conditions satisfy the following two necessary conditions:
1. the region outside the computation domain can influence the motion within the domain
only through the incident (long) waves and through the currents along the boundaries;
and
2. the (long) waves propagating out of the computational domain must be allowed to freely
propagate through the open-ocean offshore boundary with minimal reflection.
By placing the open boundaries carefully, one can achieve weak local forcing near these
boundaries. In practice this means that the offshore boundary is placed in sufficiently deep
water, i.e. outside the shoaling zone. Then the dominant terms in the continuity and
momentum equations near these boundaries are the nonlinear shallow water equation.s
For the general case of an arbitrary angle between the boundary at a point and the
coordinate axes, one can follow the work of Abbott (1979) and Verboom et al. (1981) to
derive the governing equations, which are valid for an arbitrary angle between the
coordinate axes and the model boundary (Figure 2.5a).
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1 8
Figure 2.5 Coordinate system (a) for arbitrary angle between domain boundary and x-axis; (b) for =0
The derivation becomes simplified if the coordinate system is defined in a way the the x-
axis is normally inward to the seaward boundary of the rectangular domain, which sets =0
(Figure 2.5b). The governing equations derived following Abbott (1979) and Verboomet al.
(1981) then simplify to:
0
( )
v h
u c v c g F
t x y y x
|
| | |
c c c c c
= + + +
c c c c c
(2.47)
0
( )
h v
u c v c g F
t x y y x
|
| | |
+
+ + +
c c c c c
= + + +
c c c c c
(2.48)
u v g F
t x y y
q c c c c
= +
c c c c
(2.49)
Where, F includes all local forcing and friction terms for the motion, c is the wave celerity,
andh
0
is the still water depth. The Riemann variable
-
is defined as:
0
2 2 ( ) u c u g h | q
= = + (2.50)
Here u is the depth-averaged velocity. The Riemann variable + is similarly defined
as 2 u c |
+
= + . The -equation is the y-momentum equation, which has the Riemann
variable:
v = (2.51)
The definition sketch in Figure 2.6 shows that - propagates in the negativex-direction, +
propogates in the positivex-direction, and in they-direction.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 1 9
The forcing terms, F, in equations (2.47)-(2.49) originate from the right-hand side of the
nonlinear shallow water equations, which imply that - , +, and are variables rather than
constants.
Figure 2.6 Definition sketch of the characteristics.
The offshore boundary conditions uses the outgoing - variant which contains information
about the waves leaving the domain and the variant which propagates along the boundary.
The latter is extra information which we will use to estimate the direction of the outgoing
wave which is the innovation in Van Dongeren and Svendsen (1997).
The procedure is as follows: during the computation, at time step n, we know the values
of
n
q and the total velocities( , )
n n
u v at all points in the domain. The incoming wave is
specified along the open boundaries through the x and y components of the particle
velocities of the incident wave( , )
in in
u v . The numerical integration of nonlinear shallow
water equations will provide the values of the totalq , u, andv for the interior points in the
domain at time stepn+1, and then the equivalent total (incoming plus outgoing) values need
to be determined along the boundaries at n+1. In other words, given the incoming wave, the
outgoing wave needs to be determined.
In XBeach the lowest-order derived equations are implemented for the weakly reflective
boundary conditions, with x=0 at the boundary. The outgoing wave angle (
r
) and velocity
in thex-direction (u
r
) are solved iteratively. For specifics on this derivation we refer to Van
Dongeren and Svendsen (1997), the shorter outline is given below
The - is updated along the boundary only through (2.47) which discretized in XBeach
(similarly as thex-momentum equation) reads
,
1 n
, , i+1,j i,j , ,
,
, , i+1,j i,j , ,
n n n n n n
i j i j x i j
i j
i j i j u i j
h h F
v
u c v c g
t x y y x x h
| |
| |
+
c c c
= + + +
A c c c
(2.52)
And is thus known at the time level n+1. We can then solve for the outgoing velocity u
r
by
expanding the Riemann variant (2.50) to lowest order as
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2 0
0 0
0
1
2 ( ) 2 1
2
u g h u gh
h
q
| q
| |
= + = +
|
\ .
(2.53)
We further have the identities
0
cos
cos
i r
i r
i g i i
r r r
u u u u
u c
u gh
q q q
q u
q u
= + +
= +
=
=
(2.54)
where the last two identities assume waves propagating with constant form. The incoming
bound wave propagates at the group speed and the reflected wave at the free shallow water
celerity, where
i
and
r
are the angles of the incoming (known) wave and the outgoing (yet
unknown) wave, relative to the x=0 boundary. u is the mean current. Inserting these
identities into (2.53) and re-arranging gives:
0
0
cos
cos
2
cos 1 cos
g i
r
r i
r g i
c gh
u u gh u
c
u
u
|
u u
( | |
| |
( = + |
|
|
+
(
\ .
\ .
(2.55)
All the terms on the right hand side are known except for r which can be solved from the
=v variant as:
arctan arctan
r r
r
r i
u u
v v v v
u
| | | |
= =
| |
\ . \ .
(2.56)
Eqs. (2.55) and (2.56) are then solved iteratively to yield bothu
r
and
r
. The final boundary
condition is then the total velocity u u = u
i
+ u
r
+u at the boundary at the time level n+1.
Wall boundary condition
This boundary condition type is activated using front =2 and is a simple no flux boundary
condition.
Water level boundary condition
This boundary sets the water level at a prescribed value. This can be constant or time-
varying, see description of tide varying surge in Chapter 5. With this option the outgoing
long waves are not absorbed.
Non-hydrostatic boundary condition
This option is to be used with the non-hydrostatic mode, see Appendix
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2 1
Bay-side flow boundary condition
In many cases, the onshore boundary will be a land boundary. In some case the onshore
will be a bay behind a barrier island. In that case it is possible to specify a number of
boundary conditions.
The options are:
back abbreviated
name
description
0 wall no flux wall
1 abs1d absorbing-generating (weakly-reflective) boundary in 1D
2 abs2d same, in 2D (default setting)
3 wlevel water level specification (from file)
1D absorbing boundary condition
This boundary condition type is activated using back =0 and is analoguous to (2.46)
without the possibility of specifying an incoming particle velocity.
Wall boundary condition
This boundary condition type is activated using back =1 and is a simple no flux boundary
condition
2D absorbing boundary condition (default)
This boundary condition type is activated using back =2 and is analoguous to the
absorbing-generating boundary condition by Van Dongeren and Svendsen (1997), but
without the incoming particle velocities (so 2D absorbing only).
Water level boundary condition
See above.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2 2
Lateral flow boundary conditions
1,1 2,1 3,1 nx-1,1 nx,1 nx+1,1
1,2 2,2 3,2 nx-1,2 nx,2 nx+1,2
1,3 2,3 3,3 nx-1,3 nx,3 nx+1,3
1,ny+1 2,ny+1 3,ny+1 nx-1,ny+1 nx,ny+1 nx+1,ny+1
1,ny 2,ny 3,ny nx-1,ny nx,ny nx+1,ny
1,ny-1 2,ny-1 3,ny-1 nx-1,ny-1 nx,ny-1 nx+1,ny-1
uu,vu
vv,uv
zs,zb,u,v
Neumann boundary
Neumann boundary
Riemann
boundary
Figure 2.7 Stencil for Neumann-type boundary conditions.
Neumann boundaries (default)
Lateral boundaries are the boundaries perpendicular to the coastline. Usually these are
artificial, because the model domain is limited but the physical coast will continue. At these
boundaries we need to prescribe information about the area beyond the numerical model
domain in such a way that the boundary condition does not influence the results in an
adverse way. The best way to do this is to prescribe so-called no-gradient or Neumann
boundaries, which state that there is locally no change in surface elevation and velocities.
These boundary conditions are activitate using left =0 or equivalently left=neumann
and/or right =0 or equivalently right=neumann), where the longshore water level
gradient is prescribed. The alongshore gradient is prescribed by the difference in specified
water levels at the offshore corner points, divided by the alongshore length of the domain.
This type of Neumann boundary condition has been shown to work quite well with (quasi-)
stationary situations, where the coast can be assumed to be uniform alongshore outside the
model domain. So far we have found that also in case of obliquely incident wave groups this
kind of boundary conditions appears to give reasonable results, though rigorous testing still
has to be done. The implementation consists of copying water levels from row 2 to row 1
and from row ny to row ny+1, and doing the same for the cross-shore (along-boundary)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2 3
velocities. The alongshore velocities can now be computed from row 1 through rowny; no
additional boundary conditions are required for the alongshore velocity.
Simple no-flux boundary conditions (walls) can be set using left =1 (or left =wall) and/or
right =1 or right = wall. Wall boundary conditions are preferred over Neumann
boundary conditions in 1D (cross-shore) models.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2 4
2.6 Sediment transport
Advection-diffusion scheme
The sediment transport is modeled with a depth-averaged advection diffusion equation
[Galappatti and Vreugdenhil, 1985]:
E E
eq
h h
s
hC hC
hC hCu hCv C C
D h D h
t x y x x y y T
( c c c c c c c
(
+ + + + =
(
(
c c c c c c c
(2.57)
whereC represents the depth-averaged sediment concentration which varies on the wave-
group time scale, and D
h
is the sediment diffusion coefficient. The entrainment of the
sediment is represented by an adaptation timeT
s
, given by a simple approximation based on
the local water depth, h, and sediment fall velocityw
s
:
max 0.05 ,0.2
s
s
h
T s
w
| |
=
|
\ .
(2.58)
where a small value of T
s
corresponds to nearly instantaneous sediment response. The
entrainment or deposition of sediment is determined by the mismatch between the actual
sediment concentration, C, and the equilibrium concentration, C
eq
, thus representing the
source term in the sediment transport equation.
The bed-updating is discussed next. Based on the gradients in the sediment transport the bed
level changes according to:
,
0
1
y
b mor x
q
z f q
t p x y
c | | c c
+ + =
|
c c c
\ .
(2.59)
wherep is the porosity,
mor
f is a morphological acceleration factor of O(1-10) (e.g. Reniers
et al., 2004a) and q
x
and q
y
represent the sediment transport rates in x- and y-direction
respectively, given by:
( , , )
E
x h
hCu C
q x y t D h
x x x
( c c c ( (
= +
( ( (
c c c
(2.60)
and
( , , )
E
y h
hCv C
q x y t D h
y y y
( ( ( c c c
= +
( ( (
c c c
(2.61)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2 5
To account for bed-slope effects on sediment transport a bed-slope correction factor f
slope
is
introduced.
Transport formulations
The equilibrium sediment concentration can be calculated with various sediment transport
formulae. At the moment the sediment transport formulation of Soulsby-van Rijn (Soulsby,
1997) has been implemented. TheC
eq
is then given by:
2.4
0.5
2
2
| | 0.018 (1 )
E sb ss rms
eq cr b
d
A A u
C u u m
h C
o
| |
| | +
| = +
|
|
\ .
\ .
(2.62)
where sediment is stirred by the Eulerian mean and infragravity velocity in combination
with the near bed short wave orbital velocity, u
rms
. In the default mode, the sediment is
stirred due to mean and infragravity velocities. By settinglws = 0 the mean component can
be excluded. The shortwave stirring can be turned off by settingsws = 0. By default sws =
1. Theu
rms
obtained from the wave-group varying wave energy using linear wave theory as
rms
u
2sinh( )
rms
rep rms
H
T kh H
t
o
=
+
(2.63)
The combined mean/infragravity and orbital velocity have to exceed a threshold value, u
cr
,
before sediment is set in motion. The drag coefficient, C
d
, is due to flow velocity only
(ignoring short wave effects). To account for bed-slope effects on the equilibrium sediment
concentration a bed-slope correction factor is introduced, where the bed-slope is denoted by
m and
b
o represents a calibration factor. The bed load coefficients A
sb
and the suspended
load coefficient A
ss
are functions of the sediment grain size, relative density of the sediment
and the local water depth (see Soulsby (1997) for details). Note that the transport model
does not contain transport contributions related to wave skewness.
The Soulsby-Van Rijn formulation is not strictly valid for sheet flow conditions. If applied
in high velocity situations, the formulation as used in XBeach leads to unrealistically high
sediment transport rates. In order to compensate this, steady flow velocities used to mobilize
sediment are limited by an upper-bound Shields parameter for the start of sheet flow
sf
=0.8 1.0):
, ,
2 2
2 50
,
min ,
E E
flow stirring sf
f
gD
u u v
c
u
| |
A
= +
|
|
\ .
(2.64)
This approach assumes that in sheet flow conditions higher velocities lead to higher
sediment transport rates, but not to higher equilibrium sediment concentrations, which is not
necessarily correct. However, the assumption does cause sediment discharge under sheet
flow conditions to become a linear function of flow discharge, which is in line with
Kobayashi et al. (1996).
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2 6
2.6.1 Wave asymmetry
The wave asymmetry enters the advection-diffusion equation, repeated here:
eq
AV AV
h h
s
hC hC
hCu hCv hC C C
D h D h
t x y x x y y T
( c c c c c c c (
+ + + + =
(
(
c c c c c c c
(2.65)
where
cos
sin
E
AV W m
E
AV W m
u V u
v V v
u
u
= +
= +
(2.66)
with m is the mean wave angle and
,
W ua rms k s
V u S A = (2.67)
is the velocity amplitude, with ua the free parameter, keyword facua. and
,
,
0.60
0.60
0.79
cos tanh 0.64/
0.61 log
2 2
1 exp
0.35
0.79
sin tanh 0.64/
0.61 log
2 2
1 exp
0.35
k r
r
s r
r
S U
U
A U
U
t t
t t
| |
= +
|
\ .
+
| |
= +
|
\ .
+
(2.68)
the skewness and asymmetry as parameterized as a function of the Ursell number by
Ruessink and Van Rijn.
2.7 Morphological updating
2.7.1 Avalanching
To account for the slumping of sandy material during storm-induced dune erosion
avalanching is introduced to update the bed-evolution. Avalanching is introduced when a
user-defined critical bed-slope (keywords: wetslp and dryslp) is exceeded:
b
cr
z
m
x
c
>
c
(2.69)
Where the estimated bed slope is given by:
, 1, , , b i j b i j
b
z z
z
x x
+
c
=
c A
(2.70)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2 7
The bed-change within one time step is then given by:
min , 0.05 , 0
max , 0.05 , 0
b b
b cr
b b
b cr
z z
z m x t
x x
z z
z m x t
x x
| | | c | c
A = A A >
| |
c c
\ . \ .
| | | c | c
A = A A <
| |
c c
\ . \ .
(2.71)
Where a threshold of 0.05 m/s has been introduced to prevent the generation of large
shockwaves. The corresponding bed update is given by:
1
, , , , , ,
1
, 1, , 1, , ,
n n
b i j b i j b i j
n n
b i j b i j b i j
z z z
z z z
+
+
+ +
= + A
= A
(2.72)
To account for continuity, e.g. when sand is deposited within the wet part of the domain, the
water level is also updated:
1
, , , , , ,
1
, 1, , 1, , ,
n n
s i j s i j b i j
n n
s i j s i j b i j
z z z
z z z
+
+
+ +
= + A
= A
(2.73)
Similar expressions are used for the subsequent avalanching in the y-direction. Here we
consider that inundated areas are much more prone to slumping and therefore we apply
separate critical slopes for dry and wet points; default values are 1 and 0.3, respectively. The
former value is consistent with the equilibrium profile according to Vellinga (1986); it is
higher than the angle of natural repose and must be seen as an average slope observed after
dune erosion, where some stretches may exhibit vertical slopes and other, drier parts may
have slumped further. The underwater critical slope is much lower, and our estimate is based
on the maximum underwater slopes we have observed in experiments, e.g. the Zwin test
(see below) and tests carried out at Oregon State University with initially rather steep
profiles.
When the critical slope between two adjacent grid cells is exceeded, sediment is exchanged
between these cells to the amount needed to bring the slope back to the critical slope. This
exchange rate is limited by a user-specified maximum avalanching transport rate, which for
sandy environments is usually set so high as to have no influence on the outcome, while
ensuring numerical stability.
In our model simulations, the avalanching mechanism is typically triggered when a high
infragravity wave reaches the dune front and partly inundates it. The critical underwater
slope is suddenly exceeded and the two grid cells at the dune foot are adjusted during the
first timestep when this happens. In subsequent timesteps a chain reaction may take place
both in points landward, where now the critical dry slope may be exceeded because of the
lowering of the last wet point, and in points seaward, where now the critical wet slope may
be exceeded. As a result, sediment is brought from the dry dune into the wet profile, where it
is transported further seaward by undertow and infragravity backwash. An essential
difference with similar procedures in other dune erosion models is the fact that avalanching
is only applied between adjacent grid cells, rather than extrapolating profile behaviour well
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2 8
beyond the wet domain. This is made possible by explicitly resolving the long-wave swash
motions. Another big advantage with respect to existing procedures is that the simple
avalanching algorithm is readily applied in two dimensions.
2.7.2 Morfac options
The morfac is the morphological acceleration factor that speeds up the morphological time
scale relative to the hydrodynamic timescale. It means that if you have a simulation of 10
minutes with a morfac of 6 you effectively simulate the morphological evolution over one
hour. There are now two ways in which you can input the time-varying parameters in
combination with morfac; this is governed by the input option morfacopt.
morfacopt=1
All times are prescribed on input in morphological time. If you apply a morfac all input
timeseries and other time parameters are divided internally by morfac. This way, you can
specify all timeseries as real times, and vary the morfac without changing the rest of the
input files. A typical application is that you run over a storm of some days and specify time-
varying water level and wave conditions. If you now specify a morfac of 6, the model just
runs for 10 (hydrodynamic) minutes each hour, during which the bottom changes per step
are multiplied by a factor 6. This of course saves a factor of 6 in computation time.
An important thing to note is that the can only be done as long as the water level changes
that are now accelerated by morfac do not modify the hydrodynamics too much. This is the
case if the tide is perpendicular to the coast and the vertical variations do not lead to
significant currents. If you have an alongshore tidal current, as is the case in shallow seas,
you cannot apply this method because you would affect the inertia terms and thus modify
the tidal currents.
morfacopt=0
In this new option the philosophy is different: you run the model over, say, a tidal cycle and
apply the morfac without modifying the time parameters. This means you leave all the
hydrodynamic parameters unchanged and just exaggerate what happens within a tidal cycle.
As long as the evolution over a single tidal cycle is limited, the mean evolution over a tidal
cycle using a morfac is very similar to running morfac tidal cycles without morfac. See
Roelvink, 2006 for a more detailed description of this approach. This method is more
appropriate for longer-term simulations with not too extreme events.
2.8 Multiple sediment fractions (advanced option)
To model the overwash deposits at barrier islands during extreme conditions XBEACH has
been extended with a multiple sediment class formulation. This allows for the tracking of
sediment but also for assigning different sediment characteristics such as grain size
diameter, fall velocity, mobility, etc. For each sediment class, i, the equilibrium sediment
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 2 9
concentration, ) (
*
i c
eq
, is calculated according to the Soulsby-van Rijn formulation, see
equation (2.59) .
The actual concentration then depends on the mismatch with the equilibrium concentration
in combination with the available fraction at that location. It is assumed that a top-layer of
10 cm depth is readily available for sediment pick-up. So based on the fractions of the
various sediment classes present in the top-layer the equilibrium concentration per sediment
class can be expressed as:
*
( ) ( ,1) ( )
eq eq
c i frc i c i = (2.74)
Where the index 1 refers to the top layer and frc the fraction of a specific sediment class.
Next the advection-diffusion equation (see eq. 2.54) is solved independently for the different
sediment classes leading to class dependent sediment transport rates,
i
S , from which the
bottom changes per sediment class,
i
z A , can be derived:
, ,
1
i y i x
i
p
S S
t
z
n x y
c c ( A
A = +
(
c c
(2.75)
Changes in fractional composition of the sediment classes in the top-layer due to sediment
deposition are then calculated by:
1
( ,1) ( ,1)
n n i z
z z
z D z
frc i frc i
D D
+
A A
= + (2.76)
Given dz <=Dz, else:
1
( ,1)
n i
z
frc i
z
+
A
=
A
(2.77)
And similarly for erosion:
1
( ,1) ( ,1) ( ,2)
n n n i z
z z
z D z
frc i frc i frc i
D D
+
A + A
= (2.78)
Where the number 2 refers to the layer immediately below the top layer. D
z
is the constant
layer thickness of 10 cm and z A is the total change in bed elevation (all classes combined
and positive upward) at time stepn+1 where n represent the time index. Next the underlying
layers are updated according to:
1
( , ) ( , ) ( , 1)
n n n z
z z
D z z
frc i j frc i j frc i j
D D
+
+ A A
= + (2.79)
For erosion and:
1
( , ) ( , ) ( , 1)
n n n z
z z
D z z
frc i j frc i j frc i j
D D
+
A A
= + (2.80)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3 0
During sedimentation where the subscript j refers to the individual layers. In case of erosion,
sediment is thus moving from the bottom layers towards the top layer and vice versa.
.
2.9 Hard Layers (advanced option)
TEXT TO BE INSERTED
2.10 Groundwater flow (advanced option)
2.10.1 Physical and numerical principles
The groundwater module in XBeach utilizes the principle of Darcy flow and is therefore
limited to laminar flow conditions. In situations in which the groundwater flow may become
turbulent, the full momentum equations (e.g. van Gent, 1995) should be applied. The
module includes a vertical interaction flow between the surface water and groundwater. This
flow is assumed to be a magnitude smaller than horizontal flow and is not incorporated in
the momentum balance.
2.10.2 Determining groundwater head
The driving force behind groundwater flow according to Darcy is the groundwater head
gradient. In the XBeach module, the groundwater head
gw
p has the unit [m]. Where there is
no surface water, the groundwater head is equal to the groundwater surface level
gw
q :
1
1
,
, ,
if 0
n n
n
gw gw i j
i j i j
p wetz q
( ( = =
(2.81)
Where there is surface water and the groundwater surface level is just below the surface of
the bed
b
z , the groundwater head is affected by the surface water head
s
z . If the
groundwater surface level is equal to the bed level, the groundwater head is equal to the
surface water head. If the groundwater surface level is more than
wetlayer
d below the surface
of the bed, the groundwater head is unaffected by the surface water head and is equal to the
groundwater surface level. At intermediate depths a linear interpolation takes place, using
the relative groundwater level fac :
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3 1
, j
,
j
1 1
1
1
, ,
,
, , ,
1
1
,
,
,
1 if 1
0 1
n n n
n
n n
gw gw i j s gw i j
i j
i j i j i j
n
n
b gw
i j
i j n
i j
wetlayer
p fac z wetz
z
fac fac
d
q q
q
( ( ( = + =
(
= s s
(2.82)
2.10.3 Momentum balance
Darcy flow is described by the following relationship between the groundwater head
gradient, the permeability k , and the horizontal velocity:
gw
gw x
gw
gw y
dp
u k
dx
dp
v k
dy
=
=
(2.83)
In the module, the head gradient is found numerically using:
1, ,
, 1, , ,
,
, 1 ,
, , 1 , ,
,
n
n n
gw i j i j
z i j z i j
i j
n
n n
gw i j i j
z i j z i j
i j
dp p p
dx x x
dp p p
dy y y
+
+
+
+
(
=
(
(
=
(
(2.84)
And horizontal flow is calculated by:
,
,
,
,
n
n
gw
gw x
i j
i j
n
n
gw
gw y
i j
i j
dp
u k
dx
dp
v k
dy
(
( =
(
(
( =
(
(2.85)
2.10.4 Determining vertical flow
In order to simulate the interaction between the surface water and groundwater, a vertical
flow between the surface water layer and groundwater layer ( w) is introduced. This flow
has the unit [ms
-1
] and is defined positive from surface water to ground water and is given in
terms of surface water for the continuity equation (i.e. 100% porosity).
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3 2
Exfiltration
Exfiltration, or flow from the groundwater layer to the surface water layer, takes place if the
groundwater surface level exceeds the bed level. The volume of groundwater (including
porosity por ) exceeding the bed level is joins the surface water within the same numerical
time step. The vertical velocity can therefore be calculated by:
j
j
1
1
1
, 1
,
,
,
,
if
n
n
gw b n
i j n
i j n
i j gw b
i j
i j
z
w por z
t
q
q
| |
(
|
( = >
|
A
|
\ .
(2.86)
Vertical infiltration model
Surface water running up and down a dry slope will infiltrate into the ground. In order to
model this fully, a 3D model must be used. In the XBeach groundwater module, the option
is made to model infiltration using a quasi-3D model.
In areas where there is surface water and the groundwater level is not greater than the bed
level, infiltration can take place. To a certain degree of truth, infiltration can be calculated
using Darcy flow:
1
z
dp
w k
dz
| |
= +
|
\ .
(2.87)
In an area that is covered by surface water, the head on the top of the bed can be said to be
equal to the surface water head. In the absence of groundwater at the bed level, the head
under the bed level is zero. As the distance between the top and bottom of the bed level is
zero, the head gradient is infinite. The resulting vertical velocity becomes infinite and the
method becomes numerically unstable. In order to circumvent this problem the vertical
infiltration is divided into an instantaneous, but finite reaction in the upper ground layer and
Darcy flow across a non-zero depth. The proportion of the instantaneous part to the Darcy
flow part is governed by the relative groundwater level fac , as in section 2.10.2. The
instantaneous part is handled in the same way as exfiltration. The head gradient for the
Darcy flow is found by assuming the head at the bottom of the infiltration layer is zero, and
the head on the top of the infiltration layer is equal to the height of water standing on the
bed (
s b
z z ).
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3 3
j j
,
j
j
1
-1 1
, ,
,
1
1
1
,
,
, ,
,
-1
,
,
if 1 and :
1
if 0 and
n
n n
gw b
i j i j
i j
n
n
n
gw b
i j
i j n n s b
i j i j z
infiltration
i j
n
n
gw
i j
i j
wetz z
z
z z
w fac fac k por
t d
wetz
q
q
q
( = <
| |
(
(
|
= +
(
|
A
( |
\ .
( =
j
1
1
,
,
:
0
n
b
i j
n
i j
z
w
<
=
(2.88)
The infiltration velocity is limited by the amount of surface water available in the cell:
1
,
,
n
i j n
i j
h
w
t
s
A
(2.89)
The thickness of the infiltration layer (
infiltration
d ) is increased at the end of every time step
by the infiltrating water. The infiltration speed in the next time step will therefore be less
than that in the current time step. Infiltrating water is assumed to immediately become part
of the groundwater for the purpose of groundwater level and groundwater head calculations.
This approach is therefore not fully 3D and only uses a quasi-3D approximation to limit the
infiltration speed.
1
,
, ,
n
n n
i j
infiltration infiltration
i j i j
w t
d d
por
A
( ( = +
(2.90)
For numerical stability, the infiltration layer thickness is restricted to a minimum of one
third of
wetlayer
d , corresponding with the centroid of the instantaneous infiltration part. The
maximum thickness of the infiltration layer is equal to the depth of the groundwater level
below the bed level. Once an area has no surface water, the thickness of the infiltration layer
is reset to the minimum value, representing the fact that the infiltrated water has sunk out of
the way of subsequent infiltrations.
1
-1
,
,
1 1
-1
,
, ,
1
if 0
3
1
if 1
3
n
n
infiltration wetlayer i j
i j
n n
n
wetlayer infiltration b gw i j
i j i j
d d wetz
d d z wetz q
( = =
( ( s s =
(2.91)
2.10.5 Mass balance
The continuity equation for the groundwater system can be written as:
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3 4
gw gw ugw gw vgw
d du h dv h
w
dt dx dy por
q
+ + = (2.92)
The effective depths through which horizontal ground water flow takes place ( ,
ugw vgw
h h ),
are found by taking the mean difference between the groundwater level and bed of the
aquifer (
, b aquifer
z ) in the two surroundingq -points:
, ,
, 1,
,
, ,
, , 1
,
2
2
n n
gw b aquifer gw b aquifer n
i j i j
ugw
i j
n n
gw b aquifer gw b aquifer n
i j i j
vgw
i j
z z
h
z z
h
q q
q q
+
+
( ( +
( =
( ( +
( =
(2.93)
This method is faster, but less momentum conservative than the method used in the surface
water flow routine. Since large gradients in the groundwater level are not expected, the
scheme is assumed sufficient.
Groundwater flux is limited in cells that are empty of groundwater. For such cells,
groundwater may enter the cell, but no groundwater may leave until the amount of
groundwater exceeds a minimum value (eps ).
,
,
,
,
, ,
1, 1, 1
,
,
, ,
, 1 , 1
min ,0
max ,0
if
min ,0
max ,0
n n
gw ugw gw ugw
i j i j
n n
gw ugw gw ugw
i j i j n
gw b aquife
i j n n
gw vgw gw vgw
i j i j
n n
gw vgw gw vgw
i j i j
u h u h
u h u h
z
v h v h
v h v h
q
( ( =
( ( =
( s
`
( ( =
( ( =
)
1
,
n
r
i j
eps
( +
(2.94)
The continuity equation for the groundwater level is solved by the following:
1
, , , 1, , , 1 ,
, , , 1, , , , , 1
n n n n n n
n
gw gw gw ugw gw ugw gw vgw gw vgw
i j i j i j i j i j i j i j
u i j u i j v i j v i j
u h u h v h v h
w
t x x y y por
q q
+
( ( ( ( ( (
= +
A
(2.95)
To account for infiltrating and exfiltrating groundwater, an additional term is added to the
continuity equation of the surface water, but none to the momentum balance.
1 1 1 1 1
, , , , 1, 1, , i,j , 1 , 1
,
u,i,j u,i-1,j v,i,j v,i,j-1
n n n n n n n n n
i j i j i j i j i j i j i j i j i j n
i j
u h u h v h v h
w
t x x y y
q q
+ + + + +
=
A
(2.96)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3 5
2.10.6 Groundwater boundary conditions
Vertical boundary conditions
The groundwater level is bounded by the bottom of the aquifer. In the central domain the
groundwater level is adjusted naturally by infiltration and exfiltration. The groundwater
level has no bounding maximum in the vertical, except on the offshore, bay side and lateral
boundaries. Here the groundwater level is bounded vertically by the bed level on the
boundaries:
j
,
j
,
j
,
j
,
1,
1, 1,
1,
1, 1,
,1
,1 ,1
, 1
, 1 , 1
min ,
min ,
min ,
min ,
n n
n
gw gw b
j
j j
n n
n
gw gw b
nx j
nx j nx j
n n
n
gw gw b
i
i i
n n
n
gw gw b
i ny
i ny i ny
z
z
z
z
q q
q q
q q
q q
+
+ +
+
+ +
( ( =
( ( =
( ( =
( ( =
(2.97)
The bed of the aquifer is set equal to or less than the regular bed level:
,
, ,
min ,
b aquifer b aquifer b
z z z eps = (2.98)
Offshore boundary condition
At the offshore boundary, the groundwater head is set equal to the offshore surface water
head:
j
,1
,1
n
n
gw s
i
i
p z ( =
(2.99)
Bay side boundary condition
For cases in which a bay side water level is given explicitly with a tidal level record (tideloc
= 4, tideloc = 2 andpaulrevere = 0), the groundwater head on the bay side boundary is set
equal to the bay side surface water head:
j
, 1
, 1
n
n
gw s
i ny
i ny
p z
+
+
( =
(2.100)
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3 6
In all other cases, the bay side groundwater head is kept at the initial value:
1
, 1 , 1
n
gw gw
i ny i ny
p p
+ +
( ( =
(2.101)
Lateral boundary conditions
Neumann boundary conditions are applied to the groundwater head on the lateral
boundaries:
,1 ,2
, 1 ,
n n
gw gw
i i
n n
gw gw
i ny i ny
p p
p p
+
( ( =
( ( =
(2.102)
Initial conditions
The bed of the aquifer and the initial groundwater head must be specified, see section 5.12
for a description. The initial groundwater level is calculated from the initial groundwater
head.
2.11 Drifters (advanced option)
Drifters are objects that move with the lagrangean mean velocity. They are defined by their
deployment location, deployment time and retrieval time. The positions of the drifters are
evaluated every timestep; every tintp seconds the results are written to files drifternnn.dat,
with nnn the drifter number padded with zeros. The files are in the usual binary format, with
each record containing x,y and time of the drifter; invalid timepoints are characterized by -
999 values.
The drifter module is activated by including the following statements in params.txt.
ndrifter=number of drifters
drifterfile=name of drifterfile
The drifter input file should contain for each drifter a record with 4 numbers indicating x
and y (in world coordinates) of release location, release time and retrieval time (in seconds
from start of simulation)
Example input in params.txt
ndrifter=5
drifterfile=drifters.txt
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3 7
Content of drifters.txt
550. 100. 100. 1000.
550. 200. 100. 1000.
550. 250. 100. 1000.
550. 300. 100. 1000.
550. 400. 100. 1000.
Example function to read and plot drifter paths
f unct i on r ead_dr i f t er ( )
ch={' r . ' ; ' b. ' ; ' k. ' ; ' g. ' ; ' m. ' ; ' c. ' }
f or i d=1: 6
dep=mod( ( i d- 1) , 6) +1;
i f i d<10
f name=[ ' dr i f t er 00' num2st r ( i d) ' . dat ' ]
el se
f name=[ ' dr i f t er 0' num2st r ( i d) ' . dat ' ]
end
t r y
f i dr =f open( f name, ' r ' )
f or i =1: 10000
xyt =f r ead( f i dr , [ 3] , ' doubl e' ) ;
i f i sempt y( xyt )
br eak
end
xyt ( xyt ==- 999) =nan;
xd( i ) =xyt ( 1) ; yd( i ) =xyt ( 2) ; t d( i ) =xyt ( 3) ;
end
f cl ose( f i dr )
pl ot ( xd, yd, ch{dep}) ; axi s equal
cl ear xd yd t d
cat ch
end
end
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3 8
Figure 2.8 Example of drifter path output.
2.12 Discharge boundaries (river input) (advanced option)
It is possible to define river discharges to simulate the inflow from a river (i.e. uni-
directional, no tides) and no sediment transport.
The user can define a number of sections along the boundaries of the grid through which
discharges can be defined as time series. For each boundary section, the program checks
how many grid cell centers lie within the section, given in world coordinates. The total
length of the section is computed as the sum of the lengths of the grid cells along the
boundary, and each cell length divided by this total length is used to divide the discharge
over the cells within the boundary section.
For each boundary section a separate time series of total discharge is defined; actual
discharges are determined by interpolation in time. Positive discharges mean discharges into
the model.
The discharges may be defined on initially dry boundaries. They must, however be located
on otherwise closed (wall) boundaries, see parameter (back_
The discharge boundaries are activated with the following keywords inparams.txt:
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 3 9
disch_loc_file=<discharge locations file>
disch_timeseries_file=<discharge timeseries file>
The contents of the discharge locations file are a number of records equal to the number of
discharge boundary sections, with for each record four numbers:
X_begin Y_begin X_end Y_end
These world coordinates must be chosen such that they are close to the desired boundary
and enclose the cell centers of the cells that must be part of the boundary section.
In the discharge time series file, the first column is time in seconds; the next columns give
the total discharge time series per section.
Example: (River Outflow)
disch_loc_file=discharge_locations.txt
disch_timeseries_file=discharge_timeseries.txt
Contents of discharge_locations.txt:
840 820 840 890
Contents of discharge_timeseries.txt:
0 150
1000000 150
-1000 -500 0 500 1000 1500
0
200
400
600
800
1000
1200
1400
1600
102 hrs
discharge boundary section
Figure 2.9 Example of coast with river inflow.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
2 4 0
2.13 Dam break (advanced option)
Dam break problems require the same set of hydrodynamic equations which XBeach
contains. The only difference between these types of problems and convential coastal model
is the specification of the innitial condition file for the water level.
An non-uniform initial condition for the water level, for instance when modeling a dam
break problem, can be specified by a file with the same format as the depth file. It is
activated by the following keyword inparams.txt:
zsinitfile = <initial condition file>
Example (Dambreak)
Zsinitfile=ini.dep
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
0
5
10
15
bed level, water level
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
0
5
10
15
water depth
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
-10
0
10
20
velocity
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
-20
0
20
40
discharge
Figure 2.10 Dambreak problem: snapshots of the water level, water depth, velocity and discharge.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
3 1
3 Descripton of program structure
3.1 Single domain setup
The program XBeach consists of a mainFortran 90 program, xbeach.f90, and a number of
subroutines that operate on twoderived types (structures):
- par this contains general input parameters
- s this contains all the arrays for a given computational domain
For a single-domain run, one structure s is passed between flow, wave, sediment and bed
update solvers, which extract the arrays they need from the structure elements to local
variables, do their thing and pass the results back to the relevant structure elements. This
makes the overall program clear, prevents long parameter lists and makes it easy to add
input variables or arrays where needed. The various subroutines and their purposes are
outlined in Table 3.1.
Table 3.1. Overview of Fortran 90 subroutine calls by xbeach.f90
Function call Purpose
wave_input(par) Creates elements of structure par containing wave
input parameters
flow_input(par) Adds elements of structure par containing flow
input parameters
sed_input(par) Adds elements of structure par containing
sediment input parameters
grid_bathy(s) Creates grid and bathymetry and stores them in
structure s
distribute_par(par) MPI
space_alloc_scalars(sglobal) allocates space
grid_bathy(s,par) sets up grid and bathymetry
xmpi_determine_processor_grid(s%nx s%ny)
readtide(s,par) Read tide levels
readwind (s, par) Read wind field
init_output Read output requests and initialize output files
wave_init (s,par) Initialises arrays (elements of s) for wave
computations
flow_init (s,par) Initialises arrays (elements of s) for flow
computations
gwinit(s,par) Initialises arrays (elements of s) for groundwater
module
sed_init (s,par) Initialises arrays (elements of s) for sediment
computations
init_output(sglobal,slocal,par,it)
call readkey
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
3 2
Start time loop
timestep (s,par,it) Calculate automatic timestep
wave_bc (s,par) Wave boundary conditions update, each timestep
gwbc(s,par) Groundwater boundary conditions update, each
timestep
flow_bc (s,par) Flow boundary conditions update, each timestep
wave_timestep(s,par) Carries out one wave timestep, OR
wave_stationary(s,par) Carries out stationary wave computation
gwflow(par,s) carries out flow timestep of groundwater flow
flow_timestep (s,par) Carries out one flow timestep
drifter (s,par)
transus(s,par) Carries out one suspended plus bedload transport
timestep
bed_update(s,par) Carries out one bed level update timestep
var_output(it,s,par) Performs output
End time loop
3.2 Implementation of parallel computing using MPI
We refer to the Parallelization Report.
XBeach Model Description and Manual 1002266 March 2010
Unesco-IHE, Deltares and Delft University of Technology
4 1
4 Compiling the model
To compile the source code you can download the source code from the subversion
repository, located at: https://repos.deltares.nl/repos/XBeach/trunk
The source code contains three different build environments:
GNU autotools, tested with gfortran >=4.2, tested with ubuntu, OSX and cygwin with
windows XP.
Visual studio 2008, tested with intel fortran 11, tested with Windows XP
Visual studio 6, tested with Compaq fortran 6.6, tested with Windows XP
We expect it to compile with only minor problems under other compilers and/or under
Linux, since only standard Fortran 90/95 is used. Once an executable has been created, it
will be called xbeach or xbeach.exe under windows.
Building with MPI support
XBeach can be built with support for mpi. To build with mpi under windows, make sure you
have mpi installed in c:\program files\mpich2. Select the appropriate configuration in visual
studio (mpi debug or mpi release) and use rebuild all to make a mpi enabled executable.
To build a mpi executable use ./configure with-mpi && make to build an executable with
mpi support.
XBeach is tested with openmpi on linux and OS X and with mpich2 on all platforms.
Building with NetCDF support
XBeach can be built with support for netcdf. To build with netcdf under windows, select the
appropriate configuration in visual studio (netcdf) and use rebuild all to make a netcdf
enabled executable.
To build a netcdf executable under linux make sure you have netcdf 4.1 or higher installed.
It should be automatically found by the configure script and compiled.
The combination of netcdf and mpi has not yet been tested.
For more details see the README that come with the source code.
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
5 1
5 Running the model
5.1 Input file structure
On execution thexbeach.exe executable will read the fileparams;txt in the current directory
and interpret the keyword=value combinations in it. The keywords refer to parameter values
or filenames and can be listed in any order. Lines not containing an = sign are ignored and
may be used for comments.
The params.txt file contains grid and bathymetry info, wave input, flow input and
morphological input. The tables below contain a description of the keywords, the default
values and recommended minimum and maximum values.
5.2 Physical processes
Physical processes can be turned on or off by choice. The commonly used ones are turned
on by default, so for common cases the user does not need to specify anything explicitly
keyword description default
value
minimum
value
maximum
value
unit remarks
swave include/exclude
shortwaves
1 0 1 - turned on
by default
lwave include/exclude
generation of
long waves
1 0 1 - turned on
by default
flow include or
exclude NLSW
equations
1 0 1 - turned on
by default
sedtrans include/exclude
sediment
transport
1 0 1 - turned on
by default
morphology include/exclude
bed updating
1 0 1 - turned on
by default
nonh turn on
nonhydrostatic
flow
0 0 1 - turnedoff
by default
gwflow turn on
groundwater
flow
0 0 1 - turnedoff
by default
q3d turn on quasi 3d 0 0 1 - turnedoff
by default
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
5 2
5.3 Specifying grid and depth
keyword description default
value
minimum
value
maximum
value
unit remarks
nx number of grid
points in x
50 2 10000 -
ny number of grid
points in y
2 0 10000 -
dx grid size in x -1 0 1e9 m required
value
dy grid size in y -1 0 1e9 m required
value
xori x - origin in
world
coordinates
0 -1e9 1e9 m
yori y origin in
world
coordinates
0 -1e9 1e9 m
alfa angle of grid 0 0 360 deg
posdwn depth defined
positive down
1 -1 1 1 =positive
down
-1 =positive
up
vardx option of
variable grid size
0 0 1 - 1 =varying
grid size
0 =non-
varying grid
size
depfile bathymetry file no values;
specify name
xfile variable gridsize
file x
no values;
specify
name;only
with vardx=1
yfile variable gridsize
file y
no values;
specify name
only with
vardx=1
thetamin lower directional
limit
-90 -180 180 deg angle w.r.t
computational
x-axis
thetamax upper directional
limit
90 -180 180 deg angle w.r.t
computational
x-axis
dtheta directional
resolution
10 0.1 20 deg
thetanaut option to enter
thetamin
thetamax in
nautical
convention
0 0 1 - 0 =cartesian,
1 =nautical
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
5 3
Thedepfile keyword contains the reference to a bathymetry file, which should contain, for
each of ny+1 rows, nx+1 depth values, which may be defined positive downward or upward,
depending on a keyword posdwn that may be 1 (depth positive downward) or -1 (positive
upward).
If a non-equidistant grid is chosen, the keywordvardx=1 should be selected and an xfile and
yfile have to be specified.
The directional grid for short waves and rollers can either be specified as Cartesian (angle
w.r.t. the computational x-axis) or as nautical directions (direction waves come from in deg.
N, so from W is 270 deg. N); this depends onthetanaut (1 means nautical, default Cartesian
is 0) .
5.4 Physical constants
keyword description default
value
minimum
value
maximum
value
unit remarks
rho density of water 1025 1000 140 kg/m3
g gravitational
acceleration
9.81 9.7 9.9 m/s2
5.5 Time management
The hydrodynamic simulation starts at time 0 and starts outputting at timetstart; it stops at
tstop. The time intervals are described in detail in section 1.1. The actual time step of the
hydrodynamic simulation is determined based on a given maximum Courant number CFL.
In future versions a nonhydrostatic pressure correction term will be implemented in the flow
solver, allowing the modelling of individual short waves. This is not available in the present
code yet.
keyword description default
value
minimum
value
maximum
value
unit remarks
tstart start time of
simulation
1 0 1000000 s
tint time interval
output global
values
1 0.01 100000 s
tintg time interval
output global
values
tint 0.01 100000 supercedes tint if
specified
tintm time interval
output mean
ting 0.01 tstop
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
5 4
global values
tintp time interval
output point
values
ting 0.01 100000
tsglobal file with list of
output times for
global values
no values;
specify name
tsmean file with list of
output times for
meanglobal
values
no values;
specify name
tspoints file with list of
output times for
point values
no values;
specify name
tscross file with list of
output times at
cross sections
NOT
IMPLEMENTED
YET
tstop stop time
simulation
2000 1 1000000 s
CFL maximum
courant number
0.7 0.1 0.9 - actual CFL
number varies
during
calculation
5.6 Wave input
5.6.1 Action balance
With the switchwci one can turn off or on the wave-current interaction, viz. the feedback of
currents on the wave propagation, see section 2.3. With scheme the numerical scheme can
be chosen, by default use the higher-order Lax Wendroff scheme to minimize numerical
dissipation.
keyword description default
value
minimum
value
maximum
value
unit remarks
wavint interval between
stationary wave
module calls
1 1 3600 s instat = 0
only
scheme Switch numerical
schemes for wave
action balance
2 1 2 - 1 =Upwind
2 =Lax
Wendroff
wci wave current
interaction option
0 0 1 - instat = 0
only
hwci Minimum depth above
which wave-current
interaction is used
0.1 0.0001 1 m
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
5 5
cats Current averaging time
scale for wci, in terms
of mean wave periods
20 1 50 Trep
5.6.2 Wave dissipation model
For instationary model runs, use the Roelvink (1993) model with either break=1or break=3.
Note that the standard valuegamma=0.55 andn=10 was calibrated for optionbreak=1. for
break=3 the wave dissipation is proportional to H
3
/h instead of H
2
; this affects the
calibration. For stationary runs the Baldock et al, 1998 the break=2 option, is suitable. The
break=4 option is a model in which waves start and stop breaking
keyword description default
value
minimum
value
maximum
value
unit remarks
break option breaker
model
3 1 3 - 1 =roelvink1
2 =baldock
3 =roelvink2
4 =
roelvink_daly
gamma breaker parameter
in Baldock or
Roelvink
formulation
0.55 0.4 0.9 -
gamma2 end of breaking 0.3 0.0 0.5 break 4 only
gammax maximum allowed
waveheight over
waterdepth
2 0.4 5 this cuts off the
waveheight
numerically.
alpha wave dissipation
coefficient
1 0.5 2 -
n power in roelvink
dissipation model
10 5 20 -
delta Fraction of wave
height to add to
water depth
0 0 1 -
fw Bed friction factor 0 0 1 - on wave action
equation only!
unrelated to
bed friction in
flow equation
breakerdelay 1 0 1 -
5.6.3 Roller model
Using the roller model will give a shoreward shift in wave-induced setup, return flow and
longshore current. This shift becomes greater for lower beta values.
keyword description default minimum maximum unit remarks
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
5 6
value value value
roller option roller model 1 0 1 - keyword not
implemented
yet. Roller
model is
turned on by
default
beta breaker slope
coefficient in roller
model
0.15 0.05 0.3 -
5.7 Wave boundary conditions
5.7.1 User input
The user input options include various options for wave boundary conditions in params.txt.
The meaning of each is summarised below:
instat abbreviated
name
description
0 stat stationary wave boundary condition (sea state)
1 bichrom bichromatic (two wave component) waves
2 ts_1 first-order timeseries of waves (generated outside XBeach)
3 ts_2 second-order timeseries of waves (generated outside
XBeach)
4 jons wave groups generated using a parametric (J onswap)
spectrum
5 swan wave groups generated using a SWAN 2D output file
6 vardens wave groups generated using a formatted file
7 reuse reuse of wave conditions
8 nonh boundary conditions for nonhydrostatic option
9 off no wave boundary condition
40 stat_table a sequence of stationary conditions (sea states)
41 jons_table a sequence of time-varying wave groups
.
The steps that should be taken for an XBeach simulation using the new wave boundary
conditions are explained in the following sections. The reader is advised to consult Figure
5.1 to determine which sections are relevant to the simulation.
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
5 7
Figure 5.1 Reading guide
5.7.2 Instat = 0 to 3. wave boundary condition parameters for non-
spectral input
keyword description default
value
minimum
value
maximum
value
unit remarks
dir0 mean wave direction 270 180 360 deg instat=0-3
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
5 8
(Nautical convention) only
Hrms rms wave height 1 0 10 m instat=0-3
only
m power in cos^m
directional distribution
10 2 128 - instat=0-3
only
Tm01 spectral period 10 1 20 s instat=0-3
only
Trep alternative keyword for
representative period
10 1 20 s instat=0-3
only;
overrules
value for
Tm01
Tlong long wave / wave group
period
80 20 300 s instat = 1
only
taper time to spin up wave
boundary conditions
100 1e-6 1000 s not for
stationary
waves
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
5 9
5.7.3 Instat = 4, spectral parameter input
The new XBeach module allows the user to provide J ONSWAP parameters from which
XBeach computes a spectrum. To make use of this option, the user must specify instat = 4
inparams.txt. XBeach will then attempt to read J ONSWAP parameters from a separate file
specified by bcfile = in params.txt. The user must also state in params.txt the required
record length for the boundary condition file and the boundary condition file time step
(keywords rt = and dtbc = respectively). If the record length (rt) is less than the total
simulation time, XBeach will reuse the boundary condition file until the simulation is
completed. The boundary condition file time step should be small enough to accurately
represent the bound long wave, but need not be as small as the time step used in XBeach,
seeExplanation of input/output.
keywor
d
description defaul
t value
minimu
m value
maximu
m value
uni
t
remarks
bcfile input file for
spectral
computations
- - - file, with contents
specified below
rt record length 3600 1200 7200 s
dtbc file time step 0.5 0.1 2 s
fcutoff low freq
cutoff
frequency for
boundary
conditions
0 0 40 Hz for instat=4,5,6
sprdthr threshold
variance
density above
which spec
dens are read
in
0.08 0 1 - this is to reduce the
spectral width
nspr set directional
spreading
long waves
0 0 1 - 1 =bin all incoming
long wave directions
(instat 4+) in the
centres of the short
wave directional grid
cells
trepfac Compute
mean wave
period over
energy band:
0.01 0 1 - par%trepfac*maxval(Sf
) for instat 4,5,6;
converges to Tm01 for
trepfac =0.0
random random
generator
1 0 1 Random seed on (1) or
off (0)
oldwbc old
waveboundar
y condition
0 0 1 - this value should stay at
oldwbc=0.
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
5 1 0
The contents of the file specified by bcfile = in params.txt is a list of keyword = value
combinations which determine the J ONSWAP spectrum. These keywords are:
Keyword Type Description Default Minimum Maximum
Hm0 = real H
m0
of the wave spectrum,
significant wave height [m]
0.0 0.0 5.0
fp = real Peak frequency of the wave
spectrum [s
-1
]
0.08 0.0625 0.4
gammajsp =
c
= >
c
c
= <
c
(B.1)
The discretization using a Lax-Wendroff scheme (scheme =2) is:
, ,
, 1, , 1, , , 1, , 1, ,
i+1,j i-1,j
2 2 2
, 1, , 1, , , , , , , , 1, , 1, ,
i+1,j i,j i,j i-1,j
(i,j,k)
2
2
n n n n
n n
x i j k i j k x i j k i j k
x
n n n n n n
x i j k i j k x i j k i j k x i j k i j k
c A c A
c A
x x x
c A c A c A
t
x x x x
+ +
+ +
c
=
c
( ( ( +
A
(B.2)
In y-direction, the upwind discretization is
, , , , , , , 1, , 1,
, , ,
i,j i,j-1
, , 1, , 1, , , , , ,
, , ,
i,j+1 i,j
(i,j,k) , 0
(i,j,k) , 0
n n n n n n
y y i j k i j k y i j k i j k n
y i j k
n n n n n n
y y i j k i j k y i j k i j k n
y i j k
c A c A c A
c
y y y
c A c A c A
c
y y y
+ +
c
= >
c
c
= <
c
(B.3)
In the Lax-Wendroff discretization:
, ,
2 2 2
,, 1, , 1, , , , , , ,, 1, , 1, , , 1, , 1, ,, 1, , 1,
i,j+1 i,j-1 i,j+1 i,j i,j i,j-1
2
(i,j,k)
2
n n n n n n n n n n n n
yi j k i j k yi j k i j k yi j k i j k y yi j k i j k yi j k i j k
c A c A c A c A c A c A
t
y y y y y y y
+ + + +
( ( ( + c
A
=
c
(B.4)
In theta-space an upwind scheme is used only:
, , , , , , , , 1 , , 1
, , ,
i,j,k i,j,k-1
, , , 1 , , 1 , , , , ,
, , ,
i,j,k+1 i,j,k
(i,j,k) , 0
(i,j,k) , 0
n n n n
n n
i j k i j k i j k i j k n
i j k
n n n n
n n
i j k i j k i j k i j k n
i j k
c A c A
c A
c
c A c A
c A
c
u u
u
u
u u
u
u
u u u
u u u
+ +
c
= >
c
c
= <
c
(B.5)
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
B 2
Similar for the wave action balance:
1
, , , ,
, , , , , ,
, ,
n
n n n n n
n n
i j k i j k y
x
i j k i j k i j k
i j k
A A c A
c A c A D
t x y
u
u o
+
c
c c
=
A c c c
(B.6)
We apply an upwind schematisation, since the horizontal scale of the problem is limited and
such a scheme deals with shocks in a natural way.
B.2 Shallow water equations
We apply a staggered grid, where bed levels and water levels are defined in the centre of
cells, and velocity components at the cell interfaces.
If nx,ny are the number of cells in both directions, the water level points are numbered from
1 tonx+1 and from 1 tony+1.
The water level gradients are computed at the cell interfaces and are given by:
i+1,j i,j
i+1,j i,j
(i,j)
x x x
q q
q
c
=
c
(B.7)
i,j+1 i,j
i,j+1 i,j
(i,j)
y x x
q q
q
c
=
c
(B.8)
For computing the shear stresses at the cell interfaces we need the velocity magnitudes at
these interfaces. These are composed by combining the normal velocity component at the
interface and the average of the 4 adjacent tangential components:
, , , 1 , 1, 1 1,
, , 1, , 1, 1 , 1
1
( )
4
1
( )
4
u i j i j i j i j i j
v i j i j i j i j i j
v v v v v
u u u u u
+ +
+ +
= + + +
= + + +
(B.9)
The water depth in each cell is computed as:
, , , , i j i j b i j
h z q = (B.10)
For the depth at cell interfaces, following Stelling and Duinmeijer (2003) we distinguish
between the depth used in the continuity equation and that used in the momentum equation.
The depth at the interfaces for the continuity equation is taken as the upwind depth in case
the velocity is greater than a minimum velocity, or the maximum water level minus the
maximum bed level in case the velocity is less than this minimum velocity:
, , , , min
, , 1, , min
, , , , , 1, , , , 1, , min
,
,
max( , ) max( , ) ,
u i j i j i j
u i j i j i j
u i j s i j s i j b i j b i j i j
h h u u
h h u u
h z z z z u u
+
+ +
= >
= <
= <
(B.11)
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
B 3
, , , , min
, , , 1 , min
, , , , , , 1 , , , , 1 , min
,
,
max( , ) max( , ) ,
v i j i j i j
v i j i j i j
v i j s i j s i j b i j b i j i j
h h v v
h h v v
h z z z z v v
+
+ +
= >
= <
= <
(B.12)
For the depthin the momentum balance we take the average depth between the cell centers:
, , , 1,
1
( )
2
mu i j i j i j
h h h
+
= + (2.13)
, , , , 1
1
( ),
2
mv i j i j i j
h h h
+
= + (2.14)
The advection terms in x-direction are approximated as follows:
, , , , 1, 1, , 1,
,
,
, , , 1,
, , , , 1, 1, 1, ,
,
,
, , 1, ,
1
, 0
2
1
, 0
2
n n n
u i j i j u i j i j i j i j n
i j n n
i j
mu i j i j i j
n n n
u i j i j u i j i j i j i j n
i j n n
i j
mu i j i j i j
h u h u u u
u
u u
x h x x
h u h u u u
u
u u
x h x x
+ + +
+
+
c
= >
c
+
c
= <
c
(B.15)
, , , , , , 1 , , 1 , , 1
, ,
, , , , 1 ,
, , , , , , 1 , , 1 , 1 ,
, ,
, , , 1 , ,
1
, 0
2
1
, 0
2
n n n n n
u i j u i j u i j u i j i j i j n
u i j n n
mu i j i j i j i j
n n n n n
u i j u i j u i j u i j i j i j n
u i j n n
mu i j i j i j i j
h v h v u u
u
v v
y h y y
h v h v u u
u
v v
y h y y
+ + +
+
+
c
= >
c
+
c
= >
c
(B.16)
The advection terms in y-direction are approximated as follows:
, , , , , 1 , 1 , , 1
,
, , , , , 1
, , , , , 1 , 1 , 1 ,
,
, , , , 1 ,
1
, 0
2
1
, 0
2
n n n n n n n
v i j i j v i j i j i j i j n
i j n n n
i j mv i j i j i j
n n n n n n n
v i j i j v i j i j i j i j n
i j n n n
i j mv i j i j i j
h v h v v v
v
v v
y h y y
h v h v v v
v
v v
y h y y
+ + +
+
+
c
= >
c
+
c
= <
c
(B.17)
, , , , , 1, , 1, , 1,
, ,
,
, , , 1,
, , , , , 1, , 1, 1, ,
, ,
,
, , 1, ,
1
, 0
2
1
, 0
2
n n n n n
v i j v i j v i j v i j i j i j n
v i j n n
i j
mv i j i j i j
n n n n n
v i j v i j v i j v i j i j i j n
v i j n n
i j
mv i j i j i j
h u h u v v
v
u u
x h x x
h u h u v v
v
u u
x h x x
+ + +
+
+
c
= >
c
+
c
= >
c
(B.18)
The momentum equation is discretized as follows:
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
B 4
1 n
, , , i+1,j i,j , , 2 2 2
, , ,
,
, , i+1,j i,j , , ,
1.16
n n n n n n
i j i j i j x i j n n
f rms i j u i j n
i j
u i j u i j i j
u u u F
u u
u v c u u v g
t x y h x x h
q q
+
c c
= + + +
A c c
(B.19)
1
, , , i,j+1 i,j , , 2 2 2
, , ,
,
, , i,j+1 i,j , , ,
1.16
n n n n n
i j i j i j y i j n n
f rms v i j i j n
i j
v i j v i j i j
v v v F
v v
v u c u u v g
t y x h y y h
q q
+
c c
= + + +
A c c
(B.20)
From this, the velocities at the new time step level are computed. The water level is then
updated by:
1 1 1 1 1
, , , , 1, 1, , i,j , 1 , 1
u,i,j u,i-1,j v,i,j v,i,j-1
n n n n n n n n n
i j i j i j i j i j i j i j i j i j
u h u h v h v h
t x x y y
q q
+ + + + +
=
A
(B.21)
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
B 5
which yields the wave energy at the new time level.
B.3 Advection-diffusion equations
The differential equations for the advection diffusion of sediment is solved with finite
differences using the first order up-wind scheme discussed earlier with the water depths at
the old time level and the corresponding velocities at the new time level. The horizontal x-
advection is then given by:
, ,
, ,
, 1 , 1
, 1, , 1
,
, 1,
,
, 1 , 1
1, , , 1
,
1, ,
,
, 0
, 0
n n E n n n E n
E
i j i j E n
i j
i j i j
i j
n n E n n n E n
E
i j i j E n
i j
i j i j
i j
h C u h C u
hCu
u
x x x
h C u h C u
hCu
u
x x x
+ +
+
+ +
+ +
+
| | c
= >
|
c
\ .
| | c
= <
|
c
\ .
(2.22)
A similar expression for the horizontal advection in the y-direction:
, ,
, ,
, 1 , 1
, 1, , 1
,
, , 1
,
, 1 , 1
, 1 , , 1
,
, 1 ,
,
, 0
, 0
n n E n n n E n
E
i j i j E n
i j
i j i j
i j
n n E n n n E n
E
i j i j E n
i j
i j i j
i j
h C v h C v
hCv
v
y y y
h C v h C v
hCv
v
y y y
+ +
+
+ +
+ +
+
| | c
= >
|
c
\ .
| | c
= <
|
c
\ .
(2.23)
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
B 6
The horizontal diffusion is evaluated at the old time level n and approximated by:
, ,
1, ,
1, , ,
H x H x
i j i j
H
i j i j i j
D hC D hC
C
D h
x x x x
c c
+
+
c c | | | |
=
| |
c c
\ . \ .
(2.24)
Where the cross-shore gradient in the sediment concentration is given by:
1, ,
, 1, ,
i j i j
x
i j i j i j
C C
C
C
x x x
+
c
+
c
| |
= =
|
c
\ .
(2.25)
And similarly for the y-direction:
, ,
, 1 ,
,
, 1 ,
,
, 0
H y H y
i j i j E
H i j
i j i j
i j
D hC D hC
C
D h v
y y y y
c c
+
+
| | | | c c
= <
| |
c c
\ . \ .
(2.26)
Where the along-shore gradient in the sediment concentration, C
y
, is given by:
, 1 ,
, 1 , ,
i j i j
i j i j i j
C C
C
y y y
+
+
| | c
=
|
c
\ .
(2.27)
The time up-date of the sediment concentration is then given by:
1 1
, , , ,
, ,
, , ,
n n
n n n n
E E
i j i j i j i j
i j i j
n n n
eq
h h
s i j i j i j
h C h C
hCu hCv
t x y
hC hC
C C
D h D h
x x y y T
+ +
( ( c c
+ + +
( (
A c c
( ( ( c c c c ( (
+ + =
( ( ( ( (
c c c c
(2.28)
B.4 Bed update
The bed-update is then approximated by:
1
, , , , , , , 1, , , , , 1
0
(1 )
n n n n n n
b i j b i j x i j x i j y i j y i j
mor
z z S S S S
f
t p x y
+
(
+ + =
(
A A A
(2.29)
Where f
mor
represents a morphological factor to speed up the bed evolution (see e.g.
Roelvink, 2006).
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
C 1
C Multiple sediment fractions proof of concept
To test the implementation of the sediment class formulation a comparison is made with
observations of pre-and post hurricane Ivan cross-barrier island profiles (see Figure 6.1) at
Beasly Park, Florida, USA (Wang and Horwitz, 2007).
The hurricane Ivan impact is simulated with a constant surge level of 1.8 m present for 10
hours at which time the offshore incident significant wave height is kept at 10 m with a
mean wave period of 12 s. The sediment class distribution used in the calculations
discriminates between sand located within the frontal dune (class 1) and sand located on and
behind the barrier island (class 2) (see upper panel in ). The sand on the barrier island is
mostly vegetated which mitigates the erosion. Hence this sand has been given a mobility
restriction that makes it more difficult to pick-up by means of a reduction factor of 0.25 on
the equilibrium concentration. Grain sizes for both sand composites are the same with a D
50
of 0.0035 m and a D
90
of 0.005 mm. The initial sediment class distribution is presented in
the top panel of Figure 1, where an intensity of 1 corresponds to sediment class one only and
-1 to the presence of sediment class 2 only.
The bed-elevation and sediment class distribution after 10 hours are shown in the lower
panel of . The calculated bed-level is similar to the observations although differences are
apparent. These differences can be related to the fact that the hurricane impact is simply
modeled (i.e. constant conditions) and the fact that the post-survey was performed
approximately 10 months after the hurricane had past. Still the overall evolution is
consistent with the observations. The calculated changes in the sediment classes are also
consistent with the observations of Wang and Horwitz (2007) based on a number of cores
showing that the intersection of the new washover with the pre-hurricane sediment occurs
approximately at the original bed level.
Figure 6.1 Top panel: Initial pre-hurricane bed elevation (green line) and sediment class
distribution. A value of 1 corresponds to 100% of sediment class 1, a value of 0 to 50% of
XBeach Model Description and Manual Z4175 June 21, 20
Unesco-IHE, Deltares and Delft University of Technology
C 2
class 1 and 50 % of class 2, and a value of -1 corresponds to 100 % of sediment class two.
Post-hurricane bed elevation (dashed red line) given as a reference. Bottom panel:
Calculated bed-evolution (corresponding to the position of the top layer) and corresponding
sediment class distribution showing the thickness of the wash-over layer located behind the
initial dune. Pre- (green line) and post-hurricane (red dashed line) bed elevation given as a
reference