1 Doug Barber Lance Larsen Information Systems Laboratories, Inc. Information Systems Laboratories, Inc. RELAP5-3D Fluid Properties Modifications.

Slides:



Advertisements
Similar presentations
Debugging ACL Scripts.
Advertisements

Testing Relational Database
MP IP Strategy public Stateye Training (Getting Started) Please enable author’s notes for a textual description of the slides. A audio file.
Software & Services Group, Developer Products Division Copyright© 2010, Intel Corporation. All rights reserved. *Other brands and names are the property.
Chapter 7 Introduction to Procedures. So far, all programs written in such way that all subtasks are integrated in one single large program. There is.
Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
Wannabe Lecturer Alexandre Joly inst.eecs.berkeley.edu/~cs61c-te
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Chapter 3 Loaders and Linkers
SYSTEM PROGRAMMING & SYSTEM ADMINISTRATION
Systems Software.
COMP3221: Microprocessors and Embedded Systems Lecture 2: Instruction Set Architecture (ISA) Lecturer: Hui Wu Session.
Loader- Machine Independent Loader Features
Computers: Tools for an Information Age
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
1 Chapter-01 Introduction to Computers and C++ Programming.
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Linux Operations and Administration
Table-Driven Acceptance Testing Mario Aquino Principal Software Engineer Object Computing, Inc.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
EARTH SCIENCE MARKUP LANGUAGE “Define Once Use Anywhere” INFORMATION TECHNOLOGY AND SYSTEMS CENTER UNIVERSITY OF ALABAMA IN HUNTSVILLE.
University of Coimbra, DEI-CISUC
Instruction Set Architecture
Beta F90 Version Status Nolan Anderson Date: July 26, 2011.
1 Programming Languages Tevfik Koşar Lecture - II January 19 th, 2006.
RFSP-IST UNIX Simulations, and the Application of Sourceforge Prepared By: Aditi Garg Summer Student May-Sept 2005.
Numeric Processing Chapter 6, Exploring the Digital Domain.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
1 COMP 3438 – Part II-Lecture 1: Overview of Compiler Design Dr. Zili Shao Department of Computing The Hong Kong Polytechnic Univ.
Python From the book “Think Python”
Experimental RELAP5-3D Time Step Improvements Dr. George L Mesina RELAP5 International Users Seminar Nov 18-20, 2008 Idaho Falls, ID.
Conifer Cast New features Windows Vista Compatibility New Installer Solver Pause/Resume Locally Implicit Advection Split Lagrangian VOF Advection.
Hands-on Introduction to R. We live in oceans of data. Computers are essential to record and help analyse it. Competent scientists speak C/C++, Java,
RELAP5 International Users Seminar July 25-28, 2011 Salt Lake City, UT IRUG Member Meeting.
Unit-1 Introduction Prepared by: Prof. Harish I Rathod
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
Accuracy Based Generation of Thermodynamic Properties for Light Water in RELAP5-3D 2010 IRUG Meeting Cliff Davis.
RELAP5-3D Uncertainty Analysis A.J. Pawel and Dr. George L. Mesina International RELAP Users’ Seminar 2011 July 25-28, 2011.
Multipliers for Single-Phase Heat Transfer Coefficients in RELAP5-3D 2011 IRUG Meeting Cliff Davis.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
Test Specifications A Specification System for Multi-Platform Test Suite Configuration, Build, and Execution Greg Cooksey.
Chapter 1 Introduction. Chapter 1 -- Introduction2  Def: Compiler --  a program that translates a program written in a language like Pascal, C, PL/I,
IRUG Meeting RELAP5-3D Flexible Wall Component Fluid Property Improvements Glen A. Mortensen Doug Barber Dan Prelewicz Nuclear Systems Analysis.
Programming Fundamentals Lecture No. 2. Course Objectives Objectives of this course are three fold 1. To appreciate the need for a programming language.
 Programming - the process of creating computer programs.
