Tutorial Module01 Archive: Difference between revisions
Content deleted Content added
Created page with "<ol> == Introduction == Please read the <u> Tutorial Model Introduction</u> before starting this tutorial. It outlines the programs requiring installation..." |
No edit summary |
||
(23 intermediate revisions by 5 users not shown) | |||
Line 1:
<ol>
== Introduction ==
Please read the <u>[[
In this first module, a fully two-dimensional (2D) model is built. The steps required to build, run and review a basic 2D TUFLOW model are listed in the table of contents above and shown in the workflow diagram below.<br>
Line 31:
<ol>
<li>Set up the model directory and sub-directories as recommended in the list below (for a more detailed description
''* If using SMS, the folder structure listed above is automatically created before running the model using the "Export TUFLOW files" command (see <u>[[Run TUFLOW from within SMS|Run TUFLOW from within SMS]]</u>).
<br>
Line 77:
''* If using SMS, you will need to open the DEM_M01.SMS.tin
<li> Create a projection file and write the template GIS files (to be used to build the model) for the project. For a description on how to do this please select your GIS package below.<br>
* <u>[[
* <u>[[
* <u>[[
* <u>[[
''ArcMap users can automate this step using the <u>[[TUFLOW_ArcGIS_Toolbox|ArcTUFLOw Toolbox]]</u>. Similarly, QGIS users can also automate the process using the <u>[[TUFLOW_QGIS_Plugin | QGIS TUFLOW Plugin]]</u>.''
<br>
Line 108:
=== Run TUFLOW to Create Empty (Template) GIS Files===
We now need to run TUFLOW using the TUFLOW Control File (TCF). There are a number of ways TUFLOW can be setup to run. In each case the TUFLOW executable is started with the TCF as the input. For more information on running TUFLOW please refer to
<ol>
Line 120:
<br>
<li> Start TUFLOW from a batch file using the TCF file we have created ('''M01_5m_001.tcf'''). Follow the steps outlined in, <u>[[Run TUFLOW From a Batch-file | Running TUFLOW from a Batch-file]]</u> to create the batch file.
<li> Double click the created batch file (.bat) from Windows Explorer to execute the simulation. A console
[[File:Tute M01 DOS Empties.png|frame|none]]
<br>
Line 163:
<u>'''SMS Users:''' </u>
<ol>
<li> For instructions on how to complete these steps using SMS, see <u>[[Tute SMS M01 Define 2D
</ol>
<br>
Line 169:
=== Define Elevations ===
In the previous section, the extent and dimensions of the 2D domain were defined. We now need to assign elevations at each 2D cell centre, mid-side and corner. These points are known as Zpts.<br>
Knowledge of 2D domain geometry is fundamental to understanding how TUFLOW works. A brief description on the computational function of each of the Zpts in a TUFLOW cell is given in the <u>[[Zpt_Description | Zpt Description]]</u> page.
<br>
There are two methods to assign the elevations to the Zpts. The first is to directly input the elevation model into TUFLOW as either a TIN or gridded DEM dataset. TUFLOW will assign the elevations from the elevation dataset to Zpts within the DEM / TIN. This offers the following benefits:<br>
Line 175:
* Flexibility, if the cell size, dimension or rotation of the TUFLOW model is changed, TUFLOW will update the elevations automatically.
The second approach is to manually assign the elevation at each of the points using a GIS package. This approach involves TUFLOW writing out the Zpt layer in GIS format and the user defining the elevation at each point in a GIS package. For earlier versions of TUFLOW this method was the only option, it has largely been superseded, but is <u>[[
<u>'''ArcGIS, Mapinfo, and QGIS Users'''</u><br>
The process of using a direct TIN or DEM read into TUFLOW is outlined below. It is recommended that you have the DEM open in your GIS package, if you do not have it open it can be found in the '''Module_Data\DEMs\''' folder under your GIS package name. Please select <u>one</u> of the following approaches, for users without 12D or SMS the DEM method is recommended.
* <u>[[
* <u>[[
<u>'''SMS Users'''</u>
The model elevations were previously defined during the <u>[[Tute SMS M01 Define 2D
<br>
Line 193:
<li>To set the active areas please select you GIS package below:</li>
* <u>[[
* <u>[[
* <u>[[
* <u>[[
For ArcMap users not using the ArcTUFLOW toolbox, instructions can be found here: <u>[[
</ol>
<br>
Line 219:
Surface roughness or bed resistance values (eg. Manning’s n) are assigned to Materials values. The '''Module_Data\Module_01\''' folder already contains the materials table that we’ll use. We will review these in a GIS package, please select one of:
* <u>[[
* <u>[[
* <u>[[
* <u>[[
In order for TUFLOW to associate the Manning’s n to the Material ID, a TUFLOW Materials File is required. This is can be either a text file (.tmf) or an .csv file which can be edited in Excel. In this tutorial model we will utilise the second (.csv) option.
Line 265:
For details on setting up the GIS layers required, please select your GIS package.<br>
* <u>[[
* <u>[[
* <u>[[
* <u>[[
<br>
Line 361:
If your simulation has been successful, the console window should look like the image below.<br><br>
For instructions on how to complete these steps using SMS, see <u>[[Tute M01 Model Controls
[[File:Tute M01 Simulation Finished.png|800px]]
Line 388:
Open and view the TUFLOW results in your viewing package, for instructions on this please select your results package below.<br>
*<u>[[View_Results_in_SMS_10.
*<u>[[View_Results_in_SMS_11.
*<u>[[
*<u>[[
*<u>[[
*<u>[[
== Reviewing Model Performance ==
Line 401:
With the <font color="blue"><tt>Write Check Files </tt></font> command specified in the TCF, TUFLOW will write a series of check files prior to the simulation starting. The check files are useful for reviewing the inputs have been correctly specified. This is particularly the case of long simulations, for example if you have a large model that runs for 12 hours and you are running a model with additional breakline (see Module 3), it is good to check that these features are correctly represented. This can be done using the check files whilst the 12 hour simulation is running, rather than waiting until the simulation finishes! We will introduce the check files as we progress with the tutorial modules.
In the first module we will use the _zpt_check file, which contains all the final Zpt elevations, for the active model area. Please select your GIS package.
* <u>[[
* <u>[[
* <u>[[
* <u>[[
For information on other TUFLOW check files please refer to the <u>[[TUFLOW_Check_Files|Check Files]]</u> page of the TUFLOW Wiki.
=== TUFLOW Log file ===
The first place to look is at the final output in the
<font color="blue"><tt>Log Folder </tt></font> <font color="red"><tt>==</tt></font> <tt>Log</tt><br>
Line 431:
Simulation FINISHED
</pre>
The next part of the ''Simulation Summary'' contains information on the messages issued by TUFLOW. Of note is the 2D Negative Depths (1). This indicates that the numerical solution has "overshot" and calculated a negative depth. Repeated negative depths are an indication that the model is not performing well. We will look at where these occur in the next [[
<pre>
Total 1D Negative Depths: 0
Line 463:
=== TUFLOW Messages Layers ===
TUFLOW writes a number of messages, in increasing order of severity these are: Check --> Warning --> Error. Each of the messages generated by TUFLOW has a four digit ID code. A description of each of these messages is given in the message database section of this wiki: <u>[[
When a numerical model such as TUFLOW struggles to converge to a solution, spurious results such as negative depths can be generated. When this occurs TUFLOW creates a warning and writes this to the _messages.csv file and also to a GIS file. This can be opened in excel, or your GIS package.
<ol>
Line 489:
:The '''_ TUFLOW Simulations.log''' also contains a variety of other information, such as date, computer name, TUFLOW build version, the CPU hours and a other useful data.
*Time-series mass balance output. This is written to the same location as the 2D model results (in this case '''TUFLOW\results\M01\2d\'''). This file has the same name as the runfile (TCF) with the suffix, '''_MB.csv'''. As such the mass balance spreadsheet for this simulation is called '''M01_5m_002_MB.csv'''. Open the file in Excel. It contains a summary of the mass entering and leaving the model. Plot the first (time) and last (cumulative mass error %) columns within the spreadsheet to review the time varying mass error values.
*MB1 and MB2 map output. These 2D map outputs can be viewed using the methods described above in <u>[[
The MB1 output tracks the convergence of the solution at each cell since the previous output time. The MB2 is the cumulative sum of the MB1 output. In the image below the MB2 output is shown at the final timestep (3 hours). It highlights areas in which the 2D solution has not performed well during the simulation.<br>
It can be seen that these are the areas along the main channel. The creek is approximately 5-10m wide and the flowpath is being represented by 1-2 grid cells. This is likely to be causing the issues.<br>
Line 496:
== Conclusion ==
To conclude, in this module we have created a 2D TUFLOW model.
The model results, depths and velocity outputs look sensible. However, the model has a slight issue with mass balance, which appears in the main channel areas.
In Module 3 we will model the creek area as an embedded 1D open channel, this should minimise the mass area noted in this tutorial.
See the <u>[[
Whilst reviewing the results, you may have noticed that the water was being held behind these road embankments (which were essentially acting as dams in the model.
==Troubleshooting==
This section contains links to some common issues that may occur when progressing through the first module of the TUFLOW tutorial model. If you experience an issue that is not detailed on here please either send an email to [mailto:support@tuflow.com support@tuflow.com].<br>
*<u>[[
*<u>[[Tutorial_Troubleshoot_2014|ERROR 2014 - No active cells within SA inflow polygon]]</u>
*<u>[[
== Advanced - Model Resolution (Optional) ==
Line 528:
<u>'''SMS Users:''' </u>
<ol>
<li> For instructions on how to complete these steps using SMS, see <u>[[Tute_SMS_M01_2.
</ol>
''TIP: If you forget any of the steps, the complete inputs files are provided as part of the download package (zip file).''
<br>
===Results===
Using the methods described
[[File:Tute M01 2p5m results SMS.png|450px]]
Line 554:
The model performs better with a smaller cell size, as the 5m resolution is a bit too coarse for representing the narrow in-bank flowpath in a 2D manner. In Module 3 we will overcome this issue by modelling the creek using a 1D model, which will be dynamically linked with the 2D model.<br>
<br>
It is worth noting the increase in runtime, by halving the cell size by a factor of 2, we have four times as many cells (each 5m x 5m cell is now four 2.5m x 2.5m cells), we also needed to reduce the timestep, as the Courant number is directly related to cell size (refer to the <u>[https://docs.tuflow.com/classic-hpc/manual/latest/ TUFLOW
<br>
The following
== Advanced - HPC Solver (Optional) ==
This section will introduce how to run the model TUFLOW’s HPC (Heavily Parallelised Compute) solver, and how to fix some common issues that may occur when trying to run a simulation using Graphics Processing Unit (GPU) hardware. Please see [[HPC_Features_Archive | HPC Features Archive]] for more information on TUFLOW HPC features supported in the 2017 release.
TUFLOW HPC can run between 10 and 100 times faster than TUFLOW Classic using NVidia Graphics Processing Units (GPU)(depending on the model configuration and hardware performance). <br><br>
Line 576:
<u>'''SMS Users:''' </u>
<ol>
<li> For instructions on how to complete these steps using SMS, see <u>[[
</ol>
''TIP: If you forget any of the steps, the complete input files are provided as part of the download package (zip file).''
<br>
===Results===
Using the methods described above in the <u>[[
* Check the simulation logs in the
* View the results in your preferred package.
Do the logs and results appear different? Did the simulation run faster using the GPU hardware? For more information about computer hardware and simulation speed, please refer to the <u>[[Hardware_Benchmarking | Hardware Benchmarking Page]]</u>.
Line 601:
</ol>
<br>
If you experience an issue that is not detailed above please send an email to [mailto:support@tuflow.com support@tuflow.com]<br>
|