Read the Tutorial Model Introduction before starting this tutorial. It outlines the required links to download SMS, which we will use for mesh generation.
In this tutorial we will a build mesh for a riverine channel using the Aquaveo SMS. Specifically we will:
Use the topographic pre-processor TOPAZ to assist in defining the mesh geometry.
Develop skills for designing an efficient in-channel mesh.
Riverine Channel Project Area
The dimensions of the meandering riverine channel are shown below:
Channel depths to -7m.
Length of channel ~2000m.
Varying width of channel between 60m to 100m.
Sinuous channel.
Oblique view of the completed model mesh displayed in SMS
It is recommended to complete the Meshing Module 1 prior to completing this tutorial.
Prepare Your Working Environment
Copy and unzip the Model Data to your preferred working location, for example E:\TUFLOWFV\Meshing_M02.
The Complete_Mesh folder contains a completed version of the tutorial and its supporting files. You can use this as a reference if you require.
The Module_Data folder contains the required mesh files to complete this tutorial.
The Working folder is where we will save our files and build our mesh.
Note: All file paths referred to will be relative to this base directory. For example, Complete_Mesh\Riverine_Channel_000 refers to E:\TUFLOWFV\Meshing_M02\Complete_Mesh\Riverine_Channel_000.
Setup Your SMS Project
Before we start meshing, we'll setup our working projection. Launch SMS and the key components of the SMS project window are described by items 1, 2, and 3 in the figure below:
The Menu Bar is used to access SMS functions.
The Toolbar is made up of a series of tools that are used to edit SMS data and perform functions.
The Project Explorer Panel is used to organise and turn on and off project data.
Setting The Workspace Projection
From the menu bar select Display > Display Projection....
In the Display Projection dialogue box set Global projection and click Set Projection.
The Horizontal Projection dialogue will appear. In Filter Strings: search WGS 84 UTM zone 60s and under Southern Hemisphere select WGS 84 UTM zone 60 > OK > OK.
Save The SMS Project
Use the below steps and video to save the workspace:
From the menu bar select File > Save As....
Navigate to Working folder and save the project as Riverine_Channel_000.sms.
Your browser does not support the tag.
Prepare The Bathymetry Data
Load And Visualise Bathymetry Data
The bathymetry for the mesh is provided as a scattered dataset in a .TIN (Triangulated Irregular Network) file format. Use the below steps and videos open and display the bathymetry:
From the menu bar select File > Open....
Navigate to the the Module_Data and folder open the provided bathymetry scatter dataset RiverBend_Bathymetry.tin.
Your browser does not support the tag.
As previously mentioned, the bathymetry data is provided in .TIN format, which connects the irregularly spaced data points into non-overlapping triangles to model the bathymetry surface. Use the below steps and video to display the triangulation:
Select the display button .
In the Scatter Display Options check Triangles and update the line colour to black.
Select OK and review the triangulation of the bathymetry.
Your browser does not support the tag.
For visualisation purposes, the bathymetry will be displayed as contours for the remainder of the tutorial. Follow the steps and video below:
Select the display button .
Under the Scatter tab uncheck the following Points, Triangles, and Breaklines.
Check Contours.
Select the Contours tab.
Under the Contour method select Color Fill and select OK.
Your browser does not support the tag.
Prepare Bathymetry For TOPAZ Processing
Now that the required datasets are loaded, we can begin to create the model mesh. We will be using to the topographic preprocessor TOPAZ to help guide our mesh development.. Please note that TOPAZ processing may take some time if using a large dataset.
To run TOPAZ we need to convert the scatter dataset to a Digital Elevation Model (DEM). Use the below steps and video to create the DEM:
Right click on the scatter data RiverBend_Bathymetry and select Convert > Scatter -> Raster.
In the Interpolate to Raster dialog specify the Cell size as 1m and select OK.
Save the new raster in the Working folder and leave the default name as RiverBend_Bathymetry.tif.
Your browser does not support the tag.
It's a good idea to regularly save your SMS Project as you work through the tutorial. Select File > Save as… and save the project (ensure the file is being saved as a project file type *.sms). Opening this SMS project file in the future will reload all layers in the project that you have saved.
Defining The Mesh Extent
We will be using the topographic preprocessor TOPAZ to help guide our mesh development. TOPAZ allows you to extract topographic features from the DEM such as the channel center line and banks. For more examples that use TOPAZ refer to the SMS tutorial Extract Features for Mesh Generation on the SMS Tutorials page.
Use the below steps and video to run TOPAZ:
Right click on the DEM and select Run TOPAZ. Note the TOPAZ processing might take some time.
From the Info dialog select OK.
Your browser does not support the tag.
Creating The Mesh Centre Line
Throughout this tutorial, the upstream and downstream sections of the channel will be referred to. Familiarise yourself with the figure below so that you can identify which section of the channel is being referenced at each stage.
Here, a feature point is created, which will serve as a guide for TOPAZ to generate the channel centerline.
Follow the bellow steps and video:
Rename the default Area Property Map Data layer Centre_Line_PT.
Select the display button . Use the following setting to display the Map Data features to make it easier to review mesh nodes and vertices:
Under Display Options select Map.
Update Point/Node colour to Red.
Check Vertex and update the symbol to a cross-hair +.
Make sure Arcs are checked.
Your browser does not support the tag.
Digitise the feature point using the below steps and video:
Zoom into the upstream boundary (refer to video).
Select the feature point tool.
Digitise a feature point in a similar location to that shown in the video below.
Your browser does not support the tag.
Extract the centerline using the below steps and video:
Using the Select Object tool select and right click on the feature then select Extract Feature.
In the Extract Feature dialog check the following are specified:
Input raster to RiverBend_Bathyetry.tif.
Feature type to Stream.
Output Coverage is set to <Create New> and named Streams. Note the name Streams is not a requirement and can be changed as you see fit.
Select OK.
Under Map Data select Streams right click and select Zoom to Coverege and review. Note the channel centerline generated by TOPAZ represents the channel well; however, adjustments are required to make it suitable for meshing.
Your browser does not support the tag.
Adjusting The Mesh Centre Line
Although TOPAZ provided a good first approximation, we need to make some further adjustments of the centerline. In this section we will adjust the centerline to be more 'mesh friendly' by providing the line with a smoother geometry and more regular vertex intervals. Note: that your centerline may differ slightly from the below examples depending on how you digitised your point earlier in Centre_Line_PT.
Use the below steps and video as a guide to make further adjustments:
Zoom into the upstream boundary (refer to video).
Under Map Data select Streams.
Use the Select Feature Point tool to select the end node and drag it towards the upstream boundary. Note do not to extend the line beyond the DEM.
Your browser does not support the tag.
Use the below steps to redistribute vertices and smooth the centerline:
Using the Select Feature Arc tool select the Streamsarc and right click and select Redistribute Vertices....
In the Arc Redistribution dialog specify the following:
Under Specify select Specified spacing.
Set the Average Spacing to 20m.
Check Use cubic spline and select OK. Note: the centerline has been smoothed and we have reduced the number of vertices.
Your browser does not support the tag.
In this section, we will delete unnecessary vertices and redistribute vertices to create a smooth and representative arc of the channel centerline. It is recommended to remove unnecessary vertices to minimise the need for extensive manual redistribution of vertices.
Use the following steps and videos to as a guide to edit the centerline:
Zoom into the upstream boundary (refer to video).
Using the Select Feature Vertex tool delete vertices within the deepest section of the channel. To delete multiple vertices, click and drag the mouse to select the desired vertices, then press Delete and click OK in the dialogue box.
Move the remaining vertices to align more consistently with the channel thalweg (refer to video).
Your browser does not support the tag.
4. Zoom into the midsection of the channel and repeat Steps 2 and 3 (refer to below video).
Your browser does not support the tag.
5. Zoom into the downstream of the channel.
6. Use the Select Feature Point tool to select the end node and drag it towards the channel thalweg (refer to video). Note do not to extend the line beyond the DEM.
7. Repeat Steps 2 and 3 (Refer to video below).
Your browser does not support the tag.
Use the below steps to redistribute vertices and smooth the centerline:
Using the Select Feature Arc tool select the arc and right click and select Redistribute Vertices....
In the Arc Redistribution dialog specify the following:
Under Specify select Specified spacing.
Set the Average Spacing to 20m.
Check Use cubic spline and select OK.
Your browser does not support the tag.
Creating The Mesh Bank Lines
In this section we will define the left and right bank lines using Extract Banks Tool in SMS. See Extract Features Tools for more information on SMS extraction tools.
Use the below steps and videos to extract the banks:
Zoom into the upstream boundary (refer to video).
Select the Streams coverage and using the Feature Point tool digitise a point in the northwest corner of the bank (refer to video).
Your browser does not support the tag.
3. Use the Select Object tool and hold shift to select both the new node and channel arc (refer to video).
4. Right click and select Extract Banks and specify the following in the Extract Features dialog:
Input raster as RiverBend_Bathymetry.tif.
Use the depth this isClosest to Previous.
Leave Distance from Centerline as the default. If you have a much larger channel you may need to increase this value.
Leave Output Coverage> Banks <Create New> as the default name Bank Lines.
Leave the remaining options as default and select OK.
5. Zoom out and review review the new Bank Lines coverage. TOPAZ has provided a good first approximation of the bank lines, but we need to make some further adjustments to make them more 'mesh-friendly'. Note: your bank lines may differ slightly from the examples below, depending on how you digitised your points earlier in the Streams coverage.
Your browser does not support the tag.
Redistribute the vertices along the bank lines. This will make adjustments clearer and easier to carry out. Follow the steps and video below:
Using the Select Feature Arc tool and hold the Shift key to select both bank lines.
Right click and select Redistribute Vertices and specify the following:
Under Specify select Specified spacing.
Set the Average Spacing to 20m.
Check Use cubic spline and select OK.
Your browser does not support the tag.
In this section, we will delete unnecessary vertices and redistribute vertices to create a smooth and representative bank lines. Remember, your bank lines may differ slightly from those shown in the videos. Therefore use the videos as a general guide rather than trying to match them exactly:
Zoom in to the upstream boundary (refer to the video) and identify any areas where the Bank Lines coverage does not accurately represent the channel bank.
Depending on the placement of the bank feature point, the left bank arc may not align correctly. Use the Select Feature Point tool to select the end node and drag it towards the bank edge (refer to the video). Note: do not extend the line beyond the DEM
Using the Select Feature Vertex tool to delete and manually move vertices on the left bank to follow the channel bank. Note: to delete multiple vertices, click and drag the mouse to select the desired vertices, then press Delete and Enter.
Your browser does not support the tag.
4. Again use the Select Feature Vertex tool to delete and manually move vertices on the right bank to follow the channel bank. Note: Remember to use the videos as a general guide rather than trying to match them exactly. It's more important to follow the shape of the channel bank accurately, as the vertices will be redistributed later.
Your browser does not support the tag.
Zoom in towards the mid section of the channel(refer to the video) and identify any areas where the Bank Lines coverage does not accurately represent the channel bank.
Using the Select Feature Vertex tool to delete and manually move vertices on both banks (refer to video).
Your browser does not support the tag.
Zoom in slightly downstream of channel mid section (refer to the video) and identify any areas where the Bank Lines coverage does not accurately represent the channel bank.
Using the Select Feature Vertex tool to delete and manually move vertices on both banks (refer to video).
Your browser does not support the tag.
Zoom in to the downstream boundary (refer to the video) and identify any areas where the Bank Lines coverage does not accurately represent the channel bank.
Depending on the placement of the bank feature point, the left and right bank arc may not align correctly. Use the Select Feature Point tool to select the end nodes and drag each node towards the bank edge (refer to the video). Note: do not extend the line beyond the DEM.
Using the Select Feature Vertex tool to delete and manually move vertices on both banks (refer to video).
Your browser does not support the tag.
Review your adjustments by redistributing the vertices along the bank lines to see how well the arcs represent the channel banks (refer to the steps and video below). It is important to check that the arcs remain within the DEM (RiverBend_Bathymetry.tif) extent. You may need to make further adjustments, as demonstrated in the video:
Using the Select Feature Arc tool and hold the Shift key to select both bank lines.
Right click and select Redistribute Vertices and specify the following:
Under Specify select Specified spacing.
Set the Average Spacing to 20m.
Check Use cubic spline and select OK.
Use the Select Feature Vertex tool to make further adjustments and redistribute the vertices using Step 2.
Before moving onto the next section make sure you have checked that all of your bank lines are within the DEM extent!
Your browser does not support the tag.
Once you're happy with how the arcs represent the channel banks, use the center line to redistribute the vertices along each bank line so that they mirror each other. Refer to the steps and video below:
Select the Streams coverage and use the Select Feature Point tool to delete the node that the banks were created from (refer to video).
Select the Bank_Lines coverage.
Using the SelectFeature Arc tool hold Shift and select both bank lines, right click and select Copy to Coverage.
In the Select Coverage dialog box select Streams and Ok. Both bank lines should now be in the Streams coverage (refer to video).
Your browser does not support the tag.
Set the channel centerline to have a vertex spacing of 20m. Use the below steps and video to redistribute the vertices:
Using the Select Feature Arc tool and select the centerline from the Stream coverage.
Right click and select Redistribute Vertices and specify the following:
Under Specify select Specified spacing.
Set the Average Spacing to 20m.
Check Use cubic spline and select OK.
Your browser does not support the tag.
Creating Mesh Extent
To produce the final mesh extent the vertices on each bank need to align and Feature Acrs need to be added at the upstream and downstream boundaries to close the mesh extent.
Vertices from the centreline will guide the placement of vertices on both banks, resulting in evenly spaced and aligned bank lines. Follow the steps and videos below:
Use the Select Feature Arc tool and select the center line from the Stream coverage. Record the arc ID displayed at the bottom of the window (refer to video). Repeat on the left arc.
Using the Select Feature Arc tool hold Shift and select both the center line and left bank.
Right click and select Redistribute Vertices and specify the following:
Specify set as Source Arc.
Source Arc set as the center line ID no.. Note in this example it is Arc 1 but the ID for your center line might be different so be sure to check the ID of your line.
Target Arc set as the left bank line ID no.. Note in this example it is Arc 2 but the ID for your left bank line might be different so be sure to check the ID of your line.
Check Use cubic spline and select OK.
Your browser does not support the tag.
4. Repeat Steps1 - 3 on the right bank (refer to video). Note in this example the right bank arc has an ID of 3 but the ID for your right bank line might be different so be sure to check the ID of your line.
5. Make sure to delete the center line as it is not needed for the final mesh.
Your browser does not support the tag.
Now that the bank lines are finalised, add feature arcs to the upstream and downstream boundaries to close the mesh extent.
Follow the steps and videos below to add and redistribute the new arcs:
Zoom into the upstream boundary.
Using Create feature Arc tool digitise an arc perpendicular to the channel at the usptream boundary. Making sure to snap the arc to each node at the end of the bank lines (refer to video). Note if snapping is not enabled select Edit > Preferences from the menu bar. In SMS Preferences select Map and check Snap feature object to displayed nodes and vertices.
Using the Select Feature Arc tool and select the new arc. Right click and select Redistribute Vertices and specify the following:
Specify set as Number of segments.
Set Number of segments: 12 .
Select OK.
Your browser does not support the tag.
4. Repeat Steps 1-3 for the downstream boundary (refer to video).
Your browser does not support the tag.
Assigning Mesh Type & Elevation Data
Now that the mesh extent is complete we can to assign the mesh type, build polygons, and apply the elevation data. Use the below steps and video:
Right click on the Streams coverage and select Type > Generic > Mesh Generator.
From the tool bar click Build Polygons.
Using the select feature polygon tool, select the polygon. Right click and select Polygon Attributes.
In 2D Mesh Polygon Properties select the following:
Set the Mesh Type to Patch.
Set the Elevation (bathy/topo) type to Scatter Set.
Select the Scatter Options... and the Interpolation dialog will appear.
Set the Interpolation to Linear and make sure the RiverBend_Bathymerty Elevation is select under the Scatter Set to Interpolate From section.
Set the Extrapolation to Inverse Distance Weighted.
Select OK and OK.
Your browser does not support the tag.
Mesh Generation
The riverine channel mesh can now be generated and saved as a 2D mesh (.2dm) file. The .2dm file format is used by TUFLOW FV to read in mesh files.
Use the below steps and videos generate and review the mesh:
Right click on the Streams coverage and select Convert > Map ->2D Mesh.
Update the mesh name to Riverine_Channel_000.
You should see smooth transitions in cell size and shape throughout the channel, without abrupt changes. This is important in hydrodynamic modelling for maintaining numerical stability, accuracy, and efficient run times. Pay particular attention around channel bends, where the geometry is more complex and poor transitions are more likely to cause issues.
Your browser does not support the tag.
Lastly, save the new mesh into the Working folder.
From the Project panel make sure the mesh is selected. Then select File > Save As from the menu bar.
Set the Save as type to 2D Mesh Files (*.2dm) and keep the default name Riverine_Channel_000.2dm.
Click Save.
Your browser does not support the tag.
Going Further (Optional)
In some models, depending on the intended application, having a high-resolution mesh to represent the bank gradient is important. To capture this level of detail, the mesh resolution can be increased to better interpolate the bank slopes. However, increasing the mesh resolution can impact model runtime, so it's important to understand where higher resolution is necessary and where it is not. This topic is discussed further in the Tutorial Module 02 Mesh Design and Impact on Runtimes.
In this section of the tutorial, we demonstrate how to use SMS tools to adjust the mesh resolution along the banks. Use the below steps and videos to duplicate and adjust the mesh resolution:
Zoom into the upstream boundary.
Using the Select Feature Arc tool and select the upstream boundary arc (refer to video). Right click and select Redistribute Vertices and specify the following:
Specify set as Number of segments.
Set Number of segments: 12.
Set the Bias to 4.0.
Check 2nd bias and set the 2nd Bias to 4.0.
Check Use cubic spline.
Select OK.
Your browser does not support the tag.
Repeat Steps 1-2 for the downstream boundary (refer to video).
Your browser does not support the tag.
Before generating the mesh, build the polygons and ensure that the polygon attributes and elevations are correctly set, as this is good practice. Follow the steps and video below:
From the tool bar click Build Polygons.
Using the select feature polygon tool, select the polygon. Right click and select Polygon Attributes.
In the 2D Mesh Polygon Properties, check that the following settings are configured correctly:
Mesh Type set to Patch.
Elevation (bathy/topo) type set to Scatter Set.
Select the Scatter Options... and the Interpolation dialog will appear.
Interpolation set to Linear and make sure the RiverBend_Bathymerty Elevation is select under the Scatter Set to Interpolate From section.
Extrapolation set to Inverse Distance Weighted.
Select OK and OK.
Your browser does not support the tag.
Use the below steps and videos generate and review the mesh:
Right click on the Streams coverage and select Convert > Map ->2D Mesh.
Update the mesh name to Riverine_Channel_001 and review the new mesh resolution along the channel banks.
Your browser does not support the tag.
Save the new mesh into the Working folder.
From the Project panel make sure the mesh is selected. Then select File > Save As from the menu bar.
Set the Save as type to 2D Mesh Files (*.2dm) and update the name to Riverine_Channel_001.2dm.
Click Save.
Your browser does not support the tag.
Feedback
If you have any queries, feedback or requests for new functionality you'd like added to the tutorial modules, please feel free to get in contact with support@tuflow.com.
If you wish to keep up to date with all things TUFLOW and TUFLOW FV, then please join our LinkedIn group.
Conclusion And Next Steps
Well done on completing Meshing Module 2. You have now learnt how to construct and modify a mesh in SMS using TOPAZ feature extraction techniques.
Read the Tutorial Model Introduction before starting this tutorial. It outlines the required links to download SMS, which we will use for mesh generation.
In this tutorial we will a build mesh for a riverine channel using the Aquaveo SMS. Specifically we will:
Use the topographic pre-processor TOPAZ to assist in defining the mesh geometry.
Develop skills for designing an efficient in-channel mesh.
Riverine Channel Project Area
The dimensions of the meandering riverine channel are shown below:
Channel depths to -7m.
Length of channel ~2000m.
Varying width of channel between 60m to 100m.
Sinuous channel.
Oblique view of the completed model mesh displayed in SMS
It is recommended to complete the Meshing Module 1 prior to completing this tutorial.
Prepare Your Working Environment
Copy and unzip the Model Data to your preferred working location, for example E:\TUFLOWFV\Meshing_M02.
The Complete_Mesh folder contains a completed version of the tutorial and its supporting files. You can use this as a reference if you require.
The Module_Data folder contains the required mesh files to complete this tutorial.
The Working folder is where we will save our files and build our mesh.
Note: All file paths referred to will be relative to this base directory. For example, Complete_Mesh\Riverine_Channel_000 refers to E:\TUFLOWFV\Meshing_M02\Complete_Mesh\Riverine_Channel_000.
Setup Your SMS Project
Before we start meshing, we'll save off a new SMS project and setup our working projection. Launch SMS and the workspace will be as shown below:
Save an empty project as Riverine_Channel_000.sms into your Working folder:
From the menu bar select File > Save As...
Setting The Workspace Projection
From the menu bar select Display > Display Projection....
In the Display Projection dialogue box set Global projection and click Set Projection.
The Horizontal Projection dialogue will appear. In Filter Strings: search WGS 84 UTM zone 60s and under Southern Hemisphere select WGS 84 UTM zone 60 > OK > OK.
Prepare The Bathymetry Data
Load And Visualise Bathymetry Data
From the Module_Data folder open the provided bathymetry scatter dataset RiverBend_Bathymetry.tin in SMS.
To colour the bathymetry select Display > Display Options (or if you prefer, try the ctrl+d keyboard shortcut). In the Scatter option select the Scatter tab > untickPoints and Breaklines and > tickContours.
In the Scatter option select the Contours tab and Color Fill for the Contour Method. Click on the Color Ramp button and Reverse the Palette Preview.
The bathymetry will be displayed as below:
In the Display Options - Scatter tab, tickTriangles to match the display below.
Prepare Bathymetry For TOPAZ Processing
Now that the required datasets are loaded, we can begin to create the model mesh. We will be using to the topographic preprocessor TOPAZ to help guide our mesh development. TOPAZ allows you to extract topographic features from the DEM such as the channel center line and banks. Please note that TOPAZ processing may take some time if using a large dataset.
To run TOPAZ we need to convert the scatter dataset to a Digital Elevation Model (DEM). Right click on the scatter data RiverBend_Bathymetry and select Convert > Scatter -> Raster as shown below:
In the Interpolate to Raster specify the Cell size as 1m and select OK.
Save the new DEM as Working\RiverBend_Bathymetry.tif.
Your workspace should now look similar to the below figure. We have added upstream and downstream labels for your reference.
It's a good idea to regularly save your SMS Project as you work through the tutorial. Select File > Save as… and save the project (ensure the file is being saved as a project file type *.sms). Opening this SMS project file in the future will reload all layers in the project that you have saved.
Defining The Mesh Extent
We will be using the topographic preprocessor TOPAZ to help guide our mesh development. TOPAZ allows you to extract topographic features from the DEM such as the channel center line and banks.
For more examples that use TOPAZ refer to the SMS tutorial Extract Features for Mesh GenerationSMS Tutorials.
Right click on the DEM and select Run TOPAZ.
When processing has completed the Info dialog box will appear. Select OK.
Creating The Mesh Centre Line
Rename the default Area Property Map Data layer Centre_Line_PT. This coverage will be used to create a feature point (node) that will be a guide for TOPAZ to generate the channel center line.
Follow the bellow steps to extract the centerline:
1. In the Map Data select Centre_Line_PT.
2. Zoom into the upstream boundary and the feature point tool place a node in a similar location to the example below.
3. Using the Select Object tool right click on the node and select Extract Feature:
4. In the Extract Feature dialog box specify the following:
Input raster to RiverBend_Bathyetry.tif.
Feature type to Stream.
Output Coverage is set to <Create New> and named Streams. Note: the name Streams is not a requirement and can be changed as you see fit.
Select OK.
5. Select the Streams coverage from Map Data. You should see a centerline within your DEM similar to the below:
To be suitable for mesh generation we will need to make some adjustments. However, overall, it makes a good first pass representation of the channel centerline.
Manually Adjusting The Mesh Centre Line
In this section we will adjust the center line to be more 'mesh friendly' by providing the line with a smoother geometry and more regular vertex intervals.
1. To visualise nodes and vertices select Display>Display Options and modify the Map display so that the Point/Nodes and Vertex are checked.
2. At the upstream boundary extend the Streams feature arc to the DEM boundary. Use the Select Feature Point tool to select the end node and drag it towards the upstream boundary. Do not to extend the line beyond the DEM.
3. Using the Select Feature Arc tool select the Streams line and right click selecting Redistribute Vertices.
4. Under Arc Redistribution specify the following:
Under Specify select Specified spacing.
Set the Average Spacing to 20m.
Check Use cubic spline and select OK.
Note: the center line has been smoothed and we have reduced the number of vertices.
Although TOPAZ provided a good first approximation, we need to make some further adjustments of the center line. Using a series of steps and animations as a guide make further amendments to the center line.
Note: that your center line may differ slightly from the below examples depending on how you digitised your node earlier in Centre_Line_PT.
1. Using the Select Feature Vertex tool align the vertices with the deepest section of the channel. Do this for the vertices in the river bend shown in the animation.
Your browser does not support the tag.
2. Move to the midsection of the of the river reach and repeat the process so that the vertices align more consistently with the channel thalweg (the deepest section of the river).
Your browser does not support the tag.
3. Align the center line at the downstream boundary and adjust the end node location. Note: we use the Select Feature Vertex tool for the vertices and the Select Feature Point tool for the end node.
Your browser does not support the tag.
4. Select the center line and right click selecting Redistribute Vertices. Under the Specify select Specified spacing, set the Average Spacing to 20m, check Use cubic spline and select OK.
Your browser does not support the tag.
Creating The Mesh Bank Lines
In this section we will define the left and right overbank locations.
1. Select the Streams coverage. Zoom into the upstream boundary and use the Feature Point tool to place a node in the northwest corner of the bank:
2. Hold down the shift key and use the Select Object tool to select both the new node and channel arc. Right click and select Extract Banks. Use the below information and animation to guide you:
Input raster as RiverBend_Bathymetry.tif.
Use the depth this isClosest to Previous.
Leave Distance from Centerline as the default. If you have a much larger channel you may need to increase this value.
Output Coverage> Banks <Create New> and name Bank_Lines.
Leave the remaining options as default and select OK.
Your browser does not support the tag.
Your new coverage Bank_Lines should look similar to the below:
3. Redistribute the vertices along the bank lines using the Select Feature Arc tool and hold the shift key to select both bank lines. Right click and select Redistribute Vertices and specify the following:
Under Specify select Specified spacing.
Set the Average Spacing to 20m.
Check Use cubic spline and select OK.
4. Follow the animations as a guide adjust your bank lines.
This animation provides guidance on aligning the bank lines near the upstream end of the project area.
Your browser does not support the tag.
This animation provides guidance on aligning the bank lines near the downstream end of the project area.
Your browser does not support the tag.
Note: Before moving onto Step 5 make sure you have checked that all of your bank lines are within the DEM extent!
5. Use the below steps and animation to remove the node and combine the banks into the Streams coverage:
Select the Streams map data layer and delete the node that you created the banks from.
Select the Bank_Lines coverage. Using the Feature Arc tool hold-Shift and select both bank lines, right click and select Copy to Coverage. In the Select Coverage dialog box select Streams and Ok.
Your browser does not support the tag.
Creating Mesh Extent
To produce the final mesh extent the vertices on each bank need to align and Feature Acrs need to be added at the upstream and downstream boundaries to close the mesh extent.
1. In the streams coverage make a note of the ID number for the center line and banks lines. To do this use the Select Feature Arc tool to select each line, and the ID will be displayed at the bottom of the window. See below example:
2. Using the Select Feature Arc tool, select both the left bank and center line (remember to hold down shift to select multiple arcs), right click > Redistribute Vertices.... Specify the following Arc Redistribution parameters:
Specify set as Source Arc.
Source Arc set as the center line ID no. (in this example it is Arc 1 but the ID for your center line might be different so check the ID number of your line).
Target Arc set as the left bank line ID no.(in this example it is Arc 2 but the ID for your left bank line might be different so check the ID number of your line).
Check Use cubic spline and select OK.
Now repeat the process for the right bank.
3. We can now remove the center line as it is not needed for the final mesh. Delete the center line using the Select Feature Arc tool select the center line > right click > Delete
Now that the bank lines are finalised we will add feature arcs to the upstream and downstream boundaries to close the mesh extent.
1. Using Create feature Arc tool add an arc perpendicular to the channel at the downstream boundary, making sure you snap the arc to each node at the end of the bank lines. Use the below animation as a guide:
Your browser does not support the tag.
2. Select the arc using the Select Feature Arc tool and right click > Redistribute Vertices....
3. In the Redistribute Vertices dialog box specify the following parameters:
Specify set as Specified spacing.
Check both 2nd bias and Use cubic spline.
Set the average spacing to 5.
Set the Bias to 4.0.
Set the 2nd Bias to 4.0.
Select OK.
4. Repeat Steps 1-3 for the upstream boundary.
Assigning Mesh Type & Elevation Data
Now that the mesh extent is complete we need to apply the elevation data RiverBend_Bathymerty.tin. Use the below steps:
1. From the menu bar select Feature Objects > Build Polygons.
2. Right click on the map data Streams select > Type > Generic > Mesh Generator.
3. Using the select feature polygon tool, select the polygon > right click > select Polygon Attributes.
4. In 2D Mesh Polygon Properties select the following:
Set the Mesh Type to Patch.
Set the Elevation (bathy/topo) type to Scatter Set.
Select the Scatter Options... and the Interpolation dialog will appear.
Set the Interpolation to Linear.
Set the Extrapolation to Inverse Distance Weighted.
Select OK and OK.
Mesh Generation
You are ready to generate your mesh.
Select the Streams map data > right click > select Convert > Map ->2D Mesh and name your new mesh Riverine_Channel_000.
Your mesh should look similar to the below:
Save your new mesh into your Working folder by selecting File > Save As and name it Riverine_Channel_000.2dm. Make sure the Save as type is a 2D Mesh Files (*.2dm).
Congratulations, you have completed the construction of a mesh. Great work!
Feedback
If you have any queries, feedback or requests for new functionality you'd like added to the tutorial modules, please feel free to get in contact with support@tuflow.com.
If you wish to keep up to date with all things TUFLOW and TUFLOW FV, then please join our LinkedIn group.
Conclusion And Next Steps
Well done on completing Meshing Module 2. You have now learnt how to construct and modify a mesh in SMS using TOPAZ feature extraction techniques.