manual safsim a computer program for engineering simulations

9
SAFSIM: A Computer Program for Engineering Simulations of Space Reactor System Performance" St_D--92-0746C Dean D0branich Sandia National Laboratories I:E92 016328 Albuquerque, NM 87185 505-845-7014 ABSTRACT SAFSIM (System Analysis Flow SIMulator) is a FORTRAN computer program that provides engineering simulations of user-specified flow networks at the system level. It includes fluid mechanics, heat transfer, and reactor dynamics capabilities. SAFSIM provides sufficient versatility to allow the simulation of almost any flow system, from a backyard sprinkler system to a clustx;red nuclear reactor propulsion, system. In addition to versatility, speed and robustness are primary goals of SAFSIM, The current capabilities of SAFSIM are. summarized, and some illustrative example results are presented. INTRODUCTION Nuclear thermal propulsion systems are envisioned as a fast and efficiei_t form of transportation for the e._:ploration of space. The short transit time afforded by nuclear rockets is especially attractive for a manned mission to Mars. Several nuclear reactor concepts have been proposed for such a system including prismatic reactors and pait;icle bed reactors. These concepts have their merits but. need to be evaluated in the context of system performance. SAFSIM is an engineering computer program that allows the fluid mec'hanic, heat tzansfer, and reactor dynamic simulation of the entire propulsion system. The motivation for SAFSIM is the desire to have a tool to pl'ovide qui('k and inexpensive engineering performance simulations of complicated systems. The simulations are intended to provide a first-look understanding of the systems transient behavior tinder operational conditions. It is also desired that this tool have the ability to accommodate changes in the problem definition via changes in an input file rather than changes in the computer program. Thu.% ali geometric ari.d operational information is provided by the analyst, allowing the analyst to _elect a level of modeling detail consistent with the problem detail available. MASTER . [btSTRISU'TION OF TI'-MS DOCUMENT IS U-L! "The avai_ab_lit,y of the SAFSIM computer program described in this document may be subject to ' ' US Government export contro,. ;, " !_"il 't ,%tr %, < i 'i:/;;

Upload: lewist576341

Post on 07-Dec-2015

217 views

Category:

Documents


4 download

DESCRIPTION

Theory manual for SAFSIM, a thermo hydraulic program for nuclear reactors.

TRANSCRIPT

Page 1: MANUAL SAFSIM a Computer Program for Engineering Simulations

SAFSIM: A Computer Program for Engineering Simulations ofSpace Reactor System Performance"

St_D--92-0746CDean D0branich

Sandia National Laboratories I:E92 016328

Albuquerque, NM 87185505-845-7014

ABSTRACT

SAFSIM (System Analysis Flow SIMulator) is a FORTRAN computerprogram that provides engineering simulations of user-specified flow networks atthe system level. It includes fluid mechanics, heat transfer, and reactor dynamicscapabilities. SAFSIM provides sufficient versatility to allow the simulation ofalmost any flow system, from a backyard sprinkler system to a clustx;red nuclearreactor propulsion, system. In addition to versatility, speed and robustness areprimary goals of SAFSIM, The current capabilities of SAFSIM are. summarized,and some illustrative example results are presented.

INTRODUCTION

Nuclear thermal propulsion systems are envisioned as a fast and efficiei_tform of transportation for the e._:ploration of space. The short transit time affordedby nuclear rockets is especially attractive for a manned mission to Mars. Severalnuclear reactor concepts have been proposed for such a system including prismaticreactors and pait;icle bed reactors. These concepts have their merits but. need to beevaluated in the context of system performance. SAFSIM is an engineeringcomputer program that allows the fluid mec'hanic, heat tzansfer, and reactordynamic simulation of the entire propulsion system.

The motivation for SAFSIM is the desire to have a tool to pl'ovide qui('k andinexpensive engineering performance simulations of complicated systems. Thesimulations are intended to provide a first-look understanding of the systemstransient behavior tinder operational conditions. It is also desired that this toolhave the ability to accommodate changes in the problem definition via changes inan input file rather than changes in the computer program. Thu.% ali geometricari.d operational information is provided by the analyst, allowing the analyst to_elect a level of modeling detail consistent with the problem detail available.

