Professional Documents
Culture Documents
Nays2D Examples en PDF
Nays2D Examples en PDF
Nays2D
Examples
Last Update:2012.5.21
Release Date: 2012.5.25
Copyright 2011 iRIC Project All Right Reserved.
contents
1
Chapter 1
Using Nays2D
This tutorial explains the basic operations and startup procedures of Nays2D, which is compiled
with iRIC. (Nays2D simulates two-dimensional plane river flow and riverbed deformation. It was
developed by Professor Yasuyuki Shimizu of Hokkaido University.) The following explanation is
based on the assumption that you have installed the iRIC software on your computer. If you have not
installed the iRIC software, download it from the following URL and install it on your computer.
URL: http://i-ric.org/downloads
Software: iRIC version2.0
Launching Nays2D
Prepare to use Nays2D with iRIC.
Making simulations
Use Nays2D to run the simulation.
1-1
2. Launching Nays2D
The following is the procedure for launching Nays2D on iRIC.
When launching iRIC, the [iRIC Start Page] window will open.
Click on [New Project] in the [iRIC Start Page] window.
1-2
The [Select Solver] window will open.
Select [Nays2D 4.0] in the [Select Solver] window, and click on [OK].
1-3
A window with the title bar "Untitled-iRIC[Nays2D]" will appear.
1-4
3. About the sample data
The sample data used for the sample simulations explained in this manual are available at
URL: http://i-ric.org/downloads
Examples of simulation: Nays2D
To run Nays2D according to this tutorial, data should be downloaded from the above site.
4. Simulation conditions of
Nays2D
This tutorial teaches how Nays2D is used to simulate river flow and riverbed deformation.
Because this is the objective, there are some omissions in the explanations of the physical and
calculation aspects of the simulation conditions that are to be set. Nays2D has functions (setting
conditions) additional to those explained by this tutorial. For details, please refer to Nays2D Solver
Manual.
1-5
Chapter 2
Steady Flow Simulation:
Example of an Actual River
Objectives:
Simulate the flow regime (water depth and flow velocity) by using Nays2D for an actual
river with a certain discharge, and verify the simulation results.
Outline:
1 Creating the calculation grid
Using cross-sectional river survey data of an actual river, create calculation grids: 11 division
points in the transverse direction, and 216 division points in the longitudinal direction.
3 Making a simulation
2-1
1. Creating the calculation grids
1. Importing cross-sectional river survey data
2-2
If the [Pre-processing] window shows the shape of the river that you are simulating, the data
have been successfully imported.
2-3
2. Selecting an algorithm for creating the grid
Select [Create grid from river survey data] from the list in the [Select Grid Creating
Algorithm] window, and click on [OK].
Now, you can create grids from river survey data.
2-4
3. Setting the “division points”
① Setting "division points" in the transverse
direction
In the [Add Division Points] window, set [Number of Divisions] and [Division Method] as
follows, and click on [OK].
- "Division Number": 5
- "Division Method": "Divide
Equally"
2-5
Division points are in yellow.
2-6
On the [Add Division Points] window, set [Number of Divisions] and [Division Method] as
follows, and click on [OK].
- "Division Number": 5
- "Division Method": "Divide
Equally"
2-7
② Setting "division points" in the longitudinal
direction
In the menu bar, select [Grid] - [Grid Creating Condition] - [Add Division Points
Regionally].
In the [Add Division Points Regionally] window, make the following settings and click on
[OK].
2-8
Division points are displayed as follows.
Now, you have completed setting the grid division points in the longitudinal direction.
2-9
4. Creating a grid
The [Confirmation] window will open, asking whether you want to map geographical data to
grid attributes.
Click on [Yes].
The elevations of
cross-sectional river
survey data are converted
into an elevation for each
grid point.
2-10
When division points and grids for calculation are displayed as follows, the creation of grids for
calculation is complete.
2-11
2. Setting the calculation
conditions
1. Setting the Manning’s roughness coefficient
In the Object Browser, select [Geographical Data] - [Manning’s roughness coefficient].
The color of the grid shows the value of Manning’s roughness coefficient.
The user can select an area, which you want to set the roughness value, by the mouse.
This example selects all area of the computational grid.
2-12
Select [Edit value] by right clicking on the grid.
The window to set [Manning’s roughness coefficient] will open.
2-13
2. Opening [Calculation Conditions]
On the menu bar, select [Calculation Conditions] - [Setting].
The [Calculation Conditions] window will open.
Click on [Solver Type] from the [Group] list to make the following settings:
2-14
4. Setting the boundary conditions
① Setting the boundary conditions
Click on [Boundary Condition] from the [Group] list to make the following settings:
- "Periodic boundary
condition": "Disabled"
- "Water surface elevation at
downstream end":
"Uniform flow"
- "Slope gradient for uniform
flow simulation":
"Calculated from
geographical data"
- "Flow velocity distribution at
the upstream end":
"Uniform flow"
- "Slope gradient for uniform
flow simulation":
"Calculated from
geographical data"
- "Time unit of
discharge/water surface
file": "Second"
2-15
② Setting the discharge
Select [Time unit of discharge at upstream and water level at downstream] - [Edit].
The window for setting the discharge and water level will open.
Click on [Add] and make the following settings.
Click on [OK] when the settings are complete.
2-16
5. Setting the time
Click on [Time] from the [Group] list to make the following settings:
2-17
6. Setting the initial water surface profile
Click on [Initial Water Surface Profile] from the [Group] list to make the following settings:
Many other conditions can be set; however, they do not need to be set for this simulation.
After making the settings above, click on [Save and Close] to close the window.
2-18
3. Making a simulation
On the menu bar, select [Simulation] - [Run].
Click on [OK].
2-19
The [Solver Console [Nays2D] (running)] window will open to start the simulation.
Upon completion of the simulation, the [Solver Finished] window will open.
Click on [OK].
2-20
4. Visualizing the calculation
results
1. Opening the 2D Post-processing Window
2-21
2. Visualizing the water depth
In the Object Browser, select [Nays2D Grids] - [iRICZone] - [Scalar] - [Depth (m)].
A contour map of water depth will open.
In the Object Browser, select [Nays2D Grids] - [iRICZone] - [Scalar]. Right click on
[Contour] to select [Property].
The [Scalar Setting] window will open.
2-22
In the [Contour Setting] window, make the following settings and click on [OK]:
- "Value range":
-: Remove ☑ from
"Automatic."
Max: 3
Min: 0
-"Transparent."
: Remove ☑ from
"Transparent."
In the [Region Setting] window, make the following settings and click on [OK]:
2-23
In the [Color Legend Setting] window, make the following settings and click on [OK]:
- "Position (rate)":
X: 0.80
Y: 0.05
2-24
3. Visualizing the flow velocity
Use the mouse to expand the map. The map will be much easier to see.
2-25
In the Object Browser, select [Nays2DGrids] - [iRICZone] - [Arrow]. Right click on [Arrow]
to select [Property].
The [Arrow Setting] window will open.
In the [Arrow Setting] window, make the following settings and click on [OK].
- "Length:
-: Remove ☑ from
"Automatic."
- "Standard value":5
- "Length on screen":20
- "Minimum value to draw"
: 0.005
- "Sampling":select "All
vertices"
- "Color": select
"Custom color" black
2-26
The contour map is easier to see.
2-27
Chapter 3
Example of Simulation
for a Meandering River Channel
Objectives:
Create a meandering channel with iRIC and simulate the flow regime (water depth and flow
velocity) and bed deformation by using Nays2D for a constant discharge, and verify the
simulation results.
Outline:
1 Creating the calculation grid
Using the grid creating algorithm of iRIC, create a grid for calculation of a meandering
channel ("Wave length": 2.2 m, "Meander angle": 40 degrees, "Number of waves": 2, "Bed
slope": 0.01). Create calculation grids: 16 division points in the transverse direction, and 41
division points in the longitudinal direction.
3 Making a simulation
3-1
1. Creating the calculation grid
1. Creating a grid for calculation of a
meandering channel
Select [Multifunction Grid Genarator] from the list under [Select algorithm to create grid],
and click on [OK].
The [Grid Creation] display will open.
3-2
Click on [Channel Shape] from the [Group] list to make the following settings:
Click on [Cross Sectional Shape Parameters] from the [Group] list to make the following
settings:
- "Width(m)": 0.3
- "Number of Grid in Lareral
Direction": 15
3-3
Click on [Channel Shape Parameters] from the [Group] list to make the following
settings:
Click on [Bed and Channel Shape] from the [Group] list to make the following settings:
3-4
Click on [Upstream and Downstream Condition] from the [Group] list to make the
following settings:
Click on [Width Variation] from the [Group] list to make the following settings:
- "Width Variation"
:"Constant Width "
3-5
Click on [Bed Condition] from the [Group] list to make the following settings:
Click on [Create Grid].
The [Confirmation] window will open, asking whether you want to map geographical data to
grid attributes.
Click on [Yes].
3-6
When grids for calculation are displayed as follows, the creation of grids for calculation is
complete.
- Channel shape:
- "Wave length": 2.2 (m)
- "Number of waves": 2
- "Bed slope": 0.01
- "Channel width": 0.3 (m)
In the Object Browser, select [Grid] - [Node attributes] - [Elevation], and make a check
mark ☑ in these boxes.
The elevation contour map will be displayed.
3-7
2. Setting the calculation
conditions
1. Setting the Manning’s roughness coefficient
In the Object Browser, select [Geographical Data] - [Manning’s roughness coefficient].
3-8
Select [Edit value] by right clicking on the grid.
The window to set [Manning’s roughness coefficient] will open.
3-9
2. Open [Calculation Condition]
Click on [Solver Type] from the [Group] list to make the following settings:
3-10
4. Setting the boundary conditions
Click on [Boundary Condition] from the [Group] list to make the following settings:
- "Periodic boundary
condition": "Enabled"
- "Water surface elevation at
downstream end": "Uniform
flow"
- "Slope gradient for uniform
flow simulation": "Calculated
from geographical data"
- "Flow velocity distribution at
the upstream end": "Uniform
flow"
- "Slope gradient for uniform
flow simulation": "Calculated
from geographical data"
Select [Time unit of discharge at upstream and water level at downstream] - [Edit].
The window for setting the discharge and water level will open.
Click on [Add] and make the following settings.
Click on [OK] when the settings are complete.
- "Time": 0 – 0.5hour
3
- "Discharge": 0.002 (m /s)
- The user need not to input
the water level in this dialog,
because this case uses
[Periodic boundary
condition].
3-11
Select [Hour] from the [Time unit of discharge/water surface file] list.
3-12
5. Setting the time
Click on [Time] from the [Group] list to make the following settings:
3-13
6. Setting the initial water surface profile
Click on [Initial Water Surface Profile] from the [Group] list to make the following settings:
3-14
7. Setting Bed material
Click on [Bed material] from the [Group] list to make the following settings:
Many other conditions can be set; however, they do not need to be set for this simulation.
After making the settings above, click on [Save and Close] to close the window.
3-15
3. Making a simulation
On the menu bar, select [Simulation] - [Run].
Before stating the simulation, a window will open to prompt you to save the project.
Click on [OK].
3-16
The [Solver Console [Nays2D] (running)] window will open to start the simulation.
If you wish to stop the simulation, select [Simulation] - [Stop] from the menu bar.
The [Confirm Solver Termination] window will open.
Click on [Yes].
3-17
4. Visualizing the calculation
results
1. Open the 2D Post-processing window
On the menu bar, select [calculation results] - [Open New 2D Post-processing Window].
3-18
2. Visualizing the bed deformation
Click on the arrow icon [<<] (to the beginning) of the time controller on the toolbar.
t = 10 (t)
Click on the start icon of the time controller on the toolbar.
The animation will start.
3-19
To edit the color or value of the contour, in the Object Browser, select [Nays2D Grids] -
[iRICZone] - [Contour]. Right click on [Contour] to select [Property].
The [Contour Setting] window will open.
Make the following settings in the [Contour Setting] window .
- "Colormap Setting"
- "Value range":
Remove the check mark
from "Automatic."
Max: 0.022
Min: -0.055
-"Transparent."
: Remove ☑ from
"Transparent."
3-20
3. Visualizing the flow field
In the Object Browser, select [Nays2D Grids] - [iRICZone] - [Arrow] - [Velocity] and make
a check mark ☑ in these boxes.
A vector map is displayed, as follows.
To edit the length and color of an arrow, select [Nays2D Grids] - [iRICZone] - [Arrow] in
the Object Browser. Right click on [Arrow] to select [Property].
The [Arrow Setting] window will open.
- "Length:
-: Remove ☑ from
"Automatic."
- "Standard value":0.6
- "Length on screen":20
- "Minimum value to draw"
: 0.005
- "Sampling":select "All
vertices"
- "Color": select
"Custom color" black
3-21
The vector map is easier to see.
3-22
To Reader
● Please indicate that using the iRIC software, if you publish a paper with
the results using the iRIC software.
● The datasets provided at the Web site are sample data. Therefore you
can use it for a test computation.
iRIC Software
Nays2D Examples
Edited by Yasuyuki Shimizu (Hokkaido University, Japan) All
Kazutake Asahi (RIVER CENTER of Hokkaido, Japan) All
Taro Yamamoto (Hokkaido Gijutsu Consultant Co., Chapter2
Ltd., Japan) Chapter3,4,5,6
Takuya Inoue (Kaihatsu Koei Co.,LTD., Japan) Chapter7, 8
Michihiro Hamaki (Kaihatsu Koei Co.,LTD., Japan) Chapter9, 10
Toshiki Iwasaki (Hokkaido University, Japan)
Collaborator RIVER CENTER of HOKKAIDO