Professional Documents
Culture Documents
Mflow_02
Example 1
(How to create grids and
Flow field computation)
Directed by Mineyuki Gamou
Last Update:2014.06.24
Release Date: 2014.07.11
Copyright 2011 iRIC Project All Right Reserved.
Mflow_02 tutorial 1
(How to create grids and
Flow field computation)
2
Preparation data
① River survey data
Folder name 「survey data¥Sample_1¥Testdata¥R_Survey」
File name 「River_survey_1.riv」、
「River_survey_2.riv」、
「River_survey_3.riv」
② Water level and flow discharge data
Folder name 「¥Sample_1¥Testdata¥Discharge」
File name 「Discharge_W_level_7k.csv」
③ Water level data
Folder name 「¥Sample_1¥Testdata¥Water_level」
File name 「W_level_3k.csv」、「W_level_4k.csv」
④ Grain size data
Folder name 「¥Sample_1¥Testdata¥Grain_size」
File name 「Grain _1.csv」、「Grain _2.csv」、「Grain _3.csv」
Folders created in advance
4
The table of contents of tutorial
6
② Please move ” ~¥Testdata¥R_Survey ” folder,
and then load the river survey data
“River_survey1.riv”, ”River_survey2.riv”, ” River_survey3.riv”.
Note the order in which they read
Please load in the order of “River_survey1.riv” ,
”River_survey2.riv” and “River_survey3.riv” always.
Cross-section added
in River_survey3.riv
River_survey1.riv River_survey2.riv
<Tips>
•“River_survey1.riv” and “River_survey2.riv” refer to the same river, but the survey data is separated to 2 files. In
the same river, if the riverbed slope changes significantly, it’s better to separate survey data to make the setting
of initial water level (depth) smooth.
• A cross section data at 5.2k of the main stream has been added into the survey data of tributes and distributes
“River_survey3.riv”. In normal circumstances it is up to 3.0k~4.0k, but it’s better to add one cross-section of the
main stream at the end of the surveying cross-section in order to smooth the connection with the part of main8
stream.
Ⅰ.2 How to select grid creation
① Right-click “Grid Creating condition” in object browser,
“select algorithm to create grid” will display.
② Dialog "Select Grid Creating algorithm" will display when you click
the “ Select Grid Creating algorithm ” , please click “OK”.
10
Ⅰ.3 Set up the coverage to create grids
① By mouse click in a line along the river survey data and then double-
click in the end, set up of grid creation coverage is completed .
Because river
survey data and the
line can’t match with
perfectly, it doesn’t
matter if it enters
inside or protrudes out
of the boundary a little.
However, please don’t
protrude out of the
open boundary. (main
boundary stream 4.0k, 7.0k,
distribute 3.0k) 11
② By moving mouse upon the grid creation range and then right-click,
the sub menu of grid creation conditions is shown.
You click "Create Grid" at the bottom.
12
③ Dialog of “Create Grid” appears .
It’s available to input “Specify minimum angle of cell vertices” and
“Specify maximum area for cell ” then click “OK”.
13
14
Ⅰ.4 Refinement of grids
① It’s possible to set up the Refinement area inside the grid area if you
want to create small grids only in specified area such like distributaries
and confluences. Right-click again, “submenu of grid creating
conditions” displays, then click “add Refinement Region”. You can set
the Refinement Region by continuing mouse click.
15
16
③ Right-click again to display "submenu of grid creating condition", then
click "Create Grid" at the bottom, a warning dialog as shown.
If you click "Yes", the “dialog of grid creation” will display again.
④ Then if you click “OK” and thereafter click “yes” in the next
“confirmation dialog”,
17
18
Ⅰ.5 Add a break line
① At the place where ground elevation changes significantly,
grids must be created in the shape in accordance with the
variation. Therefore, break line can be applied.
19
break line
20
③ Right-click again when “submenu of grid creating conditions”
appears, if you click “create grid”, the warning dialog appears again.
By clicking “yes”, the “grid creation dialog” appears again.
④ If you click “yes” and then still click “yes” again in the
“confirmation dialog”,
21
break line
22
⑥ Necessary to modify shape of grids
23
25
River_survey3.riv
In order to
“River_survey1.riv”is a
River_survey1.riv priority, embankment
has to be diverted
portion. 26
③ So let’s replace river survey data 1 and 3. By moving and right-clicking
mouse at the position of river survey data, data can be replaced by
“move up”, “move down”.
River_survey3.riv
28
① In object browser “Geographical Data” → right-click “Area code”,
select “add” → select “polygon” to set up.
Area code = 3
Area code = 2
Area code = 3
It’s not available to set up the ground elevation
considering “area code” in the preprocessor of
iRIC.
Therefore, Mflow_02 also has the function to
set ground elevation from solver.
31
Set all “Calculation condition” , “Geographical
information” and “Boundary conditions”
If correction is needed If elevation is a reasonable
33
34
② Setting up of data name and calculation condition
How to set up data name is set to see calculation object, name of area,
calculation condition, calculation time, etc. ( 256 alphanumeric at most.)
35
1. Start time : 0(s) (Initial)
2. Time step : 0.03(s)
3. End time : 1.0(s)
( Please remember the elevation setting.
There may be a need to return to
the preprocessor again.
It is a temporary data. ) 36
④ Setting up of turbulence model
Click the “Turbulence model” in the “Groups”, and set as follows.
It’s possible to choose the turbulence model from “zero equation model”,
“simple k-ε model” and “direct input of kinematic eddy viscosity”.
In the case of river, “simple k-ε model” is recommended. In the case of
large size meshes , like ocean , “zero equation model” is recommended.
37
“Direct input of kinematic eddy viscosity” is a last resort.
Initial water-elevation at
downstream 2
Initial water surface slope 2
Initial water-elevation at
downstream 1
Initial water surface slope 1 River survey data 1 River survey data 2
Area code 1 Area code 2
38
Initial water-elevation
at downstream 2
Initial water surface
slope 2
Initial water-elevation
at downstream 1
Initial water surface
slope 1 River survey data 1 River survey data 2
Area code 1 Area code 2
Elevation
Please certainly coincide “river_survey data” and the area code to specify.
Area code 1 : “River_survey1.riv” Initial water-elevation 1 : 6.044
Initial water-surface slope 1 : 650
Area code 2 : “River_survey2.riv” Initial water-elevation 2 : 7.448
Initial water-surface slope 2 : 550
Area code 3 : “River_survey3.riv” Initial water-elevation 3 : 5.828
Initial water-surface slope 3 : 500
If it specifies “Input form file” , the data file (*.tpo , *.anc) prepared in advance will
be import, and initial water-depth will be set up. 40
⑥ Setting up of file control
Click the “file control” in the “Groups”, and set as follows.
In new calculation, please specify the “Initial” in the “Computation from initial or
restart file”
Restart file The binary file for writing the last step in continuous
(for output) calculation.
iRIC file The file for outputting a calculation result to the post
processor of iRIC
External text file The text file for outputting which edits a calculation
result.
External dump file The dumping file for outputting with un-editing a
calculation result. (text file)
42
The image in the case of using hot start function (to continue calculating
from the final output data of previous calculation result)
Flow
discharge Restart file ① Restart file ② Restart file ③
Output Input
Time
Run-up calculation t1 t2 t3
by regime flow
*3) Output time is recorded in restart file (t1, t2, t3… in this figure). Please set this time
as same as the start time in “V.2 Time”.
If time is different, error message appears and calculation stops. 43
44
⑧ Setting up of dike breach condition
It is setting needlessness this time.
45
46
⑩ Setting up of size grain distribution
Click the “grain size distribution” in the “Groups”.
If mixed grain size distribution is selected, different distribution patterns
can be set up for different areas.
This time, please set up as follows.
1. ”Bed material
distribution”: Non-
uniform
2. Grain size
distribution pattern :
3 "Edit"
icon becomes active
only the number of
patterns of grain size
distribution.
“Geographical
information” explains
next which particle
size pattern is set to
which domain.
3. Exchange layer
thickness : 0.25m
47
48
2. In order to import grain size distribution pattern file, it clicks on "import"
icon.
It moves to folder “~¥sample_1¥Testdata¥Grain_size” and import grain
size distribution pattern file “Grain_1.csv”~”Grain_3.csv”.
49
50
Ⅲ.2 Set up geographical information
The settings items of geographical information
① Ground elevation(It has been set)
② Initial depth(Unnecessary, when an initial condition is set up )
③ Area code(It has been set)
④ Manning roughness
⑤ Vegetation density and transmission coefficient
⑥ Vegetation height
⑦ Kinematic eddy viscosity (specific value)
⑧ Fixed or movable bed
⑨ Scour depth control
⑩ Scour elevation control
⑪ Grain size distribution code
⑫ Elevation after dike breach
You may not set up the conditions without necessity.
The setting method can be altogether set up by a polygon like “area code”.
51
1. Manning roughness
Move the cursor to the “Manning roughness” in “geographical information”
of object browser. Right-click, then select “add” → “polygon” to set up.
Please surround the area by continuous mouse click to set the value, and
then double-click to complete confining of the area to set up value .
Please enter “1” if you want to set up the range of fixed riverbed.
The unset up area recognizes it as "movable bed"
54
4. Scour depth control
56
6. Grain size distribution code
Grain size distribution code is the parameter that controls appropriate calculation of
riverbed variation for certain pattern of grain diameter distribution, as the same image
as “Area code”
The area must be set in accordance with “Grain diameter distribution pattern 1-10”.
57
58
Set up boundary conditions (right order)
Boundary condition of flow ①
Boundary condition of
Boundary condition of flow ③ bed load ①
Boundary condition of Boundary condition of
bed load③ suspended bed ①
Boundary condition of suspended bed ③
61
② Drawing of polyline over nodes along the open boundary which was
explained before and double click at the end.
63
64
⑤ Time is displayed on the 1st row,
water level is displayed on the 2nd row and
discharge is displayed on the 3rd row.
65
66
Ⅳ.3 Setting up boundary conditions at downstream
(main stream and distributary).
67
68
③ Time is displayed on the 1st row and water level is displayed on the 2nd row
Mflow_02 assumes time-series fluctuating conditions together with water level and
flow discharge. To set up certain condition for all time. 69
Please set “Equilibrium sediment discharge” to all three boundaries (upstream and
downstream of main stream, and down stream of distributary). 70
② Setting up boundary condition of suspended sediment
(upstream of main stream)
Please set up
“Discharge-suspended
load distribution” to
upstream of main stream.
71
73
In addition, calculation start time and end time are displayed in Mflow.
75
② Confirmation of elevation
Let’s open new(2D) post-processing window.
Click the “iRICZone ” → “Scalar” → “Initial Elevation” and then initial elevation
will display.
Please confirm whether “Initial Elevation” (especially shape of Water channel) is proper.
It becomes easy to consider that you exclude a click “iRICZone ” → “Grid shape”. 76
③ Confirmation of initial water depth
Let’s display “Depth” , you can confirm whether “initial stream line” is proper.
In the “iRICZone” item of object browser, please right-click right-click on “Scalar” to select “Property”
and then “Scalar setting” will display.
Remove the check of “Automatic" of “Value range" ,
input "0.01" into “Min",
remove the check of “Full lower area“.
77
Then you can confirm only area of the water(initial stream line).
78
Ⅵ Execution of Flow field and Movable bed computation
① Reset of the time
If it can confirm that elevation and initial water depth has set up
satisfactorily, reset of the “End time” in the “Control specification”.
Let’s change “End time” for "1"→"9000".
79
80
③ Run
Click “Run“ , the dialog as follows display.
When you click "OK“, a calculation is started.
81
82
⑤ When a calculation performs abnormal termination (the emission)
84
An example of visualization
Let's display the flow velocity vector on the flow velocity contour.
Open new(2D) post-processing window.
Click the “iRICZone ” → “Scalar” → “Velocity(magnitude)” and then flow
velocity contour will display.
In the “iRICZone” item of object browser, please right-click on “Scalar” to select “Property” and then
“Scalar setting” will display.
Remove the check of “Automatic" of “Value range" ,
input "0.01" into “Min",
remove the check of “Full lower area“.
Then you can confirm only area of the water(initial stream line).
85
Next, click “Arrow” → “Velocity –” and then the flow velocity vector will display.
Vector arrows are displayed greatly in this way at first.
86
In the “iRICZone” item of object browser, please right-click on “Arrow” to
select “Property” and then “Arrow setting” will display.
88