MIKE_FM_TR_2D
MIKE_FM_TR_2D
Transport Module
User Guide
Limited Liability
The liability of DHI is limited as specified in Section III of your 'DHI
Software Licence Agreement':
'IN NO EVENT SHALL DHI OR ITS REPRESENTATIVES (AGENTS
AND SUPPLIERS) BE LIABLE FOR ANY DAMAGES WHATSO-
EVER INCLUDING, WITHOUT LIMITATION, SPECIAL, INDIRECT,
INCIDENTAL OR CONSEQUENTIAL DAMAGES OR DAMAGES
FOR LOSS OF BUSINESS PROFITS OR SAVINGS, BUSINESS
INTERRUPTION, LOSS OF BUSINESS INFORMATION OR OTHER
PECUNIARY LOSS ARISING OUT OF THE USE OF OR THE INA-
BILITY TO USE THIS DHI SOFTWARE PRODUCT, EVEN IF DHI
HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
THIS LIMITATION SHALL APPLY TO CLAIMS OF PERSONAL
INJURY TO THE EXTENT PERMITTED BY LAW. SOME COUN-
TRIES OR STATES DO NOT ALLOW THE EXCLUSION OR LIMITA-
TION OF LIABILITY FOR CONSEQUENTIAL, SPECIAL, INDIRECT,
INCIDENTAL DAMAGES AND, ACCORDINGLY, SOME PORTIONS
OF THESE LIMITATIONS MAY NOT APPLY TO YOU. BY YOUR
OPENING OF THIS SEALED PACKAGE OR INSTALLING OR
USING THE SOFTWARE, YOU HAVE ACCEPTED THAT THE
ABOVE LIMITATIONS OR THE MAXIMUM LEGALLY APPLICA-
BLE SUBSET OF THESE LIMITATIONS APPLY TO YOUR PUR-
CHASE OF THIS SOFTWARE.'
Printing History
June 2004
August 2005
November 2006
October 2007
January 2009
September 2010
March 2011
September 2012
August 2013
3
4 MIKE 21 Flow Model FM
CONTENTS
5
1 ABOUT THIS GUIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.1 Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2 Assumed User Background . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3 General Editor Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3.1 Navigation tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3.2 Editor window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.3.3 Validation window . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.4 Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.1 Application Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3 GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4 EXAMPLES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.2 Funningsfjord . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.2.1 Purpose of the example . . . . . . . . . . . . . . . . . . . . . . . 17
4.2.2 Defining the problem . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.2.3 Presenting and evaluating the results . . . . . . . . . . . . . . . 20
4.2.4 List of data and specification files . . . . . . . . . . . . . . . . . . 22
5 TRANSPORT MODULE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.1 Component Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.2 Solution Technique . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.2.1 Remarks and hints . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.3 Dispersion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.3.1 Horizontal dispersion . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.3.2 Recommended values . . . . . . . . . . . . . . . . . . . . . . . . 25
5.4 Decay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5.4.1 Remarks and hints . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.5 Precipitation-Evaporation . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.5.1 Recommended values . . . . . . . . . . . . . . . . . . . . . . . . 28
5.6 Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.6.1 Source specification . . . . . . . . . . . . . . . . . . . . . . . . . 29
5.6.2 Remarks and hints . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.7 Initial Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.8 Boundary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.8.1 Boundary specification . . . . . . . . . . . . . . . . . . . . . . . . 31
5.9 Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.9.1 Output specification . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.9.2 Output items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
7
8 MIKE 21 Flow Model FM
Purpose
1.1 Purpose
The main purpose of this User Guide is to enable you to use, MIKE 21
Flow Model FM, Transport Module, for applications of transport phenom-
ena in lakes, estuaries, bays, coastal areas and seas.
It is assumed that you are familiar with the basic elements of MIKE Zero:
File types and file editors, the Plot Composer, the MIKE Zero Toolbox,
the Data Viewer and the Mesh Generator. The documentation for these can
be found by the MIKE Zero Documentation Index.
9
About This Guide
For sections containing spatial data - e.g. sources, boundaries and output -
a geographic view showing the location of the relevant items will be avail-
able. The current navigation mode is selected in the bottom of this view, it
can be “zoom in”, “zoom out” or “recenter”. A context menu is available
from which the user can select to show the bathymetry or the mesh, to
show the optional GIS background layer and to show the legend. From
this context menu it is also possible to navigate to the previous and next
zoom extent and to zoom to full extent. If the context menu is opened on
an item - e.g. a source - it is also possible to jump to the item’s editor.
z Open the Online Help system for browsing manually after a spe-
cific help page:
Open the Online Help system by selecting “Help Topics” in the main
menu bar.
11
About This Guide
z Hydrodynamic Module
z Transport Module
z ECO Lab / Oil Spill Module
z Mud Transport Module
z Particle Tracking Module
z Sand Transport Module
13
Introduction
If you are not familiar with setting up a hydrodynamic model you should
refer to the comprehensive step-by-step training guide covering MIKE 21
Flow Model FM. This training guide (in PDF-format) is provided with the
DHI Software installation and can be found in the installation folder at
.\MIKE Zero\Manuals\MIKE_21\FlowModel_FM\HD\
MIKE_FM_HD_Step_By_Step.pdf.
15
Getting Started
4 EXAMPLES
4.1 General
One of the best ways of learning how to use a modelling system such as
MIKE 21 Flow Model FM is through practice. Therefore an example is
included which you can go through yourself and which you can modify, if
you like, in order to see what happens if one or other parameter is
changed.
The specification files for the example is included with the installation of
MIKEZero. A directory is provided for the example. The directory name
are as follows (default installation):
z Funningsfjord example:
.\Examples\MIKE_21\FlowModel_FM\TR\Funningsfjord
4.2 Funningsfjord
4.2.1 Purpose of the example
Funningsfjord is a small fjord situated at the NE corner of the Faroe
Islands. The computational domain and bathymetry is shown in
Figure 4.1. Here is shown a typical example of calculation of the fjord cir-
culation. The exhange of water between the fjord and the ocean generates
a continuous dilution of the river water that enters the southernmost part
of the fjord. One measure of the water exchange is the residence time,
which for a well mixed water body can be given as T=V/Q. In the real
world the picture is more complicated as the exchange depends on tides,
wind circulations etc. The residence time is here estimated as the age (see
Delhez et. at. (2003)). It should be noted that artificial forcings has been
used to highlight the aspects of the test.
17
Examples
z An unstructured mesh with 1802 elements and 1033 nodes is used. The
mesh is shown in Figure 4.2.
z The starting time of the simulation is 2/8/1985 03:00:00. The time step
of 1 seconds is selected and the duration time of the simulation is 10
days (864000 time steps).
z The horizontal eddy viscosity type has been chosen to Smagorinsky
type and a constant value of 0.28 m1/3/s is applied for the Smagorinsky
coefficient.
z The bed resistance type has been chosen to Manning number and a
constant value of 32 m1/3/s is applied.
z The wind is specified as varying in time and constant in domain. A
data file containing timeseries of measured wind speeds and directions
are given. The length of soft start interval (warm-up period) for the
wind has been chosen to 2 hours (7200 seconds) to avoid chock effects.
19
Examples
In Figure 4.4 is shown the development of the age in the four stations indi-
cated on Figure 4.1.
Figure 4.3 Contour plot of the concentration for the conservative component
(top) and the decaying component (bottom).
21
Examples
Figure 4.4 Age at four stations. Red line: point 1, black line: point 2, blue line:
point 3 and green line: point 4. The locations for the points are
shown on Figure 4.1.
5 TRANSPORT MODULE
The transport module calculates the resulting transport of materials based
on the flow conditions found in the hydrodynamic calculations.
The minimum and maximum time step interval and the critical CFL
number is specified in the Solution Technique dialog in the HYDRODY-
NAMIC MODULE.
23
TRANSPORT MODULE
Choosing the higher order scheme for time integration will increase the
computing time by a factor of 2 compared to the lower order scheme.
Choosing the higher order scheme for space discretization will increase
the computing time by a factor of 1½ to 2. Choosing both as higher order
will increase the computing time by a factor of 3-4. However, the higher
order scheme will in general produce results that are significantly more
accurate than the lower order scheme.
The default value for the critical CFL number is 1, which should secure
stability. However, the calculation of the CFL number is only an estimate.
Hence, stability problems can occur using this value. In these cases you
can reduce the critical CFL number. It must be in the range from 0 to 1.
Alternatively, you can reduce the maximum time step interval. Note, that
setting the minimum and maximum time step interval equal to the overall
time step interval specified on the Time dialog, the time integration will be
performed with constant time step. In this case the time step interval
should be selected so the the CFL number is smaller than 1.
The total number of time steps in the calculation and the maximum and
minimum time interval during the calculation are printed in the log-file for
the simulation. The CFL number can be saved in an output file.
The higher order scheme can exhibit under and over shoots in regions with
steep gradients. Hence, when the higher order scheme is used in combina-
tion with a limitation on the minimum and maximum value of the concen-
tration mass conservation cannot be guarenteed.
5.3 Dispersion
In 2D models the dispersion usually describes transport due to non-
resolved processes. In coastal areas it can be transport due to non-resolved
turbulence or eddies. Especially in the horizontal directions the effects of
non-resolved processes can be significant, in which case the dispersion
coefficient formally should depend on the resolution.
z No dispersion
z Dispersion coefficient formulation
z Scaled eddy viscosity formulation
Selecting the dispersion coefficient formulation you must specify the dis-
persion coefficient.
Data
Selecting Dispersion coefficient option the format of the dispersion coeff-
icent can be specified as
For the case with dispersion coefficent varying in domain you have to pre-
pare a data file containing the dispersion coefficient before you set up the
hydrodynamic simulation. The file must be a 2D unstructured data file
(dfsu) or a 2D grid file (dfs2). The area in the data file must cover the
model area. If a dfsu-file is used piecewice constant interpolation is used
to map the data. If a dfs2-file is used bilinear interpolation is used to map
the data.
Selecting Scaled eddy viscosity option the format of the scaling factor can
be specified as
z Constant
z Varying in domain
For the case with values varying in domain you have to prepare a data file
containing the scaling factor before you set up the hydrodynamic simula-
tion. The file must be a 2D unstructured data file (dfsu) or a 2D data grid
file (dfs2). The area in the data file must cover the model area. If a dfsu-
file is used piecewice constant interpolation is used to map the data. If a
dfs2-file is used bilinear interpolation is used to map the data.
25
TRANSPORT MODULE
Values in the order of 1 are usually recommended for the scaling factor.
For more information, see (Rodi, 1980).
5.4 Decay
Here the components which decay linearly in time can be defined. Many
processes can be approximated by a linear decay, such as die-off of E. Coli
due to exposure to light, decay of the activity of radioactive substances or
estimating the age of water bodies.
∂c
----- = – kc (5.1)
∂t
Data
The format of the decay factor can be specified as
For the case with time varying decay factors you have to prepare a data
file containing the decay factors. The data file must be a time series file
(dfs0). The data must cover the complete simulation period. The time step
of the input data file does not, however, have to be the same as the time
5.5 Precipitation-Evaporation
If your simulation include precipitation and/or evaporation, you need to
specify the concentration of each component in the precipitated and evap-
orated water mass. The precipitation and evaporation can be included in
two ways
z Ambient concentration
The concentration of the precipitated/evaporated water mass is set
equal to the concentration of the ambient sea water.
z Specified concentration
The concentration of the precipitated/evaporated water mass is speci-
fied explictly.
Data
Selecting the specified concentration option the format of the concentra-
tion (in component unit) can be specified as
27
TRANSPORT MODULE
For the case with concentration varying in time but constant in domain
you have to prepare a data file containing the concentration (in component
unit) before you set up the hydrodynamic simulation. The data file must be
a time series file (dfs0). The data must cover the complete simulation
period. The time step of the input data file does not, however, have to be
the same as the time step of the hydrodynamic simulation. A linear inter-
polation will be applied if the time steps differ.
For the case with concentration varying both in time and domain you have
to prepare a data file containing the concentration (in component units)
before you set up the hydrodynamic simulation. The file must be a 2D
unstructured data file (dfsu) or a 2D grid data file (dfs2). The area in the
data file must cover the model area. If a dfsu-file is used piecewice con-
stant interpolation is used to map the data. If a dfs2-file is used bilinear
interpolation is used to map the data. The data must cover the complete
simulation period. The time step of the input data file does not, however,
have to be the same as the time step of the hydrodynamic simulation. A
linear interpolation will be applied if the time steps differ.
5.6 Sources
Point sources of dissolved components are important in many applications
as e.g. release of nutrients from rivers, intakes and outlets from cooling
water or desalination plants.
Depending on the choice of property page you can see a geographic view
or a list view of the sources.
The source concentrations are specified individually for each source and
each component. From the list view you can go to the dialog for specifica-
tion by clicking on the “Go to..” button.
z Specified concentration
z Excess concentration
Data
The format of the source information can be specified as
For the case with source concentration varying in time you have to prepare
a data file containing the concentration (in concentration units) of the
source before you set up the hydrodynamic simulation. The data file must
be a time series file (dfs0). The data must cover the complete simulation
29
TRANSPORT MODULE
period. The time step of the input data file does not, however, have to be
the same as the time step of the hydrodynamic simulation. A linear inter-
polation will be applied if the time steps differ.
Data
The format of the initial concentration (in component unit) for each com-
ponent can be specified as
For the case with varying in domain you have to prepare a data file con-
taining the concentration (in component unit) before you set up the hydro-
dynamic simulation. The file must be a 2D unstructured data file (dfsu) or
a 2D grid data file (dfs2). The area in the data file must cover the model
area. If a dfsu-file is used piecewice constant interpolation is used to map
the data. If a dfs2-file is used bilinear interpolation is used to map the data.
In case the input data file contains a single time step, this field is used. In
case the file contains several time steps, e.g. from the results of a previous
simulation, the actual starting time of the simulation is used to interpolate
the field in time. Therefore the starting time must be between the start and
end time of the file.
Depending on the choice of property page you can get a geographic view
or a list view of the boundaries.
z Land
z Specified values (Dirichlet boundary condition)
z Zero gradient (Neumann boundary condition)
Data
If specified values (Dirichlet boundary condition) is selected the compo-
nent concentration at the boundary (in component unit) can be specified in
one of three ways
For the case with boundary data varying in time but constant along the
boundary you have to prepare a data file containing the component con-
centration (in component unit) before you set up the hydrodynamic simu-
lation. The data file must be a time series file (dfs0). The data must cover
the complete simulation period. The time step of the input data file does
not, however, have to be the same as the time step of the hydrodynamic
simulation. You can choose between different types of time interpolation.
For the case with boundary data varying both in time and along the bound-
ary you have to prepare a data file containing the component concentra-
tion (in component unit) before you set up the hydrodynamic simulation.
The data file must be a profile file (dfs1). The data must cover the com-
plete simulation period. The time step of the input data file does not, how-
31
TRANSPORT MODULE
ever, have to be the same as the time step of the hydrodynamic simulation.
You can choose between different types of time interpolation.
Interpolation type
For the two cases with values varying in time two types of time interpola-
tion can be selected:
z Linear
z Piecewise cubic
In the case with values varying along the boundary two methods of map-
ping from the input data file to the boundary section are available:
z Normal
z Reverse order.
Using normal interpolation the first and last point of the line are mapped
to the first and the last node along the boundary section and the intermedi-
ate boundary values are found by linear interpolation. By using reverse
order interpolation the last and first point of the line are mapped to the first
and the last node along the boundary section and the intermediate bound-
ary values are found by linear interpolation.
5.9 Outputs
Standard data files with computed results from the simulation can be spec-
ified here. Because result files tend to become large, it is normally not
possible to save the computed discrete data in the whole area and at all
time steps. In practice, sub areas and subsets must be selected.
In the main Outputs dialog you can add a new output file by clicking on
the "New output" button. By selecting a file in the Output list and clicking
on the "Delete output" you can remove this file. For each output file you
can specify the name (title) of the file and whether the output file should
be included or not. The specification of the individual output files is made
subsequently. You can go to the dialog for specification by clicking on the
"Go to .." button. Finally, you can view the results using the relevant
Field type
For a 2D simulation, 2D field parameters can be selected. The mass
budget for a domain and the discharge through a cross section can also be
selected.
Output format
The possible choice of output format depends on the specified field type.
If mass budget is selected for the field type you have to specify the domain
for which the mass budget should be calculated. The file type will be a
dfs0 file.
If discharge is selected for the field type you have to specify the cross sec-
tion through which the discharge should be calculated. The file type will
be a dfs0 file.
Table 5.1 List of tools for viewing, editing and plotting results
33
TRANSPORT MODULE
Output file
A name and location of the output file must be specified along with the
type of data (file type).
z Whole area
z Only wet area
z Only real wet area
Selecting the Only wet area option the output file will contain delete val-
ues for land points. The land points are defined as the points where the
water depth is less than a drying depth. Selecting the Only real wet area
option the output file will contain delete values for points where the water
depth is less than the wetting depth. The drying depth and the wetting
depth are specified on the Flood and Dry dialog. If flooding and drying is
not included both the flooding depth and the wetting depth are set to zero.
Time step
The temporal range refers to the time steps specified under Simulation
Period in the Time dialog.
Point series
You must specify the type of interpolation. You can select discrete values
or interpolated values.
The geographical coordinates of the points are either taken from the dialog
or from a file. The file format is an ascii file with four space separated
items for each point on separate lines. The first two items must be floats
(real numbers) for the x- and y-coordinate. For 2D field data the third item
is unused (but must be specified). The last item (the remaining of the line)
is the name specification for each point.
You must also select the map projection (Long/Lat, UTM-32, etc.) in
which you want to specify the horizontal location of the points.
If "discrete values" is selected for the type of interpolation, the point val-
ues are the discrete values for the elements in which the points are located.
The element number and the coordinates of the center of the element are
listed in the log-file.
Line series
You must specify the first and the last point on the line and the number of
discrete points on the line. The geographical coordinates are taken from
the dialog or from a file. The file format is an ascii file with three space
separated items for each of the two points on separate lines. The first two
items must be floats (real numbers) for the x- and y-coordinate. For 2D
field data the third item is unused (but must be specified). If the file con-
tains information for more than two points (more than two lines) the infor-
mation for the first two points will be used.
You must also select the map projection (Long/Lat, UTM-32, etc.) in
which you want to specify the horizontal location of the points.
The values for the points on the line are determined by 2nd order interpo-
lation. The element in which the point is located is determined and the
point value is obtained by linear interpolation using the vertex (node) val-
ues for the actual element. The vertex values are calculated using the
pseudo-Laplacian procedure proposed by Holmes and Connell (1989).
The element number and the coordinates are listed in the log-file.
Area series
The discrete field data within a polygon can be selected. The closed region
is bounded by a number of line segments. You must specify the coordi-
nates of the vertex points of the polygon. Two successive points are the
endpoints of a line that is a side of the polygon. The first and final point is
joined by a line segment that closes the polygon. The geographical coordi-
nates of the polygon points are taken from the dialog or from a file. The
file format is an ascii file with three space separated items for each of the
two points on separate lines. The first two items must be floats (real num-
bers) for the x- and y-coordinate. For 2D field data the third item is unused
(but must be specified).
You must also select the map projection (Long/Lat, UTM-32 etc.) in
which you want to specify the horizontal location of the points.
35
TRANSPORT MODULE
You must also select the map projection (Long/Lat, UTM-32, etc.) in
which you want to specify the horizontal location of the points.
Domain series
The domain for which mass budget should be calculated is specified as a
polygon in the horizontal domain. The closed region is bounded by a
number of line segments. You must specify the coordinates of the vertex
points of the polygon. Two successive points are the endpoints of a line
that is a side of the polygon. The first and final point is joined by a line
segment that closes the polygon. The geographical coordinates of the pol-
ygon points are taken from the dialog or from a file. The file format is an
ascii file with three space separated items for each of the two points on
separate lines. The first two items must be floats (real numbers) for the x-
and y-coordinate. The third item is unused (but must be specified).
You must also select the map projection (Long/Lat, UTM-32, etc.) in
which you want to specify the horizontal location of the points.
Field variables
You can select basic output variables and additional output variables.
z Velocity components
z CFL number
Mass Budget
You can select the mass budget calculation to be included for the flow and
for the transported components. For each selected component the follow-
ing items are included in the output file
Discharge
You can select the discharge calculation to be included for the flow and for
the transported components. Each selected component will result in a
number of output items.
z Basic
z Extended
37
TRANSPORT MODULE
The extended output items that are included in the output file in addition
to the basic output items are as follows:
z Positive discharge
z Accumulated positive discharge
z Negative discharge
z Accumulated negative discharge
39
LIST OF REFERENCES
41
Index
A
About this guide . . . . . . . . . . . . .9
Area series . . . . . . . . . . . . . . . 35
B
Boundary conditions . . . . . . . . . . 31
D
Decay . . . . . . . . . . . . . . . . . . 26
Dirichlet boundary condition . . . . . 31
Dispersion . . . . . . . . . . . . . . . . 24
Dispersion coefficient . . . . . . . . . 24
E
Evaporation . . . . . . . . . . . . . . . 27
Excess concentration . . . . . . . . . 29
H
Horizontal dispersion . . . . . . . . . 24
I
Initial conditions . . . . . . . . . . . . 30
L
Line series . . . . . . . . . . . . . . . 35
N
Neumann boundary condition . . . . 31
O
Online help . . . . . . . . . . . . . . . 11
Outputs . . . . . . . . . . . . . . . . . 32
P
Point series . . . . . . . . . . . . . . . 34
Prandtl number . . . . . . . . . . . . . 26
Precipitation . . . . . . . . . . . . . . . 27
S
Scaled eddy viscosity . . . . . . . . . 24
Sources . . . . . . . . . . . . . . . . . 28
U
User background . . . . . . . . . . . . . 9