RELAP5 International User’s Seminar November 7, 2007 Paul Bayless, INL Doug Barber, ISL RELAP5-3D Developmental Assessment Plan.
Unit 17: SDLC. Systems Development Life Cycle Five Major Phases Plus Documentation throughout Plus Evaluation…
Jim Conboy / DPGTF-H 20-May Toric at JET – Status & Tools Work in Progress – See for latest.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Geant4 is a toolkit to simulate the passage of particles through matter, and is widely used in HEP, in medical physics and for space applications. Ongoing.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
Author: Cliff B. Davis Verification and Validation of Corrected Versions of RELAP5 for ATR Reactivity Analyses.
Software tools for digital LLRF system integration at CERN 04/11/2015 LLRF15, Software tools2 Andy Butterworth Tom Levens, Andrey Pashnin, Anthony Rey.
1 RIC 2009 Symbolic Nuclear Analysis Package - SNAP version 1.0: Features and Applications Chester Gingrich RES/DSA/CDB 3/12/09.
SOFTWARE TESTING TRAINING TOOLS SUPPORT FOR SOFTWARE TESTING Chapter 6 immaculateres 1.
Regression Testing with its types
CSCI-235 Micro-Computer Applications
Computer System and Programming
Machine Independent Features
Welcome to E-Prime E-Prime refers to the Experimenter’s Prime (best) development studio for the creation of computerized behavioral research. E-Prime is.
An Introduction to Structured Program Design in COBOL
Chapter 1 Introduction(1.1)
Chapter One: An Introduction to Programming and Visual Basic
Chapter 10 – Software Testing
IRSN work and perspectives
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
Chapter 1 Introduction.
Function-oriented Design
Presentation transcript:

1 Doug Barber Lance Larsen Information Systems Laboratories, Inc. Information Systems Laboratories, Inc. RELAP5-3D Fluid Properties Modifications

RELAP5 International User’s Group Seminar and Meeting Outline Changes to Fluid Property Files –Inclusion of Transport Properties –XDR Format Description of Property Bug Fixes New Time Step Logging Feature

RELAP5 International User’s Group Seminar and Meeting TPF File Format Updated TPF file format in RELAP5-3D has been modified in two distinct ways: TPF files are stored as platform independent binary files in eXternal Data Representation (XDR) format. All TPF files will include thermodynamic properties, transport properties, and surface tension.

RELAP5 International User’s Group Seminar and Meeting Transport Property Modification TPFs (Thermodynamic Properties Files) store the fluid properties for fluids supported by RELAP5-3D. Old TPFs included thermodynamic properties, but equations for transport properties and surface tension were computed by RELAP5-3D during the steady-state or transient event. New TPFs include thermodynamic properties, transport properties and surface tension in the TPF file. Transport properties are now obtained via interpolation of table values, similar to thermodynamic properties.

RELAP5 International User’s Group Seminar and Meeting Transport Property Modification The code to calculate transport properties and surface tension was retained, and is used to calculate these properties by default for older fluids. To enable interpolation of these properties based on values in the TPF file for all fluids, card 1 option 46 will be available.

RELAP5 International User’s Group Seminar and Meeting Transport Property Modification The property generators can now create gnuplot scripts for plotting properties. A pdf containing the plots for most fluids supported by RELAP5-3D is included with this presentation.

RELAP5 International User’s Group Seminar and Meeting Transport Mods Assessment The modification of the TPF files to include transport properties was fully assessed using the Developmental Assessment test cases. Most cases showed negligible differences. Results from three cases shown here –Water Over Steam 3D (Phenomenological) –Edward’s Pipe (Separate Effects) –LOBI A1-04R (Integral Effects) The Edward’s Pipe model was also adapted for several different fluids and comparisons were made to previous results –The comparison for each fluid was nearly identical

RELAP5 International User’s Group Seminar and Meeting Transport Mods Assessment Water Over Steam 3D

