MIKE 21 Flow Model FM. Parallelisation using GPU. Verification report

Similar documents
MIKE 21 Flow Model FM. Parallelisation using GPU. Benchmarking report

MIKE Powered by DHI. GPU - Guidelines

MIKE 21 Flow Model FM. Sand Transport Module. Step-by-step training guide: Coastal application

MIKE 1D. What is included in MIKE 1D 2017?

MIKE 21/3 Coupled Model FM. Step-by-step training guide: Coastal application

MIKE 21 Flow Model FM. Mud Transport Module. Step-by-step training guide

MIKE 21 & MIKE 3 FLOW MODEL FM. Transport Module. Short Description

MIKE 21 & MIKE 3 Flow Model FM. Hydrodynamic Module. Step-by-step training guide

MIKE 21 & MIKE 3 Flow Model FM. Transport Module. Short Description

MIKE 21 & MIKE 3 FLOW MODEL FM. Hydrodynamic Module. Short Description

MIKE FLOOD. Modelling of Urban Flooding. Step-by-step training guide

High performance computing in an operational setting. Johan

Connecting 1D and 2D Domains

Day 1. HEC-RAS 1-D Training. Rob Keller and Mark Forest. Break (9:45 am to 10:00 am) Lunch (12:00 pm to 1:00 pm)

Objectives This tutorial will introduce how to prepare and run a basic ADH model using the SMS interface.

Generalisation of Topographic resolution for 2D Urban Flood Modelling. Solomon D. Seyoum Ronald Price Zoran Voijnovic

COMPARISON BETWEEN MIKE 21 FM, DELFT3D AND DELFT3D FM FLOW MODELS OF WESTERN PORT BAY, AUSTRALIA

DHI Flexible File Formats. DFSU 2D/3D, Vertical Profile/Column, and Mesh File. Technical Documentation

Introduction to MIKE FLOOD

v SMS 11.1 Tutorial SRH-2D Prerequisites None Time minutes Requirements Map Module Mesh Module Scatter Module Generic Model SRH-2D

v TUFLOW FV SMS 13.0 Tutorial Requirements Time Prerequisites Objectives

v SMS Tutorials SRH-2D Prerequisites Requirements SRH-2D Model Map Module Mesh Module Data files Time

MIKE 3 Flow Model FM. MIKE ECO Lab Module. Step-by-step training guide

v TUFLOW FV SMS 12.2 Tutorial Time Requirements Prerequisites Objectives

Objectives This tutorial shows how to build a Sedimentation and River Hydraulics Two-Dimensional (SRH-2D) simulation.

MIKE 11. River and Channel Modelling. Short Introduction - Tutorial

MIKE Zero. Project Oriented Water Modelling. Step-by-step training guide

GPU - Next Generation Modeling for Catchment Floodplain Management. ASFPM Conference, Grand Rapids (June 2016) Chris Huxley

This tutorial shows how to build a Sedimentation and River Hydraulics Two-Dimensional (SRH-2D) simulation. Requirements

WMS 10.0 Tutorial Hydraulics and Floodplain Modeling HY-8 Modeling Wizard Learn how to model a culvert using HY-8 and WMS

ISIS 1D. Quick Start Guide. Cost effective, integrated software solutions ch2mhill.com/isis

MIKE ECO Lab Agent Based Modelling. ABM Lab - Drifter Example. Step-by-step training guide

Modelling of Bridge Pier Afflux in 2D. Bill Syme / Phillip Ryan

River inundation modelling for risk analysis


FMA 2D Challenge Models 2012

Representing Detail in Large Hydraulic Models: Lower Thames and Humber Estuary. Neil Hunter, Kevin Haseldine and Matthew Scott

HECRAS 2D: Are you ready for the revolution in the world of hydraulic modeling?

MIKE 11 MIKE a Modelling System for Rivers and Channels. Short Introduction Tutorial

v TUFLOW-2D Hydrodynamics SMS Tutorials Time minutes Prerequisites Overview Tutorial

HEC-RAS 2D Flood Modelling Tutorial

