ASTEM-A COLLECTION OF FORTRAN SUBROUTINES TO EVALUATE THE 1967 ASME EQUATIONS OF STATE FOR WATERISTEAM AND DERIVATIVES OF THESE EQUATIONS by K.V. Moore nero~et nuclear Company NATIONAL REACTOR TESTING STATION ldaho Falls, ldaho - 83401 DATE PUBLISHED-OCTOBER 1971 PREPARED FOR THE . - ,;i U. S. ATOMIC ENERGY COMMISSION IDAHO OPERATIONS OFFICE UhlnED CAhlTDArT ATfln-11-i~ '
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
ASTEM-A COLLECTION OF FORTRAN SUBROUTINES TO EVALUATE THE 1967 ASME EQUATIONS OF STATE FOR WATERISTEAM AND DERIVATIVES OF THESE EQUATIONS
by
K.V. Moore
nero~et nuclear Company NATIONAL REACTOR TESTING STATION
ldaho Falls, ldaho - 83401
DATE PUBLISHED-OCTOBER 1971
PREPARED FOR THE . - ,;i U. S. ATOMIC ENERGY COMMISSION
IDAHO OPERATIONS OFFICE UhlnED CAhlTDArT A T f l n - 1 1 - i ~ '
DISCLAIMER
This report was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor any agency Thereof, nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.
DISCLAIMER
Portions of this document may be illegible in electronic image products. Images are produced from the best available original document.
P r i n t e d in the United Statee of America Available from
National Technical Information Service U. S. Department o f Coarmerce
5285 por t myal Road Springfield, Vi rg in ia 22151
Price: Printed Copy $3.00; Microfiche $0.95
L E G A L N 0 T I C . E 1 T h i s r e p o r t was p r e p a r e d a s a n a c c o u n t o f work sponsored by t h e U n i t e d
S t a t e s Government. N e i t h e r t h e U n i t e d S t a t e s nor t h e U n i t e d S t a t e s A t o m i c Energy Commission, n o r any o f t h e i r employees, n o r any o f t h e i r c o n t r a c t o r s . s u b c o n t r a c t o r s , o r t h e i r emp loyees , makes any w a r r a n t y , e x p r e s s o r i m p l i e d , o r assumes a n y l e g a l l i a b i l i t y o r r e s p o n s i b i l i t y f o r t h e a c c u r a c y , c o m p l e t e - ness o r u s e f u l n e s s o f any i n f o r m a t i o n , a p p a r a t u s , p r o d u c t o r p r o c e s s d i s - c l o s e d , o r r e p r e s e n t s t h a t i t s use w o u l d n o t i n f r i n g e p r i v a t e l y owned r i g h t s .
' ANCR-1026 Mathematics and Computers
TID-4500
ASTEM - A COLLECTION OF FORTRAN SUBROUTINES
TO EVALUATE THE 1 9 6 7 ASME EQUATIONS OF STATE FOR
WATER/STEAM A N D DERIVATIVES OF THESE EQUATIONS
by b '
K. V. Moore
' . .NU I I - C t
This .report was prepared as .an account of work sponsored by 'the United States Government ... Neither
. the United States.nor the,United States Atomic Energy Commission, nor a n y of their employees, nor any of their. contractors, subcontractors, or their employees, makes any warranty, express or-implied, or assumes any legal liability or responsibility .for the accuracy, com- pleteness .or. usefulness of any information, apparatus, product o r process disclosed, o r represents that , i t s use would not infringe privately owned.rights.
L
AEROJ E T NUCLEAR COMPANY
. D a t e P u b 1 i s h e d - O c t o b e r . j 9 7 1
PREPARED FOR THE U. S. ATOMIC ENERGY COMMISSION IDAHO OPERATIONS O F F I C E
UNDER CONTRACT NO. A T ( 1 0 - 1 ) - 1 3 7 5
plSlRlBlsTUlW OF THIS CNGUPlee.MT IS UNLIMITED 1
ACKNOWLEDGMENTS
This work i s a por t ion of a more general p ro jec t t o develop an
e f f i c i e n t computer program of water proper t ies f o r use i n f u tu r e reac to r
sa fe ty analys is codes. Special thanks i s given t o D r . L. J. Ybarrondo
and M r . H. D. Curet of t h e Nuclear Safety Division f o r t h e i r sponsorsh5p
and he lp fu l support of t h i s phase of t h e overa l l r eac to r sa fe ty ana lys i s
e f f o r t within Aerojet Nuclear Company and t h e U . S. Atomic Energy Com-
mission.
ABSTRACT
ASTEM i s a modular s e t of FORTRAN I V subroutines t o evaluate t h e
s t a t e equations of l i qu id water and steam as published by t h e American
Society of Mechanical ~ n g i n e e r s (1967). Any thermodynamic quanti ty in- - cluding der ivat ive proper t ies can be obtained from these rout ines by a
user supplied main program.
As provided t h e ASTEM package includes a sample main program and
requires 6 8 ~ bytes of core storage (double precision) on t h e IBM 360175.
Contains conversion constants s e t i n block d a t a f o r English u n i t s .
- This common block i s ava i l ab le t o use r s by c a l l i n g UNITS.
CRP = 3208 p s i a
P (reduced) = P ( ~ s ~ ~ ) / c R P
CRT = 1165.14 R
T (reduced) = [T(F)+TO]/CRT
CRV = 0.0578 ft 3/lbm
v (reduced) = v ( f t 3 /lbm) /CRV
CRH = 30.14 Btu/lbm .
g , f , h , o r u (reduced) = [h o r u ( ~ t u / l b m ) ] / ~ ~ ~
CRS = sent~opy norma.li zat ion
s (reduced) = s (~tu/ lbm-F) /CRS
TO = 459.67 R (d i f f e rence between absolute temperature)
.Scdle ( R ) and Fahrenheit (F)
.J,C ',7a .16 f t- lbf/Btu (mechanical equivalent t o heat energy)
GC = 32.174 ft-lbm/sec2-lbf
SQJC = 1 4 4 / ~ ~ , pressure conversion from l b f / i n 2 t o ~ t u / f t ~
SONIC2 = conversion f o r normalized sonic v e l o c i t y squared
a 2 ( f t 2 / s e c 2 ) = a: ( n o r m a l i z e d ) * ~ 0 ~ 1 ~ 2 S
~ . ~ O . / M U N I T S / CRPM,CRTM,CRVM,CRSM,TOM,JCM,GCM,SQJCM,SONICM
Contains conversion f o r metr ic (MKS) u n i t s . Available by c a l l i n g
UNITS.
CRPM = 2.212 x l o 7 ~ / m ~
CRTM = 647.3 K
CRVM = 0..00317 m3/kg
CRHM =' 70120.4 J /kg
CRSM = 108.3275 ~ / k g - ~
TOM = 273.15 K
JCM = 1. N-m2/5
GCM = 9.80665 m/sec2
SQJC = 1. N-m2/5
jjohnson
Rectangle
3.11 /ROOTLM/
Contains p a i r s of ( v , ~ ) which def ine t h e approximate boundaries of
ASME subregions 3 and 4 o r f o r subroutine ROOT. Values s e t i n block d a t a
DAT 8.
3.12 /SATLIN/
Contains approximate values of Tsat a s 'a' funct ion of P f o r sub-
r o u t i n e ROOT. Values s'et i n block d a t a DAT9.
The following t a b l e i s a cross-reference Yor subruutlnes , . huc t iona +
and name common blocks within ASTEM.
' TABLE 6
CROSS-REFERENCE OF SUBROUTINES, FUNCTIONS AND NAME COMMON BLOCKS
* Contains s. wri te statement and format.
** Contains dimensions t h a t r e s t r i c t maximum order .
*** Contains dimensions t h a t l i m i t number of summation terms.
V I . SAMPLE PROBLEM
The following sample problem i s designed t o t e s t a l l rout ines i n
t h e ASTEM package.
3 P = ~ O O ' p s i a , T=150F
LEVEL 1 8 ( SEPT 5 9 I 0 S / 3 5 5 FOPTRAN H
COMPILER OPTIONS - NAqE= ~ A I N ~ O P T = O 2 ~ L I Y E 3 N I = 5 8 t S I Z E = O D O O K ~ S O U R C E t E B C O I C t N O L I S T ~ N O 0 E C K ~ L O A O ~ M A P ~ N O E O I T ~ N ~ I D ~ X R E F
I S N 3 0 0 2 I M P L I C I T R E A L * 8 ( A - H . 0 - L I - I S N 0 0 0 3 OIMFYSION G 1 5 5 ) r G V ( 4 5 I I S V 0 0 0 4 OIMEYSION ~ ~ ( 1 0 ) . c ~ ( l 0 1 I S N 3 0 0 5 L O G I 2 4 L NOGO
C C I N I T I A L I Z E
1SN 0 0 0 6 CALL 14SME( 9 ) I S Y 0 0 0 7 CALL U V I T S ( C E I ~ ) I S N 0 0 0 8 CALL U V I T S ( C M 1 2 ) I S N 0 0 0 9 JPAGE = 1 I S Y 0 0 1 0 W R I T E ( 6 1 1 0 1 ) JPAGE 1SN 3 0 1 1 1 3 1 F O R W 4 T ~ l H l r 2 3 H A S T E ~ / M J I ) O 2 t O 6 / 2 5 / 7 l K V ~ ~ 1 O X l 0 i S A M P L E PROBLEMm
1 '70Xv5 iPAGE 1 1 3 ) I S N 0 0 1 2 U P I T E ( b v l 0 2 ) I S V 3 0 1 3 1 3 2 F O R W A T ( l H O ~ 6 X v 8 H P ( P S 1 4 ) 1 1 3 X 1 5 i r ( F ) * B X s l O H V ( F I 3 t L 3 ) l l 5 X l l H X 1
1 1 0 x 1 1 4 H I P I D T ( P S I A / F J r 5 X r 9 H P L I P S I A J J c C - CASE 1
I S U 0 0 1 4 L = 1 I S N 0 0 1 5 T = 250.00 I S V 0 0 1 6 X = .3DO I S N 0 0 1 7 PL = 0.00 I S N 0 0 1 8 5 CALL C O N U ( ~ ~ C E I T ~ - ~ ) I S V 0 0 1 9 CALL P S A T K ( G s l s 1 ) I S N 0 0 2 0 P = ; ( I ) I S N 0 0 2 1 DPDT = G ( Z ) * C E ( l ) / C E ( Z ) I S Y 3 0 2 2 I F ( L.EQ.2 I GO TO 1 0 I S N 0 0 2 4 CALL GIBBAB(G,P1T11,1) I S Y 0 0 2 5 -VF = G ( 2 ) I S N 0 0 2 6 CALL G I B B P B ( G , P ~ T 1 1 1 2 ) I S N 0 0 2 7 VG = G ( 2 ) I S V o o z e GO TJ 1s I S N 0 0 2 9 1 3 CALL R O O T ( V F , P V T ~ U F ~ S F ~ Q ~ N O G O ) I S Y 0 0 3 0 CALL R O O r ~ V G ~ P ~ T ~ U G ~ S G ~ 3 t N O G O I I S Y 0 0 3 1 CALL PSATL~PLITIO) I S N 0 0 3 2 1 5 V = X*(VG-VF) + VF I S V 0 0 3 3 CALL C O N U ( 4 1 C E t P t l r T r 6 1 V ~ 3 t P L t l l I S N 9 0 3 4 W R I T E ( 5 1 1 0 3 ) P ~ T ~ V ~ X I O P O T * P L I S N 0 0 3 5 1 0 3 FORMAT(1H r6E18.8) I S N 0 0 3 6 GO T I ( 2 0 1 3 0 ) l L
c C CASE 2
I S V 0 0 3 7 2 0 L . 2 I S N 0 0 3 8 I S M 0 0 3 9
I S V 0 0 0 0 1SN 0 0 4 1 I S q 0 0 4 2 I S Y 0 0 4 3 I S N 0 0 4 4 I S N 0 0 4 5 I S N 0 0 4 6
. I S N 0 0 4 7
. c C CASE 3
3 0 P = 900.00 T = 153.00 CALL C O N U ( Z ~ C E * P ~ - I s T s - 6 ) CALL G I B B A B ( G s P ~ T , 9 1 1 ) G.1 = G ( 1 ) v = ; (2 ) GK = - ~ ( 3 ) / ~ ( 2 ) I = I N O E X ( l 1 1 0 1 Z 1 1 0 1 I O )
jjohnson
Rectangle
I S N 0 0 4 8 I S Y 0 0 4 9 I S N 0 0 5 0 I S V 0 0 5 1 I S V 0 0 5 2 I S M 3 0 5 3 I S N 0 0 5 4 I S N 0 0 5 5
I S N 0 0 5 6 I S N 0 0 5 7 I S N 0 0 5 8 I S Y 0 0 5 9 I S N 00'50 I SY 0 0 6 1 I S N 0 0 6 2 I S M 0 0 6 3 I SW 0 0 6 4 I S N 0 0 6 5 I S N 0 0 5 6 1SY 0 0 5 7 I S N 0 0 6 8 I S Y 0 0 5 9 I S Y 0 0 7 0 I S N 0 0 7 1 I S V 0 0 7 2
S = - G ( I ) €3 = ; ( I + l ) / G ( 2 ) I = INDEX( l r l O r 3 r l O r I D ) CP = - T * G ( I AS = DSQRTt CP*CE( lO) / (ZP*GK/V - T * B * B ) ) CALL CONU(8rCErGIr4rVr3rGKr-lrSr 5 r B r - 2 r C P r 5 r P r 1 9 T r 6 1 W R l T E ( 6 r 1 0 4 ) P r T r G I r V r G K r S r B r C P r A S
1 3 5 FORHAT( ~'HOI~HP = r E 1 8 o 8 9 5 H P S I A ~ 1 3 X p 3 4 1 ' = r E l $ o B r 2 H FpL6X*34 ; =r 1 E l 8 . B r 7H B T U / L B / l H r 3 H V = rE19 .8 r 7 H F T 3 / L B r l l X r 3 H < =rE18.81 2 7H P S I A - l r l l X r 3 H S = , E 1 8 * 8 r 9 H B T U / L B - F / l H 93HB = r E l 8 - 8 , 4 H , F - l r 3 ~ Q X , ~ H C P Z ~ ~ 1 8 . 8 ~ 9 ~ BTU/LB-Fr 9 x 1 3H4S=r E 18.8r 7Y F r f S E C )
1 0 5 FORMAT( l H O r l O X r 3 3 H G I B B S ARRAY I N ASME REDUCED U N I T S ) W R I T E ( 5 r 1 0 5 ) CALL WRITEA(Gr 1 0 1 1 0 1 - 1 )
1 0 6 FO%MbT( l H O r l O X r 4 3 H S P E C l F l C VOLUME ARRAY I N ASME REDJCED UY I T S ) U R I T E ( b r l O 6 ) CALL C O N A ( G r 9 ~ G V r l r O r l o D O r l o D ~ r 1 - 0 0 ) CALL W Q I T E A ( S V r S r 9 r - 1 )
1 3 7 FORMAT(lHOrlOXr38HSPECIFIC VOLJNE AQ%AY I N E N Z L I S i U h I T S ) W R I T E ( 6 r 1 0 7 ) CALL C O N A ( G r 9 r G V r l r O r C E ( 3 ) p C E I 1 J r C E ( 2 ) 1 CALL W R I T E A ( G V r 9 r 9 r - 1 )
1 0 8 FORM4T(liOrlOXr34HSPECIFIC VOLUME ARRAY I N MKS U N I T S 1 W R I l E ( 6 r 1 0 8 ) CALL C O N A I G v 9 r G V r l r O r C M ( 3 ) r C H ( 2 ) ) CALL W R I T E A ( G V r 9 r 9 r - 1 ) STOP E NO
ASrEMIMOD02~06/25/71KVM SAMPLE PROBLEM
P = 0.40000000D 03 PSIA V = 0.163223530-01 FT3 ILB 8 = 0.311602050-03 F-1
1 = 0.150000000 0 3 F . G = -0 .119389880 02 BTUlLB K = 0.31038922D-0'5 PSTA-1 S = 0.21463864D DO RTUIL8-F CP= 0.998720700 0 0 BTUILB-F AS= 0.507957790 0 4 FTISEC
1. C. A. Meyer, R . B. McClintock, G. J . S i l v e s t r i , R. C . Spencer, J r . , 1967 ASME Steam ~ a b l e s -- Thermodynamic and Transport Proper t ies of Steam, New York: The American Society of Mechanical Engineers (1967).
2. P. W. Bridgmen, The Thermodynamics of E l e c t r i c a l Phenomena i n Metals and a Condensed Collect ion of Thermodynamic Formulas, New York: Dover Publ ica t ions , Inc. (1961).