Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
iRIC Software
Changing River Science
Nays2DH
Examples
Nays2DH Tutorial
2
Introduction to Nays2DH
You can use Nays2DH in the iRIC for your calculations as following procedures;
Launch Nays2DH
Prepare to use Nays2DH in iRIC
Running a simulation
Use Nays2DH to run a simulation.
Nays2DH Tutorial
3
Tutorial 1.
Calculation of flow and morphological change of river bed
in a meandering channel
Nays2DH Tutorial
4
Generate a computational grid of a meandering channel with a rectangular cross section by using [Multi-
function Grid Generator] attached in iRIC.
Select Menu bar -> [Grid] -> [Select Algorithm to Create Grid].
You can select [Multifunction Grid Generator] in the dialog of [select grid creating algorithm].
[Channel Shape]
- select channel shape
: Sine-generated curve
[Cross Sectional Shape Parameters]
- Width : 0.3m
- Number of Grid in Lateral Direction : 16
[Channel Shape Parameters]
- Wave Length of Meander : 4.7m
- Meander Angle : 28.6 degree
- Number of Grids in One Wave Length
: 40
[Bed and Channel Shape]
- Channel Slope : 0.004
Nays2DH Tutorial
5
A confirmation dialog which asks you [Do you want to map geographic data to grid attributes now?] will
appear. Click on [Yes], and the computational grid will be generated as follows;
The cell conditions can be set on the generated computational grid. Here, you set the [Mannings rough-
ness coefficient].
Click on [Cell attributes] in the object browser, and change the status of cell attributes to . You can open
the item of cell attributes by clicking on bottom on the left side of [Cell attributes], and then click on
[Mannings roughness coefficient].
Nays2DH Tutorial
6
Select all of computational grid by operating your mouse, and then right-click on the selected region.
Then select [Edit value] on appeared menu.
On the dialog [Edit Mannings roughness coefficient], you can specify the value of this coefficient in the
region you selected.
By this procedure, Mannings roughness coefficient is set to all of cells in the grid.
Nays2DH Tutorial
7
This section explains how to set the computational conditions for Nays2DH. The modified part which need
for this computation is only described below. For the rest of parameters, the default values are used.
Nays2DH Tutorial
8
Set the boundary conditions. After setting the conditions as shown below, click [Edit] for [Time series of
discharge at upstream and water level at downstream].
Boundary conditions
Nays2DH Tutorial
9
4. Run a simulation
For running a simulation, select [Simulation] -> [Run] in menu bar or select on menu tool bar.
Nays2DH Tutorial
10
You can visualize the result after getting dialog which informs you [The solver finished calculation] (left
figure) or by reading the result during the calculation by selecting [Calculation result] -> [Reload] (right
figure).
Nays2DH Tutorial
11
Select [calculation result] -> [Open new 2D post-processing window] in menu bar, or click on the button
shown in the following figure;
2D post-processing window :
for visualizing top view of the
result
Nays2DH Tutorial
12
You can visualize the item listed in the object browser to the visualization screen. Firstly, for visualizing
the morphological change of bed, check the box of [ElevationChange] under [Scalar].
For changing the range of color legend, right-click on [Scalar] and select [Property].
Nays2DH Tutorial
13
In this dialog, you can set the maximum/minimum value for the legend colours range, the number of la-
bels for the color legend and etc.
Max0.02 (m)
Min-0.04 (m)
Now, you can clearly observe a point bar on the inner bend and the erosion in the outer bend.
Nays2DH Tutorial
14
In the next step, the flow field is visualized by vectors. Click on the box of [Velocity] under [Arrow] in
the object browser.
For setting the properties of vectors, right-click on [Arrow], and select [Property] on the appeared pop-up
menu. The dialog for setting the vector will open.
Nays2DH Tutorial
15
By adjusting the length of vectors, you now can see the flow field in the meandering channel.
One dimensional graphic function is used for visualizing the water level and bed elevation in a cross sec-
tions. Select [Calculation Result] -> [Open new graphic window].
Nays2DH Tutorial
16
The dialog for setting the data of 1D graph will open. Select X Axis as [J], and add [Elevation] and
[WaterSurfaceElevation] from [Two dimensional data] to [Selected data].
X Axis : J
The water surface and bed in a cross section are visualized. Click on [Draw Setting] for changing the
visualization properties of this graph.
Nays2DH Tutorial
17
You can visually understand the line of water surface and river bed.
Nays2DH Tutorial
18
As the last step, simulated bed elevation change is compared with the experimental results. Right-click on
[Measured Values], and select [Import] on the pop-up menu.
measured.txt is specified as a
[Measured values].
The measured data will be imported. The range of color legend in the simulated result and measured value
is set to be same.
You can change the range of color legend by right-clicking [Scalar] under [Measured Values] and selecting
[property] on appeared pop-up menu.
Nays2DH Tutorial
19
Purpose
You can learn how to generate a computational grid from cross sectional river survey data, and set the
computational conditions to calculate the flow and morphological changes in a real river. The computational
results are visualized by the post-processing tools of iRIC. You will make a snapshot and animation of the
computational results.
Nays2DH Tutorial
20
A computational grid will be generated by using a river survey data which includes the cross sectional
geometry data for river reaches.
You can import a river survey data by selecting Menu bar -> [Geographic Data] -> [Elevation (m)].
The dialog for setting the imported river survey data will open.
Nays2DH Tutorial
21
The imported river survey data will appear on the screen as shown in the following figure.
Next, a background image can be imported. Right-clicking on [Background Images] in the objective
browser, and select [Add Image] on the pop-up menu.
[Background Images]
Align the position of the river survey data and the background image.
Nays2DH Tutorial
22
Imported river survey data may make problems for grid generation. Sometimes some cross-sectional lines
are not perpendicular to the centreline of the river, or some lines are overlapped on each other. This causes
an awkward shape grid which is critical for the computational accuracy. To avoid this problems, the lines of
cross sectional data are re-located by rotating them.
The lines are over- The red and green points will
lapped each other. appear on the left and right
banks. When you click on these
points, the following figure will
appear. By dragging red and
green points, you can change the
direction of the line.
The direction of the cross sectional lines is adjusted, but the location of the left and right banks is over
from the river embankment as shown in the background figure. Reducing the lines is necessary.
Nays2DH Tutorial
23
Now, the lines of cross section are within the river embankment.
A line located in the middle of this river reach is protruded to the left side.
Nays2DH Tutorial
24
The window for editing the data of cross sections will be opened.
The lines of the left and right bank become smooth. The centre point of the river survey data will be set
to the centreline of the low water channel.
Nays2DH Tutorial
25
The centre points of the river are set to the centreline of the low water channel.
You need to set the conditions for generating the computational grid.
As shown in the following figure (left), select menu bar -> [Grid] -> [Select Algorithm to Create Grid].
Then, the dialog for setting the grid creating algorithm will be opened. Select [Create grid from river sur-
vey data] as shown in the following figure (right).
Nays2DH Tutorial
26
Now, the grid generation functions are available. The yellow points, located between the centre point and
left and right banks, are the locations between the low water channel and the floodplains. (These yellow
points can be specified in .riv file. Please refer to the user manual of iRIC where it explains the file format
used for iRIC. You can generate a smooth grid which fits to the line between the low water channel and the
floodplains by using the yellow points. If the locations of yellow points are different then the points between
the low water channel and the floodplains, you can move change their location by dragging them.
In the next step, you will set the division points in the transverse and longitudinal directions.
Nays2DH Tutorial
27
The settings for the division points for low water channel and floodplains are as follows;
For the low water channel, select [Divide Equally] in the Division Method, and select [Equal Ratio Division
(Specify Common Ratio)] is used for the floodplains. The value you specify for [Equal Ratio Division]
should be in the rage of 0.8 to 1.2. An exponential change of grid size may cause numerical instabilities.
The division points for the grid in transverse direction are set as shown in the following figure. Thereaf-
ter, the division points for the grid in longitudinal direction have to be set.
Select menu bar -> [Grid] -> [Grid Creating Condition] -> [Add Division Points Regionally].
Nays2DH Tutorial
28
Specify collectively the division points of the lines between each line of cross section.
Now, the division points for the computational grid in the transverse and longitudinal direction are
specified. By selecting menu bar -> [Grid] -> [Create Grid], you can generate the computational grid.
Nays2DH Tutorial
29
You can specify the start and end cross sectional line for generating the grid. Here, you generate the grid
of all river reach for the current river survey data. After click on OK, the dialog for confirmation will
open. By clicking on [Yes], the geographic data of the river survey data will be interpolated to the grid
node attributes.
Nays2DH Tutorial
30
In Nays2DH, you can set several conditions for the computational cells. Here, two of cell conditions, [Fixed
or Movable Bed] and [Mannings roughness coefficient] will be set in the computational grid. These condi-
tions are given on the grid cells of low water channel and the floodplains, respectively.
Right-click on [Fixed or Movable bed] in the object browser, and select [Add] -> [Polygon] on pop-up
menu.
At first, all of the computational cells are covered with polygon as following figure. This is for setting
the condition for the cells on the floodplains.
Nays2DH Tutorial
31
Next, the polygon which specifies the condition of low water channel is created.
[Movable bed] is given to the polygon for setting the low water channel.
Nays2DH Tutorial
32
The polygons for the cell condition for the low water channel and the floodplain are created as follows;
In this case, same polygons set for [Fixed or Movable Bed] are used for also [Manings roughness coeffi-
cient]. You can copy the polygons of [Fixed or Movable bed] to [Mannings roughness coefficient].
Right-click on [Polygon1] of [Fixed or Movable Bed], and then select [Copy] in the pop-up menu.
Nays2DH Tutorial
33
The polygons for giving the cell conditions are set over the computational grid.
But, in this stage, the values you specified in the polygons are not interpolated to the cell attributes of the
computational grid. Select menu bar -> [Grid] -> [Attributes Mapping] -> [Execute] for giving the values
of the polygons to the computational cells.
Nays2DH Tutorial
34
You will confirm the cell attributes given in the grid by clicking the check box of [Fixed or Movable Bed]
or [Mannings roughness coefficient] located under the [Cell attributes] in the object Browser.
Nays2DH Tutorial
35
Here we explain the settings for this simulation case. The changed items from default values are only de-
scribed below. You can leave the values for the other parameters as default.
Boundary condition
Nays2DH Tutorial
36
Nays2DH Tutorial
37
5. Visualize the simulated results and export as snapshots and the animation
Select menu bar -> [Calculation Result] -> [Open new 2D post-processing Window].
Nays2DH Tutorial
38
Change the range of color legend and apply a setting to avoid the visualization of water depth under a
threshold value.
Right-click on [Scalar] in the object browser, and select [Property] on the pop-up menu.
deselect [Automatic]
Max : 15 m
Min : 0.05 m
deselect [Transparent]
By this way, you can see the dry areas of the river.
Next, the flow field can be visualized by defining particles from the upstream end.
Click on [Particles] in the object browser, and select [Property] on the pop-up menu.
Nays2DH Tutorial
39
Nays2DH Tutorial
40
You can start the animation by using the animation tool bar as follows;
You can see the hydrograph you gave to the upstream end with the calculation results.
Select menu bar -> [Calculation Results] -> [Open new Graph Window].
X Axis : Time
Nays2DH Tutorial
41
The simulated water depth with the movement of particles and time changing of discharge are visualized
on the same screen. For the final step of this tutorial, you will save this screen as the continuous snapshot
and an animation file.
Select menu bar -> [File] -> [Continuous snapshot/Google Earth Export].
The dialog for setting the snapshots and the animation will open.
Layout : As is
Nays2DH Tutorial
42
Specify the place for saving the files and the format of snapshot files.
Format : JPEG
Nays2DH Tutorial
43
Specify the start and end time for output of the snapshot files and the animation file.
After setting all the properties, the dialog shown in left figure will appear. Click on [Finish], then the files
will save the place you specified. The right figure shows the dialog which will appear during the output the
files.
Nays2DH Tutorial
44
The image files which include the contour map of the water depth and the hydrograph and an animation
file will be saved on your computer.
Nays2DH Tutorial