Introducion to Hydrologic Engineering Centers River Analysis System (HEC- RAS) Neena Isaac Scientist D CWPRS, Pune -24

MIKE FLOOD. Modelling of River Flooding. A Step-by-step training guide. DHI Water & Environment. Agern Allé 5 DK-2970 Hørsholm Denmark

The CaMa-Flood model description

MIKE 21 FLOW MODEL FM

A Comparative Study of HEC-RAS 2D, TUFLOW, & Mike 21 Model Benchmark Testing

MIKE URBAN Tools. Result Verification. Comparison between results

Application of 2-D Modelling for Muda River Using CCHE2D

ISIS Free & ISIS Professional Quick Start Guide

Agenda. Background Connecting to model Running the model Viewing results Running what if scenarios

Use of measured and interpolated crosssections

Urban Floodplain modeling- Application of Two-Dimensional Analyses to Refine Results

iric Software Changing River Science River2D Tutorials

End User License Agreement

RELEASE NOTES TRIMBLE REALWORKS SOFTWARE VERSION System requirements New Features and Changes

2D Large Scale Automated Engineering for FEMA Floodplain Development in South Dakota. Eli Gruber, PE Brooke Conner, PE

Introduction Surface Water Modeling System (SMS) & Case Study using SMS 2D Modeling Software

Large scale flexible mesh 2D modelling of the Lower Namoi Valley

Flood Inundation Mapping using HEC-RAS

UNDERSTAND HOW TO SET UP AND RUN A HYDRAULIC MODEL IN HEC-RAS CREATE A FLOOD INUNDATION MAP IN ARCGIS.

Tisio CE Release Notes

Efficiency and Accuracy of Importing HEC RAS Datafiles into PCSWMM and SWMM5

Using HEC-RAS and HEC-GeoRAS for River Modeling Adapted by E. Maurer, using an exercise by V. Merwade, Purdue Univ.

Using GeoNet 2.0 for feature identification in an urban environment Anna Kladzyk

Hydraulics and Floodplain Modeling Modeling with the Hydraulic Toolbox

Aalborg Universitet. Numerical 3-D Modelling of Overflows Larsen, Torben; Nielsen, L.; Jensen, B.; Christensen, E. D.

Channel Conditions in the Onion Creek Watershed. Integrating High Resolution Elevation Data in Flood Forecasting

Setup Guide. Version 0.5

MIKE Release 2019 News and features. October 2018

PRACTICAL UNIT 1 exercise task

This loads a preset standard set of data appropriate for Malaysian modeling projects.

MODELLING THE FLOW AROUND AN ISLAND AND A HEADLAND: APPLICATION OF A TWO MIXING LENGTH MODEL WITH TELEMAC3D. Nicolas Chini 1 and Peter K.

Prof. B.S. Thandaveswara. The computation of a flood wave resulting from a dam break basically involves two

Shallow Water Simulations on Graphics Hardware

Acceleration of a Python-based Tsunami Modelling Application via CUDA and OpenHMPP

What's New in this Version

SMS v Culvert Structures with HY-8. Prerequisites. Requirements. Time. Objectives

The TUFLOW Link. Past, Present and Future. Stephanie Dufour

Installing Your Microsoft Access Database (Manual Installation Instructions)

GPA Migration Guide

TUFLOW 1D/2D SURFACE WATER MODELING SYSTEM. 1 Introduction. 2 Background Data

ENV3104 Hydraulics II 2017 Assignment 1. Gradually Varied Flow Profiles and Numerical Solution of the Kinematic Equations:

Shimadzu LabSolutions Connector Plugin

2D Modelling Workshop - Sydney 16 June Assessment of Bridge Losses using a Range of 2D Modelling Tools - Andrew McCowan

SonicWALL CDP 2.1 Agent Tool User's Guide

Simulating the effect of Tsunamis within the Build Environment

ivms-5200 Mobile Surveillance V1.1.1 Software Requirements & Hardware Performance

TUFLOW. Flood & Coastal Simulation Software. tuflow.com

