Boroni 2011
Boroni 2011
Research Article
Ludwig: A Training Simulator of the Safety Operation of
a CANDU Reactor
Copyright © 2011 G. Boroni and A. Clausse. This is an open access article distributed under the Creative Commons Attribution
License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly
cited.
This paper presents the application Ludwig designed to train operators of a CANDU Nuclear Power Plant (NPP) by means
of a computer control panel that simulates the response of the evolution of the physical variables of the plant under normal
transients. The model includes a close set of equations representing the principal components of a CANDU NPP plant, a nodalized
primary circuit, core, pressurizer, and steam generators. The design of the application was performed using the object-oriented
programming paradigm, incorporating an event-driven process to reflect the action of the human operators and the automatic
control system. A comprehensive set of online graphical displays are provided giving an in-depth understanding of transient
neutronic and thermal hydraulic response of the power plant. The model was validated against data from a real transient occurring
in the Argentine NPP Embalse Rı́o Tercero, showing good agreement. However, it should be stressed that the aim of the simulator
is in the training of operators and engineering students.
(vi) assists in the operators’ training under critical scenar- understanding of transient neutronic and thermal hydraulic
ios, dangerous to realize on real situations, response of the power plant. The model was validated against
(vii) supports the certification of operators in a safe data from a real transient occurring in the plant, showing
environment, good agreement.
Complete Core. The methods are responsible for the calcula- Pump. Represents the primary pumps providing the pres-
tion of the reactor kinetics, the reactivity feedbacks and the sure head that controls the primary flow rate.
corresponding control actions, power delivery to the coolant
in the pressure tubes, and scram. This object provides the
Steam Line Cell. Represents the transport of steam from the
two main modes of operation control of the plant, namely,
steam generators to the turbine.
reactor following turbine and turbine following reactor.
Pressurizer. Controls the pressure of the primary system by Turbine. Calculates the electric power output and the exit
means of the thermodynamic balance controlled by heaters pressure of the turbine.
and safety valves.
Condenser. Calculates and controls the residual thermal
Steam Generator Pipe. Calculates the heat transfer from the power.
primary to the secondary system, including the calculation of
the downcomer level control.
Ludwig. Ludwig was implemented using Delphi which is a
graphical programming language. The development of the
Pipe. Represents the cold and hot legs of the primary system. application consisted of two parallel stages: development
and coding of mathematical model using object-oriented
Core Pipe. Represents the pressure tubes of the reactor core. programming and the development of a graphic interface
4 Science and Technology of Nuclear Installations
Table 2: Main equations of each component of the plant. it can be easily reused, saving time and effort in case of
eventual extensions. The multithread technique was applied
Component Equations for CPU sharing between the system code and the graphic
P = P0 + P 1 + P2 interface to ensure prompt response to the user’s requests.
Simulation codes like Ludwig produce large amounts of
dP0 /dt = ((ρ − β)/Λ)P0 + λC text-based outputs. In the case of complicated plant tran-
Core dC/dt = (β/Λ)P0 − λC sients, it is not easy to obtain simply a clear understanding
of the physical processes underlying this type of output
dP1 /dt = (1/τP1 )(a0 a1 P0 − P1 ) data. Ludwig provides various graphical displays during a
dP2 /dt = (1/τP2 )(a0 a2 P0 − P2 ) transient simulation. This group is designed with two sheets:
“plant mimic” and “calculation data, trend graph, and trip
ρ = ρT + ρCO + ρSC + ρV event control”. Figure 1 shows the home window of Ludwig,
ρT = ρTR + ρTC consisting of a main tool bar and two visualization modes,
L N namely: a set of user controlled popup windows displaying
Reactor control dρTR /dt = ΓTR ( j i (dTRi, j /dt)/LN) of the variables required by the user and a plant mimic
system L N
ρTC /dt = ΓTC ( j i (dT Ci, j /dt)/LN) providing integral visualization. The users can control the
L N visualization and the execution by means of the main tool
dρV /dt = ΓV ( j i (dαRi, j /dt)/LN) bar, where buttons for run, stop, pause, restart, and replay
−3
dρCO /dt = −7.5 · 10 (F − 0.5/22.5) are provided. In addition a snapshot function similar to the
restart function is available, which does not have a fixed
dMLP /dt = WSU + WCC − WEB
frequency for saving the data.
WSU = WESTA − VP (dρL /dT)(dTP /dt) The plant mimic module is designed to examine the
Pressurizer
major output variables through a user-designed plant mimic
2
WCC = CR (πDPR /4)((1 − αV )/vL )
as shown in Figure 1. The mimic is equipped by elementary
2
WEB = CB (πDPR /4)(αL /vV ) graphic display units, such as digital meters, level gauges, and
dial meters. The indicators added to the background image
dL1 /dt = (2Wa − (4Q p L1 /(h f − ha )L p ))/ρ f A p
are mapped one by one with the specific output variables that
Steam generators dL2 /dt = 4Q p (2L1 − L2 )/ρ f A p (h f − ha )L p were selected for experts.
Figure 2 shows the “calculation data” sheet, designed to
dM p /dt = Wa − W p
display numerical values of variables of interest for the user,
Pipe node M(dh/dt) = W(hIN − h) which can be selected from a tree-view list. The output
variables are updated at every calculation time step. In
Pressure tube M(dh/dt) = QTH + W(hIN − h)
addition, users can check the value of a selected variable in
dE/dt = Wt (hg (Pgv ) − h) the status bar by locating the mouse cursor on the specific
Secondary system node.
Wt = Wv − Wb
A set of graphic windows show the transient behaviour
dEt /dt = Wt (h − ht ) − Pot of selected variables with time. The user can specify variables
in the code input data before the simulation, and also can
ht = ηht + (1 − η)h
Turbine interactively ask for additional graphs during the simulation
ht = h f (Pc ) + xh f g (Pc ) by clicking the right button of the mouse on the sheet (left
x = (sg (Pturb ) − s f (Pc ))/s f g (Pc )
in Figure 2). Multiple variables can be displayed in a single
graphic window, and the number of trend graph windows is
Condenser τc (dQc /dt) = Wt (ht − ha )+Wb (hg (Pgv ) − ha ) − Qc not limited. The scales of the axis are automatically adjusted
during the simulation.
easy to manipulate. To ensure high accessibility and porta- 4. Validation of the Model
bility, a personal computer with Windows was chosen as
platform. Delphi is a powerful and flexible graphical pro- The simulator was validated against experimental data
gramming language that provides an efficient environment recorded during two different normal transient of the NPP
to develop user interfaces and engineering data display. Embalse Rı́o Tercero. The first event took place on December
Each component of the plant (pressurizer, core, pipes, 1988 with the reactor operating at nominal power. A failure
etc.) was implemented in an individual class encapsulated of the power supply affected a control bar introducing a
with well-defined interfaces. Special modules (e.g., plant constant reactivity input of 0.45 mk/sec, and simultaneously
mimic, numerical calculation, and interactive control) were two of the main primary pumps went out of service. Data of
integrated to produce a closed and consistent system. This the response of the neutronic power and the pressure at the
modular approach reduces the programming effort and exit headers of the pressure tubes is available for 40 seconds.
the complexity of the design. Because each component is Figure 3 shows the evolution of the reactor power and the
independent and self-contained with well-defined interfaces, primary pressure. The event begins at t = 10 sec. There is a
Science and Technology of Nuclear Installations 5
Generador 1
Generador 4
Generador 2
Potencia total
3,000,000,000
2,500,000,000
2,000,000,000
Watts 1,500,000,000
1,000,000,000
194◦ C 200◦ C
500,000,000
200◦ C 194◦ C 0
10 20 30 40 50 60
Tiempo
200◦ C 194◦ C
Avance de la simulación
194◦ C Pot.: 5% 200◦ C
Reac.: 0 3%
power peak of 115% of the nominal value lasting about 1 sec. the primary system (Figure 6). The “bump” at 20 sec is a
The latter triggers the reactor scram, which in turn induces a consequence of the control action of the heaters.
switch of the operation mode of the plant from normal to Figure 7 shows the response of one of the steam generator
alternative. Due to the negative reactivity injection during during the transient. Due to the switch of control mode
the scram the power decreases to 5% of the nominal value in to turbine-following-reactor, the turbine power demand
35 sec. On the other hand, the pressure rises due to the power decreases, and, consequently, the feedwater and steam flows
increase and the loss of flow. This triggers the opening of the also decrease. The level of the steal generator decreases due to
pressurizer valves, but only when the power decreases the the decrease of the primary temperature and the secondary
primary pressure decreases. Later, when the power reaches pressure.
5% of the nominal value, the response of pressure control The second event occurred on February 1984 with the
system can be appreciated. It can be seen that the comparison reactor operating at 88% of nominal power. This time a
with the plant data is very good. failing control bar introduced a constant reactivity input of
Figures 4 to 6 show the evolution of different relevant 0.35 mk/sec. The evolution of the primary and secondary
variables illustrating the response of the plant during the variables are depicted in Figures 8 and 9, showing similar
transient. The primary flow rate (Figure 4) decays in 20 trends as the 1988 event.
seconds to its half value following to the loss of two of
the primary pumps. The total reactivity is dominated by
the scram system (Figure 5). The decomposition in the 5. Conclusions
temperature and void contributions shows the influence
of the physical variables on the neutronic response. The The training simulator Ludwig of the CANDU Nuclear
pressurizer level is reduced due to the pressure drop of Power Plant Rı́o Tercero was presented. The system was
6 Science and Technology of Nuclear Installations
9,900,000
9,800,000
Encendido total de los calefactores
9,700,000 Apagado de los calefactores
Apertura de la válvula
9,600,000 Apertura total de la válvula
Presión
9,500,000
9,400,000
9,300,000
9,200,000
9,100,000
9,000,000
8,900,000
8,800,000
Presión [Pa]
8,700,000
8,600,000
8,500,000
8,400,000
8,300,000
8,200,000
8,100,000
8,000,000
7,900,000
7,800,000
7,700,000
7,600,000
7,500,000
10 15 20 25 30 35 40 45 50 55
Tiempo
Figure 2: Ludwig graphic window. Tree of variables (left) and display of data (right).
20
140
120
Primary pressure (kg/cm2 )
Power (% nominal)
120 90
15
100 60
80 30 10
60 0
0 10 20 30 40 50
t (s)
5
Figure 3: Event 1. Reactor power (•) and primary pressure (◦) 0 10 20 30 40 50
responses to a positive reactivity injection and the loss of two t (s)
primary pumps. The curves correspond to the simulation results.
Figure 4: Evolution of the primary flow rate showing the effect of
the primary pumps failure during event 1.
completely designed and implemented following the object- model integrates the main variables of the major components
oriented paradigm in Delphi language, providing graphical of the plant in order to capture the interrelation and coupling
interfaces to assist the learning process. The mathematical between them during normal transients. The system was
Science and Technology of Nuclear Installations 7
0.02 140
1.2
Power (% nominal)
0.9
−0.02
100
0.6
−0.04
80
−0.06 0.3
−0.08 60 0
0 10 20 30 40 50
t (s)
−0.1
0 10 20 30 40 50 Figure 8: Event 2. Reactor power (•) and primary pressure (◦)
t (s) responses to a positive reactivity injection and the loss of two
primary pumps. The curves correspond to the simulation results.
Figure 5: Event 1. Reactivity response during the event of positive
reactivity insertion. Reactivity due to control failure (dash red),
scram system (solid red), coolant temperature (solid blue), void
(dash blue), fuel temperature (dash black), and total reactivity
3
(solid black).
1
0.6
1
9 0.4
Pressurizer level (m)
0
0.2
6
−1 0
0 10 20 30 40 50
t (s)
3
Figure 9: Event 2. Evolution of the steam-generator water level,
the feedwater flow (full circles and solid curve), and the steam flow
(empty circles and dashed curve).
0
0 10 20 30 40 50
t (s)
2 80
SG level (m)
Nomenclature
60
1 Ap: Area of the secondary side of the steam
40 generator
ao : Decay power fraction of the fission products at
0 20 steady state
a1 , a2 : Power fraction of each neutron delay group
0 (a1 + a2 = 1)
0 10 20 30 40 50
C: Concentration of delayed neutrons
t (s)
CB : Rising bubble velocity
Figure 7: Event 1. Evolution of the steam-generator water level, CR : Liquid drops velocity
the feedwater flow (full circles and solid curve), and the steam flow DPR : Pressurizer diameter
(empty circles and dashed curve). E: Energy of the steam line
8 Science and Technology of Nuclear Installations