MASTER .[btSTRISU'TION OF TI'-MS DOCUMENT IS U-L!

"The avai_ab_lit,y of the SAFSIM computer program described in this document may be subject to ' '

US Government export contro,. ;, "

!_"il't

,%tr %,<i 'i:/;;

Page 2: MANUAL SAFSIM a Computer Program for Engineering Simulations

....... ..., +, ., ii .......... ,Li _,t ,II IL, t[ik_ _,,_,I_(I, _I , lillllll., I_I_I,i. J1, Ik ,_Li,,l,*, , lil, il_lll II ,,

L

DISCLAIMER

E

This report was prepared as an acc_,Jnt of work sponsored by an al;e_cy of the United States =Government. Neithc.rthe United Sta_e_Governmentnor any agencythereof,nor anyof theiremployees,makesany warranty,expr¢,ssor implied, or assmr_esany _¢galliability.orresponsi- --=:bility for the accuracy, ¢x_mpieteness,0r usefulness of any information, apparatus, product,orprocessdi+sclorcd,or represent_that ._tsusewouldnot infringeprivatelyownedrights.Refer- ___¢=_c¢here+into any specificcommercialproduct,proc¢_,or serviceby trad©n_m©,trademark,manufacturer,or otherwisedots not necessarilyconstituteor imply its endorsement,rccom-mendation,or favoringby the Unitc_JStates Governmentor any agencythereof.The views

and opinions of authorsexpressedh¢rcin do not _¢_'¢_sarilystate or reflect thoseof the __United States Government or any agency thereof,

_

i,, t(

Page 3: MANUAL SAFSIM a Computer Program for Engineering Simulations

iii_.

PROGRAM DESCRIPTION

SAFSIM currently contains three basic physics modules: (1) fluid mechanics,(2) heat ¢z'ansfer, and (3) reactor dynamics. Ali three modules are coupled to allowthe prediction of system performance. ]be analyst can employ any or all of thephysics modules as the problem dictates.

Fluid Mechanics

The fluid mechanics module is based on a 1-D finite element model that allows

the specification of a user-defined flow network or multiple networks. Provisionsfor modeling either open or closed networks are incorporated. The fluid can beeither a gas or a liquid; also, mixing models are included that allow the

specification of multiple gases. The fluid mechanics module includes the solutionof quasi-static, semicompressible mechanical and thermal energy equations. Themechanical energy equation is a combined momentum and mass continuityequation. The unsteady mass flow rate term in the momentum equation iscurrently not included, but can be added to a future version. Also, the massaccumulation term in t,he mass continuity equation is omitted at this time. Anoption exists to bypass the mechanical energy equation during problem execution.

Advection, conduction, and convection within the fluid are modeled in thethermal energy equation. Upwind finite elements are employed for the thermalenergy equation with automatic determination of the optimum upwind factorbased on the Peclet number. Convective heat tremsfer from any solid sta-ucture tothe fluid is based on the log-mean temperature difference. This allows the use oflarge finite elements without loss of accuracy. More than one convective surfacecan be coupled to any fluid mechanics finite element.

Although the mechanical and thermal energy equations are solved separately,they are iteratively coupled to provide the solution to a ._.totalenergy equation forthe fluid. Super element capabilit, y is provided for the mechanical energy equationsolutior_, greatly improving computational efficiency. An ideal equation of state isused for gases to specify density as a function of temperature and pressure. Forliquids, the density is currently specified as a function of _mperature only. Fluidconductivity and specific heat are specified by third-order polynomial equations.Either a power-law or Sutherland-law equation can be used to specify fluidviscosity. Multiple _mperature ranges can be specified for the three fluidproperties. Different time steps can be specified for each fluid mechanics flownetwork. Pressure or mass flow rate boundary conditions can be applied to anynode of a flow network for the mechanical energy equation. Temperature or zeroheat flux boundary condit'ions can be applied to any node for the thermal energyequation. Mass fraction boundary conditions for each gas of a multiple gasnetwork can also be specified for any node.

Page 4: MANUAL SAFSIM a Computer Program for Engineering Simulations

Four special finite, element_ are included to increase modeling versatility: (1) aporous media element, (2) a fully compressible nozzle element, (3) acompressor/pump element, and (4) a distributed flow element. A porous mediaelement allows the user to specify an element porosity to simulate porous media.The analyst may select the Ergun, Achenbach, or Beek correlations for calculationof the porous media friction factor. If none of these correlations is adequate, theanalyst can define his own via the input file. A nozzle element allows thesimulation of choked flow based on solution of the compressible, isentropic flowequations. Discharge coefficients can be added t_ the nozzle finite element toaccount for any nozzle inefficiencies. The compressor/pump finite element requiresthe input of a pump characteristic curve along with rated and operational speeds.The pump characteristic curve is adjusted for varying operational speeds based onthe pump similarity lawsL_ A distributed flow finite element accounts for flowentering or exiting this element along its entire length and not just at the nodes.

Three equation solvers are available for the mechanical energy equation: (1)Gauss-Seidel (iterative), (2) Cholesky decomposition (direct), (3) and Gausselimination (direct). The analyst ,nay select any of these solvers based on thespecific problem; if a specific solver is not selected, SAFSIM attempts to useGauss-Seidel iteration first. If convergence is not met, or if the coefficient matrix isnot diagonally dominant, Cholesky decomposition is employed. This is a directsolver that operates only on terms within the semi-bandwidth of the coefficientmatrix and is therefore relatively fast. If the coefficient matrix is not positivedefinite, Cholesky will fail and Gauss elimination is used. This is the slowest ofthe three solvers but the most general. This solver uses partial pivoting and iswritten so that only the terms within the bandwidth of the coefficient matrix areincluded, greatly increasing speed. The use of multiple numerical solvers adds tothe robustness of the program.

Two solvers are available for solution of the thermal energy equation: (1)Gauss-Seidel, and (2) Gauss elimination. For flow problems that are advectivelydominated (such as many gas flow problems), Gauss-Seidel provides a rapidsolution for the fluid temperature field. Gauss elimination is included for flowproblems that are not advectively dominated because the coefficient matrix maylose its dia_onal dominance. Cholesky decomposition is not included fc_r thethermal energy solution because the coefficient matrix is not syn_net_cic due to theadvective term in the equation.

tteat Transfer

The heat transfer physics module is based on a 1-D finite element model thatallows the user to model condu_:tion in any heat transfer structure such as pipewalls, fuel elements or particles, vessel walls, thermocouples, etc. The user caninclude as many structures as desired. Multiple exchange surfaces allow the userto convectively or radiatively couple any heat transfer structure finite e'mment to

Page 5: MANUAL SAFSIM a Computer Program for Engineering Simulations

any fluid mechanics finite element(s). The module can be run in static or dynamic

mode. In dynamic mode, the module automatically determines the optimumimplicitness factor for each node of each structure at each time step. Time step sizecan be calculated automatically for each structure or user specified.

Material properties can be temperature dependent if desfced. Also, severaloptions are available for supplying the property data, including tables,polynomials, power laws, and constants. An extensive built-in heat transfercoefficient correlation library, includes correlations for laminar and turbulentflows, for internal and external flow geometries, and for gases and liquids(including liquid metals). Temperature, heat flux, and convective/radiativeboundary, conditions can be specified. Also, finite elements from different heattransfer structures can be conductively (including a contact resistance) orradiatively (including view factors) coupled. This coupling, however, is explicit. Atridiagonal numerical solver provides a rapid solution for the node temperaturesof all of the structures.

Reactor Dynamics

The reactor dynamics physics module is based on a point (0-D) kinetics modelwith feedback. Multiple reactors can be specified, and multiple feedbackcoefficients are allowed ibr each reactor to account for all system interactions. Theanalyst has complete control over how the feedback coefficients are defined. Also,several "control laws" are available to simulate control rod/drum reactivity controlfor reactor startup and shutdown s_mlations. Special-purpose control laws can beadded to the program by the analyst if desired. The analyst can specify anynumber of delayed neutron groups and any number of decay heat groups. A sourceterm also cart be included.

ri\vo solvers are currently available for integration of the reactor dynamicsequations: (1) Euler, and (2) Runge-Kutta-Fehlberg (RKF). Adaptive time steppingis employed by both solvers based on the desired relative truncation error. TheEuler integrator employs step doubling to provide the tamncation error estimatefor time step selection. The RKF integrator dete_Taines an error estimate as thedifference between a fourth- and fifth-order prediction. The analyst can swishbetween solvers during a problem if desired.

Funct ion-Controlled Variables

In addition to the three physics modules, SAP'SIM contains a unique inputfeature: function-controlled variables. This feature allows the analyst to specifymany of the input variable as functions of the output variables. Examples of inputvariables include: convergence crit_eria, flow areas, conduction lengths, feedbackcoefficients, compressor speed, and boundary conditions. Examples of outputvariables include: pressure, temperature, velocity, and heat transfer coefficient.

Page 6: MANUAL SAFSIM a Computer Program for Engineering Simulations

For example, the diameter of a fluid mechanics finite element can be specified as afunction of a heat transfer finite element temperature to simulate the effect ofthermal expansion on the flow field. Functions can be specified as functions ofother functions to allow complex logic paths to be included via input. A library offunctions is included along with a provision for the analyst to easily add his own.

Illustrative Example Results

To illustrate the type of simulation that can be performed with SAFSIM,selected results are provided fl-om a calculation based on a hypothetical systemu shlg a pm_ticle bed reactor. Figure I shows the predicted reactor power for astartup transient in which a power ramp of a decade per second for 5 s wasspecified. Such a rapid startup is desirable for many potential applications ofnuclear rockets. Figure 2 shows the predicted system mass flow rate (normalized)and demonstrates the effect of the thermal inertia of the solid react_)r structures

on the flow. Figures 3 and 4 provide the calculated feedback reactivities for thevarious feedback terms assumed in the calculation. These figures illustrate thetype of integral system effects that can be shnulated using SAFSIM.

1._ --r ..... 1.0 ..... , , , ,

0, _ .... : .... :.... - .... : [::_,_,_t _ 0., ...... _ ..........

0.6 " " " : .... ' .... '..... ' ...... ' .... '_ " '" 0.5 "

0.4 , , .

o°oJ °o iiLiiiiL2iiio.o z.o z.o s.o 4.o 5.o 6.o 7.0 8.0 o,o 6.o ,o.o ,e.o 2o.o _s,o so,o

TIME (a) TIME (a)

Fig. 1. Normalized Power. Fig. 2. Normalized Flow Rate.

o.2o ............_.........-:.........!....... !.......:.........-_ ,.oo T -

_' 0.10 ...... '. - - o_l_el- pg,e_Um, de,'_e('--- I.O0 -- " ..........................

' "_-'b,d. ,,pan,,o_

._;;:;T.__ ..... _ :'_"> _ o.oo ......

.o.zo ....

.o._o.............. ,,._o.,.......,....i .............i--_---'t---_.--i.....•.....i.--,.....,o.o _.o to.o _.o _o.o _.o _o.o o.o _.o ,o.o ,_.o _o.o _.o so.o

TIME (_) TIME (_)

Fig. 3. System Reactivities. Fig. 4. More System Reactivities.

Page 7: MANUAL SAFSIM a Computer Program for Engineering Simulations

k

Status and Future Enhancements

SAFSIM is a functional computer program that runs on a personal computerand provides the analyst with a tool for rapidly obtaining engineering solutions tocomplex system analysis problems. Benchmarking and documentation are inprogress. Also, additional enhancements are envisioned to make SAFSIM evenmore versatile, robust, and fast. These planned enhancements will expand theclass of problems for which SAFSIM is applicable and are provided in thefollowing non-prioritized list:

(1) LU decomposition solver with iterative refinement for very largeflow networks

(2) Built-in bandwidth minimizer for the mechanical and thermalenergy equations

(3) Automatic steady-state option(4) Blowdown tank option(5) Turbine finite element(6) Unsteady mass flow rate term in the momentum equation(7) Kagonove solver for reactor dynamics equations(8) Structural mechanics physics module(9) Restart capability(10) 2-D tables and other special functions(11) Mass accumulation term in the continuity equation(12) Pre- and post-processing (graphical interface)

ACKNOWLEDGMENTS

This work performed at Sandia National Laboratories, Albuquerque, New Mexico,supported by the U. S. Department of Energy under Contract DE-AC04-76D00789.

Page 8: MANUAL SAFSIM a Computer Program for Engineering Simulations
Page 9: MANUAL SAFSIM a Computer Program for Engineering Simulations