INTERNATIONAL JOURNAL OF CIVIL AND STRUCTURAL ENGINEERING Volume 2, No 3, 2012

2D Hydrodynamic Model for Reservoirs: Case Study High Aswan Dam Reservoir

Evaluating Multiple Stormwater Analysis and Design Alternatives with StormCAD

ANALYSIS OF THE MORPHODYNAMICS OF THE GERMAN NORTH SEA COAST ON THE BASIS OF A FUNCTIONAL SEABED MODEL. Peter Milbradt1

1.0. Quest Enterprise Reporter Discovery Manager USER GUIDE

Watershed Modeling HEC-HMS Interface

RESCDAM DEVELOPMENT OF RESCUE ACTIONS BASED ON DAM BREAK FLOOD ANALYSI A PREVENTION PROJECT UNDER THE EUROPEAN COMMUNITY ACTION PROGRAMME

v. 9.1 WMS 9.1 Tutorial Watershed Modeling HEC-1 Interface Learn how to setup a basic HEC-1 model using WMS

One Identity Quick Connect Express

Digital Raster Acquisition Project Eastern Ontario (DRAPE) 2014 Digital Surface Model and Digital Terrain Model

Staying ahead of the flood. The influence of higher resolution flood simulation models on the accuracy and visualisation of information.

HIGH RESOLUTION MODELLING OF URBAN FLOODING EVENTS

Transcription:

MIKE 21 Flow Model FM Parallelisation using GPU Verification report MIKE by DHI 2014

DHI headquarters Agern Allé 5 DK-2970 Hørsholm Denmark +45 4516 9200 Telephone +45 4516 9333 Support +45 4516 9292 Telefax mikebydhi@dhigroup.com www.mikebydhi.com gpu_verification.docx/ors/kle/2014-01-07 - DHI

PLEASE NOTE COPYRIGHT This document refers to proprietary computer software, which is protected by copyright. All rights are reserved. Copying or other reproduction of this manual or the related programmes is prohibited without prior written consent of DHI. For details please refer to your 'DHI Software Licence Agreement'. 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 WHATSOEVER 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 INABILITY 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 COUNTRIES OR STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION 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 APPLICABLE SUBSET OF THESE LIMITATIONS APPLY TO YOUR PURCHASE OF THIS SOFTWARE.' PRINTING HISTORY January 2014... Release 2014 MIKE by DHI 2014

MIKE 21 Flow Model FM Parallelisation using GPU - DHI

CONTENTS MIKE 21 Flow Model FM Parallelisation using GPU Verification report 1 Vision and scope... 1 2 Methodology... 3 2.1 GPU parallelisation... 3 2.2 Platform... 3 2.3 Verification procedure... 3 3 Description of test cases... 5 3.1 Examples included in the installation of MIKE Zero... 5 3.1.1 MIKE 21 Flow Model FM examples... 5 3.1.2 MIKE FLOOD example... 6 3.2 Mediterranean Sea... 6 3.2.1 Description... 6 3.2.2 Setup... 6 3.2.3 Data and specification files... 7 3.3 Ribe Polder... 8 3.3.1 Description... 8 3.3.2 Setup... 9 3.3.3 Data and specification files... 11 3.4 EA2D Test 8B... 11 3.4.1 Description... 11 3.4.2 Setup... 12 3.4.3 Data and specification files... 13 4 Verification results... 15 4.1 Ribe Polder... 15 4.2 EA2D Test 8B... 19 5 Conclusions... 25 6 References... 27 i

MIKE 21 Flow Model FM ii Parallelisation using GPU - DHI

Vision and scope 1 Vision and scope Release 2014 of MIKE by DHI includes a parallelisation of the hydrodynamic module of MIKE 21 Flow Model FM based on the Graphical Processor Unit (GPU) computing approach. In order to verify the implementation of this GPU parallelised version, a set of well-defined test cases have been established. For each of these test cases, the simulation results generated using the GPU version of MIKE 21 Flow Model FM are compared to the simulation results generated using the already existing, OpenMP parallelised version of MIKE 21 Flow Model FM. 1

