Professional Documents
Culture Documents
A Set of Three Auxiliary Programs For The Preparation of Input Files For Relap5/Mod3 Code
A Set of Three Auxiliary Programs For The Preparation of Input Files For Relap5/Mod3 Code
Relap5/Mod3 Code
ABSTRACT
This work aims at the presentation of a set of three new programs, which has the capability of turning simpler
and more automatic the production of the input files for Relap5 code. The first program reads the Relap5 input
file and generates a graphical tree of trips, which shows clearly the manner they are sequenced. The second
program reads a specific input file created by the user, where a sequence of trips is written in an extremely
compact form, and directly writes this sequence in the form of Relap5 input file. The last program aims at the
attainment of a quasi-stationary coolant flow distribution for multi-channel nodalizations, adjusting some
unknown local form loss coefficients. This program iteratively calls the execution of the Relap5 code, and it
reads the obtained values of flows in the Relap5 output file and updates the form loss coefficients in the Relap5
input file.
1. INTRODUCTION
The preparation and verification of the input files in the careful development of nodalizations
of large nuclear power plants (NPPs), for stationary and transient thermal hydraulics analysis,
with the use of the advanced thermal-hydraulic tools, such as Relap5Mod3.2.2G code [1],
may be a tedious and complex task. It’s particularly more difficult when trying to introduce
dynamic systems (as, for instance, the protection, control and limitation systems of a NPP) in
the nodalization or to use several hydraulic channels for reactor core representation.
The author has been involved recently in the creation of the input file of Angra 2 NPP reactor
[2, 3] for Relap5Mod3.2.2G. This new and independent nodalization is very large, including
all primary, secondary, ECCS, feedwater emergency, volumetric, borated and extra-borated
systems. Additionally, a multi-channel representation for the reactor core and the reactor
protection system actuation logic are included. There is the intention of including some parts
of the control and the limitation systems in the near future. During the development and
utilization of this nodalization, two important questions had to be faced.
The first one was the development and the comprehension of the trip cards set, and in order to
deal with it, two programs were developed: CONSTRIP e EXTRIP. The EXTRIP program
aims to provide the visualization of a complex sequence of trips. The program reads the
Relap5 input file and generates a graphical tree of a chosen trip, which shows clearly the
manner they are sequenced. The CONSTRIP program aims to provide the creation of a long
sequence of chained trips (several lines of input data, with an appropriate numeration), to be
inserted in the Relap5 input file. The program reads a specific input file created by the user,
The second question raised in the development of the nodalization was the initialization of
the stationary process, i. e., the achievement of the coolant flow distribution, suitable for a
given NPP (as specified, for instance, in the NPP design). This is particularly important
whenever local form loss coefficients are unknown in certain points, especially in regions
where there are one or more ramifications in coolant ducts with quite complex geometry. The
third program, DEPRESS, aims to automatize this initialization process. The program
iteratively calls the execution of the Relap5 code, and, in each iteration, it reads the obtained
values of flows in the Relap5 output file. Further on, from these data, it rewrites the local
form loss coefficients in the Relap5 input file. The iterative process stops when an adequate
flow distribution (in accordance with a specified precision given by the user) is achieved.
This program is currently being used in the development of Angra 2 nodalizations in Brazil,
when considering several flow channels in the core. In this case there is a complex bi-
dimensional flow network (with axial and crossflows), and this program is being useful for
the proper representation of the flows in this network.
The three programs were written in FORTRAN language, using the Microsoft Fortran Power
Station 4.0 Environment, and are described and exemplified in following sections. All
examples are extracted from Angra 2 nodalizaton studies [2-3].
2. EXTRIP PROGRAM
The Relap5 trip logic is sometimes too difficult to trace back. Thus, the task of finding out the
“starting trips” of a particular occurrence is often a hard one. The objective of EXTRIP
program is to trace back a specific trip up to the starting variable trips and to present these
paths in a clear and simple manner. It has the capability to deal with the logical operators
AND, OR and TIMEOF. The EXTRIP input file must contain only the name of RELAP5
input file and the trip to be traced and the EXTRIP output file will contain the structure with
the tree graphical representation of trip sequence, showing the antecedent trips of each trip.
This graphical representation makes easier the understanding and checking of the trip logic,
especially for the beginners.
An example is presented below, where the trip 1152 indicates the signal for the residual heat
removal (RHR) pumps to start: The trip 1152 is dependent on several logical and variable
trips, like logical 1095 trip for the Emergency Core Cooling System System (ECCS), whose
actuation signal is proceeding from a 2/3 combination of variable trips 0070, 0079 and 0089;
logical trip 1133 indicating Emergency Power Mode (EPM), etc. In this example, the trip
0131, what represents external power loss, is always true. The trip 0087 indicates the second
signal for reactor scram.
3. CONSTRIP PROGRAM
The trip capability of Relap5 code includes variable and logical trips. The goal of CONSTRIP
program is to get an easy implementation of logical trips set, provided the variable trips set
has been already developed. It increases the binary capability of RELAP5 trip logic for an
unlimited capability. It’s possible to construct a complex logical statement with the desired
number of AND/OR operators. It's also possible to use several parenthesis levels to compact
the written logical statement. The CONSTRIP input file has to contain only the logical
statement in a compact form and the initial logical trip. The CONSTRIP output file will
contain the Relap5 logic trips, ready to be added to Relap5 input file.
An example is presented below, where the shown trip logic indicates a simplified actuation
logic of Angra 2 Reactor Protection System (RPS): The numbers 0051 to 0079 indicate
variable trips which represent some of signal described in Angra 2 RFAS [4]. For example,
trips 0075, 0076, 0077 and 0078 indicate steam generators level below 9.0 meters, trips0055
represents hot leg pressure below 13.2 MPa and 0068 represents hot leg pressure above 16.7
MPa, which are some of the signals for RPS actuation.
0051 or 0052 or 0053 or 0054 or 0055 or 0056 or ( 0057 and 0058 ) or ( 0057
and 0059 ) or ( 0057 and 0060 ) or ( 0058 and 0059 ) or ( 0058 and 0060 ) or
( 0059 and 0060 ) or ( ( 0061 or 0062 or 0063 or 0064 ) and 0065 ) or 0066
or 0067 or 0068 or 0069 or 0070 or 0071 or 0072 or 0073 or 0074 or 0075 or
0076 or 0077 or 0078 or 0079
1001
________________________________________________________________________________
4. DEPRESS PROGRAM
The DEPRESS program aims at the attainment of a quasi-stationary coolant flow distribution
for multi-channel nodalizations, by adjusting some local (forward or reverse) form loss
coefficients in particular regions, in agreement with a previously known flow distribution (for
example, design flow distribution). This is important in duct regions where the hydraulic flow
is split into several parts and these coefficients are unknown. Often it's not an easy task to
estimate their values due to, for instance, a very complex geometry of the respective
singularities.
The basic idea behind this program is simple. Whenever there was a split into N flow paths,
one adds (N-1) unknowns, representing each a local form loss coefficients, to a nonlinear
system. Obviously, in one of these N paths, it's necessary to know all the form loss
coefficients in order to have a well-specified pressure drop (as a function of mass flow) and a
well-posed nonlinear system. The program runs automatically. It writes the unknowns as
words of Relap5 input file, calls a RELAP5 execution and reads the mass flow values in
Relap5 output file. The process goes on until a desirable mass flow distribution is achieved.
The program uses a modification of M.J.D. Powell's hybrid algorithm, what is a variation of
Newton's method, which takes precautions to avoid large step sizes or increasing residuals
[5]. Also there is option of using a Broyden method, with a factored secant update [6]. In its
Figure 1 presents a Angra 2 RPV nodalization, which has seven parallel flow in the core: a
hot channel (ECQ), containing 1 fuel assembly; a channel surrounding the hot channel
(VECQ), containing 8 fuel assemblies, four breakthrough channels (BTCs), containing each
one 20 fuel assemblies, and a medium channel (CM), containing 104 fuel assemblies.
Additionally, there is a bypass channel (BYP). There are crossflow communications in all
axial levels between the following pair of channels: ECQ-VECQ; CM-VECQ, CM- BTC1,
CM-BTC2, CM-BTC3, CM-BTC4, BTC1-BTC2 and BTC3-BTC4. There is no
communications from BYP to the other channels.
086
005 088
4 1 1
3 090 2 2 PQ
2 3 3 MJ - 079
100
1 4 4
360 4 5
4
460 3 3 6
1 2 2 7
2 1 1 8
MJ - 097
013
MJ - 053 MJ - 037
3
4 12 12 12 12 12 12 12 12
VECQ
BTC4
BTC1
BTC2
BTC3
ECQ
BYP
CM
5 11 11 11 11 11 11 11 11
6 10 10 10 10 10 10 10 10
7 9 9 9 9 9 9 9 9
8 8 8 8 8 8 8 8 8
038
040
042
044
046
048
050
036
MJ - 051
10 6 6 6 6 6 6 6 6
11 5 5 5 5 5 5 5 5
12 4 4 4 4 4 4 4 4
13 3 3 3 3 3 3 3 3
14 2 2 2 2 2 2 2 2
15 1 1 1 1 1 1 1 1
16 020
17 017
015
At the boundary line between two adjacent channels, there are 12 communications paths (one
per axial level) and consequently 12 local form loss coefficients to be estimated. In order to
simplify the problem, all these coefficients are considered as being equal. Obviously, the
coolant crossflow values at each axial node will be different and in order to close the
nonlinear system, the global flow from one channel to the other (including all axial levels)
will be the flow to be achieved. By symmetry, the BTCs are considered equal, and the axial
and lateral form loss coefficients are taken as the same. The crossflows between two BTCs
are not considered as a part of the problem. Therefore there are four axial and three lateral
local form loss coefficients to be estimated at the multi-channel representation of the core
(item iv above). Table 1 summarizes the users’ options and numerical values involved in this
problem solution.
5. CONCLUSIONS
The examples presented show the utility of programs in handling of RELAP5 input files.
These three programs were useful in the development and understanding of a complex
nodalization. They are especially important for the beginners and in some particular tasks like
the migration of data from an old nodalization to a new one. However it's important to test
these programs in new configurations to investigate their limitations and try to improve their
capability.
REFERENCES