GRAPE User's Guide
GRAPE User's Guide
September, 2017
Nuclear Engineering, Ltd.
ATN-1709003
Contents
1. Introduction ......................................................................................................................................... 1
2. Tutorials ............................................................................................................................................... 3
2.1. Start-up of GRAPE ..................................................................................................................... 3
2.2. View Calculation Results ........................................................................................................... 4
2.3. Run Calculation ........................................................................................................................ 14
2.4. Exit System ............................................................................................................................... 21
3. Functions............................................................................................................................................ 22
3.1. Control Ribbon.......................................................................................................................... 22
3.2. Project Control .......................................................................................................................... 23
3.2.1. Create project .................................................................................................................... 23
3.2.2. Open project...................................................................................................................... 25
3.2.3. Save as new project .......................................................................................................... 27
3.2.4. Save project....................................................................................................................... 29
3.2.5. Delete project .................................................................................................................... 29
3.3. Input Features............................................................................................................................ 30
3.3.1. Edit calculation conditions .............................................................................................. 31
3.3.2. Advanced input features .................................................................................................. 38
3.3.3. Input error notifications ................................................................................................... 40
3.3.4. Show input file.................................................................................................................. 47
3.4. Run/Stop .................................................................................................................................... 49
3.4.1. Run calculation ................................................................................................................. 49
3.4.2. Stop calculation ................................................................................................................ 51
3.5. Visualization Features .............................................................................................................. 52
3.5.1. Plant diagram .................................................................................................................... 52
3.5.2. Noding diagram ................................................................................................................ 61
3.5.3. Core diagram .................................................................................................................... 68
3.5.4. Event log ........................................................................................................................... 75
3.5.5. Trend graph ....................................................................................................................... 76
3.5.6. Time slider ........................................................................................................................ 91
3.5.7. Show output file ............................................................................................................... 98
3.6. Useful Features ....................................................................................................................... 100
3.6.1. Screen shot ...................................................................................................................... 100
3.6.2. Open tab as window ....................................................................................................... 101
ATN-1709003
1. Introduction
GRAPE (Graphical RELAP/SCDAPSIM Analysis Platform for Education and engineering) is
an analysis platform compatible with RELAP/SCDAPSIM. The present system automatically setup
analysis and visualization environments only with a simple operation. Therefore, not only you can
reduce the hustle and bustle of input deck making or data management, but also it helps you
concentrate on your research and/or engineering activities. The present system is equipped with the a
typical 4-loop PWR plant model
Calculation and visualization procedures in the present system are as follows:
At first, the present system automatically generates an input deck depending on the specified
calculation condition on the graphical user interface (GUI) of the present system. Then, it is executed
with RELAP/SCDAPSIM. (Fig. 1) Thus, the present system can dramatically reduce the burden of
input deck making of RELAP/SCDAPSIM.
Calculation Input
conditions deck
RELAP/
GRAPE SCDAPSIM
In addition, the present system visualizes the calculation results of RELAP/SCDAPSIM in real time
on the GUI. It helps users intuitively understand calculation results . (Fig. 2)
Visualization Calculation
results
RELAP/
GRAPE SCDAPSIM
In the present system, a set of relevant files to the calculation are summarized in a directory as a
“project” as shown in Fig. 3.
1
ATN-1709003
01010100101
01011000101
0100101010
“Project”
Chapter 2 Tutorials
The way to use the present system is described.
If it is the first time for you to use the present system, please be sure to read this chapter.
Chapter 3 Functions
Detailed description about the functions of the present system is described.
Chapter 4 Summary
Summary of this manual and contact information are described..
2
ATN-1709003
2. Tutorials
In this chapter, the way to use the present system is described through an analysis flow.
3
ATN-1709003
Open project
button
click!
2) The dialog to select a project file appears. (Fig. 7) Move to “C:¥grape_trial¥package” where is
the default data directory of the present system.
4
ATN-1709003
3) The following project directories are stored in the default data directory.
double-click!
5
ATN-1709003
4) Click the project file, “PWR_LOCA.saproj”, located at the project directory “PWR_LOCA”.
Then, click “Open”. (Fig. 9)
click!
click!
5) Opening the project file, the title screen is reloaded. (Fig. 10) The following tabs are added to
the title screen.
Static condition tab : the tab to specify static calculation conditions
Transient condition tab : the tab to specify perturbation/malfunction conditions
Plant diagram tab : the tab to show major plant parameters
Core diagram tab : the tab to show detailed parameter distribution in the core
Event log tab : the tab to show an event list
6
ATN-1709003
click!
7
ATN-1709003
click!
8
ATN-1709003
click! Major
parameters
Diagram shown at the center of the screen is the plant diagram. Text boxes around the diagram
show you values of major plant parameters at the selected time with the time slider. (Fig. 14)
Play buttons allows you to playback calculation results. (See sections 3.5.1 or 3.5.6 for detail of
plant diagrams or the time slider.)
Selected time
Time slider
Playback button
9
ATN-1709003
click!
The core diagram tab shows color maps of REAP, SCDAP and COUPLE’s parameter distribution at
a selected time with the time slider. (See section 3.5.3 for detail of the diagrams.)
10
ATN-1709003
click!
11
ATN-1709003
click!
The diagram shown at the center of the screen is the noding diagram. In noding diagrams, a
color map of thermal-hydraulic parameters is shown at a selected time with the time slider. (See
section 3.5.3 for detail of noding diagrams.)
12
ATN-1709003
click!
Drag&drop
13
ATN-1709003
1) Click the create project button to specify a new calculation condition. (Fig. 19)
Create new
project button
click!
14
ATN-1709003
3) Select a plant model in the dialog. Then, choose a directory to save a project and input a new
project name. For example, in this tutorial, select BWR model and input directory and project
name as follows: (Fig. 21)
Directory to save project : C:¥grape_trial¥user case
Project name : locked_rotor
Then, click the “OK” button.
click!
Click to choose
a directory
(a) Select plant model (b) Choose directory and project name
Fig. 21 Create a new project
Through this step, the following project directory and project files are created.
Project directory : C:¥grape_trial¥user case/locked_rotor
Project file : C:¥grape_trial¥user case/locked_rotor/locked_rotor.saproj
15
ATN-1709003
4) Tabs to specify calculation conditions, i.e., the static condition and the transient condition tabs,
appears. (Fig. 22) In the input screen, there is a list of available input items at the left of the
screen.
Input
item list
5) Show the static condition tab and click the item, “Calculation Condition”, located at the top of
the input item list. The input item, “Time step”, appears.
Click!
16
ATN-1709003
6) When input items in the input item list located the left panel are clicked, tables and/or text
boxes are added to the calculation condition list located at the right panel. Specified calculation
conditions in the right panel will be used in a transient calculation. For example, click the item,
“Time step”. A time step table is added to the calculation condition list. (Fig. 24)
click!
7) Specify the time step conditions in the table. (Fig. 25) In the following example, the transient
calculation is carried out until 100 seconds because “end time” is specified as 100 sec.
17
ATN-1709003
8) As a next, click the transient condition tab to specify conditions such as perturbations and
malfunctions. (Fig. 26)
click!
9) Click “Perturbations” located at the input item list in the left panel of the transient condition tab.
Then, click the item, “RCP failure”. (Fig. 27)
click!
18
ATN-1709003
10) The following input boxes appear. Specify the break mode as “Locked rotor”, the break time as
50.0 sec, and target loop as “A-loop”. (Fig. 28)
19
ATN-1709003
11) Finally, click the run button located at the top of the screen to run the calculation. (Fig. 29)
Run button
click!
12) If you want to terminate the calculation, click the stop button. (Fig. 30)
Stop button
click!
20
ATN-1709003
Exit
button
21
ATN-1709003
3. Functions
In this chapter, the detailed functions of the present system are described.
Control ribbon
Available buttons are displayed in solid black line. (Fig. 33) Clicking the available button, the
function assigned to itis launched.
22
ATN-1709003
Create new
project button
click!
23
ATN-1709003
3) Select a plant model in the dialog. Then, choose a directory to save a project and specify a new
project name. (Fig. 36) Then, click the “OK” button to make a project.
Blank or space characters are not allowed for the directory and the project names.
click!
Click to choose
a directory
(a) Select plant model (b) Choose directory and project name
Fig. 36 Create a new project
In the above example, the following project directory and project files are created.
Project directory : C:¥grape_trial¥user case/locked_rotor
Project file : C:¥grape_trial¥user case/locked_rotor/locked_rotor.saproj
24
ATN-1709003
Open project
button
click!
2) The following dialog to select a project file appears. Click a project file, *.saproj. Then click the
“Open” button. (Fig. 38) Click the “Cancel” button to cancel.
click!
click!
25
ATN-1709003
3) Opening a project file, the static and the transient condition tabs appear. If calculation results
have already existed, tabs to show calculation results are also shown on the display.
If calculation results have already existed, the following message might be shown on
the display.
This message will be shown if the calculation condition in static and transient
condition tabs are modified after the execution. Running the calculation again, this
message will not be shown.
26
ATN-1709003
1) Click the save project button located at the top of the screen. (Fig. 39)
click!
Save options
27
ATN-1709003
3) Select a directory to save a project and specify a new project name in the project save dialog.
(Fig. 41) Click the “OK” button to save the project. Click the “Cancel” button to cancel.
The calculation result shown in the display after saving as another project is that of
newly created project.
Name of the project currently opened with the present system is shown at the title
bar.
Project name
currently opened
28
ATN-1709003
1) Click the save project button located at the top of the screen. (Fig. 42)
click!
Save options
29
ATN-1709003
Tabs to specify
calculation conditions
30
ATN-1709003
Input
item list Calculation condition list
To specify calculation conditions, click an input item from the input item list. Since a panel to edit
the corresponding calculation condition of the selected input item appears in the calculation
condition list, edit it as you like.
In order to run a calculation, at least time step table must be specified in the present
system.
31
ATN-1709003
click!
Fig. 46 Available input items for safety injections of BWR plant model
32
ATN-1709003
2) Click an input item to specify the corresponding calculation condition. A panel to edit input
parameters appears at the right side of the screen. (Fig. 47)
Default value
click!
33
ATN-1709003
click to edit
34
ATN-1709003
Text box
Fig. 49 shows an example of text box objects. Click to edit the value.
click to edit
If you leave a text box which has a default value blank, the original default value is used
for transient calculations.
Table
Fig. 50 shows an example of table objects. Click a value to edit as well as text box.
click to edit
If the mouse cursor is in a table, the following two buttons, which allow you to copy or remove the
row, appear at the right side of the row. (Fig. 51)
The tab key allows you to move the focus to next cell.
35
ATN-1709003
Radio button
Fig. 52 shows an example of a radio button object. Select one option from a set of alternatives.
The option with a check mark is the selected one.
click to select
Combo box
Combo box objects also allow users to select one option from a set of alternatives as well as
radio button. (Fig. 53) Click to select another option.
36
ATN-1709003
click to remove
37
ATN-1709003
1) Click the input item group, “Manual Card Edit”, located at the bottom of the input item list.
Then, click the item, “RELAP input cards”. (Fig. 55)
click!
38
ATN-1709003
2) The following panel which has a text area appears at the right side of the screen. Write input
cards of RELAP/SCDAPSIM. (Fig. 56) They are added to the input file as is when the present
system automatically generates the input file for this calculation.
Both the static condition and the transient condition tabs have the same input item,
“RELAP input cards”. However, the present system adds input cards corresponding to
specified input items in the static condition tab to input templates. After that, input cards
in the transient condition tab are added.
39
ATN-1709003
Error message
Input numerical value.
Specify a valid number to fix this error,. Examples of valid and invalid numbers are as follows:
Valid number 0.001, 1.0E-3, 1e-3, 1000, 1.00E+3, etc
Invalid number 1.0D-3, 1.0-3, etc
40
ATN-1709003
Error message
Input value is not within the allowed range, <interval notation>
Specify a value within the range shown in the interval notation to fix this error. Interval notations
indicate as follows:
(min, max) min (input value) max
[min, max) min (input value) max
(min, max] min (input value) max
[min, max] min (input value) max
41
ATN-1709003
Error message
This value must be input.
42
ATN-1709003
Error message
Value in this row is duplicated with that of other one.
Specify different value for the cells in the first column to fix this error.
43
ATN-1709003
Error message
Input a value in blank cell.
Specify values in blank cells or delete the row to fix this error.
44
ATN-1709003
Error message
This input item competing with other input items.
For example, if two recirculation line break conditions are specified as shown in Fig. 62, they are
competing with each other because they are trying to occur a line break at the same recirculation line
with the different conditions. In this case, the present system indicate this error.
Remove one of the competing conditions from the calculation condition list located at the right side
of the screen to fix this error.
45
ATN-1709003
Error message
Too many input items!
Reduce the number of the input items on which the error message appears to fix it.
46
ATN-1709003
1) Click the show input/output file button located at the top of the screen. (Fig. 64)
click!
2) Click the option, “show input file”, to open the input file created with the specified calculation
condition. (Fig. 65)
表示オプション
click!
47
ATN-1709003
If the input file is opened with another software or some errors are detected in
template files, the following dialog will be shown. If you are opening the input file
with another software, close it and try it again. If not, please see the DSL log file
located at “C:/grape/package/dsl/error.log”.
3) The present system automatically generates an input file and it is opened with the text editor,
notepad.
Modifications of the opened input file is not reflected to transient calculations because
the present system re-creates and overwrites the input file before run it.
48
ATN-1709003
3.4. Run/Stop
3.4.1. Run calculation
Click the run button located at the top of the screen to run a calculation with RELAP/
SCDAPSIM.
Run button
click!
If the present system obtains the calculation result, tabs to show results are automatically shown on
result view screens. (See section 3.5.)
49
ATN-1709003
If the calculation result already exists in the project, the following dialog appears:
Click the “OK” button to overwrite the existing calculation results. If you don’t want to
overwrite it, click the “Cancel” button and save the project as another name.
If errors detected during input processing with RELAP/SCDAPSIM, the following
dialog appears. Click the “OK” button to open output file.
If the input file is opened with another software or some errors are detected in template
files, the following dialog will be shown. If you are opening the input file with another
software, close it and try it again. If not, please see the DSL log file located at
“C:/grape/package/dsl/error.log”.
50
ATN-1709003
Even if the transient calculation is stopped, the calculation results already obtained from
RELAP/SCDAPSIM can be visualized on result view screens. (See section 3.5.)
実行中断
ボタン
click!
51
ATN-1709003
click!
52
ATN-1709003
3.5.1.1. Indicators
The plant diagram has the following indicators to notify events in the plant.
Break indicator
Valve status indicator
Reactor scram indicator
Safety injection indicator
Water level indicator
In this subsection, detail of each indicator is described.
LOCA indicator
Break indicator is shown at the position of a break of something with mark when a break of
something occurs. (Fig. 71)
Pipe break
53
ATN-1709003
54
ATN-1709003
55
ATN-1709003
56
ATN-1709003
57
ATN-1709003
1) Click a parameter value in the plant diagram to show its widget graph. (Fig. 76)
click!
58
ATN-1709003
3) Click the “ ” button located at the top-right of the widget graph area to delete it. (Fig. 78)
59
ATN-1709003
4) You can show multiple widget graphs on the plant diagram. (Fig. 79)
60
ATN-1709003
click!
61
ATN-1709003
In the noding diagram, a volume-wise thermal-hydraulic parameter distribution are shown with a
color map. The thermal-hydraulic property of a specific volume can be easily read by referring a
color bar located at the right-side of the diagram. (Fig. 81) For example, the coolant density of the
red-squared volume in Fig. 81 seems to be about 750~800 kg/m3.
coolant density
750~800kg/m3
62
ATN-1709003
To see its actual value, put the mouse cursor on the target volume. A tooltip will be pop up to show
the value associated with the volume name, e.g., the coolant density at the down comer is 785.2
kg/m3 as shown in Fig. 82.
Fig. 82 Tool tip to show actual thermal-hydraulic property and volume name
Since there are large number of volumes, it would be efficient to understand a global
behavior with a color map and local one with a tooltip.
63
ATN-1709003
click!
2) Click a parameter to show from the pull-down menu. (Fig. 84) Table 3 shows the list of
available parameters.
click!
64
ATN-1709003
65
ATN-1709003
scaling
buttons
Zoom in/out functions are also available with holding down the Ctrl key while scrolling
the mouse wheel. Drag the noding diagram to move its center position.
66
ATN-1709003
67
ATN-1709003
click!
68
ATN-1709003
SCDAP
results
RELAP
results
COUPLE results
69
ATN-1709003
気液相平均
About
冷却材密度が3
350kg/m
約350kg/m3
70
ATN-1709003
To see its actual value, put the mouse cursor on the target volume. A tooltip will be pop up to
show the value, e.g., the coolant density at the down comer is 353 kg/m3 as shown in Fig. 90.
Fig. 90 Tool tip to show actual thermal-hydraulic property and volume name
71
ATN-1709003
click!
72
ATN-1709003
2) Click a parameter to show from the pull-down menu. (Fig. 92) shows the list of available
parameters. Available parameters are shown in Table 4.
click!
73
ATN-1709003
74
ATN-1709003
click!
scroll bar
Event name and its time of occurrence are shown on the screen. Scrolling the scroll bar located at the
right side of the screen, you will be able to see all events.
75
ATN-1709003
click!
Functions to initiate or modify trend graphs are described in the following subsections.
76
ATN-1709003
Drag&drop
2) Depending on the parameter, the following dialog to select volume numbers appears. (Fig. 96)
Specify volume numbers in the text box located at the top of the dialog with comma separated
form, or select volumes in the noding diagram shown at the center of it.
click!
77
ATN-1709003
3) Trend graphs are generated with the selected parameters and the volume numbers. (Fig. 97)
If the background color of the text box becomes red, input volume numbers are not
valid. Check the volume numbers and input them carefully again.
click!
Fig. 97 Trend graphs generated with the selected parameters and volume numbers
78
ATN-1709003
click! click!
2) Drag and drop a legend into another legend area to move it. (Fig. 99 and Fig. 100)
79
ATN-1709003
3) Drag and drop a legend to the trash icon to delete it. (Fig. 101)
drag&drop
80
ATN-1709003
4) Click the close legend icon ( ) to close the legend area. (Fig. 102)
click!
click!
click!
81
ATN-1709003
1) Double-click an axis area to change the range of the axis. (Fig. 104)
double-click!
2) The dialog to set the range of the axis appears. Click “Manual” to set new range manually. (Fig.
105)
click!
82
ATN-1709003
3) Input a new range, i.e., minimum and maximum values, and click the OK button. (Fig. 106)
Click the “Cancel” button to cancel.
click!
If the background color of the text boxes becomes red, an input value is not valid. Check
the value and input it carefully again.
83
ATN-1709003
84
ATN-1709003
click!
click!
85
ATN-1709003
click!
click!
86
ATN-1709003
Scaling
button
click!
click!
87
ATN-1709003
Double-clicking a graph area (red-hatched area in Fig. 112), the clicked trend graph area is
maximized or minimized.
double-click!
double-click!
88
ATN-1709003
When trend graph areas are maximized, light blue solid lines are shown on the background.
Putting the mouse cursor on it, the list of events occurred at that time is shown on the top of the trend
graph. (Fig. 113)
89
ATN-1709003
Export button
Clicking the export button, a dialog to enter a file path appears. Enter a file path and save it.
90
ATN-1709003
Selected
time
Time slider
Dragging the thumb of the time slider, a selected time shown at the lower-left of the screen is
changed. The time slider has also have playback and jump functions, which is described in the
following subsections.
91
ATN-1709003
3.5.6.1. Playback
Clicking playback button located at the bottom of the screen, the thumb of the time slider is
automatically pushed forward. (Fig. 116)
click!
92
ATN-1709003
Click the stop button located at the bottom of the screen to stop playback. Playback is also
automatically stopped at the end of time slider. (Fig. 117)
click!
93
ATN-1709003
Playback layback speed can be changed with the combo box located at the right side of the playback
button. (Fig. 118)
click!
94
ATN-1709003
Dragging and dropping the thumb of the time slider, its position can be changed. If the thumb is
dragged and dropped during automatic playback, it will keep playback from where it is dropped.
95
ATN-1709003
96
ATN-1709003
Inputting a specific time at the text box located at the right bottom of the screen and clicking “Go!!”
button (Fig. 121), the thumb of the time slider also jumps to the specified time. There are 2 ways to
specify the time as follows:
1) Input in seconds order (Ex. t = 130 sec input as “130”)
2) Input in “mm:ss” manner (Ex. t = 130 sec input as “2:10”)
click!
97
ATN-1709003
1) Click “show input/output file” button located at the top of the screen. (Fig. 122)
click!
98
ATN-1709003
Error messages of RELAP/SCDAPSIM are described at the end of the output file.
For example, the following message will be shown if an input error is detected
during input processing.
Search the key word, “0********”, in the output file. It will help you to fix the error.
99
ATN-1709003
Screen shot
button
100
ATN-1709003
drag&drop
Using this function in the multi-display environment, comparison of the parameters or understanding
of the physical phenomena become easier. (Fig. 127)
101
ATN-1709003
Screen
Screen
setting file
Window layout,
Parameters to show, etc.
Save
screen setting
Project A
Screen
setting
Load
screen setting Project B
102
ATN-1709003
click!
2) Click the option, “save”, to save current screen layout and showing parameters as a screen
setting file. (Fig. 131)
click “save”
103
ATN-1709003
3) Since the following dialog appears, specify a file name to save. Then, click “Save”. (Fig. 132)
click!
104
ATN-1709003
click!
2) Click the option, “Open”, to load a screen setting file. (Fig. 134)
click “open”
105
ATN-1709003
3) Select an screen setting file with the following dialog. Then, click “Open”. (Fig. 135)
click!
106
ATN-1709003
Status
panel
(a) waitting for run (b) running calculation (c) calculation completed
Fig. 138 Calculation status
107
ATN-1709003
4. Summary
In this manual, the way to use the present simulator is described. Please contact us if you have
any questions regarding this manual and/or present system.
108
ATN-1709003