RELAP5 International User’s Group Seminar and Meeting Transport Mods Assessment Edward’s Pipe

RELAP5 International User’s Group Seminar and Meeting Transport Mods Assessment LOBI A1-04R

RELAP5 International User’s Group Seminar and Meeting Transport Mods Assessment Since the new transport property interpolation scheme can lead to differences in results for the updated fluids, it was decided that the R5 user would be given the option of using the R5 built-in transport properties subroutines, or interpolation of transport properties. By default, the built-in subroutines are used. If card 1 option 46 is included, then transport properties are interpolated based on values in the TPF file. After a period of further testing and evaluation, the new interpolation scheme should be made permanent.

RELAP5 International User’s Group Seminar and Meeting Bug Fix – Transport Properties Viscosity and thermal conductivity are primarily functions of the fluid temperature below the critical point. In RELAP5-3D, superheated fluids showed strong pressure dependence. The code was changed to correct this. The transport properties bug fix applies to volumes with the following conditions: –The volume contains no noncondensibles. –The fluid in the volume is superheated liquid. This issue may also exist with subcooled vapor, but no input models have yet to demonstrate a problem. The fix ensures that the transport properties are being computed based on the current fluid temperature.

RELAP5 International User’s Group Seminar and Meeting Bug Fix – Transport Properties Oscillating Pressure Constant Temperature Therm. Cond. Before and After Bugfix Edward’s Pipe

RELAP5 International User’s Group Seminar and Meeting Bug Fix – Property Index Errors During debugging some property index errors were discovered in the interpolator for fluids with transport properties. These caused instabilities in some cases. In this Edward’s pipe simulation, the base code (without index fixes) becomes unstable and fails, while the code with indexes fixed runs to completion.

RELAP5 International User’s Group Seminar and Meeting XDR-Formatted TPF RELAP5 T/H properties traditionally stored in unformatted binary files –Unable to port property files across different platforms Big Endian to/from Little Endian 32-bit to/from 64-bit Purpose to Produce Platform-Independent Binary (PIB) –eXternal Data Representation (XDR) format –Modify existing PIB library used for plot files Modifications made to property generators for all fluids Work based on a modified version of 3.0.0b –Includes transport property modifications

RELAP5 International User’s Group Seminar and Meeting TPF/XDR: Code Modifications PIB Library –PibTool from APT, Inc. was utilized –XML definition file used to define three record types tpfhdr: writes TPF title information tpfi4: writes 32-bit integer data (i.e. table sizes & indices) tpfr8: writes 64-bit real data (i.e. table values) –PibTool generated Fortran & c code added to the PIB library tFileAccessM.f90, tpfhdrM.f90, tpfi4M.f90, tpfr8M.f90 t.c & t.h

RELAP5 International User’s Group Seminar and Meeting TPF/XDR : Code Modifications (cont’d) Fluid Property Generators –New module, tpfmod.f90, added to each fluid property generator tpfOpen(): Opens the XDR-formatted TPF file for writing tpfWriteHdr(): Writes the title information to TPF file tpfWriteStcom(): Writes table integer data to TPF file tpfWriteTable(): Writes steam table data to TPF file –Data written in same order as previously –New logic activated with “tpfxdr” pre-processor define –tableshandler.f90 (previously gentpf.f90) modified –sta2b.f90 modified for co2, h2o95, h2on, hen, henxen, r134an, xen

RELAP5 International User’s Group Seminar and Meeting TPF/XDR : Code Modifications (cont’d) RELAP5 Source –New module, tpfmod.f90, added to each fluid property generator tpfOpen(): Opens the XDR-formatted TPF file for reading tpfReadHdr(): Reads the title information from TPF file tpfReadStcom(): Reads table integer data from TPF file tpfReadTable(): Reads steam table data from TPF file –New subroutine, streadxdr.F Based on stread.F Driver for reading XDR-formatted TPF files Called from icmpn1.F –New logic activated with “tpfxdr” pre-processor define

