Professional Documents
Culture Documents
https://books.google.com
ENGINEERING LIBRARY
DOE/NASA/1011-78/24
NASA TM-78884
A STIRLING ENGINE
PERFORMANCE CALCULATIONS
JULY 1978
Prepared for
U.S. DEPARTMENT OF ENERGY
Office of Conservation and Solar Applications
Division of Transportation Energy Conservation
UNIVERSITY OF ILLINOIS.URBANA
3 0112 105147414
NOTICE
A STIRLING ENGINE
PERFORMANCE CALCULATIONS
July 1978
Prepared for
U. S. Department of Energy
Office of Conservation and Solar Applications
Division of Transportation Energy Conservation
Washington, D.C. 20545
Under Interagency Agreement EC-77 -A -31-1011
A STIRLING ENGINE COMPUTER MODEL FOR
PERFORMANCE CALCULATIONS
SUMMARY
INTRODUCTION
Analysis of the ideal Stirling cycle is straightforward (ref. 1), but this
analysis is useful only as a reference against which to compare real cycles.
Schmidt developed a somewhat more realistic analysis that considers the
effect of dead volume and assumes sinusoidal piston motion (ref. 1). The
basic power and efficiency (the Car not efficiency) calculated by the Schmidt
analysis can be multiplied by experience factors to estimate performance
in the initial stages of engine sizing. (Ranges of experience factors are
discussed in refs. 2 and 3.) Rios (ref. 4), Qvale (ref. 5), and Martini
(ref. 2) have each developed models that first calculate a basic power and
efficiency and then correct these basic values with separate, independent
loss calculations. The most detailed performance models so far reported
simulate real-time variations in gas temperatures, pressures, and flow
rates at various control volumes within the working space. Some or all of
the loss calculations are an integral part of the model and can thus interact
with the basic thermodynamic calculations and with each other. Detailed
models that have been reported in the open literature are those of Urieli
(refs. 6 and 7), Finkelstein (ref. 8), and Finegold and Vanderbrug (ref. 3).
A listing of Urieli 's computer model is given in reference 8 and a listing of
the Finegold -Vanderbrug model, in reference 3. Allan Shock of Fairchild
Industries is also developing a detailed model (ref, 9). . The more detailed
models should be of value in studying the effects on performance of engine
details not considered in the simpler models, in refining the loss calcula
tions of the simpler models, and in investigating the significance of phys
ical effects such as gas inertia and pressure dynamics on engine perform
ance. However, these models appear to require too much computer time
for use in a design optimization program: One run with such an optimiza
tion program might investigate hundreds of designs, or even several
thousand. Since the less detailed models such as those of Qvale, Rios,
and Martini require much less computer time, they would seem to be more
appropriate for use in a design optimization program. Unfortunately, the
models that have been published in the open literature have not been ade
quately validated.
3
was minimal (ref. 10). Testing with accessories run independently of the
engine and with more instrumentation is now getting under way; these tests
will provide basic engine data for evaluation and refinement of the computer
model.
The GPU engine, for which this model predicts performance, is shown
schematically in figure 1. There are actually eight separate flowpaths
through each of eight regenerators and coolers with five heater tubes serv
ing each regenerator. In the model, however, it is assumed that the same
flow conditions exist in each of the eight flowpaths so that it is necessary to
model only one path. The model represents the working space by a series
of subdivisions called control volumes; this type of model is sometimes
called a nodal model.
The model calculates indicated power and efficiency for given engine
speed, mean pressure, and fixed heater and cooler metal temperatures.
The indicated efficiency is based on heat into the gas plus conduction losses.
The model also simulates temperature, pressure, and flow variations over
the cycle at various stations in the working space. The working space con
sists of the expansion space, the heater, the regenerator, the cooler, and the
compression space.
The engine working space is represented by 13 control volumes, as
shown in figure 2; the adjacent metal walls are represented by 13 corre
sponding control volumes. The metal temperatures, except for those in
the regenerator, are assumed to be constant. This is a reasonable assump
tion for any given run since the heater and cooler metal temperatures are
essentially boundary temperatures that are controlled by the combustor and
the cooling water flow, respectively; these temperatures vary little over a
cycle because the metal heat capacity is much greater than that of the gas.
5
First, the basic equations and assumptions used in making the thermo
dynamic calculations in the working space are stated. Then a relatively
complete presentation of the equations used in the model is made that cor
responds very closely to the steps shown in the outline of calculation pro
cedure (fig. 3).
The three basic equations used to model the thermodynamics of the gas
in each control volume are conservation of energy, conservation of mass,
and equation of state. These equations are used to determine the temper
ature and mass distributions and the pressure level within the working space
at a particular time. A fourth basic equation, the momentum equation, in
steady -state form, is used to calculate pressure drop across each control
volume in order to evaluate its effect on indicated power and efficiency.
However, this pressure -drop calculation is decoupled from the thermody
namic calculations; it has no effect on the temperature and mass distribu
tions. This assumption simplifies the model and should be reasonable when
the pressure drop is sufficiently small in relation to the pressure level.
The energy, mass, and state equations, as written for the generalized
control volume shown in figure 6, are as follows, where three formulations
of the equation of state are shown:
Conservation of mass:
(2)
8
Equation of state:
where
P pressure
R gas constant
t time
V volume
(The real -gas equations of state were developed from data in ref. 11. )
Several assumptions are inherent in the use of these equations:
(1) Flow is one dimensional.
(2) Heat conduction through the gas and the regenerator matrix along
the flow axis is neglected. The thermal conductivity of the regenerator
9
The same result is obtained if either of the real -gas equations of state
are used in the derivation. This equation says that the bulk or average
gas temperature of a control volume is a function of the following three
processes:
(1) Heat transfer across the boundary from the wall
(2) Gas flow across the boundary
(3) Pressure level
One approach to numerically integrating equation (4) is to solve for
the temperature derivative
Tt+At=Tt+dT At
dt
where
,t+At
new gas temperature (at time t + At)
TL
old gas temperature (at time t)
At time increment
dT = dT dT dT
dt total dt due to dt dt
due to due to change
heat transfer mixing in pressure
where
dT V dP
(5a)
dt MC dt
due to change
in pressure
11
wi(Ti - T) - wQ(TQ - T) ^
dT
dt M
due to
mixing
heat transfer
TtfAt=Tt^P^(r"1)y ^
-*it+AtA/Mt+AtCtl) t£
TtMtaTtMt+(T^Ttp+At^.e ] (5c.}
PM
on the left side of equation (5c ') denotes the value of the temperature after
it has been updated for all three effects - change in pressure, mixing, and
heat transfer to or from the metal.
OF CALCULATION PROCEDURE
The equations considered so far have been derived and discussed with
reference to the generalized control volume of figure 6. In the computer
model these equations are applied to each of the 13 control volumes shown
in figure 2. Thus temperatures, masses, heat -transfer coefficients, flow
rates, etc. , are all subscripted with an index. The index varies from 1
to 13 for variables that are averages of the control volumes and from 1 to
12 for values at the interfaces between control volumes. The numbering
procedure used for control volume and interface indexes is defined in fig
ure 2. The equations discussed in this section include these indexes.
The presentation of the equations follows the steps shown in the outline of
calculation procedure in figure 3.
Pressure (step 2 in fig. 3). - The pressure P is calculated by
13
1=1
where
P pressure
R gas constant
13
Vj r volume
PV^MjRTj I = 1,13
13
Equations (6) and (7) are both included in the program. Also an equivalent
real -gas equation for helium is included. An index in the input data speci
fies whether a real or ideal equation is to be used.
Update temperatures for effect of change in pressure (step 3 in
fig. 3). - It was not necessary to use the subscripts P and PM of equa
tions (5a'),(5b'), and (5c') in the computer model. Applying the three
equations in sequence without the subscripts produced the same effect as
if the subscripts had been used. Therefore, if the subscript P is dropped
from equation (5a') and the control volume index I is introduced, the re
sult is
14
(y-D/r
t+At _
I ~ AI (8)
13
M.
P total
R
15
Now substituting for P/R into the perfect -gas equation for the I*n con
M = Mtotal VI
I 13 v TT
i=l 1
,t+At
rt+At LP
MI = Mtotal I = 1,13 (9)
,t+At
(where Tj+p* represents Tj updated for pressure but not for mixing and
heat transfer).
The preceding equation calculates the new mass distribution for the
case of a perfect gas. The following equation, which can be derived in the
same manner, is used to approximate the real properties of hydrogen:
02358 Pt+At)
*4+At = Mtotal
I = 1,13 (10)
13
\
,t+At\
J (tj+pVo..02358 P
I=1
16
w^ =
At
and (ID
M* - M*+At
wT = + wT 1 for I = 2, 12
1 At 1-1
•f.V»
where Wj is the flow rate at the I interface between control volumes.
Update temperatures in each control volume for effect of gas flow
between control volumes (step 6 in fig. 3). - The following equations
(modifications of equation (5b ') in the section WORKING -SPACE THERMO
DYNAMIC CALCULATIONS) were used to update temperature for the mix
ing effect following gas flow between control volumes:
Mt Tt+At
M13A13
,t+At
13, PM
t+At
M
13 y
17
(where the subscript PM indicates the temperature has been updated for
pressure change and mixing).
The equations for the first and thirteenth control volumes (expansion
and compression spaces, respectively) are simpler in form than those for
the other control volumes because there is flow across only one surface
in each of these volumes. (The leakage flow between compression and
buffer spaces is handled independently; it does not appear in eq. (12). )
The temperature of the fluid flowing across the interface has been given
a new variable name q to better distinguish it from the average control
volume temperature T and to keep the subscripts as simple as possible.
The procedure used to update the temperature $ for each interface is
now defined.
The temperature of the fluid flowing across a control volume boundary
is just the bulk temperature of the control volume from which the fluid
came - for flow from the expansion -space, heater, cooler, or
compression -space control volumes. This is a reasonable assumption
for these volumes since the actual temperature gradient across each is
expected to be relatively small. In the five -control -volume regenerator,
however, the temperature gradient is not small. One option would be to
increase the number of control volumes in the regenerator. However, to
save computing time, an alternative approach was used. It was assumed
that a temperature gradient existed across each volume in the regenerator.
The magnitude of the gradient was assumed to be equal to the correspond
ing regenerator metal gradient.
A schematic of a regenerator control volume is shown in figure 7(a).
Flow across both interfaces is, for now, assumed to be in the direction
shown (which is defined to be the positive flow direction). The cross-
hatched area represents the portion of the fluid that will flow across in
terface I during the time increment At. The assumed temperature pro
file of the control volume is characterized in figure 7(b). The vertical
dashed line in figure 7(b) defines the temperature at the left boundary of
the fluid that will flow across interface I during At. If Tj is defined
as the average temperature of control volume I and ATT equals
18
one -half the change in temperature across the control volume, then
Tj - AT j is the temperature of the fluid at interface I and
wT At
TT - ATT + -i— 2 ATT
1 1 Mj 1
f wT At wT At
TT - ATT + -i 2 ATT ^(Tj-ATj) = TT - ATT + — ATT
\ 1 1 MT 1 1 1 MT 1
Therefore, for the flow directions shown in figure 7(a), the updated
temperatures of the fluid that crosses the interfaces during At are
t+At A .
et+At = Tt+At _ + J wt+At > Q
> (13)
t+At A.
t+At_ t+At , wI-1 At AT wt+At>0
^I-1 AI-1,P I AAI-1 WI-1 >U
M
I-1
t+At . .
t+At _ Tt+At AT ^1 ™ AT t+At < 0
h ~ Ai+i + AAi+i + : AAi+i wi ^u
M
I+1
(14)
t+At A.
et+At = Tt+At + AT][+wI-l AtATj
Mi
-h^Aj/M^CpUt
,t+At rr.t+At mt+At
= T I " AI,PM 1 - e I = 1,13
I,PM w )
The heat transferred between gas and metal is then calculated from
dT
MTC—^i = QT I = 5,9 (16)
1 dt 1
where Qj is the rate of heat transfer between gas and metal. This is in
tegrated numerically by setting
Tw ¥ = Tw I + — At <17)
w,i w,i Mp
where
At time increment
_a_ ^LIpv2 8P
(pv) (pv2) (18)
at ax Dh2 ax
where
p density
v velocity of flow
f friction factor
Dn hydraulic diameter
P pressure
t time
x distance
v dv + *L- dx + £ = 0 (19)
2DU p
22
This equation can be integrated over a length L for the special cases of
adiabatic or isothermal flow processes (the two extremes). When the re
sulting adiabatic and isothermal expressions are applied to the GPU re
generator, the contribution of the v dv term is negligible for the two ex
tremes. Since the effect of the term is more significant in the regenerator
than in the heater and cooler, the expression for pressure drop can be re
duced to
lx!dx + ^ = 0 (20)
2Dh p
AP = i-Ipv2L (21)
Dh2
AP=Klpv2 (22)
2
It is applied at each area change in the flowpath between the expansion and
compression spaces. At a particular point where an area change occurs,
K is a function of the two areas and the direction of flow (since an expan
sion for one flow direction is a contraction when the flow reverses). The
term K is calculated in accordance with the procedure given in refer
ences 12 and 13.
For the heater and cooler control volumes the friction factor f is
determined from
23
16
NRej < 1500
N
Ren
(23)
0.046
N > 1500
Re,
0.2
N.
Re1
where N^e is the Reynolds number (based on plots of smooth -tube fric
-0.0190N
fT = 0. 96 e + 0.54 1 = 5,9 (24)
which is a fit of the curve shown in figure 8. This curve was derived from
the experimental steady -flow air data taken on the regenerator cooler unit
of the GPU -3 engine and was extrapolated to the low Reynolds number
range (below 50). Since the sample runs for this report were made, this
curve has been compared with other wire -screen data from Kays and
London (ref. 13). This comparison suggests that the curve should be some
what higher in the below-50 Reynolds number range. (This range is im
portant in the regenerator. )
There is a need for additional pressure drop data for Stirling engine
heat -exchanger components, especially for regenerators. Also additional
data are needed to determine how to modify the steady -flow pressure drop
correlations for periodic -flow conditions. With the pressure level P
known (which is now assumed to be the pressure at the center of the re
generator) and the AP's across each of the control volumes in the heater,
regenerator, and cooler known, the pressures needed in the work calcula
tions, Pg and P can be calculated as follows:
24
12
AP7
P P -
c
US
Heat conduction from hot end to cold end of engine and shuttle loss
(step 11 in fig. 3). - Three separate paths were considered in the calcula
tion of heat -conduction losses from the hot end to the cold end of the
engine:
(1) Through each of the eight regenerators
(2) Through the cylinder walls
(3) Through the walls of the displacer from the hot space to the cold
space
The effect of temperature on conductivity was considered. A calculation
of the conduction loss through the gas inside the displacer suggested that
the loss along this path was small enough to be neglected. The dimensions
used in calculating these conduction losses and the locations where the
temperature measurements will be made are shown in figure 9.
The displacer picks up heat from the cylinder at the hot end of its
stroke and loses heat to the cylinder at the cold end of its stroke. This
shuttle loss is calculated by using the following equation from refer
ence 2:
KttDS2 AT
Q,shuttle (26)
8CL
25
where
D displacer diameter
S stroke
L displacer length
Conduction and shuttle calculations are made just once after steady op
eration has been achieved.
Sum up heat transfers between gas and metal for each component
(step 12 in fig. 3). - The basic heat into the working space per cycle is
the sum of the net heat transfer from metal to gas in the heater and
expansion -space control volumes over the cycle. The basic heat out of
the working space per cycle is the sum of the net heat transfer from the
gas to the metal in cooler and compression -space control volumes per
cycle. Since it is assumed that there are no losses from the regenerator
matrix, the net heat transferred between gas and metal in the regenerator
over a cycle should be zero. This net heat transfer in the regenerator
over the cycle appears to be the most convenient single criterion for judg
ing when convergence of regenerator metal temperatures has been achieved.
However, for small leakage rates, using this criterion to judge convergence
to steady operation can lead to significant errors. That is, even though the
regenerator metal temperatures have converged so that the net heat trans
fer in the regenerator per cycle is small, small changes in the mass dis
tribution between working and buffer spaces from one cycle to the next can
cause a significant change in performance over many cycles.
Leakage flow between working and buffer spaces (step 13 in fig. 3). -
A leakage flow between working and buffer spaces can be calculated accord
ing to
26
w (27)
buff
where
(28)
27
where
e eccentricity
r crank radius
x crank angle
Apr piston cross -sectional area minus piston rod cross -sectional area
and V and V are the two volumes needed to calculate the indicated
power.
Work, power, and efficiency calculations (step 16 in fig. 3). - The
indicated work is calculated according to
(29)
over all but the last cycle. Since heat -exchanger ineffectivenesses, dead
volumes, and leakage from working space to buffer space are all an in
tegral part of the calculations, the work calculated in equation (29) includes
the effect of these losses. Over the last cycle, after steady operation has
been achieved, pressure -drop losses are calculated. To include this loss,
the indicated work calculation was revised to
(30)
The indicated power is just the indicated work per cycle times the engine
frequency.
The conduction and shuttle transfer losses are calculated only once
after steady operation has been achieved. These losses increase the heat
input and heat output by the same amount. Since it is assumed that they do
not interact with the working space, they affect the efficiency but not the
power calculations.
28
The net heat into the engine per cycle is defined to be the basic heat
input (from step 12) plus conduction and shuttle losses minus one -half
the total windage (pressure drop) loss. (It would probably be more accu
rate to use the heater windage loss plus one -half the regenerator wind
age loss for windage credit in calculating the net heat input (as in ref. 2).
However, if the regenerator loss is considerably larger than the heater
and cooler losses, it is a reasonable assumption to use one -half the total
loss for windage credit. )
Indicated efficiency is defined to be the indicated work per cycle
divided by the net heat into the engine per cycle (as defined in the pre
vious paragraph).
Convergence scheme for regenerator metal temperatures (step 19
in fig. 3). - The scheme used to correct regenerator metal temper
atures between cycles was arrived at through trial and error. The cor
rection is made as follows:
I = 5,9 (31)
where
I wall temperature
29
Then let
where F^ = 0.4 and = 10. 0 are the factors that seem to work best.
The final step in the correction is
(33)
where Qj is the net heat transferred from the I metal node to the I
gas node over the previous cycle. An attempt was made, by trial and
error, to pick the optimum combination of factors Fj (I = 5,9) to speed
30
before 0. 008 second. The corresponding flow rates into and out of the heat
exchangers are shown in figures 16 to 18. (Additional flow rates calculated
at the control -volume interfaces within the heat exchangers are not shown
here). The maximum positive flow rates just before 0. 008 second corre
spond to the region of the volume plots in figure 12, where the compression-
space volume is increasing at its maximum rate and the expansion -space
volume is decreasing at its maximum rate (to give the maximum rate of
volume displacement from the hot to the cold space). Similarly, the max
imum negative flow rates and pressure drop occur just before 0. 016 sec
ond, where the maximum rate of volume displacement from the cold to the
hot space occurs. Pressure drop is greater for positive than for negative
flow primarily because of the lower average pressures and, therefore,
higher velocities when flow is from the hot toward the cold space. Pres
sure is lower because positive flow occurs when working -space volume is
at and near its maximum.
The differences in inlet and outlet flows for each of the heat -exchanger
components divide each cycle into two regions - a region where net mass
is removed from the component, and a region where net mass is stored in
the component. These regions are labeled in the plots of flow rates for the
heater in figure 16. Similar flow -rate plots for the regenerator and cooler
are shown in figures 17 and 18.
Pressure -volume diagrams for the expansion and compression spaces
are shown in figures 19 and 20. Since the expansion -space work is positive
and the compression -space work is negative, the net indicated work per
cycle is the difference of the areas within these two diagrams (219 joules
(162 ft-lbf) in this case). The area within the pressure -volume diagram
of figure 21 represents net indicated work uncorrected for pressure -drop
loss (231 joules, or 170 ft-lbf).
Expansion- and compression -space temperatures are shown in fig
ures 22 and 23. The temperature variations correlate well with the pres
sure variations of figure 14. In both the expansion and compression
spaces the temperature variations are about 23 percent of the peak tem
perature in the space.
32
In figure 28, in the low -frequency range, the efficiency drops off
rapidly due to the increasing significance of static conduction and shuttle
heat -transfer losses as the power level drops.
CONCLUDING REMARKS
APPENDIX A
The basic gas -volume equations are used in the derivation. For con
venience they are listed again here:
= w. - wn (2)
dt 1 °
PV = MRT (3)
c TdM
v dt
yields
35
CT fl! = M(c _ Q) dT + c dM _ p dV _ y dP
p v P
dt dt dt dt dt
Substituting the right side of equation (A3) for the second term of equa
tion (Al) yields
- p M - y dP
MIS/ ^ + M(C - %) 21 + CT
/x dt P /y dt p
dt dt
or
dT dM Tr dP
mcp if + °pt ft v « = hA(Tw " T) + cp(wiTi " w°To)
or
which is the equation used in the model to solve for gas temperature.
36
APPENDIX B
The equation
dT V dP
(5a)
dt MC dt
due to XT
change in
pressure
can be integrated in closed form by solving the equation of state for V/M
and substituting in equation (5a).
PV = MRT -> — = —
M P
Substituting
dT = RT dP
dt PC dt
ir
dT = JR dP = Cp - Cv dP = y - 1 dP
TCP
p Cp P yr P
t+At t+At
_y - i
In T In P
t
37
. Tt+At = Tt / P
w^T. - T) - w0(TQ - T)
dT
dt due to M
mixing
Tt+At _ Tt + dT M
dt
Since
= Mt+At - M* t+At
(wi+At " wo+M)At = Mt+M " M*
1 At 0
have
heat transfer
Assume Tw is constant over the time increment for the purpose of inte
grating the left side with respect to time. This is a reasonable assump
tion since Tw changes much more slowly than T due to the relatively
large heat capacity of the metal. It was also assumed that h and M
were constant over the time increment to allow integration of the right
side of the equation.
t+At t+At
hA
-ln(Tw - T)
t MC t
t+At
(Tw - T)
w hA
In At
MC
(T - T)
-(hA/MC )At
(Tw - T)t+At = (Tw - T)1 e P
-(hA/MC )At
. * . Tr+zu = Tw - (Tw - T)x e
39
or
/ -(hA/MC)At
Tt+At = Tt + ^ _ TtU x _ e P
This equation says that, as the time increment is made larger, the gas
temperature approaches the wall temperature asymptotically. Thus us
ing large time increments cannot cause instabilities because of excessive
change in gas temperature.
40
APPENDIX C
,0.8
Dw
— =0. 023 X (C2)
k , k /
Nusselt Reynolds Prandtl
number number number
where
D hydraulic diameter
k thermal conductivity
w flow rate
u viscosity
v0.4
0.4
= (0. 688) = 0.861
.8
hD
0.0198 (C3)
k
Heater and cooler Reynolds numbers were calculated in the model range
from 0 to 25 000 but are mostly above 10 000. When equation (C3) was
linearized, the result was
(C4)
REGENERATOR
is also shown in figure 30. This equation was used to calculate heat-
transfer coefficients in the regenerator.
42
EXPANSION SPACE
and
(C6)
S
A
hrad
T - T
w
where
cr Boltzmann constant
Tw wall temperature
T gas temperature
where L is the maximum distance from the cylinder head to the displacer,
and
hmmr = 1. 86 (Graetz number)0* 333 — Graetz number > 10; Re < 2100
Uh (C7b)
or
COMPRESSION SPACE
APPENDIX D
MOMENTUM EQUATION
9£+ A(pV) = 0
at ax
and second and third terms of equation (D2) can be eliminated to yield
45
v 8v + — v2 dx + 2Z= 0
Dh P
Note that at zero flow and second and third terms of equation (D3) are
zero, so that it reduces to
p — + — =0
8t dx
in which case the time derivative term is responsible for any pressure
drop. The significance of this time derivative term could be investi
gated by the use of a comprehensive model such as that of Urieli
(ref, 7),
46
APPENDIX E
Main Program
C MAIN PROGRAM
C DOES INITIALIZATION. UPDATES PISTON POSITIONS —EXPANSION, COMPRESSION
C AND BUFFER SPACE VOLUMES. INTEGRATES P*DELTA(V) TO DETERMINE WORK.
C DETERMINES WHEN CYCLES IS COMPLETE.
DIMENSION X(2),V( 1 3 ) , RE Y NO ( 1 3 ) , Q R ( 5 ) , TM A X ( 1 2 )
DIMENSION TG(12),TGA(13),TM(13),TMAVG(13),DTM(13)
COMMON DTIME,F(12),WG( 13) , DEL P( 13 ) ,P,PE,PC
COMMON /CYC/ QEXP,QHEATR,QREGEN,QCOOLR,QCOMP,ENFRTH,ENFHTR,
1ENFCTR,ENFRTC,URKP,WRKEXP,
2JR<CMP,WRKLEX,yRKLCM,WRKLP,WRKH,SUMNUM(13),SUMDEN(13),ENTH,
3WDISP,WPIST ,WTPIST, QE XP N , Q E XPP , QHE A TN , QHE A TP ,
<»QCOOLN,QCOOLP, QC OMPN , Q C OMP P , Q REGN , ORE GP , y D I S PP , W DI S P N , WPI S TP ,
5WPISTN,QCNDRI , Q CNDRO , OC NDC L, QC NOD • QCNDCN , QSHTL ,TGEXP A ,TGCMP A
COMMON /DELTAP/AD ,AP , HA(13)
COMMON /TA VC YC/TGCYC ( 12) , TGACYC( 1 3) , TMCYC( 13 )
C0MM0N/CTIT/NCURU,ISET1,ISET2,ISET3
COMMON /JNDEX/JIP ,N0CYC
VAMELIST /STRLNG/P,REALGS,FIPCYC, IPRINT,ITMPS,C0EFF,T3,P3, OMEGA ,
• FACT1 ,FACT2,NOCYC,NSTRT , NO END , MW6 A S , T G , T 6 A , TM , RHC F A C , JIP
DATA AD , AP , AR , APISTR /
1 6.0,6.0,0.11,0.60/
DATA R CRANK , E , R ODL , V 3CL , D I AMD , D I A MP , D I AMDR , D I A MPR /
1D.513,0.82,1.81,2«».8<4 ,2.75 ,2.75,3.375 ,0.875/
DATA V/3.0,2*l .59<*8 , .933 ,5*3 .621 ,3*3.2<43 ,0 .3/
10 CONTINUE
C READ IN INITIAL PRESSURES, TEMPERATURES AND OTHER PARAMETERS WHICH
C DEFINE THE NATURE OF THE RUN TO BE MADE
READ (5,STRLNG,END = 1D33 )
DTIME=1./(0MEGA*FIPCYC)
JRITE (6.STRLNG)
C INITIALIZATION
FMULT- 1 .
ITER=3
TI ME=0.0
PSI =0.0
PSI DEGTO.O
SAVET=3.3
I PLOT=O
oRSUM=O.O
NOITPC=o
DO 11 1=1,13
IF(I.E0.13l GO TO 12
TGCYC(I)=TGU )
12 TGACYC( I)=TGA m
1 1 TMCYC(I )-TM(I )
CPCYC = 1 ./ (OMEGA*DT IME )
C R,CP,CV IN UNITS OF IN-LBF/ LBM-DEG. R
G AMMA=l
R=9197.
CP=32557.
CV=23360.
B=. 32358
IF (MWGAS.NE.U) GO TO 15
B=. 01613
48
3A1MA=1.667
R=1632.
CP=11580.
CV = 691B .
15 CONTINUE
IP=IPRINT
I PRNT2=I PRI NT /25
ADR=AD-AR
APR = AP-APISTR
X 11 1 N=S OR T ( (RODL-RCRANK )**2-E**2)
RODYMX=SQRT (R0DL**2-( E-RCR ANK )**2 )
*ODYMN=SQRT ( R 0DL**2- ( RC R ANK )**2 )
STROKV=2.*(R0OYMX-RODYMN)
RODY=RODYMX
X(I) =RODYMX
X ( 2 ) =-RODYMX
V(1)=AD*(X(1)-X1MIN)*3.965
V ( 1 3) =2.* ADR* (ROOYMX-RODY ) *0.35 3
V 3= APR* ( -X(2) -X1MIN)* V3CL
V3STAR=V3
V0VRT=3 .3
DO 3D 1=1,13
30 VOVRT=VOVRT*V(I)/(TGA(I ) *B *P*RE ALG S )
W3=P3*V3STAR/ ( R * ( T 3* B *P 3*R E ALG S ) )
ALPHA=W3*R/V0 VRT
SIG3=ALPHA/(P*ALPHA)
W=W3/SIG3
PE = P
PC-P
DO 50 1=1,13
50 WG(I)=P*V(I)/(R*(TGA(I) *B*P*REALGS ) )
I STARTM
J=l
100 CONTINUE
IF (J .LT. ISTART) GO TO 1 40
125 IF (JIP.GT.O) GO TO 1«40
IF ( J.LT. (NOC YC-1 ) ) WRITE (6,133)
130 FORMAT (,2 TIME ANGLE X(l) X(2) T <» 1 , 7 X , • T 9 • , 7 X , • T 1 • , 4 X ,
l,, 5X,• PE PC PRIN PROUT 1 , 3X , • F ( H ) • , 5 X , • F ( 9 ) •l
IF ( J .EQ. ( NOCYC-1 ) l WRITE (6,132)
132 FORMAT (• TIME ANGLE RE1 RE2 RE3 RE4 RE5
1• RE6 RE7 RE8 RE9 RE10 RE11 RE12
2,RE13 M
IF (J.EQ.NOCYC) WRITE (6,133)
133 FORMAT (• TIME ANGLE Fl F2 F3 F1 F5
1• F6 F7 F8 F9 F10 Fll F12M
BEGINNING OF LOOP
100 ITER=ITER*1
IF( J.GE.(NOCYC-1) ) IPRINT = IPRNT2
IF ( (TIME*SAVET).GT.5.0) GO TO 700
IP=IP*1
WTOTL=0.0
DO 142 IJK = 1,13
142 V TOTL = VT0TL*V ( UK )
IF (JIP.GT.O) GO TO 170
IF (IP .LT. IPRINT) GO TO 183
IF (J .LT. ISTART) GO TO 170
IF ( J. LT. (NOCYC-1 ) ) WRITE (6,160) 1 1 ME ,PSI DE G , X , T G ( 4 ) ,TG(9 ),
1TGA(1),TGA( 13 ) ,PE,PC, PRIN, PROUT ,F( «») ,F (9)
160 FORMAT ( 1 X , F7 . 1 ,F8. 1 , 2F 6. 2 ,1 X ,2 F8 . 2 ,F 8 .3 , F6.0 , IX , 1F 8 . 2 ,2F 8 .5 )
IF ( J. EQ. (NOCYC-1 ) ) WRITE (6,162) TI ME ,PSI DEG, REYNO
162 FORMAT (1X,F7.1,F8.1,13F8.0)
IF (J.EQ.NOCYC) WRITE (6,163) T I ME , PSI DEG , F
163 FORMAT ( 1 X , F 7 . «4 , F8 . 1 , 1 2F 8 . 5 )
IF (ITMPS.EQ.l) WRITE (6,660) TG,TGA,TM
660 FORMAT (• TG = , ,1X, 12F8.D/ . , TG A= • . 1 3F8 .0/ . • TM= • , 1 3F8 .0/ )
49
170 IP=Q
1BD TIME=DTIME*FLOAT ( ITER )
IF( ITER.EQ.IFIX(.3/DTIME) .AND. J.LT.6) GO TO 700
C CALL HEAT EXCHANGER SUBROUTINE TO UPDATE GAS LUMP MASSES, FLOW RATES,
C TEMPERATURES, PRESSURE * REGENERATOR METAL TEMPERATURES.
CALL HEATX ( T I ME , T G , T G A , TM ,RE YNO , OR , X , ROD Y , J , DI AM D , X 1 MI N ,
1R0DYMX,V,SIG3,W,MWGAS,RHCF AC , RE ALG S , C ONDI D , N OC YC )
PRSUMTPRSUM*P
N0ITPC=N0ITPC*1
C UPDATE EXPANSION AND COMPRESSION SPACE PRESSURES. (LBF/IN2)
PEOLD=PE
PCOLD=PC
POLD-P
IF ( J.LT. (NOCYC-S) ) GO TO 2<»3
PRIN=(DELP(5)*DELP(6)*0.5*DELP(7))*FMULT*P
PROUT=p-(0.5*DELP(7)*DELP(8)*DELP(9)) *FMULT
PE = (DELP(2)*DELP(3)*DELP(4))*FMULT*PRIN
PC = PROUT-(DELP( ID )*DELP (1 1 )*DELP( 12) ) *FMULT
GO TO 215
2U0 PE=P
PC = P
PRI N=P
PROUT=P
215 CONTINUE
AE=(PE*PEOLD) /2.
AC=(PC*PC0LD)/2.
A = ( P*P0LD)/2.
DELPRG=PRIN-PROUT
DELPHT=PE-PRIN
DELPCL=PROUT-PC
C CALCULATE INTERNAL ENERGY OF WORKING SPACE GAS. (FT-LBF)
UT3TAL=0.0
DO 250 1=1,13
2 50 UTOTAL=WG(I )*CV*TGA(I )/12.*UT0TAL
260 CONTINUE
C BUFFER SPACE BLEED FLOW.FLOTOB (LBM/SEC)
IF ((PC-P3) .GE. 0.) GO TO 270
SIG3P=-C0EFF*(P3-PC )**.5/W
30 TO 280
270 SIG3P=C0EFF*(PC-P3 )**.5/W
280 CONTINUE
FL0T0B=SIG3P*W
IF (FLOTOB.GE.O) ENTHWB=CP*TGA ( 13) *FL0T0B*DTIME/12.
IF (FLOTOB.LT .0) ENTHWB=CP*T3*FL0T0B*DTIME/ 12.
ENTH=ENTH*ENTHWB
SI6 3=SIG3*SIG3P*DTIME
WG( 13)=VG(13)-FL0T0B*DTIHE
IF (FLOTOB.LT .0.0) T G A ( 1 3 ) =TG A ( 1 3 ) -FL 0 TOB *D T I M E*
I( T3-TGA( 13) )/WG(13)
520 P30LD=P3
P3rT3/(V3/(SIG3*y*R)-B*REALGS)
A3=( P30LD*P3)/2.
C UPDATE CRANK ANGLE, PSI(RADIANS), PSI DEG ( DEGREES )
PSIOLD=PSI
PSI=PSI*0MEGA*DTIME*6.28 31 8
IF (PSI .GE. 6. 28318) PSI =PS I-6 . 283 1 8
PSIDEG=PSI*36Q./6.28318
C UPDATE PISTON POSITIONS (IN)
RODY=SQRT ( R0DL**2-( E-RCRANK*COS (PSI ) ) **2)
K10LD=X( 1 )
X20LD=X(2)
X(1)=RCRANK*SIN(PSI)*R0DY
X( 2 ) =RCRANK*SIN(PSI )-R0DY
C UPDATE EXPANSION, COMPRESSION, AND BUFFER SPACE VOLUMES. (IN3)
V10LD=V(1 )
V130LD=V( 13)
50
V(l)=ftD*(X(l)-XlMIN)*D.9fc5
V ( 1 3 ) =2.* ADR* (RODYMX-RODY ) *0 .35 3
V3=APR*(-X(2)-XlMIN)*V3CL
C CALCULATE WORK (FT-LBF) — EXPANSION SPACE WORK,WRKEXP; COMPRESSION
C SPACE UORK,WRKCWP; TOTAL WORK, WRKH; DISPLACER WORK.WDISP; POWER PISTON
C WORK,WPIST; PRESSURE DROP WORK LOSS IN EXPANSION AND COMPRESSION
C SPACES, yRKLEX AND WRKLCM
WRKP=WRKP*AC*(V(13) -VI 3 OLD )/12 .
DWEXP=AE*(V(1)-V10LD)/12.
WRKEXP = WRKEXP*DWEXP
IF (DWEXP.GT.O.O) W E X PP =W E XPP * D HE X P
IF ( DWEXP.LT.0.0 ) WEXPN=WE XPN*DWE XP
DWCMP=AC*(V(13)-V130LD)/12.
WRKCMP=WRKCMP*DWCMP
IF ( DWCMP .GT .0.0 ) WCMPP=yCMPP*DMCMP
IF ( DWCMP. LT. 0.0 ) WCMPN=WC MPN*DWCMP
WRKLEX=WRKLEX*( A-AE )* i V ( 1 ) -V 1 OLD ) / 1 2 .
WR«LC1=WRKLCM* (A-AC )*(V U3 )-V 1 3 0LD ) /l 2 .
WRKLP-WRKLP*( A -AC )*( V (l 3 ) - VI 30LD) / 1 2 .
WR<H=WRKH* (AE*(V ( 1 ) -VI OLD ) *AC* ( V ( 1 3 ) -V 1 30 L D ) 1/12.
DWDISP=( AE*AD-AC*ADR)*(X( 1 )-X10LD) /12.
rfDISP=WDISP*DWDISP
IF (DWDISP.GT .0.0) WDISPP=WDISPP*DWOI SP
IF ( DWDISP.LT .0 .3 ) W D I S PN = UD I SP U* D WDI S P
DwPIST=AC*ADR*(X(2)-X20LD) /12.
WPIST=WPIST*DWPIST
IF (DWPIST.6T .0.0) WPISTP=WPISTP*DWPI ST
IF (DWPIST.LT. 0.3) WPISTN=WPISTN*DWPI ST
WTPIST=WTPIST *AC*ADR*(X(2)-X20LD)/12.
DO 530 1=1,13
IF(I.fQ.13l GO TO 531
TGCYC(I)=TGCYC(I)*TG(I)
531 TGACYC(I)=TGACYCm*TGAU)
530 TMCYC(I)=TMCYC(I)*TM(I)
IF (PSI0L0.GT.3.1M59 .AND. PS I .L T . 3 . 1 «• 1 59 ) GO TO 650
50 TO 140
C END OF LOOP
650 CONTINUE
C CALCULATE AVERAGE GAS TEMPERATURES OVER THE CYCLE FOR EACH CONTROL VOLUME
DO 533 1=1,13
IF(I.EQ.131 GO TO 53«l
TGCYCm=TGCYC(l)/CPCYC
53H TGACYC(I)=TGACYC(I)/CPCYC
533 TMCYC(I)=TMCYC(I )/CPCYC
TGEXPA = TGACYC ( 1 )
TGCMPA = TGACYC (13)
DO 667 11=1,6
JJ=II*6
TMAX(II )=0.0
667 TMAX( JJ) =5000.
IF (JIP.GT.O.AND. J.NE.(NOCYC-1 ) ) GO TO 668
IF ( J.LT. (NOCYC-1 ) ) WRITE (6,163) TIM E ,PSI DEG, X ,P , P 3 , T GA (I ) ,
1TGA(13) ,PE,PC ,PRIN,PROUT, V (1),V(13)
IF (JIP.EQ.O) WRITE (6,663) TG,TGA,TM
668 CONTINUE
IF(J.LT.NSTRT .OR. J.GT.NOEND) GO TO 675
C CONVERGENCE SCHEME FOR REGENERATOR METAL TEMPERATURES.
DO 670 JI=5,9
670 DTM( JI )=FACT1«DTM( JI ) *F AC T 2*SUMNUM (JI ) /SUMDEN(JI)
TM(5)=TM(5)-(5.*DTM(5)*4.*0TM(6)*3.*DTM(7)*2.*DTM(8)*DTM(9))/3.
TM( 6) = TM(6 )-( 4.*DTM(5 )*8. *DTM(6 )*6.*0TM( 7) *U.*0TM (8)*2.*DTM(9 ) t/3.
TM(7)=TM(7)-( 1 .*DTM(5 )*2.*DTW(6 )* 3.*DTM( 7) *2.*DTM(8 )*DTM(9 ) )
TM( B) = TM( 8 )-( 2.»DTM(5 )**.*DTM(6 )*6.*DTMC7) *8 .*DTM(8) *4 .*DTM( 9) )/3 .
TMC9)=TM(9)-(DTM(5)*2.*DTM(6)*3.*DTM(7)*M.*DTM(8)*5.*0TM(9))/3.
GO TO 675
675 CONTINUE
51
DO 673 i=1,5
673 3R( I ) =0.0
AVGWSP=PRSUM/FLOAT(N0ITPC)
CALL CYCL (TIME,UTOTAL,STROKV,AVGWSP)
00 532 I=1,13
IF (I.EO. 13) GO TO 535
TGCYC( I)=0.0
535 TGACYC( I )=0.0
532 TMCYC(I)=3.0
PRSUM=O.D
NOI TPC = 3
J = J*1
IF( J.NE . ( NOCYC-1 )) GO TO 6 80
IPLOT=0
I TER = 0
SAVET=TI ME
TIME=D.
580 IF(J.LE.MOCYC ) GO TO 125
730 CONTINUE
50 TO 10
1300 CONTINUE
STOP
END
Subroutine HEATEX
R=9197.
IF ( MWGAS.NE.<» ) 60 TO 5
B=. 01613
CP=1.239
R=H632.
GAMMA=1 .667
5 CONTINUE
CV=CP/GAMMA
00 13 I=1*13
IF (MUGAS.EQ.t) GO TO 6
C CONDUCTIVITY, COND(I) HAS UNITS BTU/I N-SEC-DEG.R
C VI SCOSITY ,VIS (I ) HAS UNITS LBM/IN-SEC
COND( I ) = 2.<«81E-9*TGA( I ) *l . 26 3E-6
VISU) - 1.683E-10*TGA( I ) *2. 619E-7
GO TO 8
6 COS D( I ) = 1 .962E-9*TGA ( I )*1 . 115E-6
VIS( I ) =1.358E-9*TGA (I )*5.919E-7
8 TMAO( I ) =TMA ( I )
10 TGAO( I)=TGA(I )
POLD=P
C CALCULATE PRESSURE ,LBF/ IN2
SU1WT=3.3
SUHV=O.O
DO 1u I=1*13
SU1WT=SUMWT*WG( I )*TGA ( I )
1 1 SU1 V = SUMV*V ( I )
P=R*SUMWT/(SUMV-B*R*W*( 1 . - SI G3 ) *R E AL G S )
FGAMMA = (P/POLD)**( (GA MM A-1 .)/GAMMA 1
DO 23 J=1,13
TGAO( J)=TGAO( J)*FGAMMA
20 TMIX( J) =TGA0( J)
C CALCULATE MASSES. MG(I), IN EACH GAS LUMP. ,LBM
SUi=3.0
DO 230 1=1*13
200 SU1=SUM*P*V(I)/(R*(TMIX(I) *B*P*REALGS) )
DO 220 I=1*13
220 WGOLD( I ) =11G (I )
DO 240 i=1*13
2*0 4 B( I ) =y*( 1. -SI G3)*P*V (I )/( R*SUM*( TMI X ( I) *B*P*REALGS ) )
IF (MDEX.EQ.2) GO TO 243
DO 242 i = 1,13
242 WGOLD(I )=WG(I )
C CALCULATE FLOW RATES, FIl) IN LBM/SEC, BETWEEN GAS LUMPS.
213 MDEX=2
F( 1 ) = ( WGOLD( 1 )-WG( 1 )) /DTI ME
30 30Q i=2*12
330 F ( I ) = ( WGOLD (I )-WG(I ) )/DTINE*F(I-1 )
DO 24 i=1,12
IF(F(I ).LT.O. ) GO TO 22
TG(I)=TGAO(I)
IF(I.GT.4 .AND. I.LT.10) T G ( 1 ) =TG A 0 ( I ) -( T M A ( 5 ) -T M A ( 9 ) ) / 8 .
1F(I)*DTIME*(TMA(5)-TMA(9)) /8. /WGOLDJ I )
GO TO 24
22 TG( I)=T6A0(I*1)
IF(I.GT.3 .AND. I.LT.9) I G ( I ) = T G A 0 ( I * 1 ) « ( T M A ( 5 ) -TM A ( 9 ) ) /8
1F(I)*DTIME*(TMA(5)-TMA(9») /8 . /WGOLD ( I * 1 )
24 CONTINUE
C CALCULATE AVERAGE FLOW RATES FOR EACH GAS LUMP.
FAVG( 1 )=F( 1 )
DO 33 i=2,12
30 F AVG( I )=(F(I-1 )*F (II ) /2.
FAVG( 13)=F ( 13 )
C REVISE GAS TEMPERATURES TO ACCOUNT FOR MIXING.
IF (F(D.LT.D.O) T M IX ( 1 ) = ( WG0L D ( 1 ) *TMI X ( 1 ) -F ( 1 ) *D T I ME*
1TG( 1 ) ) /WG( 1 )
00 100 i=2,12
53
C CALCULATE RATES OF HEAT TRANSFER BETWEEN GAS AND METAL AND REVISE
C 3AS TEMPERATURES TO ACCOUNT FOR HEAT TRANSFER TO OR FROM METAL.
DO 12D N=1, 13
HArfC=-DTIME*HA(N)/(WGlN)*CP)
FCTR=1 .-EXP (HAUC )
DTGA=(TMAO(N)-TMIX(N))*FCTR
3(N)=-DTGA*WG(N)*CP/DTIME
WFCTR=FCTR*WG(N )
WDTGA=DTGA*WG (N )
SUMNUM(N)=SUMNUM(N)*WDTGA
SUMDEN(N)=SUMDEN(N)*HFCTR
120 TGA(N)=TMIX(N )*DTGA
IF ( JCYCLE.LT . (NOCYC-5) ) GO TO 64
C CALCULATE DENS I T Y , FR ICT I ON FACTORS, AND DELTA PRESSURES
C FOR EACH LUMP.
DO 130 1=1,13
130 ONSTV(II=P/(R*(TGA(I)*B*P*REALGS) )
DO 110 I=2,12
IF (REYN0(I).LT.150 3.AND.I.LT.5.0R.I.GT.9) F R I CT ( i ) = 1 6 . /RE YNO (] )
IF (REYNO(I ).GE. 1500. .AND. I. LT . 5. OR. I . GT . 9 ) FR ICT ( I ) = 0 .01 6/
IREYNO( i)**0.2
IF (I .GE.5.AND.I.LE.9) FR I CT ( I ) = 3 . 96*E XP ( -0 .0 1 90*RE YNO ( I ) ) *0 . 51
110 DELP( I) =FRICT (I )*FAVG (l )*ABS(FAVG( I) )*XL( I ) /
H32.2*DH(I)*DNSTY(I)*ACS(I)**?*6.*61.)
C PRESSURE DROP CALCULATIONS
DO 141 i=1,10
141 DPX(I )=GAMMA
ACSEXP=V( 1 ) /A 0*3. 1116*2.75 /8.
ACSC0M=V(13)/AP*3.1116*2.7 5/8.
J=1
[F(FI D.LE.O.O) J=2
Z=P
F01=F(l)
F32=F(2)
F01=F(1 )
F09=F(9)
F12=F(12)
CALL XDELP(J,ACSEXP, ACS(02),0HO2),XL(02),DNSTYO2),VISO2),F01
X,Z,C0EFX(01),DPX(01),1)
C
CALL XDELP(3,ACS(02),ACS(02),DH(32I , XL ( 02 ) , DNS T Y ( 02 ) , V IS ( 02 ) , F 01
X,Z,C0EFX(02),DPX(02) ,2)
CALL XDELP ( I.ACS (02 ) , AC S ( 0 2 ) , DH ( 32 ) , XL ( 02 ) , DNS TY (03 ) ,VIS(03),F0?
X,Z,C0EFX(O3),DPX(03),3)
C
DPFRIC=0.0
XL2 = XL ( 2)
DO 112 i=2,12
IF(I.EQ.2) XL(2)=XL2*1.321
IF(I .LT.5.0R.I .GT.9) KTYPE=10
IF( I.GE.5.AND.I.LE.9) KTYPE=11
CALL XDELP ( KT YPE , ACS ( I ) ,ACS( 1 ) , DH( I ) , XL ( 1 ) ,0NSTY ( I ) , V IS ( I ) ,FA VG ( I
K,Z*COEFX( 1*2) ,DPX(l*2), (I*2))
XL( 2) =XL2
3ELP(I)=DPX(I*2)
DPFRIC=DPFRIC*DELP( I )
112 CONTINUE
C
IF(F(1) .GT.O.O) GO TO 61
CALL XDELP ( 1,ACS(01),.6220 00,DH(31),XL(01),DNSTY(01),VIS(01),F01
X,Z,C0EFX( 15),DPX(1S),15)
GO TO 6?
61 CONTINUE
CALL XDELP (I,. 622000, ACSUO),DH(10),XL(10),DNSTY(10),VIS(10),F 09
X,Z, COEFX( 16),DPXU6),16)
62 CONTINUE
55
CALL XDELP( S, ACS ( 12 1 , .0*433 70, DH(12) ,XL( 12) ,DNSTY( 12) ,VIS( 1 2) ,F12
X,Z,COEFX( 17 ), DPX(17),17)
J-2
I F ( F( 12) .LE.3.0) J=1
CALL XDELP(J,ACS(12),ACSC0M, OH ( 1 2 ) ,XL ( 12 ) , DNS TV ( 12 ) ,V IS ( 1 2) ,F 12
X,Z,C0EFX(18),DPX(18>,18)
DPSUM=O.O
DO 63 1=1,17
DPSUl=DPSUM*DPX ( I )
63 CONTINUE
DELP< 1 ) iDPFRIC
DELP( 13)=DPSUM
C
DELP(D2)=DELP(02)*DPX(01)*DPX(02)
DELP(03)=DELP(03)*DPX (03)
DELP( !)*)=DELP(0O*DPX(15)
DELP(1O)-DELP(10)*DPX(16)
DELP( 12) =DELP (12)*0PX ( 1 7) *DPX (18)
174 CONTINUE
C CALCULATE HEAT CONDUCTION (CALL HEAT CONDUCTION SUBROUTINE)
IF (NC0ND.ME.3) CALL CNDCT (TMA.QCREG , OCT L , QC ONDD , Q C A N , 0 SHT TL ,
11WGAS)
NCOND=3
61 CONTINUE
C REVISE REGENERATOR METAL TEMPERATURES.
DO 177 J=5,9
177 TMA(J)TTMA(J)*Q(J)*DTIME/CPM(J)
C CONVERT Q(J)•S TO FT-LBF t SUM UP FOR EACH COMPONENT.
QTOT=0.0
QEX=3.0
3HEAT=O.O
OHETN=0. D
QHETP=0.3
OREGE=O.O
ORSP=D.D
ORGN^C.D
SCOOLrO.O
QCOLP=0.0
3COLN=0.3
3C0M=O.D
DO 179 J=1,13
QADD-0( J)*DTIME*777.3
IF (J.EQ.1) QEXZQEX^QADD
IF ( J.GE.2.AND. J.LE.4 ) QHE AT = QHEAT*QADD
IF ( J.GE.2.AND.J.LE.1.AND.QADD.LT.0.0) QHETN-QHETN*Q ADO
IF ( J.GE.?.AND.J.LE.«i.AND.QADD.GT.0.3) OHE TP -Q HET P * Q A DD
IF ( J.GE.5.AND.J.LE.9) ORE GE =Q R EGE *G A DO
IF ( J.GE.5.AND.J.LE.9.AND.QADD.GT.0.3) QRGP=QRGP*Q ADD
IF ( J.GE.5.AY0. J.LE.9.AN0.QADD.LT.0.3) QRGN=QR6N*QADD
IF ( J.GE.10.AND.J.LE.12) QCOOL=QC0OL*QADD
IF ( J. GE. 13. AND. J. LE.12.AND.QADD.LT. 3.0) OCOLN =QC0LN*Q ADD
IF ( J.GE.10.AND.J.LE. 12.AN0.QADD.GT.0.0) QCOLP=QCOLP*Q ADD
IF (J.EQ.13) QCOM=QCOM*QADD
179 QTOT-OTOT*QADD
DO 185 J=i,5
185 QR(J)=QR(J)*Q(J)*DTIME/CPM(J)
3EXP=QEXP*QEX
IF (QEX .LT.3.0) QEXPN=QEXPN*QEX
IF (QEX .GT.O.O) QEXPP=QEXPP*QEX
QHEATP=QHEATR*QHEAT
3HEATN = QHEATN*QHETN
QHEATP=QHEATP*QHETP
OREGEN=OREGEN*OREGE
9REGN=QREGN+QRGN
OREGP=QREGP*ORGP
QCOOLR=QCOOLR*QCOOL
56
3CD0LP=QC00LP*0C0LP
QCOOLN=QCOOLN*QCOLN
QCOMP=QCOMP*QCOM
IF ( QCOM.GT.O .0) QCOMPP=OCOMPP*QCOM
IF (QCOM.LT.3.0) QCOMPN=QCOHPN*QCOM
3CNDRI=QCNDRI*QCREG *DTIME*777.3
OCNORO-OCNDRO*QCREG *DTIME*777.3
QCNDCL=QCNDCL*QCYL*DT I ME* 7 77. 3
3CNDD = QCNDD*QC0ND0*DTIME*7 77.3
QCNDCN=QCNDCN*QCAN*DTIME*7 77.3
QSMTL-QSHTTL*DTIME*777.3*QSHTL
350 CONTINUE
ENFRTH=ENFRTH-AMI NiI F ( <« )*CP,3 .3 )*TG(1 ) *DTI ME
ENFHTR = ENFHTR*AMAX1(F(i4)*CP,0.a)#TG(i«)*DTIME
ENFCTR=E^FCTR-AMlN1(F(9)*CP,Q.D)*TG(9)*DTIME
ENFRTC=ENFRTC*AMAX1(F(9)*CP,3.3)*TG(9)*DTIME
RETURN
END
Subroutine CYCL
C THIS SUBROUTINE IS CALLED JUST ONCE PER CYCLE—WHEN THE CYCLE IS COMPLETE.
C IT CALCULATES--NET HEAT IN AND OUT, NET WORK PER CYCLE, INDICATED POWERS
C AND EFFICIENCY, ETC. HEAT AND WORK QUANTITIES ARE STORED FOR CALCULATION
C OF AVERAGES OVER 5 CYCLES. AFTER STORING, INTEGRATED HEAT AND WORK
C QUANTITIES ARE RESET TO ZERO IN PREPARATION FOR NEXT CYCLE.
SUBROUTINE CYCL ( TI ME ,UTOT AL , STROK V , AVGWSP )
DIMENSION VAR ( 106) , STORE ( 1 1 ,86 )
COMMON DTIME,F(12),WS(13),0ELP(13),P,PE,PC
DATA J,K,STORE,OLDTIM/2*0,9««7*0./
DATA JIP1/D/
COMMON /CYC/ OEXP,QHEATR, OREGON, QC OOL R , QC OMP , ENFR TH , EN FHT P ,
1ENFCTR,ENFRTC ,WRKP,WRKEXP,
2WRKCMP,WRKLEX,WRKLCM,WRKLP , WRK H , S UMNUM i 1 3) , SUM DEN ( 1 3 ) ,ENTH ,
3WDISP,WPIST,WTPIST,QEXPN,QEXPP,QHEATN,QHEATP,
4QC00LN,QC0OLP,QCOMPN,QCOMPP,QREGN,QREGP,WDISPP,WDISPN,WPISTP,
5WPISTN,QCNDRI , QCNDRO , QC NDC L , QC NDD , QCNDCN , QSHTL ,TGEXPA , TGCMP A
COMMON /TAVCYC/TGCYCU?) , TGACYC( 13) , TMCYC( 13)
COMMON /JNDEX/ JIP.NOC YC
EQUIVALENCE ( VAR ( 1 ) ,QEXP )
J = J*1
JIP1-JIP1*1
IF( OLDTIM.GT.TIME ) OLDTIM=O.
DELTIM=TIME-OLDTIM
OLDTIM=TIME
QIN=-QEXP-QHEATR*QCNDRI*QCNDCL*QCNDD*QCNDCN*QSHTL-WRKLT/2.
Q1 NB=-QEXP-QHEATR
Q OU T= OCOOL R *QC OMP ♦QCNDRO*QCNDCL*QCNDD* QCNDCN *QSHTL
WRKTOT=WRKEXP*WRKCMP
WRKLT=WRKLEX*WRKLCM
WRKBAS=WRKTOT*WRKLT
EFFTOT^WRKTOT/QIN
EFFP=WRKP/QIN
REFF1 =ENFRTH/ENFHTR
REFF2=ENFCTR/ENFRTC
PWRHP=WRKH/ (5 53 .*DELTIM)
57
Subroutine CNDCT
Subroutine XDELP
DIMENSION C0EFX(4O),DPX(4O)
DATA GRAV/32.2/, PSI / 0 .0 0691 5/
GAMMA=QP
IF ( ABS ( FLOUIN ) .LE.0.0 ) RETURN
PR = D.
POUT=O.
DPMOM=D.
« type=k
ain^areain/ 11<4.
AOUT = AREAOT/mH.
DE=DHX/12.
XLG=XLGTH/12.
P0 = R0X*141.*12.
VISC=VISX*12.
FL0W=ABS(FLOWIN)/8.D
PIN=PXIN
ROME AN=RO
IF(AIM-AOUT) 30,30,31
30 AMIN^AIN
A=AIN/AOUT
30 TO 32
31 AMIN=AOUT
AZAOUT/ AI N
32 CONTINUE
I F ( A. LT. 0.001 ) A=o.0
VEl=FLOM/AMIN/RO
VELHD=R0*VEL**2/(2.0*GRAV)
RE=RO*VEL*DE/VISC
GO TO ( 1,2,3,1,5,6,7,6,7,6,7) ,KTYPE
C
1 CONTINUE
C KTYPE=1 CONTRACTION
IF! RE-3000.0) 12,12,11
11 C0EF = -D.4*AO.5
30 TO 100
12 COEF = -0.t«*A*1 .0
GO TO 100
C
2 CONTINUE
C KTYPE=2 EXPANSION
IF(RE-3000.0) 21,21,22
21 COEF = ( 1.D-2.6*A*1.3D5*A**2 )*(-1 .3 )
GO TO 100
2 2 COEF=( 1 . 0-2 . 0 928*A *0 . 996* A **2 ) * (-1 ,0)
GO TO 100
C
3 CONTINUE
C0EF=0.22
GO TO 102
C
«i CONTINUE
C0EF-3.0*0.22
30 TO 102
C
5 CONTINUE
COEF=0.11
GO TO 102
C
6 CONTINUE
C KTYPE=6 FRICTION-TUBE
IF(RE. LT. 1500. ) COEF= 1 6 .3 / RE * ( X LG/ ( DE /1 .0 ))
IF( RE.GE. 1500 . ) C0EF=3 .3 1 6/RE**3 .2* I XLG/ ( DE/1 .0 ) )
GO TO 102
C
7 CONTINUE
C KTYPE=7 FRICTION-REGENERATOR
61
COEF-0.9b*EXP(-0.0190*RE)*O.51
C0EF = C0EF*(XLG/(DE/1.0))
GO TO 102
130 C0EF=1.3-A**2*C0EF
102 DP=COEF*VELHD*PSI
IF( KTYPE.LT.8) GO TO 101
C KTYPE=8 FRICTION*MOMENTUM --TUBE KTYPE=9 SAME FOR REGENERATO
C KTYPE=13 --TUBE MOM.*FRIC. KTYPE=11 —FOR REGERATOR ADI
IF(KTYPE.GE.IO) GA MMA 1 =G A MM A
XMAi=VEL/SQRT(GAMMA*PIN*111.O/RO*GRAV)
<MA?=1.0/SQRT(1.0/XMA1**2-GAMMA*C0EF)
FMA21=1 .0
IF( ABSMXMA2-XMA1 l/XMA1 ).LE. 3.331 ) 60 TO 52
51 XMA0=(XMA1*XMA2)*0.5
FMA21=((GAMMA-1.0)*XMA3**2*2.3)/((GAMMA-1.3)*XMA1**2*2.0)
IF(KTYPE.LT. 10) FMA21=1.0
I FI KTYPE.LT.10) GAMMA1=1.0
XMA2 = 1.0/SQRT ( 1 . 0/X M A 1 **2 -G AMM A *C OE F * G AMM A * ( G A MM A 1 * 1 . 0 ) / 2 . 0/ G A MMA 1
1*AL0GUXMA1/XMA0)**2*FMA21 ))
IF( ABS( XMA2-XMA0) .GT. 0.001 ) GO TO 51
52 TR=1.3/FMA21
VR=XMA2/XMA1*S0RT(1.0/FMA21)
PR=XMA1/XMA2*SQRT(1.0/FMA21)
P0UT=PR*PIN
0P=PIN-P0UT
131 CONTINUE
IF( FLOWIN.LE.O.O) DP-(-1.)*DP
COEFX(M)=C0EF
DPX ( M ) = DP
RETURN
END
62
SSTRLNG
P .850OD0O0E*33
REALGS . 1 3333303EO1
FI»CYC .10003D00EO1
IPR INT ♦ 530
ITMPS ♦3
COEFF .1O003O03E-33
13 .7DQ33303E•03
P3 • 82333303EO3
OMEGA .50003000EO2
FACT 1 .lOOOOOOOE^OO
FACT? •13333303E*32
NDCYC ♦50
NSTRT ♦5
NOENO ♦23
MWGA5 ♦1
TG .18603000E^01, .18600000E*01, . 16fa130D3t ♦ Ol , .18600000E^01,
.16583303EO1, . 11910003EO1 , . 13313330EO1, .1071D300E^01,
.77503000E^33, -5100O000E^03, . 51Q00030E^03, •510OOOPOE^O3
. 19003000EO1, . 1B600000E^01 , . 18600030E^01 , •18600000E^01,
.1 6583003EO1, . 11910DD3EO1, . 13313330EO1, .13710330E^01,
. 775030O3E^03, .51O0OOOOE*03, . 51033030E^03 , .51000000E^03,
• 51333003EO3
. 1 7603003E^31 , .19300000E^01, . 19300030E^01 , .162S0000E^O1,
• 16583303EO1, . 11910303EO1 , . 13313333E01, .107<43330E^0t,
.77S330O3E^03, •51ODO0O0E^O3, .51Q00030E^03, .510O00O0E^O3,
• 51003003EO3
RHCFAC • loanoooaEOi
♦l
iENO
LAST CYCLE
01 N= 333.856 OOJT= 1 79.851 yRKEXP= 305.177 y RKCHP =-1 6 1 . 2 96 WRKTOTr 111.181 EFFTOT .136 REFFl: .997 REFF2=
OREGENr .137 PWRHP= 13.137 FREQ = 50.333 yRKLT= 17.515 ENTH= -1.133 UTOTALr 1780.193
EN3PM= 3S86.119 AVGWSP= 790.210 WOISP= -10.219 WPIST= 151.100 MTPIST= 151.100 WRKLP= 6.113
OEXPN= -53.328 SEXPP= 12.978 QHEATN=-339.901 OHE ATP= 30.687 QCOOLN- .000 QCOOLP= 157.259 QCOMPN= -.052 OCOHPP= 2.306
0REGN= -831.252 OREGP^ 831.390 WOISPPr 8.710 yDISPNz -18.929 WPISTP= 551.515 yPISTN=-397 .1 16 OCNORI= 8.183 OCNDRO: 8.183
OCNDCL= 1.157 OCNOOr 1.535 QCNOCN= 1.201 TG EXP A z 1 721 . 1 29 TGCMPA= 636.009 QSHTL = 1.962
0IN3 r 319.267 WPKBAS I 161.696
AVERAGE VALUES OF LAST 5 CYCLES
OIN= 329.957 QOUT= 179.292 yRKEXP= 331.618 URKCMP=-160 .829 yRKTOTr 113.819 EFFTOT= .136 RFFF1= .997 REFF2=
QREGEN= .113 PyRHP= 13.071 FREQ = 50.000 WRKLT= 17.181 ENTHr -1.569 UTOTAL= 1775.681
EN3PH= 3586.119 AVSWSP= 787.987 WDISPr -10.203 WPIST= 151.022 WTPIST= 151.022 WRKLP= 6.127
QEXPN- -52.895 3EXPP= 12.921 OHE A TN =- 339 . 368 OHE ATP= 30.693 QCOOLN- .330 QCOOLPr 156.709 OCOMPN= -.053 OCOMPP= 2.298
QREGNr -829.103 QRE6P- B29.513 WDISPP= 8.685 yDISPN= -18.888 yPISTPr 519.970 yP ISTN--395 .919 CCNDRI s.183 OCN0RO= P. 163
OCNDCL= 1.157 OCNDO- 1.535 OCNOCNr 1.231 I G E XPA z. 1 7 2 1 . 2 26 TGCMPAz 635.650 OSHTL = 1.96?
QINB = 318.353 WRKBAS r 151.300
AVERAGE TEMPERATURES OVER LAST CYCLE
TGCYC= 1706. 1711. 1655. 1588. 1397. 1209. 1022. 837. 651. 639. 638. 611.
TGACYC= 1721. 1760. 1713. 1625. 1192. 1332. 1115. 929. 715. 633. 629. 632. 636
TMCYCr 1760. 1930. 1930. 1625. 1192. 1303. 1115. 929. 715. 510. 510. 510. 510
63
2 2
AVGWSP mean working -space pressure, lbf/in. (N/m )
ENTH net enthalpy flow from working space to buffer space over
one cycle, ft-lbf (J)
q
EN3PM rate of displacement of working -space gas, in. /min
(cm /min)
QIN heat into gas in expansion space and heater tubes over one
cycle, ft -lbf (J)
QOUT heat out of gas in cooler tubes and compression space over
one cycle, ft -lbf (J)
QREGEN net heat flow from gas to regenerator metal over one cycle,
ft -lbf (J)
WPIST work done on power piston by working -space gas, ft-lbf (J)
WRKCMP work done by the gas in compression space over one cycle,
ft-lbf (J)
WRKEXP work done by the gas in expansion space over one cycle,
ft-lbf (J)
WRKLP power -piston work lost due to pressure drop from regen
erator to compression space, ft-lbf/cycle (J/cycle)
WRKLT work lost due to pressure drop over one cycle, ft-lbf (J)
WRKTOT net work done by gas in working space over one cycle,
WRKEXP + WRKCMP, ft-lbf (J)
67
REFERENCES
pp. 1512-1521.
12. Flow of Fluids Through Valves, Fittings and Pipe. Technical Paper
No. 409, Crane Co., Chicago, 111., 1942.
Heater
Cylinder
Regenerator
Displacer piston — ^
Cooler
Compression spaced
Buffer space
Connecting rods
Synchronizing gears
Crankshaft
(constant)
Metal
1- ®
Figure
volumes.
m8eat-
control
2.
and
as -t-ransfer
2
3
-
4
J
-JJ /
/ ^
28ater /
/ //
i \
\
\
temperaturls^
Regenerator
Variable
12—1
10
J
Coollr
Constant
/
tions) piston
posi power- of is
and displacer fa
unction gas
vol8e spacl
(this Compression
©
Inputs: Frequency of operation
Pressure level (of initial volume)
Initial temperatures
» ♦ »
1. Time = Time + AlTime)
2. Update pressure level, P = f (volumes, temperatures, masses)
3. Update temperatures in each gas control volume for effect of change
in pressure level
4. Update mass distribution
5. Update flow rates
6. Update temperatures in each gas control volume for effect of flow
19. Revise between control volumes
regenerator metal 7. Update heat-transfer coefficients between metal and gas control
temperatures volumes
to speed up
8. Update temperatures in each gas control volume for effect of heat
convergence
transfer (between gas and metal)
9. Update regenerator metal temperatures for effect of heat transfer
(between gas and metal)
10. Calculate pressure drops (necessary over only one cycle)
11. Calculate conduction and shuttle losses (just once during last cycle)
No | Yes Sum up heat transfers between gas and metal for each component
IZ
18. Revise
13. Update leakage flow between working and buffer spaces
regenerator
metal 14. Update expansion-, compression-, and buffer-space volumes
temperatures? 15. Calculate work done in expansion and compression spaces and sum
up to get total indicated work
No
15. Is cycle complete?
Yes
psi).
t°R);
per(1760
(643
cme325
K(585
4
N/m2
4mean
opse3x10°
lrueart-eut,rbe,
80
cycle
per
iterations
of
Number
600
400
1000
efficiency
change
Figure
fas
number
of
a
indicated
5.
Indicated
and
in
unction
-
cycle.
per
iterations
of
Figure 6. - Generalized control volume.
Wj At
1-1
Regenerator node
1.2
- 1.4 1.6
.4 .6 .8 0
0 rV
\
40
Figure
Regenerator
fit.
curve
and
8.
data
factor
friction
-
Points
calculated
A O
Pderived
oints
00
equation from
curve-fit from
data
240
200
160
120
NRe
Reynolds
number,
r
fit)
+0.
(curve
a
NRe
e
%
54
f ="a
0190
220
320
360
Expansion space
Displacer
Compression space
Power piston
Buffer space
Power-piston yoke
I Projection of
Crank radius
Position of
displacer
yoke, yj
Displacer yoke
r
978 |
(1760) |
Expansion space
I
1047
j (1885) Heater
I 1047
! (1885)
—i
I—
918
(1652)
r ■ J
Regenerator
I
1
I 1
| 300
» (540)
i 300
Cooler
! (540)
j 300
I (540)
i 300" ni
i i
Time,
sec
Working-space
Figure
time.
of
function
as
volume
13. -
um2
sec
Figure 14. - Expansion- and compression-space pressures as functions of time.
Figure
drop
15.
Pof
time.
fas
a
ruens-ctuiroen
Figure
16.
Heater
flow
time.
func-tions
as
rates
of
Regend
i-enerator
Time,
sec
\
Figure 19. - Expansion-space pressure-volume diagram.
Figure 20. - Compression-space pressure-volume diagram.
^total uncorrected = ^eXpansion space + ^compression space
+ ^wpressure-drop loss
■ 405 + (-186) + 11. 7
= 231 joules (170 ft-lbf), uncorrected for
pressure-drop loss
wtotal = °- 405 + (-186) ■ 219 joules (162 ft-lbf)
corrected
0 2 4 6 8 10 12 14 16 18 20
Working-space volume, in3
Figure 21. - Total-working-space pressure-volume diagram (neglects pressure drop).
1150
Time, sec
Figure 22. - Expansion-space temperature as a function of time.
CD oo oo CD CD E Ol CD i— ZJ J— CD SF
OoE o c i «/> s. O 3
600
460 5£
20 700
h-
580
1— CD CD CD i_ 1_
o o E e8 CD Ul 200c i . O -*—' E O.
3o 00 CD
250 350
8
000
Figure
Ctemperature
om23.
pas
a
rfof
time.
esunction
i-on-space
.008
.004
.016
.012
.020
.028
.024
1
/
Time,
sec
/
R),
(337
/
K
\
r607°
\ \\
/
\
/
average
time
R),
(540°
300
K V
boundary
metal
.032
Average working-
space pressure,
20 30 40 50 60
Engine frequency, Hz
20 30 40 50 60
Engine frequency, Hz
frequenc20
Engine
Hz
equations
Comparison
Figure
IC4).
IC3)
and
of
29.-
10 14
8 10
150
130
10
110
90
70
50
30
Regenerator
ground-
Figure
3ft
heat-t-ransfer
for
used
data
power-unit
model. 6H
fig.
p.
Exsiapolation
6,
15.
ref.
of
in
curve
331
NRe
Reynolds
number,
NNu
(NRe)
tt
3.
06071
7+■
1. Report No. 2. Government Accession No. 3. Recipient's Catalog No.
NASA TM-78884
4. Title and Subtitle 5. Report Date
A STIRLING ENGINE COMPUTER MODEL FOR July 1978
PERFORMANCE CALCULATIONS 6. Performing Organization Code
16. Abstract
To support the development of the Stirling engine as a possible alternative to the automobile
spark -ignition engine, the thermodynamic characteristics of the Stirling engine were analyzed
and modeled on a computer. The modeling techniques used are presented. The performance
of an existing rhombic -drive Stirling engine was simulated by use of this computer program,
and some typical results are presented. Engine tests are planned in order to evaluate this
theoretical model.
19. Security Classif. (of this report) 20. Security Classif. (of this page) 21. No. of Pages 22. Price*
Unclassified Unclassified
* For sale by the National Technical Information Service, Springfield, Virginia 22161
it U.S. GOVERNMENT PRINTING OFFICE: 1978— 7 57-139/1201
NATIONAL AERONAUTICS AND SPACE ADMINISTRATION
WASHINGTON. D.C. 20546 POSTAGE AND FEES PAID
OFFICIAL BUSINESS NATIONAL AERONAUTICS AND
SPACE ADMINISTRATION
PENALTY FOR PRIVATE USE SSOO SPECIAL FOURTH-CLASS RATE 4SI
US.MAIL
BOOK
J