MIKE 21 Flow Model FM 2 Parallelisation using GPU - DHI

Methodology 2 Methodology 2.1 GPU parallelisation The GPU version of MIKE 21 Flow Model FM uses the graphics card of the computer to perform the computational intensive calculations. The new GPU version of MIKE 21 Flow Model FM can also be applied for two-dimensional calculations in MIKE FLOOD. The utilisation of the GPU is based on the CUDA technology provided by NVIDIA. The GPU version of MIKE 21 Flow Model FM can be executed on NVIDIA graphics cards with Compute Capability 2.0 or higher. Currently, only the hydrodynamic module of MIKE 21 Flow Model FM utilises the GPU. The additional calculations are performed on the CPU and these calculations are parallelised based on the shared memory approach, OpenMP. The numerical scheme and the basic implementation used in the GPU version of MIKE 21 Flow Model FM are identical to the scheme and implementation used in the OpenMP and MPI version of MIKE 21 Flow Model FM. The new GPU version of MIKE 21 Flow Model FM can also be applied for two-dimensional calculations in MIKE FLOOD. 2.2 Platform The verification has been performed using a two core HP workstation with Intel Core i3-2120 Processor (3.30 GHz), 8 GB of RAM and GeForce GTX TITAN graphics card. The operating system is Windows 7. 2.3 Verification procedure The verification is based on the test cases described in section 3. For each test case, results are generated using the GPU parallelisation approach and using the OpenMP parallelisation approach of MIKE 21 Flow Model FM, and the results are afterwards compared. This comparison primarily considers the resulting dfsu files. For each test case the comparison process consists of at least the first two of the following steps: 1. Comparing log files: For each simulation MIKE 21 Flow Model FM generates a log file including statistical information for the results files. The statistical information contains minimum, maximum and mean value for each item. If the log files generated using the GPU approach and using the OpenMP approach are identical, or only differs slightly, the comparison is considered a success. 2. Comparing dfsu output files: Each of the dfsu output files generated using the GPU approach is compared to the corresponding output file generated using the OpenMP approach. This is done using the DataCalculationFM tool, which produces a log file and a dfsu file, holding the differences between the two output files of interest. If the log file produced by this tool shows that the output files are identical, then the comparison is considered a success. If the output files are not identical, but differences are sufficiently small, then a visual inspection is done. 3. Visual inspection: If the dfsu file produced by the DataCalculationFM tool shows that the differences are sufficiently small, and that they seem more or less random throughout the domain, then the comparison is considered a success. In case of any 3

MIKE 21 Flow Model FM doubt, the output files are compared manually for each time step for each dynamic item. If the two solutions show the same basic behaviour, then the comparison is considered a success. If there are many output time steps in the simulation, then the visual inspection is done by sampling. 4 Parallelisation using GPU - DHI

Description of test cases 3 Description of test cases The set of verification test cases consists of all the examples for the hydrodynamics (HD) module and the transport (TR) module in MIKE 21 Flow Model FM included in the installation of MIKE Zero. Furthermore, an example for MIKE FLOOD included in the installation of MIKE Zero is considered. Finally, the set of test cases also includes some additional test cases which have been established for benchmarking of the MIKE 21 Flow model FM 3.1 Examples included in the installation of MIKE Zero The test cases in this section are all included in the installation of MIKE Zero. 3.1.1 MIKE 21 Flow Model FM examples The list of MIKE 21 Flow Model FM examples used as verification test cases is shown in Table 3.1. This table also indicates in which folder the examples are located relative to the following path, which assumes a default MIKE Zero installation: C:\Program Files (x86)\dhi\2014\mike Zero\Examples\MIKE_21\FlowModel_FM Descriptions of these installation examples are found in the following manuals, which are all included in the installation of MIKE Zero: MIKE 21 Flow Model FM, Hydrodynamic Module, User Guide MIKE 21 Flow Model FM, Hydrodynamic Module, Step-by-Step Training Guide MIKE 21 Flow Model FM, Transport Module, User Guide Table 3.1 MIKE 21 Flow Model FM installation examples used for verification Module Folder Test case HD Lake lake.m21fm HD Lake LakeConnectedSourceSink.m21fm HD Oresund\Calibration_2 oresund.m21fm HD Structure Sim1_Bank.m21fm HD Structure Sim1_Weir.m21fm HD Structure Sim2_Weir.m21fm HD Structure Sim3_WeirQH.m21fm 5