RELAP5 International User’s Group Seminar and Meeting TPF/XDR : Code Modifications (cont’d) Modifications to Plot File Routines –Conflict when using PIB library for both plot & TPF files Can’t have both open at same time –Move logic for opening/initializing plot file to a subroutine called after TPF files have been processed Logic from rrstd.F and rrestf.F was collected into new subroutine, iplot.F. iplot.F called from rnewp.F after the XDR-formatted TPF files are read into memory. –Modules & subroutines impacted: cctlmod.F, gnrlmod.F, plotmod.F rnewp.F, rrestf.F, rrstd.F, rstrec.F, stripplot.F

RELAP5 International User’s Group Seminar and Meeting TPF/XDR : Code Verification Athena test suite was utilized for verification testing –Modified suite to include cases to give full coverage –Each fluid type is tested Two sets of comparisons –Big Endian vs. Little Endian –32-bit vs. 64-bit Big Endian vs. Little Endian –TPF files generated on Mac Mini, PowerPC (big endian) –TPF files read on WindowsXP, Intel (little endian) –Comparison of output files showed minor differences Differences attributed to numerical differences in compilers used to build property generators

RELAP5 International User’s Group Seminar and Meeting TPF/XDR : Code Verification (cont’d) 32-bit vs. 64-bit –Variation 1 TPF files generated on 32-bit Linux, IFC 11.1 TPF files read on 64-bit Linux RELAP5-3D executable –Variation 2 TPF files generated on 64-bit Linux, IFC 11.1 TPF files read on 32-bit Linux RELAP5-3D executable –Comparison of output files showed minor differences Round-off errors were negigible Attributed to numerical differences between 32-bit and 64- bit property generators

RELAP5 International User’s Group Seminar and Meeting TPF/XDR : Summary Fluid property generators now produce PIB property files in XDR format –Changes made to PIB library, property generators, and RELAP source –Addressed conflict with XDR-formatted plot files –New logic is activated with “tpfxdr” preprocessor define Changes made to modified version of 3.0.0b –Includes transport property modifications Platform testing was performed for verification –All fluids were tested with a modified Athena test suite –Big/Little Endian comparison showed negligible diff. –32/64-bit comparison showed negligible diff.

RELAP5 International User’s Group Seminar and Meeting Time Step Reason Logging Some system models may have deficiencies that lead to the following issues: Slow execution due to time step size reduction. Excessive mass error that can reduce the time step size and impact accuracy. Often such problems can be isolated to specific parts of the model, which can be modified to improve performance or accuracy. Time step reason logging assists modelers in understanding and fixing the root cause of a models poor performance.

RELAP5 International User’s Group Seminar and Meeting The Log Files Time step logging is enabled using card 1 option 59. Two log files are generated: dtReasonLogSummary.csv – A log file that summarizes time step reduction reasons. dtLogReasonDetails.txt – A detailed log of time step reduction reasons with context information. The summary log can be examined in a text editor, or in a spreadsheet application such as excel or openoffice calc.

RELAP5 International User’s Group Seminar and Meeting The Details Log Files The detailed log file (dtLogReasonDetails.txt) is formatted as YAML. This is a structured file format like XML. However it is designed to be: Human readable (in a text editor) and easy to interpret. Structured so that it is parse-able via scripts. YAML parsers exist for many programming languages (c, c++, java, PERL, Python, etc.). Because YAML has parsers readily available, it is relatively easy to write scripts that extract specific information that is of interest.

RELAP5 International User’s Group Seminar and Meeting The Details Log Files For each time step where the time step size was reduced, the following information is given in the detailed log file: CPU time, simulation time, time step size The courant limit with the volume number where this occurred as well as the void fraction and pressure. A list of ALL the specific reasons that a time step reduction occurred (there can be several) along with context information for the specific logic performed that triggered a time step reduction. The volume and junction state at the location where the time step reduction was triggered.