Академический Документы
Профессиональный Документы
Культура Документы
IRC
Motivation
Why Simulation ? We need to know more about the Reactor Plant (PWR, BWR, Research) behavior under normal and accidental conditions. Can not do every experiment on actual reactors --- why? Experimental mockups --- limited use. Computer simulation is the only choice for large complex systems.
Objectives of Module
Learn the underlying mathematical models for TH modeling. Select and focus on a computer code RELAP5 Learn the basics of RELAP5 to
Understand existing TH models Make small changes in existing TH models
Choosing Relap5
RELAP5 is the most widely used systems TH code in the world Accepted by IAEA for Reactor Safety Analyses studies Models of most practical systems are already available (e.g. PWRs, Res. Reac.) Large user community Extensive references Widely accepted mathematical models
RELAP
IRC
A number of State Relationships, Constitutive Models and Physical Property data is available in the RELAP5 Code (See Volume-1 of Code Manual for these equations)
Momentum Equation
Momentum Equations:
Energy Equations
Running RELAP5
Mod3.2
relap5 -i [file.i] -o [file.o] -r [file.r] file.i - input file name (default - indta) file.o - output file name (default - outdta) file.r - restart plot file name (default - rstplt) -s [file.s] strip/extract output file [default - stripf]
Running RELAP5
Mod3.3 onwards
From command line Run relap-loader.bat A GUI will be opened to assist file specs
A Simple Problem
Consider flow of water through a vertical pipe between two tanks. The process involves few Hydrodynamic Components. The Input File should contain all information required to solve the problem
A Simple Problem
25 foot long vertical pipe 1 sq. ft. flow area Water Sink pressure - 50. Psia Source pressure - 150 Psia Temperature - 120 o F
Schematic Diagram
Source Vessel 150 psia
Vertical Pipe 25 ft
Nodalization
A schematic representation of Process Flow Diagram for the purpose of:
Component identification Flow sequence development 1D Discretization
Nodalization Diagram
Junction P i p e Junction
Format: 110 W1 W2 Wn
Format: 20300nnm W1 W2 W3 nn: Graph ID number 1 -99 (A max of 40 graphs can be printed at a time) m: set of variables to be plotted on the same graph (0-4) W1: Alphanumeric part of variable name (see list in Section A4 App) W2: Parameter part of variable name. W3: Axis number and linear/logarithmic scale indicator
( -2,-1,0,1,2)
Example:
1100000 "source" tmdpvol 1200000 "sngljuni" sngljun 1250000 "stmpipe" pipe
Cylinder
Sphere
CCC0101 continued Wall roughness (m, ft). Hydraulic diameter (m, ft). Volume control flags. Packed format tlpvbfe
t: Thermal front tracking model is to be used; t = 0 or 1 l: Mixture level tracking model is to be used; l = 0 or 1 p: Water packing scheme is to be used. p = 0 or 1 v: vertical stratification model is to be used. v = 0 or 1 b: interphase friction that is used. b = 0 or 1 f: wall friction is to be computed. f = 0 or 1 e: nonequilibrium or equilibrium is to be used. e = 0 (nonequilibrium, unequal temperature) e = 1 (equilibrium, equal temperature)
Example: * fa l vol azi vert dz rough hyd d flags 1100101 20.0 0.0 1.0e6 0.0 -90.0 -5.0e4 0.0 0.0 0000000
Hydrodynamic Component
Single junctions (SNGLJUN)
Basic hydrodynamic flow unit used to Join two Hydro Components Information needed for junction card From volume To volume Forward and reverse loss coefficients Models to be used Initial liquid and vapor velocities or mass flows Models that can be selected include counter current flow horizontal stratification choking area changes - (smooth or abrupt) momentum equation needed crossflow
Hydrodynamic Component
Single junctions (SNGLJUN)
CCC0000 name SNGLJUN CCC0101 .. CCC0109 are Junction Geometry Cards
Format: CCC010N W1 .. W9
W1(I):
FROM connection code to a component.
CCC000000 if the connection is to the inlet side of the component CCC010000 if the connection is to the outlet side of the component (CCC in the above two numbers belong to the component connected)
W2(I):
TO connection code to a component (same format as for FROM).
Hydrodynamic Component
Single junctions (SNGLJUN)
W3(R):
Junction area (m 2 , ft 2 ). If zero, the area is set to the minimum of the volume flow areas of the adjoining volumes.
W4(R):
Reynolds number independent forward flow energy loss coefficient
W5(R):
Reynolds number independent reverse flow energy loss coefficient
Hydrodynamic Component
Single junctions (SNGLJUN)
W6(I):
Junction control flags. Packed format jefvcahs
j specifies that this junction is a jet junction. e specifies the modified PV term in the energy equations. e = 0 not app. f specifies CCFL options. f = 0 means that the CCFL model will not be applied v specifies horizontal stratification entrainment / pullthrough options c specifies choking options. c = 0 means that the choking model will be applied a specifies area change options
a = 0 means either a smooth area change or no area change a = 1 means full abrupt area change a = 2 means partial abrupt area change h specifies non-homogeneous or homogeneous. h = 0 means non-homogeneous h = 2 specifies the homogeneous s specifies momentum flux options. s = 0 uses momentum flux in both the TO and FROM volumes s = 1 uses momentum flux in the FROM volume only s = 2 uses momentum flux in the TO volume only s = 3 does not use momentum flux in either volumes
Hydrodynamic Component
Single junctions (SNGLJUN)
W7(R)
Subcooled discharge coefficient. This quantity is applied only to subcooled liquid choked flow calculations. 0.0 < W7 <= 2.0 If W7, W8, and W9 are missing, all are set equal to 1.0.
W8(R)
Two-phase discharge coefficient. This quantity is applied only to twophase choked flow calculations. 0.0 < W8 <= 2.0 If W8 is missing then W8 and W9 are set to 1.0.
W9(R)
Superheated discharge coefficient. This quantity is applied only to superheated vapor choked flow calculations. 0.0 < W9 <= 2.0 If W7 and W8 are entered and W9 is missing then it is set to 1.0
Hydrodynamic Component
Single junctions (SNGLJUN) CCC0110
Optional To Specify junction Hydraulic Diameter and CCFL phenomenon See details in manuals
CCC0111
Junction Form Loss Data
Hydrodynamic Component
Single junctions (SNGLJUN)
CCC0201
SNGLJUN Initial Conditions Format: CCC0201 W1 . W4
W1:
If W1 = 0, W2 and W3 are velocities of Liquid & Vap. If W1 = 1, W2 = Mass flow rates
W2:
Velocity of Liquid (m/s or ft/s) or Mass Flow Rate of Liquid
W3:
Velocity of Vapor or Mass Flow Rate of Vapor
W4:
Interface Velocity (Enter 0.0) (This value is not currently used by the code)
Hydrodynamic Component
Single junctions (SNGLJUN)
Example:
1210000 testj1 sngljun
From vol To vol Area f. loss r. loss flag
0.0
0.0 01000
Example:
1200000 "sngljuni" sngljun * From vol To vol Area f. loss r. loss flag 1200101 110010002 125010001 0.1 0.0 0.0 0000100 * flag liq mass flow vap mass flow inter. veloc. 1200201 1 0.0 0.0 0.0
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS)
The PIPE and ANNULUS components are exactly same except that the ANNULUS component must be vertical and all the water is in the film (i.e., no drops) when in the annular-mist flow regime. All inputs are essentially the same for PIPE as well as ANNULUS A PIPE is simply a series of Single Volumes connected through Single Junctions. More than one junction may be connected to the inlet or outlet. If an end has no junctions, that end is considered a closed end.
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS)
CCC0000 name PIPE CCC0001: Pipe Discretization Info
Format: CCC0001 nv
nv is the number of volumes in which Pipe has been discretiszed 1 <= nv <= 99
CCC0101 .. CCC0199:
Pipe x-coordinate Volume Flow Areas Format: CCC01NN W1 W2 .
The W1 and W2 are data pairs entered in a Sequential Expansion Format
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS)
W1 W2 Volume flow area (m 2 , ft 2 ). Volume number
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS)
CCC0201 CCC0299
Pipe Junction Flow Areas Optional Cards These are used to specify flow areas of internal junctions
CCC0301 CCC0399
Pipe X-Coordinate Volume Lengths Format: CCC03NN W1 W2
W1 and W2 are data pairs in SE Format Example: 1110301 40 3 25 2 50 3
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS) CCC0401 CCC0499
Pipe-Volume Volumes Format: CCC04NN W1 W2
W1 and W2 are data pairs in SEF If these cards are missing (or are set as 0.0) Volumes are calculated from flow areas * length
CCC0501 CCC0599
Pipe-Volume Azimuthal Angles Optional (SE Format)
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS)
CCC0601 CCC0699
Pipe-Volume Vertical Angles Angles are in degrees between +- 90 SE Format
CCC0701 CCC0799
Pipe X-Coordinate Elevation Changes Optional If these cards are missing Elevation is calculated from the Length and Angles data SE Format
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS) CCC0801 CCC0899
Pipe-Volume X-Coordinate Friction Data Format: CCC0801 W1 W2 W3
Three Word SEF W1: Roughness W2: Hydraulic Dia W3: Number of Volumes 0.002 0.15 2
Example:
1110801 0.002 0.1 3
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS) CCC0901 CCC0999
Pipe Internal Junction Loss Coefficients Optional If missing no junction loss Format: CCC0901 W1 W2 W3
Three Word SEF W1: Forward Loss Coefficient W2: Reverse Loss Coefficient W3: Number of Junctions
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS)
CCC1001 CCC1099
Pipe-Volume X-Coordinate Control Flags Packed word tlpvbfe in a Two Word SEF Flags have the same meaning as that for SNGLVOL or TMDPVOL
CCC1001 CCC1099
Pipe-Junction X-Coordinate Control Flags Packed word efvcahs in a Two Word SEF Flags have the same meaning as that for SNGLJUN
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS) CCC1201 CCC1299
Pipe-Volume Initial Conditions Format: CCC1201 W1 W2 .. W7
Seven Word SE Format W1: ebt (Packed Word)
e: Fluid ---- 0 = Default; 1 = H2O; b: Boron Presence; 0 = No; 1 = Yes t: Specifies the next 5 words 2 = D2O
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS)
= 3: Equilibrium -- W2 = P, W3 = T , W4 = W5 = W6 = 0.0 t = 4 to 6 for non-condensable only (See Detail in Manual)
CCC2001 CCC2099
Pipe Initial Boron Concentrations Format: CCC20NN W1 W2 ..
Two Word SEF W1 = Boron Concentration W2 = Volume Number
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS)
CCC1300
Pipe Junction Conditions Control Words Optional If missing then velocities are assumed on Cards CCC1301 through
W1 = 0 -- Cards CCC 13NN specify velocities W1 = 1 Cards CCC13NN specify Flow Rates
Hydrodynamic Component
Pipe / Annulus (PIPE / ANNULUS)
CCC1401 CCC1499
Pipe Junction Diameter and CCFL Data Cards Optional If missing, default values are used Same parameters as for SNGLJUN but in a Five Word SEF
CCC3001 CCC3099
Pipe Junction Form Loss Data Card Optional If missing the Junction Loss data is used from Cards CCC09NN Same parameters as for SNGLJUN but in a Five Word SEF
Hydrodynamic Component
PIPE / ANNULUS Summary of Cards
CCC0000 CCC0001 CCC0101 CCC0199 CCC0201 CCC0299 CCC0301 CCC0399 CCC0401 CCC0499 CCC0501 CCC0599 CCC0601 CCC0699 CCC0701 CCC0799 CCC0801 CCC0899 CCC0901 CCC0999 CCC1001 CCC1099 CCC1101 CCC1199 CCC1201 CCC1299 CCC2001 CCC2099 CCC1300 CCC1301 CCC1399 CCC1401 CCC1499 CCC3001 CCC3099 Name and Initialize Discretization X-Coordinate Volume Flow Areas Junction Flow Areas X-Coordinate Volume Lengths Volume Volumes Volume Azimuthal Angles Volume Vertical Angles X-Coordinate (Elevation) Changes Volume X-Coordinate Friction Data Junction Loss Coefficients Volume X-Coordinate Control Flags Junction Control Flags Volume Initial Conditions Initial Boron Concentrations Junction Conditions Control Words Junction Initial Conditions Junction Diameter and CCFL Data Cards Junction Form Loss Data Card
CCC0110
Valve Junction Diameter and CCFL Data Card Same as for SNGLJUN
CCC0201
Valve Junction Initial Conditions Same as for SNGLJUN
CCC0300
Valve Type Card Format: CCC0300 W1 W1: Type of Valve (Either of the following)
CHKVLV : for a check valve TRPVLV for a trip valve INRVLV for an inertial swing check valve MTRVLV for a motor valve SRVVLV for a servo valve RLFVLV for a relief valve
CCC0400 CCC0499
Valve CSUBV Table Only for Servo and Motorized Valves These essentially contain the smooth area change data
CCC0400
Factors for flow area and stem position Optional. The factors apply to the flow area or the stem Format: CCC0400 W1 W2
W1: Normalized flow area or normalized stem position W2: Flow coefficient factor
Heat Structures
Heat Structures are used to represent metal structures such as vessel walls, steam generator tubes, fuel rods and reactor vessel internals in a model. Temperature distributions are found by a one-dimensional transient heat conduction equation with source in rectangular, cylindrical, or spherical coordinates. Each heat structure is defined to have a left side and a right side. Each side of a heat structure may be connected to at most one hydrodynamic volume. However, more than one heat structures may be connected to the same hydrodynamic volume.
The average fluid conditions in the hydrodynamic volume are assumed to interact with the entire heat structure (i.e. plug flow) except under stratified flow conditions.
Heat Structures
Heat Structure Hydrodynamic Volume
Discretization
Heat Structures
1CCCG000
General Heat Structure Data
1: To distinguish Heat Structure from Hydro Comp CCC: Heat Structure ID
Practice is to use the same number as that for Hydro Comp attached
G: Geometry Number (Their may be more than one materials, thicknesses etc.) 000: Other Cards Numbers
Format 1CCCG000 W1 .. W8
Heat Structures
W1: Number of axial heat structures with this geometry nh.
0 < nh < nh
W2: Number of radial mesh points for this geometry, np W3: Geometry type. Enter 1 for rectangular, 2 for cylindrical, and 3 for spherical. W4: Steady-state initialization flag. W5: Left boundary coordinate W6: Reflood condition flag. W7: Boundary volume indicator W8: Maximum number of axial intervals. Enter 2, 4, 8, 16, 32, 64, or 128 to indicate the maximum number of axial subdivisions
Heat Structures
Card 1CCCG100
Heat Structure Mesh Flags Format 1CCC100 W1 W2
W1: Mesh Location Flag W2: Mesh Format Flag
Heat Structures
1CCCG401 1CCCG499
Initial Temperature Data
1CCCG501 1CCCG599
Left Boundary Condition Cards
1CCCG601 1CCCG699
Right Boundary Condition Cards
1CCCG701 1CCCG799
Source Data Cards
Simple PROBLEM 1
25 foot long vertical pipe 1 sq. ft. flow area Water Sink pressure - 50. Psia Source pressure - 150 Psia Temperature - 120 o F
Simple PROBLEM 2
Add 1.0 inch pipe wall Initial temperatures is 50.0 deg F
CCC
Outlet Plenum
The two branches and pipe between the pump and cold leg also allow the simulation of horizontal stratification
Pipe
1 2 3 4 5 Pump
HPI
Accumulator LPI
Horizontal section allows the formation of stratified flow at bottom of loop seal
Pressurizer
444 445
440
Containment
441
To Steam Generator
Surge Line
443
400
402
End