MIKE 21 Flow Model FM Module Folder Test case HD Structure Sim4_Dike_Constant.m21fm HD Structure Sim4_Dike_Varying.m21fm HD Structure Sim5_DepthCorrection_Varying.m21fm TR FunningsFjord FunningsFjord.m21fm 3.1.2 MIKE FLOOD example The following MIKE FLOOD example has been used as verification test case: C:\Program Files (x86)\dhi\2016\mike Zero\Examples\MIKE_FLOOD\ FloodplainDemonstration\MIKE_FLOOD_FM.couple, where the couple file directs to the m21big.m21fm file. A description of this test case is found in the MIKE FLOOD User Manual included in the MIKE Zero installation. 3.2 Mediterranean Sea 3.2.1 Description 3.2.2 Setup This test case has been established for benchmarking of the MIKE 21 Flow model FM. In the Western parts of the Mediterranean Sea tides are dominated by the Atlantic tides entering through the Strait of Gibraltar, while the tides in the Eastern parts are dominated by astronomical tides, forced directly by the Earth-Moon-Sun interaction. The bathymetry is shown in Figure 3.1. Simulations are performed using four meshes with different resolution (see Table 3.2). The meshes are generated specifying the value for the maximum area of 0.01, 0.0025, 0.00125 and 0.0003125 degree2, respectively. The simulation period for the benchmarks covers 2 days starting 1 January 2004 for the simulations using mesh A, B and C. The simulation period is reduced to 6 hours for the simulations using mesh D. At the Atlantic boundary a time varying level boundary is applied. The tidal elevation data is based on global tidal analysis (Andersen, 1995). For the bed resistance, the Manning formulation is used with a Manning number of 32. For the eddy viscosity the Smagorinsky formulation is used with a Smagorinsky factor of 1.5. Tidal potential is applied with 11 components (default values). 6 Parallelisation using GPU - DHI

Description of test cases The shallow water equations are solved using both the first-order scheme and the higherorder scheme in time and space. The averaged time step for the simulations using Mesh A, B, C and D is 17.65s, 5.61s, 2.86s and 1.46s, respectively, for both the first-order scheme and the higher-order scheme in time and space. Table 3.2 Computational mesh for the Mediterranean Sea case Mesh Element shape Elements Nodes Max. area Degree 2 Mesh A Triangular 11287 6283 0.010 Mesh B Triangular 80968 41825 0.005 Mesh C Triangular 323029 164161 0.00125 Mesh D Triangular 1292116 651375 0.0003125 Figure 3.1 Bathymetry for the Mediterranean Sea case 3.2.3 Data and specification files The data and specification files used for the present case are located in the directory: Benchmarking\Mediterranean_Sea The tests are performed using the following specification files: 2004_tide_A_1st.m21fm 2004_tide_B_1st.m21fm 2004_tide_C_1st.m21fm 2004_tide_D_1st.m21fm 2004_tide_A_2nd.m21fm 2004_tide_B_2nd.m21fm 7

MIKE 21 Flow Model FM 3.3 Ribe Polder 3.3.1 Description 2004_tide_C_2nd.m21fm 2004_tide_D_2nd.m21fm This test case has been established for benchmarking of the MIKE 21 Flow Model FM. The model area is located, on the southern part of Jutland, Denmark, around the city of Ribe. The area is protected from storm floods in the Wadden Sea to the west by a dike. The water course Ribe Å runs through the area and crosses the dike through a lock. The flood condition where the dike is breached during a storm flood is illustrated by numerical modelling. The concept applied to model the breach failure in the hydrodynamic model is based on prescribing the breach by a dynamic bathymetry that change in accordance with the relation applied for the temporal development of the breach. Use of this method requires that the location of the breach is defined and known at an early stage, so that it can be resolved properly and built into the bathymetry. The shape and temporal development of the breach is defined with a time-varying distribution along the dike crest. It is further defined how far normal to the crest line the breach can be felt. Within this distance the bathymetry is following the level of the breach, if the local level is lower than the breach level no changes are introduced. The area of influence of the breach will therefore increase with time. The breach and flood modelling has been carried out based on a historical high water event (24 November, 1981), shown in Figure 3.2. Characteristic for this event is that high tide occurs at the same time as the extreme water level. Højer sluice is located about 40 km south of the breach, while Esbjerg is located about 20 km to the north. Based on the high water statistics for Ribe the extreme high water level has been estimated for an event having a return period of 10,000 years. The observed water level at Højer is hereafter adjusted gradually over two tidal cycles to the extreme high water level estimated for the given return periods at Ribe, as indicated in Figure 3.2. The water level time series established in this way are shown in Figure 3.2. 8 Parallelisation using GPU - DHI

Description of test cases Figure 3.2 Runoff from the catchment is included as specified discharges given for the two streams Ribe Å and Kongeåen The crossing between the dike and Ribe Å is shown in Figure 3.4. The crossing is in the form of a navigational chamber lock. It is represented in the model bathymetry as a culvert that can be closed by a gate. The points defining the dike next to the creek are modified to have increased levels in order to ensure a well defined bathymetry where flow only occurs through the cells defining the creek proper. The sluice is defined as a check valve allowing only flow towards the sea. 3.3.2 Setup The bathymetry is shown in Figure 3.3. The computational mesh contains 173101 elements. A satisfactory resolution of the breach is obtained by a fine mesh of structured triangles and rectangles as shown in Figure 3.4. The areas in and offshore of the dike is defined by a relatively fine mesh to avoid instabilities due to humps or holes caused by large elements with centroids just outside the area of influence from the breach. The simulation period is 42 hours. 9

MIKE 21 Flow Model FM Figure 3.3 Bathymetry for the Ribe Polder case Figure 3.4 Close-up of the bathymetry At the offshore boundary a time series of level variations is applied. A constant discharge of 9.384 m 3 /s and 14.604 m 3 /s, respectively, are applied for the two streams Ribe Å and Kongeåen. For the bed resistance, the Manning formulation is used 10 Parallelisation using GPU - DHI

Description of test cases with a Manning number of 20. For the eddy viscosity, the Smagorinsky formulation is used with a Smagorinsky factor of 0.28. The shallow water equations are solved using both the first-order scheme and higherorder scheme in space and time. The averaged time step is 0.21s for both the first-order scheme and higher-order scheme in space and time. 3.3.3 Data and specification files 3.4 EA2D Test 8B 3.4.1 Description The data and specification files used for the present case are located in the directory Benchmarking\Ribe_Polder The tests are performed using the following specification files: Event_10000_1st.m21fm Event_10000_2nd.m21fm This test is Test 8B in the benchmarks test developed during the Joint Defra/Environment Agency research programme. This tests the package s capability to simulate shallow inundation originating from a surcharging underground pipe, at relatively high resolution. This test case has been established for benchmarking of the MIKE Flood using MIKE 21 Flow model FM for the 2D surface flow calculation. The modelled area is approximately 0.4 km by 0.96 km and covers entirely the DEM provided and shown in Figure 3.5. Ground elevations span a range of ~21m to ~37m. Figure 3.5 Bathymetry for the EA2D Test8B case A culverted watercourse of circular section, 1400mm in diameter, ~1070m in length, and with invert level uniformly 2m below ground is assumed to run through the modelled area. An inflow boundary condition is applied at the upstream end of the pipe, illustrated in 11

MIKE 21 Flow Model FM Figure 3.6. A surcharge is expected to occur at a vertical manhole of 1m 2 cross-section located 467m from the top end of the culvert, and at the location (264896, 664747). For the downstream boundary condition free out fall (critical flow is assumed). The base flow (uniform initial condition) is 1.6 m/s. The manhole is connected to the grid in one point and the surface flow is assumed not to affect the manhole outflow. Figure 3.6 Inflow hydrograph applied for the EA2D Test8B at upstream end of culvert DEM is a 0.5m resolution Digital Terrain Model (no vegetation or buildings) created from LiDAR data collected on 13th August 2009 and provided by the Environment Agency (http://www.geomatics-group.co.uk). Model grid resolution should be 2m (or ~97000 nodes in the 0.388 km 2 area modelled). The presence of a large number of buildings in the modelled area is taken into account. Building outlines are provided with the dataset. Roof elevations are not provided. A land-cover dependent roughness value is applied, with 2 categories: 1) Roads and pavements; 2) Any other land cover type. Manning s n = 0.02 is applied for roads, and pavements n = 0.05 everywhere else. All boundaries in the model area are closed (no flow) and the initial condition is dry bed. The model is run until time T = 5 hours to allow the flood to settle in the lower parts of the modelled domain. 3.4.2 Setup Simulations are performed using four meshes with different resolution (see Table 3.3). The four meshes uses regular quadrilateral elements with grid spacing 2m, 1m, 0.5m and 0.25m, respectively. Mesh A corresponds to the original mesh used in the EA2D test, and the additional meshes are obtained by refining this mesh. 12 Parallelisation using GPU - DHI

Description of test cases Table 3.3 Computational mesh for the EA2D Test 8B case Mesh Element shape Elements Nodes Grid spacing metres Mesh A Quadrilateral 95719 96400 2 Mesh B Quadrilateral 384237 385600 1 Mesh C Quadrilateral 1539673 1542400 0.5 Mesh D Quadrilateral 6164145 6169600 0.25 The shallow water equations are solved using the first-order scheme in time and space. The averaged time step for the simulation using Mesh A, B, C and D is 0.27s, 0.15s, 0.76s and 0.025s, respectively. 3.4.3 Data and specification files The data and specification files used for the present case are located in the directory: Benchmarking\EA2D_Test_8B The tests are performed using the following specification files: Test8B_quadratic_2m.couple Test8B_quadratic_1m.couple Test8B_quadratic_0.5m.couple Test8B_quadratic_0.25m.couple 13

MIKE 21 Flow Model FM 14 Parallelisation using GPU - DHI

Verification results 4 Verification results Following the test procedure described in section 2.3, the implementation of the GPU version of MIKE 21 Flow Model FM HD has been verified for the entire set of test cases presented in section 3. The simulations have been performed using the double precision version of the new GPU version of MIKE 21 Flow Model FM. For the test cases without flooding and drying, the results generated using the GPU parallelisation approach are identical, or very close to identical, to the results generated using the OpenMP parallelisation approach. If the test case has extensive flooding and drying there might be small deviations in the results, but the basic behaviour of the generated solutions are the same. These small deviations observed for extensive flooding and drying is expected, since the flooding and drying concept is based on threshold values. This means that even a tiny difference in the water level can possibly affect whether or not an element is flooded or dry. The remainder of this section will focus on the results for the test cases having extensive flooding and drying, since it is for these test cases that the largest differences between the GPU version and the OpenMP version are observed. 4.1 Ribe Polder In the following some results for the Ribe Polder test case are presented. Figure 4.1 shows 2D plots of the maximum water depth during the entire simulation period using the 1 st order scheme. Figure 4.2 shows a close-up of the maximum water current speed during the entire simulation period using the 1 st order scheme. The close-up is at the location where the dike breaches. Figure 4.3 shows 2D plots of the difference in maximum water depth and maximum current speed during the entire simulation period between GPU version and OpenMP version, applying the 1 st order scheme. It is seen that the differences between the results using the GPU version and the OpenMP version is very small. 15

MIKE 21 Flow Model FM Figure 4.1 Maximum water depth during the entire simulation period using the 1 st order scheme. Top: GPU version Bottom: OpenMP version 16 Parallelisation using GPU - DHI

Verification results Figure 4.2 Maximum current speed during the entire simulation period at the location where the dike breaches. The 1 st order scheme has been used. Top: GPU version Bottom: OpenMP version 17

MIKE 21 Flow Model FM Figure 4.3 Top: Difference in maximum water depth during the entire simulation period between GPU version and OpenMP version, applying the 1 st order scheme Bottom: Difference in maximum current speed during the entire simulation period between GPU version and OpenMP version, applying the 1 st order scheme 18 Parallelisation using GPU - DHI

Verification results 4.2 EA2D Test 8B In the following some results for the EA2D Test 8B test case with 2m grid spacing are presented. Figure 4.4 shows 2D plots of the surface elevation after 115 time steps. Figure 4.5 shows 2D plots of the maximum water depth during the entire simulation period using the 1st order scheme, and Figure 4.6 shows the current speed during the entire simulation period using the 1st order scheme. Figure 4.7 shows 2D plots of the difference in maximum water depth and maximum current speed during the entire simulation period between GPU version and OpenMP version, applying the 1st order scheme. In Figure 4.8 the surface elevation is compared at 3 different points in the domain. It is seen that the differences between the results using the GPU version and the OpenMP version is very small. Figure 4.4 Surface elevation after 115 time steps using the 1 st order scheme. Top: GPU version Bottom: OpenMP version 19

MIKE 21 Flow Model FM Figure 4.5 Maximum water depth during the entire simulation period using the 1 st order scheme. Top: GPU version Bottom: OpenMP version 20 Parallelisation using GPU - DHI

Verification results Figure 4.6 Maximum current speed during the entire simulation period using the 1 st order scheme. Top: GPU version Bottom: OpenMP version 21

MIKE 21 Flow Model FM Figure 4.7 Top: Difference in maximum water depth during the entire simulation period between GPU version and OpenMP version, applying the 1 st order scheme Bottom: Difference in maximum current speed during the entire simulation period between GPU version and OpenMP version, applying the 1 st order scheme 22 Parallelisation using GPU - DHI

Verification results Figure 4.8 Surface elevation during the entire simulation period at 3 different points in the domain 23

MIKE 21 Flow Model FM Figure 4.9 Current speed during the entire simulation period at 3 different points in the domain 24 Parallelisation using GPU - DHI

Conclusions 5 Conclusions The basic implementation of the numerical scheme of the MIKE 21 Flow Model FM GPU version is identical to the OpenMP version of MIKE 21 Flow Model FM. However, due to performance reasons, there are some differences in the implementation of the GPU version. For some accumulated values this causes rounding errors, which for the primary variables can be up to the sixth significant digit. This is the reason that the simulation results generated using the GPU version might differ slightly from the simulation results generated using the OpenMP version. However, the basic behaviour between the two versions is the same. Furthermore, for the simulations with extensive flooding and drying the results might contain small differences, since the flooding and drying technique is based on thresholds, meaning that even a tiny difference can influence whether or not an element is flooded or dry. 25

MIKE 21 Flow Model FM 26 Parallelisation using GPU - DHI

References 6 References /1/ Andersen, O.B., 1995, Global ocean tides from ERS-1 and TOPEX/POSEIDON altimetry, J. Geophys Res. 100 (C12), 25,249-25,259. /2/ Bo Brahtz Christensen, Nils Drønen, Peter Klagenberg, John Jensen, Rolf Deigaard and Per Sørensen, 2013, Multiscale modelling of coastal flooding, Coastal Dynamics 2013, paper no. 053. /3/ Néelz S., Pender G., 2010, Benchmarking of 2D Hydraulic Modelling Packages, Report published by Environment Agency, www.environment-agency.gov.uk, Copies of this report are available from the publications catalogue: http://publications.environment-agency.gov.uk. 27

MIKE 21 Flow Model FM 28 Parallelisation using GPU - DHI