User's Manual For Interactive Linear, FORTRAN Program To Derive Linear Aircraft Models
User's Manual For Interactive Linear, FORTRAN Program To Derive Linear Aircraft Models
1 Technical
Paper
1 2835
1988
Robert F. Antoniewicz,
Eugene L. Duke,
and Brian P. Patterson
Ames Research Center
Dryden Flight Research Facility
Edwards, Calgornia
National Aeronautics
and Space Administration
INTRODUCTION . 1
NOMENCLATURE .. . 2
Variables .................................. 2
Superscripts ................................ 6
Subscripts ................................. 6
FORTRAN Variables .............................. 7
PROGRAMOVERVIEW . . 11
EQUATIONSOFMOTION . . . 14
OBSERVATION EQUATIONS . . . . . 17
DATAINPUT 33
Input Files ...................................
Title Information ................................
Geometry and Mass Data ........................... 33
. . . . . .
State. Control. and observation variable Definitions
........................
Trim Parameter Specification
. . . . . . 34
37
AERODYNAMICMODEL . . 46
OUTPUTFILES . 48
USER-SUPPLIED SUBROUTINES . . 49
Aerodynamic Model Subroutines ........................ 50
Control Model Subroutines .......................... 52
Engine Model Subroutines .......................... 53
.....................
..
Mass and Geometry Model Subroutines 53
r(sIwI
. - m PRECEDING PAGE BLANK NOT FILMED iii
CONCLUDINGREMARKS . . . . 5
REFERENCES . . .. . .. 11
iv ' i
SUMMARY
INTRODUCTION
L i n e a r s y s t e m models of a i r c r a f t dynamics a n d s e n s o r s a r e a n e s s e n t i a l p a r t of
b o t h v e h i c l e s t a b i l i t y a n a l y s i s and c o n t r o l l a w d e s i g n . These models d e f i n e t h e
a i r c r a f t s y s t e m i n t h e neighborhood of an a n a l y s i s p o i n t and are d e t e r m i n e d by t h e
l i n e a r i z a t i o n of t h e n o n l i n e a r e q u a t i o n s d e f i n i n g v e h i c l e dynamics a n d s e n s o r s .
T h i s report d e s c r i b e s a FORTRAN program t h a t p r o v i d e s t h e u s e r w i t h a p o w e r f u l
and f l e x i b l e t o o l f o r t h e l i n e a r i z a t i o n of a i r c r a f t models. L I N E A R is a program
w i t h w e l l - d e f i n e d and g e n e r a l i z e d i n t e r f a c e s t o aerodynamic a n d e n g i n e models a n d
i s designed t o address a w i d e range of p r o b l e m s w i t h o u t t h e r e q u i r e m e n t of p r o g r a m
modification.
NOMENCLATURE
The units associated with the following quantities are expressed in the English
system. LINEAR will work equally well with any consistent set of units with two
notable exceptions: the printed output and the atmospheric model. Both the printec
output and the atmospheric model assume English units.
Where applicable, quantities are defined with respect to the body axis system.
Variables
A state matrix of the state equation 4 = Ax + Bu; or, axial force (lb)
0
2
I
t
1
anz ,i
ax
z body axis accelerometer not at center of gravity (9)
I ay
acceleration along the y body axis (9)
~ B'
.
control matrix of the state equation Cx = A ' x + B'u
wingspan ( ft 1
e
C matrix of the state equation Cx = A'x + B'u; or, force or moment
coefficient
I e
I D dynamic interaction matrix for the state equation x = Ax + Bu + Dv; or,
drag force (lb)
dynamic interaction matrix for the state equation CG = A'x + B'u + D'v
I det determinant
e
F' feedforward matrix of the observation equation y = H'x + Gx + F'u
i
fPa flight path acceleration (9)
altitude ( ft 1
3
o b s e r v a t i o n m a t r i x of t h e o b s e r v a t i o n e q u a t i o n y = H'x + GG + Flu
I hi a n g u l a r momentum of e n g i n e r o t o r ( s l u g - f t ' / s e c )
I a i r c r a f t i n e r t i a tensor (slug-ft2)
Ie r o t a t i o n a l i n e r t i a of t h e e n g i n e ( s l u g - f t2)
I X x body a x i s moment of i n e r t i a ( s l u g - f t 2 )
IXY
x-y body a x i s p r o d u c t of i n e r t i a ( s l u g - f t 2 )
x-z body a x i s p r o d u c t of i n e r t i a ( s l u g - f t 2 )
IY y body a x i s moment of i n e r t i a ( s l u g - f t 2 )
I Iz
L
z body a x i s moment of i n e r t i a ( s l u g - f t 2 )
t o t a l body a x i s r o l l i n g moment ( f t - l b )
a generalized length (f t )
m a i r c r a f t t o t a l mass ( s l u g )
n load f a c t o r
s p e c i f i c power ( f t / s e c )
P r o l l rate ( r a d / s e c )
Pa a m b i e n t p r e s s u r e ( l b / f t2)
Pt t o t a l p r e s s u r e ( l b / f t2)
p i t c h r a t e (rad/sec )
dynamic p r e s s u r e ( l b / f t 2 )
qc i m p a c t p r e s s u r e ( l b / f t2)
I r yaw r a t e ( r a d / s e c )
4
' Re Reynolds number
S wing p l a n f o r m a r e a ( f t 2 )
T a m b i e n t t e m p e r a t u r e ( O R ) ; o r , t o t a l a n g u l a r momentum ( s l u g - f t 2 / s e c 2 )
Tt t o t a l temperature (OR)
U control vector
V t o t a l velocity (ft/sec)
V v e l o c i t y i n y-axis d i r e c t i o n ( f t / s e c )
V dynamic i n t e r a c t i o n v e c t o r
Ve equivalent velocity ( f t / s e c )
W v e h i c l e w e i g h t (lb)
X t o t a l f o r c e a l o n g t h e x body a x i s ( l b )
X state vector
Xt t h r u s t a l o n g t h e x body a x i s ( l b )
Y sideforce ( l b )
Y observation vector
YT t h r u s t a l o n g t h e y body a x i s ( l b )
Z t o t a l f o r c e a l o n g t h e z body a x i s ( l b )
Zt t h r u s t a l o n g t h e z body a x i s ( l b )
a a n g l e of a t t a c k ( r a d )
B a n g l e of s i d e s l i p ( r a d )
Y f l i g h t path angle ( r a d )
5
AY d i s p l a c e m e n t of e n g i n e from c e n t e r of g r a v i t y a l o n g y body a x i s ( f t )
AZ d i s p l a c e m e n t of e n g i n e from c e n t e r of g r a v i t y a l o n g z body a x i s ( f t )
6a lateral t r i m parameter
6e l o n g i t u d i n a l t r i m parameter
6L i n c r e m e n t a l r o l l i n g moment ( f t - l b )
6M i n c r e m e n t a l p i t c h i n g moment ( f t - l b )
6N i n c r e m e n t a l yawing moment ( f t - l b )
6r d i r e c t i o n a l t r i m parameter
&th t h r u s t t r i m parameter
6X i n c r e m e n t a l x body a x i s f o r c e ( l b )
6Y i n c r e m e n t a l y body a x i s f o r c e ( l b )
6Z i n c r e m e n t a l z body a x i s f o r c e ( l b )
8 p i t c h angle ( r a d )
P d e n s i t y of a i r ( s l u g / f t 3 )
‘c torque from e n g i n e s ( f t - l b )
Tg g y r o s c o p i c t o r q u e from e n g i n e s ( f t - l b )
(9 r o l l angle (rad)
JI heading angle ( r a d )
Superscripts
d e r i v a t i v e w i t h respect t o t i m e
t r a n s p o s e of a v e c t o r or m a t r i x
Subscripts
ar aerodynamic r e f e r e n c e p o i n t
D t o t a l drag
6
'h altitude
L total l i f t
R r o l l i n g moment
M Mach number
m p i t c h i n g moment
max maximum
min minimum
n yawing moment
P r o l l rate
Q p i t c h rate
r yaw r a t e
s stability axis
X a l o n g t h e x body a x i s
Y a l o n g t h e y body a x i s
Y sideforce
z a l o n g t h e z body a x i s
0 s t a n d a r d day, sea l e v e l c o n d i t i o n s ; o r , a l o n g t h e r e f e r e n c e t r a j e c t o r y
FORTRAN V a r i a b l e s
AIX i n e r t i a a b o u t t h e x body a x i s
AIXE engine i n e r t i a
AIY i n e r t i a a b o u t t h e y body a x i s
AIZ i n e r t i a a b o u t t h e z body a x i s
ALP a n g l e of a t t a c k
ALPDOT t i m e r a t e of change of a n g l e of a t t a c k
7
AMCH Mach number
B wingspan
8
' CMA c o e f f i c i e n t of p i t c h i n g moment due t o a n g l e of a t t a c k
CMO p i t c h i n g moment c o e f f i c i e n t a t z e r o a n g l e of a t t a c k
CN t o t a l c o e f f i c i e n t of yawing moment
CY t o t a l c o e f f i c i e n t of s i d e f o r c e
CYB c o e f f i c i e n t of s i d e f o r c e due t o s i d e s l i p
CYDA c o e f f i c i e n t of s i d e f o r c e due t o a i l e r o n d e f l e c t i o n
CYDR c o e f f i c i e n t of s i d e f o r c e due t o r u d d e r d e f l e c t i o n
CYDT c o e f f i c i e n t of s i d e f o r c e due t o d i f f e r e n t i a l e l e v a t o r d e f l e c t i o n
DAS l a t e r a l t r i m parameter
DC s u r f a c e d e f l e c t i o n and t h r u s t c o n t r o l a r r a y
DES l o n g i t u d i n a l t r i m parameter
9
DR S d i r e c t i o n a l t r i m parameter
DXTHRS d i s t a n c e between t h e c e n t e r of g r a v i t y of t h e e n g i n e a n d t h e
thrust point
EIX r o t a t i o n a l i n e r t i a of t h e e n g i n e
ENGOMG r o t a t i o n a l v e l o c i t y of t h e e n g i n e
H altitude
NUMSAT number of s t a t e s i n t h e s t a t e v e c t o r
P r o l l rate
PHI r o l l angle
PHIDOT t i m e r a t e of change of r o l l a n g l e
PSIDOT t i m e r a t e of change of h e a d i n g a n g l e
Q p i t c h rate
QBAR dynamic p r e s s u r e
QDm t i m e r a t e of change of p i t c h r a t e
R yaw r a t e
S wing area
T time
TDOT t i m e r a t e of change of t i m e
THA p i t c h angle
THADOT t i m e r a t e of change of p i t c h a n g l e
THRSTX t h r u s t t r i m parameter
THRUST t h r u s t g e n e r a t e d by e a c h e n g i n e
10
b TLOCAT l o c a t i o n of t h e e n g i n e i n t h e x , y , a n d z a x e s from t h e c e n t e r of g r a v i t y
TVANXY o r i e n t a t i o n of t h e t h r u s t v e c t o r i n t h e x-y e n g i n e a x i s p l a n e
UB v e l o c i t y a l o n g t h e x body a x i s
V velocity
VB v e l o c i t y a l o n g t h e y body a x i s
VCAS c a l i b r a t e d airspeed
VDOT t i m e r a t e of change of t o t a l v e h i c l e v e l o c i t y
WB v e l o c i t y a l o n g t h e z body a x i s
X p o s i t i o n n o r t h from a n a r b i t r a r y r e f e r e n c e p o i n t
1
XDOT t i m e r a t e of change of n o r t h - s o u t h p o s i t i o n
Y p o s i t i o n e a s t f r o m an a r b i t r a r y r e f e r e n c e p o i n t
PROGRAM OVERVIEW
W i t h i n t h e program, t h e n o n l i n e a r e q u a t i o n s of motion i n c l u d e 12 s t a t e s r e p r e -
s e n t i n g a r i g i d a i r c r a f t f l y i n g i n a s t a t i o n a r y atmosphere o v e r a f l a t , n o n r o t a t i n g
e a r t h . Thus, i n t e r n a l l y , t h e s t a t e v e c t o r x i s computed as
x = [ p q r V a f3 4 8 J, h x ylT
11
The nonlinear equations used to determine the derivatives of the states are pre-
sented in the following section. The internal control vector u can contain up to
30 controls. The internal observation vector y contains 120 variables including the
state variables, the time derivatives of the state variables, the control variables,
and a variety of other parameters of interest. Thus, within the program,
where
y3 = [ y fpa
.
y
-.
h C/57.3lT
Y4 = [Es PSIT
Y5 = [L D N A]'
and
The equations defining these quantities are presented in the Observation Equations
section.
12
t h e r i g h t , t h e r e q u e s t e d model is c o n s t r u c t e d , and t h e l i n e a r s y s t e m matrices a r e
s e l e c t e d i n a c c o r d a n c e w i t h t h e u s e r s p e c i f i c a t i o n of t h e s t a t e , c o n t r o l , and o b s e r -
vation variables.
0
x=Ax+Bu
1
o r t h e generalized equation
Cx = A'x + B'u
y = Hx + Fu
or t h e g e n e r a l i z e d e q u a t i o n
y = H'x + Gx + Flu
The o u t p u t of L I N E A R c o n s i s t s of t h e f o l l o w i n g f o u r f i l e s : one i s i n t e n d e d t o
b e u s e d w i t h follow-on d e s i g n and a n a l y s i s programs, two document t h e o p t i o n s and
a n a l y s i s p o i n t s s e l e c t e d by t h e u s e r , a n d one c o n t a i n s s t a b i l i t y a n d c o n t r o l d e r i v a -
t i v e s extracted a t the analysis point. The f i r s t of t h e s e f i l e s c o n t a i n s t h e s t a t e ,
c o n t r o l , and o b s e r v a t i o n v e c t o r name l i s t s a n d v a l u e s , and t h e s t a t e space s y s t e m
matrices. The s e c o n d f i l e c o n t a i n s a l l of t h e t r i m i n f o r m a t i o n , t h e c o n t r o l , s t a t e ,
13
and observation values, the trim control input positions, and the nondimensional
stability and control derivative data. It will also contain the output of the
equations of motion if the program fails to attain a trimmed condition. The third
file contains all of the information in the second file plus the state space system
model matrices. The fourth file contains the stability and control derivatives
extracted at the analysis point in a form suitable to be read back into LINEAR as
a linear aerodynamic model.
DES
DAS UCNTRL
(Gearing)
THRSTX
DC(30)
EQUATIONS OF MOTION
The nonlinear equations of motion used in the linearization program are general
six-degree-of-freedom equations representing the flight dynamics of a rigid aircraft
flying in a stationary atmosphere over a flat nonrotating earth. The assumption of
nonzero forward motion also is included in these equations. Because of this assump-
tion, these equations are invalid for vertical takeoff and landing or hover. These
equations contain no assumptions of either symmetric mass distribution or aerody-
namic properties and are applicable to asymmetric aircraft (such as oblique-wing
aircraft) as well as to conventional symmetric aircraft. These equations of motion
were derived by Etkin ( 1 9 7 2 ) , and the derivation is detailed in the NASA Reference
Publication, "Derivation and Definition of a Linear Aircraft Model," by Eugene L.
Duke, Robert F. Antoniewicz, and Keith D. Krambeer.
The following equations for rotational acceleration are used for analysis point
definition:
14
1
I = [(cL)I~+ ( ~ 4 1 +
1 ~( ~ ~ 1 1 3P~(I,,I~ - - 1 ~ ~ 1 ~ )
I
+ pq(IxzIl - Iyz12 - D,13) - pr(IxyI1 + Dy12 - Iyz13)
- rZ(IyzI1 - Ix,12)l/det I
4= + ( ~ 4 1 +1 ~( C N I I ~ P~(I,,I~
[(CLII~ - - 1 ~ ~ 1 ~ )
I
+ q2(1~,12 - -
1 ~ ~ 1 5 )qr(Dx12 - + 1 ~ ~ 1 ~ )
- r2(Iyz12 - Ix,14)l/det I
= [ ( C L I I+~ ( ~ ~ 1 1
+ 5( ~ ~ 1 p2(
11,,1
~5 - - 1 ~ ~ 1 ~ )
+ pq(1,,13 - 1 ~ ~ 1 5 -
D,I~) - pr(1,~1~ + ~ ~ -11 ~5 ~ 1 6 )
+ q2 (Iyz13 - Ixy16) - qr(Dx13 - Ixy15 + Ix216)
- r2(~yz13 - 1,,1~)l/det I
where
I1 = IyI, - 12yz
I2 = IxyIz + IyzIxz
I3 = IxyIyz + IyIxz
14 = I,I, - 12~,
I5 = IxIyz + IxyIxz
= I,I~ - 1ZXy
D, = I, - Iy
Dy = I, - I,
D, = Iy - I,
Here, the body axis rates are designated p, q, and r, corresponding to roll rate,
pitch rate, and yaw rate. The total moments about the x, y , and z body axes are
designated CL, EM, and EN, respectively. These total moments are the sums of all
15
aerodynamic moments a n d p o w e r p l a n t - i n d u c e d moments due t o t h r u s t a s y m m e t r i e s a n d
gyroscopic torques. The e q u a t i o n s u s e d t o d e t e r m i n e t h e change i n moment c o e f -
f i c i e n t s due t o t h e n o n c o i n c i d e n c e of t h e v e h i c l e c e n t e r of g r a v i t y a n d t h e refer-
e n c e p o i n t of t h e n o n l i n e a r a e r o d y n a m i c model a r e d e r i v e d i n a p p e n d i x A. The equa-
t i o n s d e f i n i n g t h e e n g i n e t o r q u e a n d g y r o s c o p i c c o n t r i b u t i o n s t o t h e t o t a l moments
a r e d e r i v e d i n a p p e n d i x B. The body a x i s moments of i n e r t i a are d e s i g n a t e d I,, I y r
a n d I,. The p r o d u c t s o f i n e r t i a a r e d e s i g n a t e d Ixy, Ixz, a n d I T h e s e moments
-:I
YZ
a n d p r o d u c t s of i n e r t i a a r e e l e m e n t s of t h e i n e r t i a t e n s o r I , d e f i n e d as
I X -1xy -1XZ
I = [-Ixy Iy
-1xz -1yz
T o d e r i v e t h e s t a t e e q u a t i o n matrices f o r t h e g e n e r a l i z e d f o r m u l a t i o n
.
Cx = Ax + Bu
-1xy
IY
---
-1XZ
- I,
-CM- rp
IX
- + rq
2 1x2
' P I - + pr -
I,
IY IY IY IY
I
The t r a n s l a t i o n a l a c c e l e r a t i o n e q u a t i o n s u s e d i n t h e program LINEAR f o r both
a n a l y s i s p o i n t d e f i n i t i o n a n d p e r t u r b a t i o n are
- cos 0 cos Q s i n a c o s @ ) ] / m
16
A = [-L + zT cos a - xT s i n a + mg(cos 8 COS Q COS a
+ q - t a n 6 ( p c o s a + r s i n a)
- c o s 8 cos I$ s i n a s i n f 3 ) l / v m
+ p sin a - r cos a
The e q u a t i o n s u s e d t o d e f i n e t h e v e h i c l e a t t i t u d e rates a r e
0
8 = q cos Q - r sin Q
6= q s i n Q sec 8 + r c o s Q sec 8
The e q u a t i o n s u s e d t o d e f i n e t h e e a r t h - r e l a t i v e v e l o c i t i e s are
G = cos 4 c o s a c o s 0 c o s J, + s i n ( s i n Q s i n 8 c o s J, - c o s Q s i n J,)
OBSERVATION EQUATIONS
The u s e r - s e l e c t a b l e o b s e r v a t i o n v a r i a b l e s computed i n L I N E A R r e p r e s e n t a b r o a d
c l a s s of p a r a m e t e r s u s e f u l f o r v e h i c l e a n a l y s i s and c o n t r o l d e s i g n problems. These
v a r i a b l e s i n c l u d e t h e s t a t e , t i m e d e r i v a t i v e s of s t a t e , and c o n t r o l v a r i a b l e s . A l s o
i n c l u d e d are a i r d a t a p a r a m e t e r s , a c c e l e r a t i o n s , f l i g h t p a t h terms, and o t h e r miscel-
l a n e o u s parameters. The e q u a t i o n s u s e d t o c a l c u l a t e t h o s e parameters a r e d e r i v e d
from a number of s o u r c e s ( C l a n c y , 1975; Dommasch and o t h e r s , 1967; E t k i n , 1972;
G a i n e r and Hoffman, 1972; Gracey, 1 9 8 0 ) . I m p l i c i t i n many of t h e s e o b s e r v a t i o n
e q u a t i o n s is an a t m o s p h e r i c model. The model i n c l u d e d i n LINEAR i s d e r i v e d from
t h e U.S. S t a n d a r d Atmosphere ( 1 9 6 2 ) .
The v e h i c l e body a x i s a c c e l e r a t i o n s c o n s t i t u t e t h e s e t of o b s e r v a t i o n v a r i a b l e s
t h a t , e x c e p t f o r s t a t e v a r i a b l e s t h e m s e l v e s , are most commonly u s e d i n t h e a i r c r a f t
c o n t r o l a n a l y s i s and d e s i g n problem. These a c c e l e r a t i o n s are measured i n g u n i t s
17
a n d are d e r i v e d d i r e c t l y from t h e body a x i s f o r c e s d e f i n e d i n t h e p r e v i o u s s e c t i o n
f o r translational acceleration. The body a x i s a c c e l e r a t i o n e q u a t i o n s u s e d i n LINEAR
are
ay = ( y T + Y + gm cos 8 s i n Q)/gom
The e q u a t i o n s f o r body a x i s a c c e l e r o m e t e r s t h a t a r e a t v e h i c l e c e n t e r of g r a v i t y
are
where t h e s u b s c r i p t s x, y , a n d z r e f e r t o t h e x, y, a n d z body a x e s , r e s p e c t i v e l y ,
a n d t h e symbols x, y , and z r e f e r t o t h e x , y , a n d z body a x i s l o c a t i o n s of t h e sen-
sors r e l a t i v e t o t h e v e h i c l e c e n t e r of g r a v i t y . The symbol go i s t h e a c c e l e r a t i o n
due t o g r a v i t y a t sea l e v e l . A l s o i n c l u d e d i n t h e s e t of a c c e l e r a t i o n parameters
i s t h e l o a d f a c t o r n = L/W, where L i s t h e t o t a l aerodynamic l i f t a n d W i s t h e
v e h i c l e weight.
18
3.5
- 1.O1Pa (M < 1.0)
+ qc
T t = T(1.0 + 0.2M2)
where p i s t h e d e n s i t y of t h e a i r , P i s t h e c o e f f i c i e n t o f v i s c o s i t y , a n d t h e sub-
s c r i p t 0 r e f e r s t o sea l e v e l , s t a n d a r d day c o n d i t i o n s . F r e e - s t r e a m p r e s s u r e , f r e e -
stream t e m p e r a t u r e , a n d t h e c o e f f i c i e n t of v i s c o s i t y are d e r i v e d f r o m t h e U . S . Stand-
ard Atmosphere ( 1 9 6 2 ) .
which i s d e r i v e d from t h e d e f i n i t i o n of e q u i v a l e n t a i r s p e e d ,
ve = E
where Po = 0.002378 s l u g / f t 3 a n d v, i s c o n v e r t e d from f e e t per s e c o n d t o k n o t s . Cal-
i b r a t e d airspeed is d e r i v e d f r o m t h e f o l l o w i n g d e f i n i t i o n of impact p r e s s u r e :
19
= 1.2(vc)z 5.76
a,
- P, (V, 2 a,)
qC
5.6 - 0.8 (aofl,)
i s e x e c u t e d u n t i l t h e c h a n g e i n Vc from o n e i t e r a t i o n t o t h e n e x t is less t h a n
0.001 knots.
fpa = -
V
90
..
h = a, sin 0 - ay s i n 4 cos 0 - a, c o s + cos 0
..
Y =
V h -s
v v n
Two e n e r g y - r e l a t e d terms a r e i n c l u d e d i n t h e o b s e r v a t i o n v a r i a b l e s : specific
e n e r g y E,, and s p e c i f i c power Ps, d e f i n e d as
20
The s e t of o b s e r v a t i o n v a r i a b l e s a v a i l a b l e i n LINEAR a l s o i n c l u d e s f o u r f o r c e
parameters: t o t a l aerodynamic l i f t L, t o t a l aerodynamic d r a g D, t o t a l aerodynamic
normal f o r c e N , and t o t a l aerodynamic a x i a l f o r c e A. These q u a n t i t i e s a r e d e f i n e d a s
D = GSC,
N = L cos a + D sin a
A = -L s i n a + D cos a
where CD a n d cL a r e c o e f f i c i e n t s of d r a g and l i f t , r e s p e c t i v e l y .
u = v cos a cos B
v = V sin B
w = v s i n a cos B
- gm s i n 8 - D cos a + L sin a
m
+ rv - qw
+ gm c o s 8 s i n 4 + Y
m
+ pw - ru
+ gm cos 8 c o s +- D sin a - -)
L cos a
+ qu - pv
m
21
ili = C + 6 ( x cos e + y sin q sin e + z cos Q) s i n 01
- .
+ ( y c o s $I cos 8 - z s i n $I cos e)
The r e m a i n i n g m i s c e l l a n e o u s parameters a r e t o t a l a n g u l a r momentum T, s t a b i l i t y a x i s
r o l l r a t e ps, s t a b i l i t y a x i s p i t c h r a t e qs, a n d s t a b i l i t y a x i s yaw r a t e rs, d e f i n e d
as
ps = p cos a + r sin a
qs = 9
rs = -p sin a + r COS a
The e q u a t i o n s i n t h e t w o p r e c e d i n g s e c t i o n s d e f i n e t h e s t a t e a n d o b s e r v a t i o n
v a r i a b l e s a v a i l a b l e i n LINEAR. The c o n t r o l v a r i a b l e s are d e f i n e d by t h e u s e r i n t h e
input f i l e . I n t e r n a l l y , t h e program u s e s a 1 2 - s t a t e model, a 1 2 0 - v a r i a b l e obser-
vation vector, and a 30-parameter c o n t r o l v e c t o r . T h e s e v a r i a b l e s c a n be selected
t o s p e c i f y t h e f o r m u l a t i o n m o s t s u i t e d f o r t h e s p e c i f i c a p p l i c a t i o n . The o r d e r a n d
number of parameters i n t h e o u t p u t model a r e c o m p l e t e l y u n d e r u s e r c o n t r o l . Figure 1
shows t h e s e l e c t i o n of v a r i a b l e s f o r t h e s t a t e v e c t o r of t h e o u t p u t model. However,
it s h o u l d be n o t e d t h a t no model o r d e r r e d u c t i o n i s a t t e m p t e d . E l e m e n t s of t h e
matrices i n t h e i n t e r n a l f o r m u l a t i o n are s i m p l y s e l e c t e d a n d reordered i n t h e f o r -
m u l a t i o n s p e c i f i e d by t h e u s e r .
S p e c i f i c s t a t e , c o n t r o l , a n d o b s e r v a t i o n v a r i a b l e s f o r t h e f o r m u l a t i o n of t h e
o u t p u t matrices are s e l e c t e d by a l p h a n u m e r i c d e s c r i p t o r s i n t h e i n p u t f i l e . The u s e
of t h e s e a l p h a n u m e r i c descriptors i s described i n t h e Data I n p u t s e c t i o n . Appendix C
lists t h e o b s e r v a t i o n variables and t h e i r alphanumeric d e s c r i p t o r s . Appendix D l i s t s
t h e s t a t e v a r i a b l e s a n d t h e i r a l p h a n u m e r i c descriptors. The a l p h a n u m e r i c d e s c r i p t o r s
f o r t h e s e l e c t i o n of c o n t r o l parameters t o be i n c l u d e d i n t h e o b s e r v a t i o n v e c t o r are
t h e c o n t r o l v a r i a b l e names d e f i n e d by t h e u s e r i n t h e i n p u t f i l e , as described i n t h e
Input Files section.
L I N E A R MODELS
22
t
1 Analysis Point Definition section. The t e c h n i q u e u s e d t o o b t a i n t h e s e matrices
n u m e r i c a l l y i s a simple a p p r o x i m a t i o n t o t h e p a r t i a l d e r i v a t i v e , t h a t i s ,
From t h e g e n e r a l i z e d n o n l i n e a r s t a t e e q u a t i o n
.
TX = f ( X r
.
X, U)
I
t h e program d e t e r m i n e s t h e l i n e a r i z e d matrices f o r t h e g e n e r a l i z e d f o r m u l a t i o n of t h e
system:
C 6; = A' 6x + B' 6u
where
23
I
with all derivatives evaluated along the nominal trajectory defined by the analysis
point ( x o , go, u o ) . The state, time derivative of state, and control vectors can be
expressed as small perturbations about the nominal trajectory, so that
x = xo + 6x
u = uo + 6u
In addition to the matrices for this generalized system, the user has the option
of requesting linearized matrices for a standard formulation of the system:
6; = A 6x + B 6u
6y = H 6x + F 6u
where
with all derivatives evaluated along the nominal trajectory defined by the analysis
point (xo, io,u o ) -
LINEAR also provides two nonstandard matrices, D and E , in the equations
;= Ax + Bu + Dv
y = Hx + Fu + Ev
0
Cx = A ' x + B'u + D'v
y = H'x
.
+ Gx + F'u + E'v
24
I
’ These dynamic interaction matrices include the effect of external forces and moments
acting on the vehicle. The components of the dynamic interaction vector v are incre-
mental body axis forces and moments:
1 Thus,
The default output matrices for LINEAR are those for the standard system for-
mulation. However, the user can select matrices for either generalized or standard
state and observation equations in any combination. Internally, the matrices are
, computed for the generalized system formulation and then combined appropriately to
I accommodate the system formulation requested by the user.
The point at which the nonlinear system equations are linearized is referred to
as the analysis point. This can represent a true steady-state condition on the spec-
I ified trajectory (a point at which the rotational and translational accelerations are
zero; Perkins and Hage, 1949; Thelander, 1965) or a totally arbitrary state on a tra-
I jectory. LINEAR allows the user to Select from a variety of analysis points. These
I analysis points are referred to as trim conditions, and several options are available
, to the user. The arbitrary state and control option is designated NOTRIM, and in
selecting this option the user must specify all nonzero state and control variables.
For the equilibrium conditions, the user specifies a minimum number of parameters,
and the program numerically determines required state and control variables to force
25
the rotational and translational accelerations to zero. The analysis point options
are described in detail in the following subsections.
For all the analysis point definition options, any state or control parameter
may be input by the user. Those state variables not required to define the analysis
point are used as initial estimates for the calculation of the state and control
conditions that result in zero rotational and translational accelerations. As each
state variable is read into LINEAR, the name is compared to the list of alternative
state variable names listed in appendix D. All state variables except velocity
must be specified according to this list. Velocity can also be defined by specify-
ing Mach number (see alternative observation variable names in appendix C). Appen-
dix E lists analysis point definition identifiers that are recognized by LINEAR.
It should be noted that the option of allowing the user to linearize the system
equations about a nonequilibrium condition raises theoretical issues (beyond the
scope of this report) the potential user should be aware of. Although all the anal-
ysis point definition options provided in LINEAR have been found to be useful in
the analysis of vehicle dynamics, not all the linear models derived about these anal-
ysis points result in the time-invariant systems assumed in this report. However,
the results of the linearization provided by LINEAR do give the appearance of being
time invariant.
The linearization process as defined in this report is always valid for some time
interval beyond the point in the trajectory about which the linearization is done.
However, for the resultant system to be truly time invariant, the vehicle must be in
.
a sustainable, steady-state flight condition. This requirement is something more
than merely a trim requirement, which is typically represented as x(t) = 0, indi-
cating that for trim, all the time derivatives of the state variables must be zero.
(This is not the case, however: Trim is achieved when the acceleration-like terms
. ..... .
are identically zero; no constraints need to be placed on the velocity-like terms in
x. Thus, for the model used in LINEAR, only p, q, r, V, a, and f3 must be zero to
satisfy the trim condition.) The trim condition is achieved for the straight-and-
level, pushover-pullup, level turn, thrust-stabilized turn, and beta trim options
described in the following sections. In general, the untrimmed and specific power
analysis point definition options do not result in a trim condition.
Of these analysis point options resulting in a trim condition, only the straight-
and-level and level turn options force the model to represent sustainable flight con-
ditions. In fact, only in the special case where the flightpath angle is zero does a
truly sustainable trim occur.
Untrimmed
For the untrimmed analysis point, the user specifies all state and control var-
iables that are to be set at some value other than zero. The number of state var-
26
i a b l e s specified is e n t i r e l y a t t h e u s e r ' s discretion. I f any of t h e c o n t r o l v a r -
i a b l e s a r e t o be n o n z e r o , t h e u s e r must s p e c i f y t h e c o n t r o l p a r a m e t e r and i t s v a l u e .
The untrimmed o p t i o n a l l o w s t h e u s e r t o a n a l y z e t h e v e h i c l e dynamics a t any f l i g h t
condition, including t r a n s i t o r y conditions.
Straight-and-Level Trim
The two o p t i o n s a v a i l a b l e f o r s t r a i g h t - a n d - l e v e l t r i m r e q u i r e t h e u s e r t o s p e c i f y
a l t i t u d e a n d e i t h e r a n a n g l e of a t t a c k o r a Mach number. I f a s p e c i f i c a n g l e of
a t t a c k a n d a l t i t u d e c o m b i n a t i o n is d e s i r e d , t h e u s e r selects t h e "Mach-trim" o p t i o n ,
which d e t e r m i n e s t h e v e l o c i t y r e q u i r e d f o r t h e r e q u e s t e d t r a j e c t o r y . Likewise, t h e
" a l p h a - t r i m " o p t i o n a l l o w s t h e u s e r t o s p e c i f y Mach number and a l t i t u d e , and t h e t r i m
r o u t i n e s i n L I N E A R d e t e r m i n e t h e a n g l e of a t t a c k needed f o r t h e r e q u e s t e d t r a j e c t o r y .
@ = O
The t r i m s u r f a c e p o s i t i o n s , t h r u s t , a n g l e of s i d e s l i p , a n d e i t h e r v e l o c i t y o r a n g l e
of a t t a c k are d e t e r m i n e d by n u m e r i c a l l y s o l v i n g t h e n o n l i n e a r e q u a t i o n s f o r t h e
t r a n s l a t i o n a l and r o t a t i o n a l a c c e l e r a t i o n . P i t c h a t t i t u d e 8 i s d e t e r m i n e d by itera-
t i v e s o l u t i o n of t h e a l t i t u d e r a t e e q u a t i o n .
Pushover-Pullup
The a n a l y s i s p o i n t i s d e t e r m i n e d a t t h e s p e c i f i e d c o n d i t i o n s , s u b j e c t t o t h e f o l -
lowing c o n t r a i n t s :
p = r = O
@ = O
27
.
The e x p r e s s i o n f o r q i s d e r i v e d from t h e a e q u a t i o n by s e t t i n g a = 0 and
0
4 = 0; 0 is
d e r i v e d from t h e A e q u a t i o n . The t r i m s u r f a c e p o s i t i o n s , t h r u s t , a n g l e of s i d e s l i p ,
a n d e i t h e r a n g l e o f a t t a c k or load f a c t o r a r e d e t e r m i n e d by n u m e r i c a l l y s o l v i n g t h e
n o n l i n e a r equations f o r t h e t r a n s l a t i o n a l and r o t a t i o n a l a c c e l e r a t i o n s .
Level Turn
The l e v e l t u r n a n a l y s i s p o i n t d e f i n i t i o n o p t i o n s r e s u l t i n n o n w i n g s - l e v e l ,
c o n s t a n t - t u r n - r a t e f l i g h t a t load f a c t o r s g r e a t e r t h a n one. The v e h i c l e model i s
assumed t o have s u f f i c i e n t e x c e s s t h r u s t t o t r i m a t t h e c o n d i t i o n s p e c i f i e d . If
t h r u s t i s n o t s u f f i c i e n t , t r i m w i l l n o t r e s u l t , and t h e a n a l y s i s p o i n t t h u s d e f i n e d
w i l l have a n o n z e r o ( i n f a c t , n e g a t i v e ) v e l o c i t y r a t e .
The l e v e l t r i m o p t i o n s a v a i l a b l e i n L I N E A R r e q u i r e t h e s p e c i f i c a t i o n of a n a l t i -
t u d e a n d a Mach number. The u s e r c a n t h e n u s e e i t h e r a n g l e of a t t a c k o r load f a c t o r
t o define t h e desired f l i g h t condition. T h e s e t w o o p t i o n s are r e f e r r e d t o as “ a l p h a -
t r i m ” a n d “ l o a d - f a c t o r - t r i m , ’‘ r e s p e c t i v e l y . F o r e i t h e r o p t i o n , t h e u s e r may a l s o
r e q u e s t a s p e c i f i c f l i g h t p a t h a n g l e o r a l t i t u d e rate. Thus, t h e s e a n a l y s i s p o i n t
d e f i n i t i o n s may r e s u l t in a s c e n d i n g o r d e s c e n d i n g s p i r a l s , a l t h o u g h t h e d e f a u l t i s
€or t h e c o n s t a n t - a l t i t u d e t u r n .
The c o n s t r a i n t e q u a t i o n s f o r t h e c o o r d i n a t e d l e v e l t u r n a n a l y s i s p o i n t d e f i n i -
t i o n s are d e r i v e d by Chen (19811, a n d Chen a n d J e s k e ( 1 9 8 1 ) . U s i n g t h e r e q u e s t e d
load f a c t o r , t h e tilt a n g l e o f a c c e l e r a t i o n normal t o t h e f l i g h t p a t h f r o m t h e v e r -
t i c a l p l a n e 01, is c a l c u l a t e d u s i n g t h e e q u a t i o n
where t h e p o s i t i v e s i g n i s u s e d f o r a r i g h t t u r n a n d t h e n e g a t i v e s i g n i s u s e d f o r a
l e f t turn. From $L, t u r n rate c a n be c a l c u l a t e d as
U s i n g t h e s e t w o d e f i n i t i o n s , t h e s t a t e v a r i a b l e s c a n be d e t e r m i n e d :
c
p = p S cos a - rs s i n a
r = p
S
sin a + rs cos a
28
The trim surface positions, thrust, angle of sideslip, and either angle of attack or
load factor are determined by numerically solving the nonlinear equations for the
translational and rotational accelerations.
Thrust-Stabilized Turn
The constraint equations for the thrust-stabilized turn are the same as those for
, the level turn. However, for this analysis point definition, flightpath angle is
determined by L I N E A R .
Beta Trim
.
The beta trim analysis point definition results in nonwings-level, horizontal
flight with the heading rate i;l equal to zero at a user-specified Mach number, alti-
tude, and angle of sideslip. This trim option is nominally at 1 g, but as 6 and $I
vary from zero, normal acceleration decreases and lateral acceleration increases.
For an aerodynamically symmetric aircraft, a trim to 6 = 0 using the beta trim option
results in the same trimmed condition as the straight-and-level trim. However, for
t an aerodynamically asymmetric aircraft, such as an oblique-wing vehicle, the two trim
options are not equivalent.
The constraint equations used with the beta trim option are
The trim surface positions, thrust, angle of attack, and bank angle are determined by I
numerically solving the nonlinear equations for translational and rotational acceler-
ation. Pitch attitude 8 is derived from the equation f o r flightpath angle y with
y = 0 and is defined as
I
I
e = tan"
sin sin $ + COS B sin ci
cos B cos a
Specific Power
I
The specific power analysis point definition results in a level turn at a user-
specified Mach number, altitude, thrust trim parameter, and specific power. Unlike
29
t h e o t h e r t r i m o p t i o n s p r o v i d e d i n LINEAR, t h e s p e c i f i c power o p t i o n does n o t , i n
g e n e r a l , attempt t o a c h i e v e t h e z e r o v e l o c i t y r a t e <. I n f a c t , because t h e a l t i t u d e
rate = 0 a n d s p e c i f i c power a r e d e f i n e d by
P , =
- w
h + -
.
9
t h e r e s u l t a n t v e l o c i t y r a t e w i l l be
I
v = -PS9
V
l e .
However, t h e o t h e r a c c e l e r a t i o n - l i k e terms ( p , q, r , a, and
. .
8) w i l l be z e r o i f t h e
, r e q u e s t e d a n a l y s i s p o i n t is a c h i e v e d .
The c o n s t r a i n t e q u a t i o n s u s e d w i t h t h e s p e c i f i c power a n a l y s i s p o i n t d e f i n i t i o n
o p t i o n c a n be d e r i v e d f r o m t h e load f a c t o r tilt a n g l e e q u a t i o n u s e d i n t h e l e v e l t u r n
a n a l y s i s p o i n t d e f i n i t i o n w i t h y = 0:
( w h e r e t h e p o s i t i v e s i g n i s u s e d for a r i g h t t u r n a n d t h e n e g a t i v e s i g n i s u s e d f o r a
l e f t turn),
.
q = JI s i n +L cos 6
ps = -q t a n 6
p = ps cos LI - rs s i n a
r = ps sin a + rs cos a
o = sin-’(- f)
The a n a l y s i s p o i n t s u r f a c e p o s i t i o n s , load f a c t o r , a n g l e of a t t a c k , a n d a n g l e of
s i d e s l i p a r e d e t e r m i n e d by numerically s o l v i n g t h e n o n l i n e a r e q u a t i o n s f o r t r a n s l a -
t i o n a l and r o t a t i o n a l a c c e l e r a t i o n .
30
NONDIMENSIONAL STABILITY AND CONTROL DERIVATIVES
I The nondimensional stability and control derivatives computed by LINEAR from the
nonlinear aerodynamic model assume broadly formulated linear aerodynamic equations.
These equations include effects of what are normally considered exclusively lateral-
directional parameters in the longitudinal force and moment coefficient equations,
and, conversely, effects of longitudinal parameters in the lateral-directional equa-
tions. The reason for this is two-fold: application to a larger class of vehicle
1 types, such as oblique-wing aircraft, and computational ease.
I The nondimensional stability and control derivatives assume the following equa-
1
tions for the aerodynamic force and moment coefficients:
n
cL = CLo + CLaa + CLBB + CLh 6h + CLv 6V + 1 CL 6i
i=1 6i
31
n
A + cyq4 + cy,; .
+ Cy's + cyp
+ CYPP a
where the stability and control derivatives have the usual meaning,
The 6i in the summations are the n control variables defined by the user. The
effects of altitude and velocity are included in the derivatives with respect to
those parameters and in the incremental multipliers
where the subscript zero represents the current analysis point ( x o , Xo, u0),
described in the Analysis Point Definition section.
~ l stability
l derivatives are computed as nondimensional terms except the alti-
tude and velocity parameters. The units of the control derivatives correspond to the
units used in the nonlinear aerodynamic model. LINEAR is capable of handling both
Mach and velocity derivatives. Using the equation
(where ah is the speed of sound at the reference altitude), LINEAR will compute the
Mach derivatives from the velocity derivatives or vice versa. Internally, however,
32
L I N E A R u s e s v e l o c i t y d e r i v a t i v e s i n t h e c o m p u t a t i o n s of t h e t o t a l f o r c e and moment
c o e f f i c i e n t s . D e r i v a t i v e s w i t h respect t o a n g l e of a t t a c k and a n g l e of s i d e s l i p c a n
b e o b t a i n e d i n u n i t s of r e c i p r o c a l d e g r e e s . These d e r i v a t i v e s are s i m p l y t h e c o r -
r e s p o n d i n g nondimensional d e r i v a t i v e s m u l t i p l i e d by 180/n.
DATA INPUT
1. A l l i n p u t d a t a c a n be l o a d e d from a s i n g l e f i l e ( e i t h e r a f i l e a s s i g n e d t o
l o g i c a l u n i t 1 o r any f i l e named w i t h 10 c h a r a c t e r s o r l e s s ) ;
2. Data c a n be s e p a r a t e d o n t o d i f f e r e n t f i l e s , e a c h c o n t a i n i n g d i f f e r e n t sec-
t i o n s of data;
3. D a t a can be t y p e d i n from t h e t e r m i n a l ; or
4. A c o m b i n a t i o n of ( 2 ) and ( 3 ) .
Input F i l e s
The i n t e r a c t i v e L I N E A R i n p u t f i l e ( d e f i n e d i n t a b l e 1 ) is s e p a r a t e d i n t o s i x
major s e c t i o n s : v e h i c l e t i t l e i n f o r m a t i o n ; geometry and mass data f o r t h e a i r c r a f t ;
s t a t e , c o n t r o l , and o b s e r v a t i o n v a r i a b l e d e f i n i t i o n s f o r t h e state-space model; t h e
t r i m p a r a m e t e r s p e c i f i c a t i o n ; a d d i t i o n a l c o n t r o l s u r f a c e s t h a t may be s p e c i f i e d f o r
e a c h case; and v a r i o u s t e s t case s p e c i f i c a t i o n s . A l l t h e i n p u t d a t a c a n be w r i t t e n
o n one f i l e o r v a r i o u s f i l e s a c c o r d i n g t o t h e d i v i s i o n s s p e c i f i e d a t t h e b e g i n n i n g of
t h i s p a r a g r a p h and a c c o r d i n g t o t h e i n p u t f o r m a t d e f i n e d i n t a b l e 1. An example
i n p u t f i l e is l i s t e d i n a p p e n d i x F. A l l t h e i n p u t r e c o r d s t o LINEAR are w r i t t e n i n
A S C I I form.
T i t l e Information
33
TABLE 1. - INPUT FORMAT FOR LINEAR
NUMSUR (110)
CONTROL 1 LOCCNT 1 CONVR 1 CNTINC 1 (5A4,110,A4,6X,F10.0)
CONTROL 2 LOCCNT 2 CONVR 2 CNTINC 2 (5A4,110,A4,6X,FlO.O)
CONTROL 3 LOCCNT 3 CONVR 3 CNTINC 3 (5A4,110,A4,6X,FlO.O)
34
TABLE 1. - Concluded
I n p u t record Format
NEXT (A41
ANALYSIS POINT DEFINITION OPTION (20A4)
ANALYSIS P O I N T D E F I N I T I O N SUBOPT I O N (A41
VARIABLE 1 VALUE 1 ( 5 A 4 , F 15.5 )
VARIABLE 2 VALUE 2 (5A4,F15.5)
VARIABLE 3 VALUE 3 (5A4,F15.5)
END (A41
35
The f i r s t a n d s e c o n d r e c o r d s d e s c r i b e t h e v e h i c l e geometry, mass, a n d mass d i s -
t r i b u t i o n . The f i r s t record d e f i n e s t h e wing p l a n f o r m area S i n u n i t s of f e e t
s q u a r e d ; t h e wingspan b i n u n i t s of f e e t ; t h e mean aerodynamic c h o r d of t h e wing c
i n u n i t s of f e e t ; a n d t h e sea l e v e l w e i g h t o f t h e v e h i c l e Weight, i n units of pounds.
The s e c o n d record d e f i n e s t h e v e h i c l e moments a n d p r o d u c t s of i n e r t i a i n u n i t s of
s l u g - f e e t s q u a r e d . The t h i r d record d e f i n e s t h e o f f s e t of t h e a e r o d y n a m i c r e f e r e n c e
p o i n t w i t h respect t o t h e v e h i c l e c e n t e r o f g r a v i t y i n t h e normal r i g h t - h a n d e d body
a x i s r e f e r e n c e system w i t h t h e p o s i t i v e x a x i s forward. The format o f t h e data c a n
be s e e n i n t a b l e 1 w i t h DELX, DELY, a n d DELZ r e p r e s e n t i n g t h e x, y , a n d z body a x i s
d i s p l a c e m e n t s of t h e aerodynamic r e f e r e n c e p o i n t w i t h respect t o t h e c e n t e r o f g r a -
v i t y i n u n i t s of f e e t ( s e e app. A ) . The f o u r t h v a r i a b l e o f t h e t h i r d r e c o r d is a n
a l p h a n u m e r i c v a r i a b l e , read u s i n g a 12A4 f o r m a t , t o s p e c i f y i f c o r r e c t i o n s due t o a
c e n t e r - o f - g r a v i t y o f f s e t are t o be computed i n LINEAR or i n t h e u s e r - s u p p l i e d a e r o d y -
namic s u b r o u t i n e CCALC. The v a r i a b l e LOGCG d e f a u l t s t o a s t a t e t h a t c a u s e s t h e aero-
dynamic r e f e r e n c e p o i n t o f f s e t c a l c u l a t i o n s t o be p e r f o r m e d by s u b r o u t i n e s w i t h i n
LINEAR. Any of t h e f o l l o w i n g s t a t e m e n t s i n t h e LOGCG f i e l d w i l l c a u s e LINEAR n o t t o
make t h e s e c o r r e c t i o n s :
NO CG CORRECTIONS BY LINEAR
The s t a t e , c o n t r o l , a n d o b s e r v a t i o n v a r i a b l e s t o be u s e d i n t h e o u t p u t formula-
t i o n of t h e l i n e a r i z e d s y s t e m a r e d e f i n e d i n records t h a t e i t h e r f o l l o w t h e l a s t of
t h e p r e v i o u s l y d e s c r i b e d sets o f records on t h e same f i l e , are stored on a separate
f i l e , o r are i n p u t t h r o u g h t h e t e r m i n a l . I f they are i n p u t through t h e terminal,
t h e y w i l l b e stored i n a f i l e s p e c i f i e d by t h e u s e r . The number of records i n t h e
s t a t e , c o n t r o l , a n d o b s e r v a t i o n v a r i a b l e d e f i n i t i o n s e t i s d e t e r m i n e d by t h e number
of s u c h v a r i a b l e s d e f i n e d by t h e u s e r .
The s t a t e s t o be u s e d i n t h e o u t p u t f o r m u l a t i o n of t h e l i n e a r i z e d s y s t e m are
d e f i n e d i n t h e f i r s t set of r e c o r d s i n t h e s t a t e , c o n t r o l , a n d o b s e r v a t i o n v a r i a b l e
definitions. The f i r s t record of t h i s s e t , as shown i n t a b l e 1, d e f i n e s t h e number
of s t a t e s t o be u s e d ( N U M S A T ) , t h e f o r m u l a t i o n o f t h e s t a t e e q u a t i o n (EQUAT), a n d
w h e t h e r t h e n o n d i m e n s i o n a l s t a b i l i t y d e r i v a t i v e s w i t h respect t o a n g l e of a t t a c k a n d
a n g l e o f s i d e s l i p a r e t o be o u t p u t i n u n i t s o f reciprocal r a d i a n s or d e g r e e s . The
v a r i a b l e EQUAT i s read u s i n g a n A4 f o r m a t a n d i s t e s t e d a g a i n s t t h e f o l l o w i n g l i s t :
36
t
NONSTANDARD
NON-STANDARD
GENERALIZED
EXTENDED
I f EQUAT m a t c h e s t h e f i r s t f o u r c h a r a c t e r s of a n y of t h e l i s t e d words, t h e o u t p u t
f o r m u l a t i o n of t h e s t a t e e q u a t i o n i s
.
Cx = A ' x + B'u
DEGREES
DGR
The n e x t s e t of records i n t h e s t a t e , c o n t r o l , a n d o b s e r v a t i o n v a r i a b l e d e f i n i -
t i o n s a r e t h o s e d e f i n i n g t h e v a r i a b l e s t o be u s e d i n t h e c o n t r o l v e c t o r of t h e o u t p u t
model. The f i r s t record of t h i s s e t d e f i n e s t h e number of c o n t r o l parameters t o be
u s e d (NUMSUR). The r e m a i n i n g records d e f i n e t h e names of t h e s e v a r i a b l e s (CONTROL),
t h e i r l o c a t i o n (LOCCNT) i n t h e common b l o c k /CONTRL/ ( s e e t h e U s e r - S u p p l i e d Sub-
r o u t i n e s s e c t i o n ) , t h e u n i t s a s s o c i a t e d w i t h t h e s e c o n t r o l v a r i a b l e s (CONVR), a n d
t h e i n c r e m e n t s (CNTINC) t o be u s e d w i t h t h e s e v a r i a b l e s i n d e t e r m i n i n g t h e B ' a n d
F ' matrices.
37
p a r t i c u l a r l y when t h e u s e r attempts t o e s t a b l i s h c o n t r o l v a r i a b l e i n i t i a l c o n d i t i o n s
when u s i n g t h e untrimmed a n a l y s i s p o i n t d e f i n i t i o n o p t i o n .
DEGREES
DGR
RAD I ANS
RAD
I f CONVR a g r e e s w i t h t h e f i r s t f o u r c h a r a c t e r s o f e i t h e r o f t h e f i r s t t w o names, it
i s assumed t h a t t h e c o n t r o l v a r i a b l e i s s p e c i f i e d i n u n i t s o f d e g r e e s . I f CONVR
a g r e e s w i t h t h e f i r s t f o u r c h a r a c t e r s o f e i t h e r of t h e l a s t two l i s t e d names, it i s
assumed t h a t t h e c o n t r o l v a r i a b l e is s p e c i f i e d i n u n i t s of r a d i a n s . N o u n i t s are
assumed i f CONVR d o e s n o t a g r e e w i t h any o f t h e l i s t e d names. When it i s assumed
t h a t t h e c o n t r o l v a r i a b l e i s s p e c i f i e d i n u n i t s o f r a d i a n s , t h e i n i t i a l v a l u e of t h e
control variable is converted t o degrees before being written t o t h e p r i n t e r f i l e .
The f i n a l s e t o f records i n t h e s t a t e , c o n t r o l , a n d o b s e r v a t i o n v a r i a b l e d e f i n i -
t i o n s p e r t a i n t o t h e s p e c i f i c a t i o n of parameters associated w i t h t h e o b s e r v a t i o n vec-
t o r , o b s e r v a t i o n e q u a t i o n , a n d o b s e r v a t i o n parameters. The f i r s t record of t h i s set
d e f i n e s t h e number o f o b s e r v a t i o n v a r i a b l e s ( N U M W C ) t o be u s e d i n t h e o u t p u t l i n e a r
model a n d t h e f o r m u l a t i o n of t h e o u t p u t e q u a t i o n (EQUAT). The r e m a i n i n g r e c o r d s i n
t h i s s e t s p e c i f y t h e v a r i a b l e s t o be i n c l u d e d i n t h e o b s e r v a t i o n v e c t o r (MEASUREMENT)
a n d any p o s i t i o n i n f o r m a t i o n (PARAM) t h a t may be r e q u i r e d t o compute t h e o u t p u t model
f o r a s e n s o r n o t located a t t h e v e h i c l e c e n t e r of g r a v i t y .
The v a r i a b l e u s e d t o s p e c i f y t h e f o r m u l a t i o n of t h e o b s e r v a t i o n e q u a t i o n (EQUAT)
i s compared w i t h t h e same l i s t o f names u s e d t o d e t e r m i n e t h e f o r m u l a t i o n of t h e
state equation. I f it i s d e t e r m i n e d t h a t t h e g e n e r a l i z e d f o r m u l a t i o n i s desired, t h e
observation equation
y = H'x + Gx
.+ F'u
i s u s e d . O t h e r w i s e , t h e s t a n d a r d f o r m u l a t i o n i s assumed, a n d t h e f o r m of t h e obser-
v a t i o n equation used is
y = Hx + Fu
38
1
I
included in the formulation of the output observation vector. If the parameter name
is not recognized, an error message is printed and the parameter named is ignored.
The three variables represented by PARAM(1), PARAM(2), and PARAM(3) provide the x-
axis, y-axis, and z-axis locations, respectively, of the measurement with respect to
the vehicle center of gravity if the selected observation is one of the following:
ax,i
an,i
h,i
The unit associated with these variables is feet. If the selected observation var-
iable is not in the preceding list, the PARAM variables are not used. The sole
exception to this occurs when Reynolds number is requested as an observation vari-
able. In that case, PARAM(1) is used to specify the characteristic length. When no
value is input for PARAM(11, the mean aerodynamic chord c is used as the character-
istic length.
There is one record in the trim parameter specification set that is associated
with the subroutine UCNTRL (described in the User-Supplied Subroutines section).
This record specifies the limits to be used for the trim parameters fie, tia, fir,and
6thr representing the longitudinal, lateral, directional, and thrust trim parameters,
respectively. The units associated with these parameters are defined by the imple-
mentation of UCNTRL.
The first record of the set of additional surface specifications defines the
number of additional controls to be included in the list of recognized control names
(NUMXSR). The purpose of defining these additional controls is to allow the user
to set such variables as landing gear position, wing sweep, or flap position. The
controls are only defined in the additional surface specification records; actual
control positions are defined in the analysis point definition records. If such
controls are defined, the records defining them will have the format specified in
table 1. The control variable name (ADDITIONAL SURFACE), location (LOCCNT) in the
common block /CONTRG/, and the units associated with this control variable (CONVR)
are specified for each additional control.
39
T e s t Case Specification
I n g e n e r a l , s e t t i n g o b s e r v a t i o n v a r i a b l e s a n d t i m e d e r i v a t i v e s of t h e s t a t e v a r i -
a b l e s h a s l i t t l e e f f e c t . However, f o r some o f t h e t r i m o p t i o n s d e f i n e d i n t h e Anal-
y s i s P o i n t D e f i n i t i o n s e c t i o n , Mach number a n d l o a d f a c t o r are used. The t h r u s t t r i m
parameter o n l y a f f e c t s t h e s p e c i f i c power t r i m . F o r t h e untrimmed o p t i o n , t h e
i n i t i a l v a l u e s of t h e s t a t e a n d c o n t r o l v a r i a b l e s d e t e r m i n e t h e a n a l y s i s p o i n t com-
pletely. F o r a l l o t h e r t r i m o p t i o n s , o n l y c e r t a i n s t a t e s are n o t varied; a l l con-
t r o l s c o n n e c t e d t o t h e c o n t r o l a n d e n g i n e models a r e v a r i e d .
I n t e r a c t i v e D a t a Input
Upon s t a r t i n g program e x e c u t i o n , L I N E A R w i l l a s k t h e u s e r :
40
3) DATA I S ON VARIOUS FILES
The d a t a i s separated i n t o t h e s i x s e c t i o n s d e s c r i b e d p r e v i o u s l y :
1. Vehicle t i t l e information,
2. v e h i c l e geometry a n d m a s s p r o p e r t i e s ,
3. S t a t e , c o n t r o l , and o b s e r v a t i o n v a r i a b l e d e f i n i t i o n s ,
4. L i m i t s f o r t h e t r i m parameters,
5. Additional c o n t r o l s u r f a c e d e f i n i t i o n s , and
6. T e s t case s p e c i f i c a t i o n s .
41
When i n p u t t i n g t h e t i t l e d a t a , t h e program r e a d s c h a r a c t e r s t r i n g s of 80 c h a r -
a c t e r s . When p r o m p t i n g f o r v e h i c l e mass and geometry d a t a , t h e program r e a d s a
f l o a t i n g p o i n t f i e l d . An example d a t a prompt i s as f o l l o w s :
VARIABLE so-and- SO
I S AN I N V A L I D STATE PARAMETER
42
To change the perturbation step size for any of the state variables, the user should
enter "Y" and, after being prompted, the variable name to be updated and the desired
step size.
For the interactive input of the control variables, similar prompts are given
with one major difference: after each variable name is input, the program prompts
for the location of the variable in the common block /CONTRL/ (the named common block
/CONTRL/ reserves 30 locations for control surface variable values used as interface
to the user-supplied aerodynamic model). The program also prompts for the units to
be used in calculations involving the control surface:
1) NONE
2) DEGREES
3) RADIANS
The units should be consistent with the calculations in UCNTRL. The program performs
transformations based on the surface type for the printer file only. No other con-
trol surface transformations are performed. Again, the derivative step size can be
changed for individual variables specified by the user.
For the interactive input of the observation vector, similar prompts are given
with a few variations. The forms available for the observation equation are
For variables defined in the observation vector as being offset from the vehicle cen-
ter of gravity, the program will prompt for the offset in the x, y, and z stability
axes. For any variables that are calculated based on some reference value, such as
Reynolds number, the program prompts for the correct value when the name is entered.
Again, the step size for derivative extraction can be modified f o r any observation
variable. Valid observation variable names are listed in appendix C.
If selected to be input from the terminal, the program will prompt the user for
the limits to be used for the trim parameters de, 6,, 6,, 6th' which represent the
longitudinal, lateral, directional, and thrust trim parameters, respectively. The
units associated with these parameters are defined by the implementation of UCNTRL.
(See app. J of this report for details.) An example prompt is as follows:
After the trim axis parameter limits are defined, the program prompts
43
A t this time, t h e u s e r c a n d e f i n e a d d i t i o n a l c o n t r o l s t o be i n c l u d e d i n t h e l i s t of
r e c o g n i z e d c o n t r o l names. The p u r p o s e o f d e f i n i n g t h e s e a d d i t i o n a l s u r f a c e s i s t o
a l l o w t h e u s e r t o s e t s u c h v a r i a b l e s as l a n d i n g g e a r p o s i t i o n , wing sweep, or f l a p
position. The c o n t r o l s u r f a c e name, l o c a t i o n i n common /CONTFU/, and u n i t s are
d e f i n e d h e r e f o r e a c h s u r f a c e ; a c t u a l c o n t r o l s u r f a c e p o s i t i o n s are d e f i n e d d u r i n g
analysis point definition.
The p o i n t a t which t h e n o n l i n e a r s y s t e m e q u a t i o n s a r e l i n e a r i z e d is r e f e r r e d t o
as t h e a n a l y s i s or t r i m point. T h i s c a n r e p r e s e n t a t r u e s t e a d y - s t a t e c o n d i t i o n on
t h e s p e c i f i c t r a j e c t o r y ( a p o i n t a t which t h e r o t a t i o n a l a n d t r a n s l a t i o n a l accelera-
tions are z e r o ) or a t o t a l l y a r b i t r a r y s t a t e on a t r a j e c t o r y . LINEAR a l l o w s t h e user
t o select from a v a r i e t y of a n a l y s i s p o i n t s . W i t h i n t h e program, t h e s e a n a l y s i s
p o i n t s a r e r e f e r r e d t o as trim c o n d i t i o n s , a n d s e v e r a l o p t i o n s a r e a v a i l a b l e t o
t h e user.
I f t h e u s e r i s d e f i n i n g t h e t r i m c o n d i t i o n s i n t e r a c t i v e l y , i n s t e a d of r e a d i n g t h e
d a t a f r o m a f o r m a t t e d f i l e , t h e p r o g r a m w i l l prompt:
1) NO T R I M
2) STRAIGHT AND LEVEL FLIGHT
3) LEVEL TURN
4) PUSH-OVER/PULL-UP
5) THRUST STABILIZED TURN
6) BETA
7) SPECIFIC POWER
F o r a l l of t h e a n a l y s i s p o i n t d e f i n i t i o n o p t i o n s , any s t a t e or c o n t r o l parameter
may be i n p u t a f t e r t h e r e q u i r e d data i s d e f i n e d when t h e program prompts as f o l l o w s :
44
The u s e r s h o u l d e n t e r t h e name of t h e v a r i a b l e t o be i n i t i a l i z e d or t y p e HELP t o
l i s t t h e v a r i a b l e s t h a t may be i n i t i a l i z e d .
I f a l e v e l t u r n t r i m i s s e l e c t e d , t h e u s e r c a n s p e c i f y t h e d i r e c t i o n of t h e t u r n
by e n t e r i n g "TURN R I G H T " or "TURN LEFT" when prompted t o i n i t i a l i z e any o t h e r var-
i a b l e s . T h i s is e s p e c i a l l y u s e f u l f o r a s y m m e t r i c a i r c r a f t . D e f a u l t is "TURN RIGHT".
VEHICLE GEOMETRY
STATE VECTOR
OBSERVATION VECTOR
CONTROL VECTOR
CASE INPUT F I L E
STABILITY AND CONTROL DERIVATIVES
SURFACES TO BE SET
NO FURTHER CHANGES
45
GEOMETRY AND MASS DATA FOR:
U S E R ' S GUIDE
4=40000 0
46
b
A l l s u r f a c e s i n t h e c o n t r o l model a r e i n i t i a l l y z e r o u n l e s s s p e c i f i e d i n t h e case
input f i l e . S u r f a c e s n o t i n t h e c o n t r o l v e c t o r c a n be s e t by c h o o s i n g o p t i o n "7"
when prompted f o r parameter changes. The program w i l l prompt f o r t h e f i l e name con-
t a i n i n g t h e s u r f a c e s t h a t c a n be s e t f o r e a c h c a s e . I f t h e user wishes t o input t h e
s u r f a c e names i n t e r a c t i v e l y , t h e program w i l l prompt f o r t h e number of s u r f a c e s t o be
added, t h e i r names, l o c a t i o n i n common /CONTIU/ and u n i t s u s e d i n s u b r o u t i n e UCNTRL.
I f t h e l o c a t i o n i n conunon /CONTRL/ h a s a l r e a d y been d e s i g n a t e d f o r a n o t h e r s u r f a c e ,
t h e program w i l l s a v e t h e o r i g i n a l name and i g n o r e any o t h e r name i n p u t f o r t h a t
l o c a t i o n , a n d so i n f o r m t h e u s e r .
The n e x t l i n e d e t e r m i n e s t h e number of c o n t r o l s u r f a c e s u s e d f o r c o n t r o l d e r i v a -
tives. The u n i t s of each of t h e c o n t r o l s u r f a c e s , where a p p l i c a b l e , are l i s t e d n e x t
t o t h e s u r f a c e name as w e l l a s t h e l o c a t i o n of t h e s u r f a c e i n t h e common /CONTIU/.
The u n i t s d e f i n e d f o r each s u r f a c e c o r r e s p o n d t o t h e u n i t s d e f i n e d i n u s e r - s u p p l i e d
s u b r o u t i n e CCALC.
47
p u t f i l e s from LINEAR i s t h e s t a b i l i t y a n d c o n t r o l d e r i v a t i v e f i l e t h a t c a n be u s e d
l a t e r t o a n a l y z e t h e s a m e case. (See t h e Aerodynamic Model s e c t i o n f o r more i n f o r -
mation.) When u s i n g a l i n e a r i z e d s e t o f s t a b i l i t y a n d c o n t r o l d e r i v a t i v e s f r o m a
p r e v i o u s case, t h e u s e r must be c a r e f u l t o d e f i n e a c o n t r o l v e c t o r t h a t i s c o n s i s t e n t
w i t h t h e d e r i v a t i v e set. If a s u r f a c e i s d e f i n e d t h a t does n o t have c o r r e s p o n d i n g
c o n t r o l d e r i v a t i v e s on t h e f i l e , t h a t s u r f a c e ' s e f f e c t s on t h e f o r c e s a n d moments
w i l l n o t be i n c l u d e d i n t h e l i n e a r s y s t e m model c a l c u l a t e d . The u s e r s h o u l d a l s o be
aware t h a t L I N E A R e x p e c t s t o h a v e c o n t r o l o v e r a l l a x e s t o d e t e r m i n e a trimmed s t a t e 4
I f t h e r e a r e no n o n z e r o c o n t r o l d e r i v a t i v e s i n a g i v e n a x i s , it is h i g h l y l i k e l y t h a t
L I N E A R w i l l f a i l t o t r i m ; a n d it may e v e n g e n e r a t e a f a t a l error i n t h e n o n l i n e a r
equation solver (generally a floating-point overflow).
AERODYNAMIC MODEL
A s a l r e a d y s t a t e d , t h e r e a r e t w o methods f o r c a l c u l a t i n g t h e t o t a l f o r c e a n d
moment c o e f f i c i e n t s . One method r e l i e s on a f u l l n o n l i n e a r a e r o d y n a m i c model t o pro-
v i d e t h e s t a b i l i t y and c o n t r o l d e r i v a t i v e s . T h e s e d e r i v a t i v e s are s t o r e d i n common
b l o c k s i n t h e u s e r - s u p p l i e d r o u t i n e ADATIN a n d u s e d i n CCALC t o c a l c u l a t e t h e t o t a l
f o r c e a n d moment c o e f f i c i e n t s u s i n g t h e s t a t e a n d c o n t r o l s u r f a c e values c a l c u l a t e d
i n LINEAR. These s u b r o u t i n e s a n d t h e a e r o d y n a m i c model a r e t h e same o n e s u s e d i n t h e
manned s i m u l a t i o n s a t Ames-Dryden.
DO YOU W I S H TO
I f t h e i n t e r n a l r o u t i n e s a r e t o b e u s e d t o c a l c u l a t e t h e d e r i v a t i v e s , t h e program
w i l l prompt
48
DO YOU W I S H TO
, ~f t h e d e r i v a t i v e s are s t o r e d on a f i l e ( f o r m a t f o r t h e f i l e i s g i v e n i n app. G ) , t h e
program w i l l prompt f o r a f i l e name. A t t h i s p o i n t , t h e u s e r c a n modify t h e data
i n t e r a c t i v e l y by c h o o s i n g one of t h e f o l l o w i n g o p t i o n s :
I f o p t i o n "8" i s c h o s e n , t h e c o n t r o l s u r f a c e s d e f i n e d a r e l i s t e d , and t h e u s e r
c a n d e f i n e o t h e r s u r f a c e s i n common /CONTRL/ f o r which d e r i v a t i v e s e x i s t .
ROLL MOMENT D E R I V A T I V E S
49
4) VELOCITY ( FT/SEC) -0.000000115
5) MACH NUMBER -0.000119522
6) ALPHA ( DEG/SEC 1 0.000362335
7) BETA ( DEG/SEC ) -0.140983000
6=0.003
OUTPUT FILES
The g e n e r a l - p u r p o s e a n a l y s i s f i l e c o n t a i n s t h e f o l l o w i n g : t h e t i t l e o f t h e cas
b e i n g analyzed; t h e state, c o n t r o l , and o b s e r v a t i o n v a r i a b l e s used t o d e f i n e t h e
state-space model; a n d t h e s t a t e a n d o b s e r v a t i o n matrices c a l c u l a t e d i n L I N E A R . Th
C a n d G matrices a r e p r i n t e d o n l y i f t h e u s e r h a s s e l e c t e d a n appropriate f o r m u l a -
t i o n of t h e s t a t e a n d o b s e r v a t i o n e q u a t i o n s . The o u t p u t f o r t h i s f i l e i s a s s i g n e d
t o FORTRAN d e v i c e number 15. An example g e n e r a l - p u r p o s e a n a l y s i s f i l e is p r e s e n t e d
i n a p p e n d i x H c o r r e s p o n d i n g t o t h e f o r m a t o f t a b l e 2.
50
TABLE 2. - ANALYSIS FILE FORMAT
Variable Format
Title of the case
Title of the aircraft
Case number
Number of states, controls, and outputs
State equation formulation
Observation equation formulation
51
TABLE 3. - ANALYSIS FILE OUTPUT
MATRIX STRUCTURE
Size of m a t r i x O u t p u t formulation
A = [ 7 x 7 ] A = [ 7 x 5 ]
[ 7 x 2 1
B = [ 7 x 3 ] B = [ 7 x 3 ]
D = [ 7 x 6 1 D = [ 7 x 5 ]
[ 7 x 1 1
C = [ 7 x 7 1 C = [ 7 x 5 1
[ 7 x 2 1
H = [ I 1 x 71 H = [ I 1 x 51
[ l l x 21
F = [11 x 31 F = [11 x 31
E = [11 x 61 E = [11 x 51
[ l l x 11
52
The s e c o n d o u t p u t f i l e , which i s a s s i g n e d t o FORTRAN device u n i t number 3 , con-
' t a i n s t h e values calculated i n L I N E A R d e s c r i b i n g e a c h case. The f i r s t s e c t i o n o f
I t h i s f i l e c o n t a i n s a l i s t i n g o f t h e i n p u t d a t a d e f i n i n g t h e a i r c r a f t ' s geometry a n d
m a s s p r o p e r t i e s , v a r i a b l e names d e f i n i n g t h e state-space model, a n d v a r i o u s c o n t r o l
s u r f a c e l i m i t s c h a r a c t e r i s t i c of t h e g i v e n a i r c r a f t . Appendix I p r e s e n t s a n example
p r i n t e r output f i l e . '
The s e c o n d s e c t i o n of t h i s f i l e c o n t a i n s t h e t r i m c o n d i t i o n s of t h e a i r c r a f t a t
t h e p o i n t of i n t e r e s t . T h e s e c o n d i t i o n s i n c l u d e t h e t y p e of t r i m b e i n g attempted,
w h e t h e r t r i m w a s a c h i e v e d , a n d parameters d e f i n i n g t h e trim c o n d i t i o n .
I f t r i m w a s n o t a c h i e v e d , p, q, r ,
.
The t h i r d s e c t i o n o f t h i s o u t p u t f i l e c o n t a i n s t h e n o n d i m e n s i o n a l s t a b i l i t y a n d
c o n t r o l d e r i v a t i v e s f o r t h e t r i m c o n d i t i o n c a l c u l a t e d . The s t a t i c margin of t h e
a i r c r a f t a t t h e given f l i g h t condition is a l s o printed.
1 The f i n a l s e c t i o n of t h i s o u t p u t f i l e c o n t a i n s t h e s t a t e a n d o b s e r v a t i o n matrices
L
f o r t h e given f l i g h t condition. The f o r m u l a t i o n of t h e s t a t e e q u a t i o n s a n d o n l y t h e
terms o f t h e matrices c h o s e n by t h e u s e r t o d e f i n e t h e model are p r i n t e d .
The f o u r t h o u t p u t f i l e i s t h e s e t of l i n e a r i z e d s t a b i l i t y a n d c o n t r o l d e r i v a t i v e s
f o r e a c h case as d e f i n e d i n t h e Aerodynamic Model s e c t i o n .
USER-SUPPLIED SUBROUTINES
T h e r e are f i v e s u b r o u t i n e s t h a t must be s u p p l i e d by t h e u s e r t o i n t e r f a c e L I N E A R
w i t h a s p e c i f i c a i r c r a f t ' s s u b s y s t e m models: A D A T I N , CCALC, IFENGN, UNCTKL, a n d
MASGEO. The f i r s t t w o s u b r o u t i n e s comprise t h e aerodynamic model. The s u b r o u t i n e
IFENGN i s u s e d t o provide a n i n t e r f a c e between LINEAR a n d any e n g i n e m o d e l i n g rou-
t i n e s t h e u s e r may w i s h t o i n c o r p o r a t e . UCNTRL c o n v e r t s t h e t r i m parameters u s e d
by LINEAR i n t o c o n t r o l s u r f a c e d e f l e c t i o n s f o r t h e a e r o d y n a m i c m o d e l i n g r o u t i n e s .
MASGEO e n a b l e s t h e mass a n d geometry p r o p e r t i e s t o change as t h e a i r c r a f t c o n f i g u r a -
t i o n does ( f o r example, w i t h wing s w e e p ) . The u s e of t h e s e s u b r o u t i n e s i s i l l u s t r a -
t e d i n f i g u r e 3 which shows t h e program f l o w a n d t h e i n t e r a c t i o n of LINEAR w i t h t h e
user-supplied subroutines. These s u b r o u t i n e s a r e described i n d e t a i l on t h e f o l -
lowing pages. Examples of t h e s e s u b r o u t i n e s c a n be found i n a p p e n d i x J.
53
DES -- --25.0
5.43
-
-
180
n
*
DAS -- 20.0
__
4.0
-
-- 180
- n
*
- 1-
4.0
-- 1
180
n
*
I -1.0 I
Figure 3. P r o g r a m f l o w diagram
showing communication with u s e r -
supplied subroutines.
Aerodynamic Model S u b r o u t i n e s
E x t e r n a l l y , ADATIN h a s no i n t e r f a c e t o t h e p r o g r a m L I N E A R . The s u b r o u t i n e i s
c a l l e d o n l y o n c e when t h e a e r o d y n a m i c d a t a is i n p u t o r d e f i n e d . The c a l l i n g p r o g r a n
h a s t o p r o v i d e ADATIN w i t h t h e i n p u t d e v i c e s it r e q u i r e s , b u t no o t h e r accommodation
i s n e c e s s a r y . The a e r o d y n a m i c data i s communicated f r o m ADATIN t o CCALC t h r o u g h
named common b l o c k s t h a t o c c u r o n l y i n t h e s e t w o r o u t i n e s .
54
I Externally, ADATIN has no interface to the program LINEAR. The subroutine is
called only once when the aerodynamic data is input or defined. The calling program
'has to provide ADATIN with the input devices it requires, but no other accommodation
is necessary. The aerodynamic data is communicated from ADATIN to CCALC through
named common blocks that occur only in these two routines.
The interface between CCALC and the calling proyram is somewhat more complicated.
However, the interface is standard and this feature provides a framework about which
a general purpose tool can be built. This interface consists of several named com-
mon blocks which are used to pass state variables, air data parameters, surface posi-
tions, and force and moment coefficients between CCALC and the calling program.
CCALC is executed whenever new aerodynamic coefficients are required (for example,
once per frame for a real-time simulation).
The main transfer of data into the subroutine CCALC is through five named common
blocks. These common blocks contain the state variables, air data parameters, and
surface positions. The transfer of data from CCALC is through a named common block
containing the aerodynamic force and moment coefficients. The details of these com-
mon blocks follow.
The common block /DRVOUT/ contains the state variables and their derivatives with
respect to time. The structure of this common block is given as follows:
COMMON /DRVOUT/ T I
P I Q r R I
V , ALP , BTA ,
THA PSI PHI
H I X r Y I
TDOT ,
PDOT , QDOT , RDOT ,
VDOT , ALPDOT, BTADOT,
THADOT, PSIDOT, PHIDOT,
HDOT , XDOT , YDOT
The body axis rates p, q, and r appear as P, Q , and R, respectively. Total velocity
is represented by the variable V and the altitude by H. Angle of attack (ALP), angle
of sideslip ( B T A ) , and their derivatives with respect to time (ALPDOT and BTADOT,
respectively) are also contained within this common block.
The common block /SIMOUT/ contains the main air-data parameters required for the
aerodynamic model. The variables in this common block are as follows:
UB , VB , WB ,
VEAS, VCAS
Mach number and dynamic pressure are the first two entries in the common block sym-
bolized by AMCH and QBAR, respectively. The body axis velocities u, v, and w are
included as UB, VB, and WB, respectively.
55
The /CONTRL/ common block contains the surface position information. The exact
definition of each of the elements used for a particular aerodynamic model is deter
mined by the implementer of that model. The structure of the common block /CONTRL/
is as follows:
COMMON /CONTRL/ DC ( 3 0 )
The common block /DATAIN/ contains geometry and mass information. The first
three variables in the common block, S, B, and CBAR, represent wing area, wing span
and mean aerodynamic chord, respectively. The vehicle mass is represented by AMSS.
The structure of common /DATAIN/ is as follows:
The displacements are defined along the vehicle body axis with DELX, DELY, and DELZ
representing the displacements for the x, y, and z axes, respectively.
The output common block /CLCOUT/ contains the variables representing the aero-
dynamic moment and force coefficients:
The variables CL, CM, and CN are the symbols for the rolling moment (CQ), pitching
moment (Cm), and yawing moment (C,) coefficients, respectively; these terms are bod
axis coefficients. The stability axis forces are represented by CDI coefficient of
drag (eD); CLFT, coefficient of lift (CL); and CYI sideforce coefficient (Cy).
The LINEAR program attempts to trim the given condition using control inputs
similar to that of a pilot: longitudinal stick, lateral stick, rudder, and throttl
The UCNTRL subroutine uses these trim output control values to calculate actual sur
face deflections and power lever angles for the given aircraft (fig. 2). The loca-
tion of each surface and power lever angle in the /CONTRL/ common block is specifie
by the user in the input file (maximum of 30 surfaces). The limits for the control
parameters in pitch, roll, yaw, and thrust are user specified and must agree in uni
with the calculations in CCALC.
The common block /CTPARM/ contains the four trim parameters that must be relate
to surface deflections in the subroutine UCNTRL:
56
IThe o u t p u t from UCNTRL i s v i a t h e common b l o c k /CONTRL/ d e s c r i b e d p r e v i o u s l y i n t h e
Aerodynamic Model S u b r o u t i n e s s e c t i o n . The v a r i a b l e s DES, DAS, DRS, a n d THRSTX a r e
used t o t r i m t h e l o n g i t u d i n a l , l a t e r a l , d i r e c t i o n a l , and t h r u s t axes, r e s p e c t i v e l y .
I F o r a n a i r c r a f t u s i n g f e e d b a c k ( s u c h as a s t a t i c a l l y u n s t a b l e v e h i c l e ) , s t a t e
v a r i a b l e s a n d t h e i r d e r i v a t i v e s a r e a v a i l a b l e i n t h e common b l o c k /DRVOUT/. However,
t h i s c o n t r o l model must c o n t a i n no s t a t e s of i t s own. I f parameters o t h e r t h a n s t a t e
v a r i a b l e s a n d t h e i r t i m e d e r i v a t i v e s a r e r e q u i r e d f o r f e e d b a c k , t h e u s e r may access
them u s i n g t h e common b l o c k /OBSERV/ described l a t e r i n t h e Mass a n d Geometry Model
S u b r o u t i n e s s e c t i o n of t h i s report.
E n g i n e Model S u b r o u t i n e s
p W h i l e t h e common b l o c k s t r u c t u r e w i t h i n LINEAR i s d e s i g n e d f o r e n g i n e s t h a t do
n o t i n t e r a c t w i t h t h e v e h i c l e a e r o d y n a m i c s , p r o p e l l e r - d r i v e n a i r c r a f t c a n be e a s i l y
modeled by communicating t h e appropriate parameters from t h e e n g i n e model IFENGN t o
t h e a e r o d y n a m i c m o d e l CCALC.
57
block. Changes in center-of-gravity position are passed in the /CGSHFT/ common
block, and inertia changes are passed in the /DATAIN/ coinmon block.
Care must be taken when using the subroutine MASGEO in combination with selecti
an observation vector that contains measurements away from the center of gravity.
measurements are desired at a fixed location on the vehicle, such as a sensor plat-
form or nose boom, the moment arm to the new center-of-gravity location must be
recomputed as a result of the center-of-gravity shift for accurate results. This c
be accomplished by implementing the moment arm calculations in one of the user
subroutines and passing the new moment arm values through the /OBSERV/ common block
The common block /OBSERV/ allows the user to access all the observation vari-
ables during trim as well as to pass parameters associated with the observations
back to LINEAR. The common block /OBSERV/ contains two single-precision vectors:
OBVEC(120), and PARAM(120,6). A list of the available observations and parameters
given in appendix C. Access to the observation variables allows the users to imple
ment trim strategies that are functions of observations, such as gain schedules and
surface management schemes. The parameters associated with the observations are us
primarily to define the moment arm from the center of gravity to the point at which
the observation is to be made. If the user subroutine MASGEO is used to change the
center-of-gravity location and observations are desired at fixed locations on the
vehicle, then the moment arm from the new center-of-gravity location to the fixed
sensor location ((x, y, z ) , in feet) must be computed in one of the user subroutine
and passed back in the first three elements of the PARAM vector associated with the
desired observation (PARAM(n = 1 to 3 1 , where n is the number of the desired obserb
tion). Additional information on observations and parameters can be found in the
State, Control, and Observation Variable Definitions section.
CONCLUDING REMARKS
The FORTRAN program LINEAR was developed to provide a flexible, powerful, and
documented tool to derive linear models for aircraft stability analysis and control
law design. This report discusses the interactive LINEAR program, describing the
interfaces to user-supplied subroutines and input files. The output from LINEAR is
also described. Examples of the user-supplied subroutines are presented in appen-
dix J. A microfiche listing of the program for a VAX 11/750 (Digital Equipment
Corporation, Maynard, Massachusetts) with the VMS operating system is included with
this report. The program is written in standard FORTRAN 77 so that it may be porte
to other computers without modification.
The program LINEAR numerically determines a linear system model using nonlinear
equations of motion and a user-supplied nonlinear aerodynamic model. LINEAR is als
capable of extracting linearized engine effects, such as net thrust, torque, and
gyroscopic effects and including these effects in the linear system model. The poi
at which this linear system model is defined is determined either by completely spe
ifying the state and control variables or by specifying an analysis point on a tra-
jectory, selecting a trim option, and directing the program to determine the contro
variables and remaining state variables.
58
II LINEAR h a s several f e a t u r e s t h a t make it u n i q u e among t h e l i n e a r i z a t i o n programs
common i n t h e a e r o s p a c e i n d u s t r y . The m o s t s i g n i f i c a n t of t h e s e f e a t u r e s i s f l e x i -
, bility. By g e n e r a l i z i n g t h e s u r f a c e d e f i n i t i o n s a n d making no a s s u m p t i o n s of sym-
metric mass d i s t r i b u t i o n s , t h e program c a n be applied t o any a i r c r a f t i n any p h a s e
of f l i g h t e x c e p t hover. The u n i q u e t r i m m i n g c a p a b i l i t y , p r o v i d e d by means of a u s e r -
s u p p l i e d s u b r o u t i n e , allows u n l i m i t e d p o s s i b i l i t i e s of trimming s t r a t e g i e s a n d s u r -
f a c e s c h e d u l i n g , which a r e p a r t i c u l a r l y i m p o r t a n t f o r a s y m m e t r i c a l v e h i c l e s and
a i r c r a f t having multiple surfaces a f f e c t i n g a s i n g l e axis. The f o r n u l a t i o n of t h e
e q u a t i o n s of motion permit t h e i n c l u s i o n of t h r u s t - v e c t o r i n g e f f e c t s . The a b i l i t y
t o s e l e c t , w i t h o u t program m o d i f i c a t i o n , t h e s t a t e , c o n t r o l , a n d o b s e r v a t i o n v a r i -
a b l e s f o r t h e l i n e a r models, combined w i t h t h e l a r g e number of o b s e r v a t i o n q u a n t i t i e s
a v a i l a b l e , a l l o w s any a n a l y s i s problem t o be a t t a c k e d w i t h ease.
T h i s r e p o r t documents t h e u s e of t h e program L I N E A R , d e f i n i n g t h e e q u a t i o n s a n d
t h e methods u s e d t o implement t h e program. The trirnming c a p a b i l i t i e s of L I N E A R are
d i s c u s s e d from b o t h t h e o r e t i c a l a n d i m p l e m e n t a t i o n p e r s p e c t i v e s . The i n p u t and o u t -
p u t f i l e s are d e s c r i b e d i n d e t a i l . The u s e r - s u p p l i e d s u b r o u t i n e s r e q u i r e d f o r LINEAR
a r e d i s c u s s e d and sample s u b r o u t i n e s are p r e s e n t e d .
59
APPENDIX A: CORRECTION TO AERODYNAMIC COEFFICIENTS FOR A CENTER O F GRAVITY
NOT AT THE AERODYNAMIC REFERENCE POINT
where
Ar = [Ax Ay Az]T
i s t h e d i s p l a c e m e n t of t h e aerodynamic r e f e r e n c e p o i n t from t h e v e h i c l e c e n t e r of
g r a v i t y , and
F = [X Y ZIT
La, + Ay Z - AZ Y
M = Mar + AZ X - AX Z
Nar + AX Y - Ay X ,
x = ~ s ( - c ,cos a + CL s i n a)
Y = $cy
60
E q u a t i o n s o b t a i n e d by s u b s t i t u t i n g t h e s e e q u a t i o n s i n t o t h e d e f i n i t i o n of t h e t o t a l
a e r o d y n a m i c moment e q u a t i o n a n d a p p l y i n g t h e d e f i n i t i o n s of t h e t o t a l aerodynamic
moments, r e s u l t i n
E x p r e s s i o n s f o r t o t a l a e r o d y n a m i c moment c o e f f i c i e n t s c o r r e c t e d t o t h e v e h i c l e c e n t e r
o f g r a v i t y c a n be d e r i v e d as f o l l o w s :
Az
‘11 = ‘gar +
(-cD s i n a - cL cos a) --
b
Cm = C m a r + Az -
- (-cD COS a + cL s i n a) - Ax (-cD s i n a - CL cos a )
C C
T h e s e c a l c u l a t i o n s are n o r m a l l y p e r f o r m e d w i t h i n LINEAR i n t h e s u b r o u t i n e
CGCALC. However, i f t h e u s e r e l e c t s , t h e c a l c u l a t i o n c a n be performed w i t h i n t h e
u s e r - s u p p l i e d a e r o d y n a m i c model CCALC.
61
APPENDIX B: ENGINE TORQUE AND GYROSCOPIC EFFECTS MODEL
Torque a n d g y r o s c o p i c e f f e c t s r e p r e s e n t ( a f t e r t h r u s t ) t h e main c o n t r i b u t i o n s of
t h e e n g i n e s t o t h e a i r c r a f t dynamics. The t o r q u e e f f e c t s arise due t o t h r u s t vec-
t o r s n o t a c t i n g a t t h e v e h i c l e c e n t e r of g r a v i t y . The g y r o s c o p i c e f f e c t s are a con-
s e q u e n c e of t h e i n t e r a c t i o n of t h e r o t a t i n g mass of t h e e n g i n e a n d t h e v e h i c l e dyna-
mics. T h e s e e f f e c t s can be e i t h e r major or v i r t u a l l y n e g l i g i b l e , d e p e n d i n g on t h e
vehicle.
The t h r u s t v e c t o r f o r t h e i t h e n g i n e Fp c a n be d e f i n e d as
i
62
1 where I Fpi r e p r e s e n t s t h e magnitude of t h e t h r u s t due t o t h e i t h e n g i n e , the
I a n g l e f r o m t h e t h r u s t a x i s of t h e e n g i n e t o a p l a n p a r a l l e l t o t h e x-y body a x i s
I
plane, and si t h e a n g l e f r o m t h e p r o j e c t i o n of FPi o n t o t h e p l a n e p a r a l l e l t o t h e
I x-y body a x i s p l a n e t o t h e x body a x i s .
X f
The t o r q u e due t o o f f s e t f r o m t h e c e n t e r of g r a v i t y of t h e i t h e n g i n e A T is
Oi
t h e n g i v e n by
63
I
The t o t a l t o r q u e due t o e n g i n e s o f f s e t from t h e c e n t e r of g r a v i t y of t h e v e h i c l e -r0
i s g i v e n by
n n
T~ = AT^^ = (Ari x AFp 1
i
i=1 i=1
where n i s t h e number of e n g i n e s .
I F o r t h e case of v e c t o r e d t h r u s t , t h e e q u a t i o n s f o r t o r q u e p r o d u c e d a t t h e v e h i c l t
c e n t e r of g r a v i t y from t h e i t h e n g i n e AT^^
are somewhat more c o m p l i c a t e d . Figure 7
s c h e m a t i c a l l y r e p r e s e n t s a n e n g i n e w i t h t h r u s t v e c t o r i n g whose c e n t e r of g r a v i t y i s
l o c a t e d a t A r i r e l a t i v e t o t h e v e h i c l e ' s c e n t e r of g r a v i t y .
center
c e n t e r of g r a v i t y b e i n g t h e o r i g i n of t h i s l o c a l c o o r d i n a t e system. The t h r u s t i s
a l s o assumed t o be v e c t o r e d a t a n g l e s q i a n d <ir e l a t i v e t o t h e l o c a l c o o r d i n a t e
a x e s , w i t h q i b e i n g t h e a n g l e from t h e t h r u s t v e c t o r t o t h e e n g i n e x-y p l a n e a n d ci
t h e a n g l e from t h e p r o j e c t i o n of t h e t h r u s t v e c t o r o n t o t h e e n g i n e x-y p l a n e t o t h e
l o c a l x a x i s . Thus, l e t t i n g FA F' and F' r e p r e s e n t t h e x, y , a n d z t h r u s t
'Xi* pyi* Pz1
components i n t h e l o c a l e n g i n e c o o r d i n a t e s y s t e m , r e p e c t i v e l y , t h e s e terms c a n be
d e f i n e d i n terms of t h e t o t a l t h r u s t f o r t h e i t h e n g i n e Fpi a n d t h e a n g l e s q i and
51 as
where
To t r a n s f o r m t h i s e q u a t i o n f r o m t h e i t h e n g i n e a x i s s y s t e m t o t h e body a x i s s y s t e m ,
t h e transformation matrix
I
si si sin ci cos si
I
COS E i COS -sin
is used.
-sin ~i 0 cos E i
so that
FPzi
= I F~~ I (-cos oi cos ci sin ci - s i n qi cos Ei)
a n d t h e t o t a l t o r q u e due t o t h r u s t v e c t o r i n g is
n n
65
The g y r o s c o p i c e f f e c t s due t o t h e i n t e r a c t i o n of t h e r o t a t i n g mass of t h e e n g i n e s
a n d t h e v e h i c l e dynamics c a n be d e r i v e d f r o m t h e e q u a t i o n f o r t h e r a t e of change of
a n gu l a r moment um ,
T + w x(IeiWei)
g i = hei
I f it is assumed t h a t t h e a n g u l a r momentum of t h e e n g i n e i s c o n s t a n t , t h e n
Tgi = 0 x Iei
(
Two terms, Iei a n d we
i' r e m a i n t o be d e f i n e d i n t h e e q u a t i o n f o r t h e gyroscopic
moment p r o d u c e d by t h e i t h e n g i n e . Once a g a i n , s i m p l i f y i n g a s s u m p t i o n s a r e made. 1.
i s assumed t h a t t h e i n e r t i a t e n s o r of t h e e n g i n e c o n t a i n s a s i n g l e n o n z e r o e n t r y ,
*ei i s t h e i n e r t i a of t h e i t h e n g i n e a t t h e l o c a t i o n of t h e i t h e n g i n e ,
where I
o r i e n t e d w i t h t h e local x a x i s c o i n c i d e n t w i t h t h e r o t a t i o n a l v e l o c i t y of t h e e n g i n e
The r o t a t i o n a l v e l o c i t y of t h e e n g i n e h a s components i n t h e x, y , a n d z body a x e s
( P e i f qei, a n d rei' r e s p e c t i v e l y ) so t h a t
- T
Q i - ( P e i qei r e i )
where
66
with I wei I b e i n g t h e t o t a l a n g u l a r v e l o c i t y of t h e i t h e n g i n e .
COS E i 0 sin
REi = 0 1
- s i n &i 0 c o Os E l I
so t h a t
1
cos S i c o s ~i -sin Si cos Si sin E=
-sin 0 cos E i
Because
67
and
a n d t h e matrices are u n i t a r y ,
si
cos cos ~i sin Si
cos
cos ci
si
-sin
0
1
Lcos si sin E= sin ti s i n ci cos Ei J
Therefore,
Iei = Ixei
c o s 2 ~icos ti sin si sin2 si cos2 E = - s i n ~i cos sin 6
with
68
Thus, t h e g y r o s c o p i c moment i n d u c e d by t h e i t h e n g i n e T ~ c. a n be expanded t o
1
-
=gi -
69
APPENDIX C: OBSERVATION VARIABLE NAMES RECOGNIZED BY LINEAR
P i t c h acceleration ra d / s ec QDOT
PITCH ACCELERATION
D e r i v a t i v e s of s t a t e v a r i a b l e s ( c o n t i n u e d )
V e l o c i t y north €t/sec X
. XDOT
V e l o c i t y east f t/sec Y
. YDOT
-
Accelerations
x body a x i s AX
acceleration LONGITUDINAL ACCEL
X -AX1 S ACCELERATION
X A X I S ACCELERATION
X-BODY A X I S ACCEL
X BODY A X I S ACCEL
y body a x i s aY AY
acceleration Y-AXIS ACCELERATION
Y A X I S ACCELERATION
Y-BODY A X I S ACCEL
Y BODY A X I S ACCEL
LATERAL ACCELERATION
LAT ACCEL
LATERAL ACCEL
z body a x i s AZ
acceleration Z-BODY A X I S ACCEL
2 BODY A X I S ACCEL
y body a x i s ANY
accelerometer a t Y-AXIS ACCELEROMETER
v e h i c l e center of Y A X I S ACCELEROMETER
gravity
z body a x i s 53 AN Z
accelerometer a t Z-AXIS ACCELEROMETER
v e h i c l e center of Z A X I S ACCELEROMETER
gravity
71
Observation variable units Symbol Alphanumeric descriptors
Accelerations (continued)
normal acceleration 5
7 an AN
NORMAL ACCELERATION
NOWiAL ACCEL
GS
G'S
*y body axis 9
accelerometer not at
vehicle center of
gravity
*z body axis 4
accelerometer not at
vehicle center of
gravity
*normal accelerometer 4
not at vehicle
center of gravity
72
~
Flightpath-related parameters
73
Observation variable Units Symbol Alphanumeric descriptors
Flightpath-related parameters (continued)
~~ ~
..
Vertical acceleration ft/sec2 h VERTICAL ACCELERATION
HDOTDOT
H-DOT -DOT
HDOT-DOT
Energy-related terms
~~
Specific energy ft ES ES
E-SUB-S
S P E C I F I C ENERGY
Force parameters
74
Observation variable Units Symbol Alphanumeric descriptors
75
Observation v a r i a b l e Units Symbol Alphanumeric d e s c r i p t o r s
O t h e r m i s c e l l a n e o u s parameters ( c o n t i n u e d )
+Reynolds number is d e f i n e d i n t e r m s of a n a r b i t r a r y u n i t of l e n g t h
t h a t i s i n p u t by t h e u s e r . This length is input using the f i r s t
-
f l o a t i n g p o i n t f i e l d ; however, i f no v a l u e i s i n p u t , c i s u s e d as t h e
d e f a u l t value.
76
1 APPENDIX D: STATE VARIABLE NAMES RECOGNIZED BY LINEAR
Velocity €t/sec V V
VELOCITY
VEL
VTOT
Displacement east ft Y Y
-
77
APPENDIX E: ANALYSIS POINT DEFINITION IDENTIFIERS
Untrimmed UNTKIhMED
NO TRIM
NONE
NOTRIM
Beta BETA
SIDESLIP
Each of these analysis point definitions except the untrimmed, beta, and specific
power options has two suboptions associated with it. The suboptions are requested
using alphanumeric descriptors read using an A4 format. These suboptions are defined
I 78
in the Analysis Point Definition section of this report. The following list defines
these suboptions and the alphanumeric descriptors associated with each:
Straight-and-level:
Alpha-trim ALP
ALPH
ALPHA
Mach-trim MACH
AMCH
Pushover-pullup:
Alpha-trim ALP
ALPH
ALPHA
Load-factor-trim LOAD
GS
G'S
AN
Level turn:
Alpha-trim ALP
ALPH
ALPHA
Load-factor-trim LOAD
GS
G'S
AN
Load-factor-trim LOAD
GS
G'S
AN
79
APPENDIX F: EXAMPLE INPUT FILE
The following listing is an example of an input file to LINEAR. This file was
used with the example subroutines listed in appendix J to generate the analysis and
line printer files shown in appendixes H and I, respectively. The formats specified
in table 1 would be the same whether each type of input has its own file or all of
the data is in one file.
USER'S GUIDE
6.080000E+02 4.280000E+01 1.595000E+01 4.5000003+04
2.8700003+04 1.651OOOE+O5 1~879000E+05-5~20000OE+020. 0.
I 0. 0. 0. CCALC WILL CALCULATE CG CORRECTIONS
-1.000000E+01 4.000000E+01
4STAN RADI
ALPHA
, Q
THETA
VEL
3
ELEVATOR 5
THROTTLE 12
~ SPEED BRAKE 10
2 STAN
AN
AY
-2.900E+00 5.430E+00-4.000E+00 4.000E+00-3~250E+00 3~250E+00-1~000E+00
1.000E+00
I
0 ADDITIONAL SURFACES
I WINDUP TURN
ALPHA
H 20000 .o
MACH 0.90
AN 3.00
BETA 0.0
I NEXT
LEVEL FLIGHT
ALPHA
H 20000.0
MACH 0.9
GAMMA 10.0
END
This input file is €or a case called USER'S GUIDE (record 1). The project title
is input from the terminal as described in the Data Input section. Record 2 speci-
fies the mass and geometric properties of the vehicle as
S = 608 ft2
b = 42.8 ft
80
c' = 15.95 f t
w = 45,000 l b s
Record 3 d e f i n e s t h e moments a n d p r o d u c t s of i n t e r t i a of t h e v e h i c l e as
I, = 28,700 slug-ft2
Iy = 165,100 slug-ft2
I, = 187,900 slug-ft2
I X Y= 0.0 slug-f t 2
Iyz = 0.0 sl u g - f t 2
Record 4 d e f i n e s t h e l o c a t i o n o f t h e aerodynamic r e f e r ce p o i n t t o be c o i n i d e n t
w i t h t h e v e h i c l e c e n t e r of g r a v i t y o f t h e n o n l i n e a r a e r o d y n a m i c model by s e t t i n g
Ax = 0 . 0 f t
Ay = 0.0 ft
Az = 0 . 0 f t
Record 5 d e f i n e s t h e a n g l e - o f - a t t a c k r a n g e o f t h e a e r o d y n a m i c model.
Record 6 s p e c i f i e s t h a t t h e r e w i l l be f o u r s t a t e v a r i a b l e s i n t h e l i n e a r
model, t h a t t h e fOrmUlatiOn of t h e s t a t e e q u a t i o n w i l l be i n t h e s t a n d a r d form
(2 = A x + B u), a n d t h a t t h e n o n d i m e n s i o n a l s t a b i l i t y a n d c o n t r o l d e r i v a t i v e s w i t h
respect t o a n g l e o f a t t a c k a n d a n g l e of s i d e s l i p s h o u l d be s c a l e d i n r a d i a n s ' l . The
n e x t f o u r records d e f i n e t h e o u t p u t f o r m u l a t i o n of t h e s t a t e v e c t o r t o be
u =
revator
1throttle
speed brake
81
I
l and that elevator, throttle, and speed brake are located in DC(5), DC(12), and DC(10)
of the /CONTROL/ common block.
Record 15 specifies that two observation variables will be used, and that the
observation equation will be in the standard form,
y = Hx + Fu
The next two records (16 and 17) define the elements of the output vector to be
Record 18 specifies the ranges for the trim parameters DES, DAS, DRS, and THRSTX,
used to trim the longitudinal, lateral, and directional axes, and thrust, respec-
tively. The ranges for these parameters are defined by record 20 to be
The first three parameters essentially represent stick and rudder positions and are
so specified because of the implementation of the subroutine UCNTRL (discussed in
I app. J). The thrust trim parameter is specified in this manner because of the imple-
I mentation of UCNTRL. Speed brake is scheduled when THRSTX < 0 and thrust is com-
manded when THRSTX > 0.
The next seven records (20 to 26) define an analysis point option. These records
~
h = 20,000 ft
I4 = 0.9
and
B = 0.00
The second record of this set (record 21) indicates which level turn suboption is
I
requested. The alphanumeric descriptor ALPHA indicates that angle of attack is to be
varied until the specified 3.0-g turn is achieved. The final record of this analysis
point option definition set contains the keyword NEXT to indicate both an end to the
current analysis point option definition and that another analysis point option defi-
nition follows.
82
I The f i n a l s i x records ( r e c o r d s 27 t o 3 2 ) d e f i n e a s t r a i g h t - a n d - l e v e l
point option a t
analysis
h = 20,000 f t
M = 0.9
and
y = 10.00
83
APPENDIX G: EXAMPLE L I N E A R I Z E D S T A B I L I T Y AND CONTROL DERIVATIVE F I L E
CLO -4.02966D-05
ROLL RATE (RAD/SEC) -2.00000D-01
P I T C H RATE (RAD/SEC) .00000D+00
YAW RATE (RAD/SEC) 1.50990D-01
VELOCITY ( FT/SEC 1 -1.26696D-07
MACH NUMBER -1.31375D-04
ALPHA ( RAD .00000D+00
BETA (RAD) -1.33450D-01
ALTITUDE (FT) .00000D+00
ALPHA DOT (RAD/SEC) .00000D+00
BETA DOT (RAD/SEC) .00000D+00
ELEVATOR 5 .00000D+00
THROTTLE 12 .00000D+00
SPEED BRAKE 10 .OOOOOD+OO
P I T C H MOMENT DERIVATIVES
CMO 4.22040D-02
ROLL RATE (RAD/SEC) .00000D+00
P I T C H RATE (RAD/SEC) 3.89527D+00
YAW RATE (RAD/SEC) .OOOOOD+OO
VELOCITY (FT/SEC -3.28490D-06
MACH NUMBER -3.40620D-03
ALPHA ( RAD I -1 - 6 8 8 1 9 D - 0 1
BETA (RAD) .00000D+00
ALTITUDE (FT) .00000D+00
ALPHA DOT (RAD/SEC) -1.18870D+01
BETA DOT (RAD/SEC) .0000OD+00
I ELEVATOR 5 -6.95281D-01
THROTTLE 12 .00000D+00
SPEED BRAKE 10 -4.17500D-0 1
84
YAW MOMENT DERIVATIVES
CNO 2.25747D-04
ROLL RATE (RAD/SEC) -3.37217D-02
PITCH RATE (RAD/SEC) .00000D+00
YAW RATE (RAD/SEC) -4.04710D-01
VELOCITY ( FT/SEC) 3.21400D-07
MACH NUMBER 3 332681)-04
ALPHA (RAD) .OOOOOD+OO
BETA (RAD) 1.29960D-01
ALTITUDE (FT) .00000D+00
ALPHA DOT (RAD/SEC) .00000D+00
BETA DOT (RAD/SEC) .OOOOOD+OO
ELEVATOR 5 .00000D+00
THROTTLE 12 .OOOOOD+OO
SPEED BRAKE 10 .OOOOOD+OO
CDO 1.08760D-02
ROLL RATE (RAD/SEC) .OOOOOD+OO
PITCH RATE (RAD/SEC) .00000D+00
YAW RATE (RAD/SEC) .00000D+00
VELOCITY (FT/SEC) .00000D+00
MACH NUMBER .OOOOOD+OO
ALPHA (RAD) 3.72570D-01
BETA (RAD) .00000D+00
ALTITUDE (FT) .00000D+00
ALPHA DOT (RAD/SEC) .00000D+00
BETA DOT (RAD/SEC) .OOOOOD+OO
ELEVATOR 5 4.38318D-02
THROTTLE 12 .OOOOOD+OO
SPEED BRAKE 10 6.49355D-02
L I F T FORCE DERIVATIVES
CLFTO 1.57360D-01
ROLL RATE (RAD/SEC) .00000D+00
PITCH RATE (RAD/SEC) -1.72315D+O1
YAW RATE (RAD/SEC) .00000D+00
VELOCITY ( FT/SEC ) 1.45286D-05
MACH NUMBER 1.50651D-02
ALPHA (RAD) 4.87061D+00
BETA (RAD) .00000D+00
ALTITUDE ( FT .00000D+00
ALPHA DOT (RAD/SEC 1.72315D+01
BETA DOT (RAD/SEC .00000D+00
ELEVATOR 5 5.72950D-01
THROTTLE 12 .00000D+00
SPEED BRAKE 10 3.74913D-02
85
SIDE FORCE DERIVATIVES
CY0 5.32725D-04
ROLL RATE (RAD/SEC) .00000D+00
PITCH RATE (RAD/SEC) .OOOOOD+00
YAW RATE (RAD/SEC) .00000D+00
VELOCITY ( FT/SEC 1 .00000D+00
MACH NUMBER .00000D+OO
ALPHA (RAD) .OOOOOD+OO
BETA (RAD) -9.74030D-01
ALTITUDE (FT) .00000D+OO
ALPHA DOT (RAD/SEC) .00000D+00
BETA DOT (RAD/SEC) .00000D+00
ELEVATOR 5 .OOOOOD+OO
THROTTLE 12 0 0 0 OOD+O 0
SPEED B M E 10 .OOOOOD+OO
86
S T A B I L I T Y AND CONTROL D E R I V A T I V E S FOR CASE # 2
L I N E A R I Z E R T E S T AND DEMONSTRATION C A S E S
ROLL MOMENT D E R I V A T I V E S
CLO 1.25377D-16
ROLL RATE RAD/SEC 1 -2.00000D-01
P I T C H RATE RAD/SEC ) .00000D+00
YAW RATE RAD/SEC ) 1.50990D-01
VELOCITY ( FT/SEC 1 .OOOOOD+OO
MACH NUMBER .00000D+00
ALPHA .00000D+00
BETA -1.33450D-01
ALTITUDE .00000D+00
ALPHA DOT (RAD/SEC) .OOOOOD+OO
BETA DOT (RAD/SEC) .OOOOOD+OO
ELEVATOR 5 .00000D+00
THROTTLE 12 .00000D+00
S P E E D BRAKE 10 0 00 0 0 D+O 0
P I T C H MOMENT D E R I V A T I V E S
CMO 4.22040D-02
ROLL RATE (RAD/SEC) .00000D+00
P I T C H RATE (RAD/SEC) 3.89530D-00
YAW RATE (RAD/SEC) .OOOOOD+OO
VELOCITY ( FT/SEC 1 -7.79749D-10
MACH NUMBER -8.08541D-07
ALPHA ( RAD 1 -1.68819D-01
BETA (RAD) .00000D+00
ALTITUDE (FT) .00000D+00
ALPHA DOT (RAD/SEC) -1.18870D+01
BETA DOT (RAD/SEC) .OOOOOD+00
ELEVATOR 5 -6.95279D-01
THROTTLE 12 -000 0 D+O
0 0
S P E E D BRAKE 10 -4.17500D-01
YAW MOMENT DERIVATIVES
CNO 1.22535D-16
ROLL RATE (RAD/SEC) -3.37217D-02
PITCH RATE (RAD/SEC) .OOOOOD+OO
YAW RATE (RAD/SEC) -4.04710D-01
VELOCITY (FT/SEC) .OOOOOD+OO
MACH NUMBER .00000D+00
ALPHA (RAD) .OOOOOD+OO
BETA (RAD) 1.29960D-01
ALTITUDE (FT) 00 00 0 D+O 0
ALPHA DOT (RAD/SEC) .00000D+00
BETA DOT (RAD/SEC) .OOOOOD+OO
ELEVATOR 5 .OOOOOD+OO
THROTTLE 12 .00000D+OO
SPEED BRAKE 10 .OOOOOD+OO
CDO 1.08760D-02
ROLL RATE (RAD/SEC) .OOOOOD+OO
PITCH RATE (RAD/SEC) - 0 0 0 0 0 D+O 0
YAW RATE (RAD/SEC) .00000D+00
VELOCITY (FT/SEC) .00000D+00
MACH NUMBER .00000D+00
ALPHA (RAD) 3.72570D-01
BETA (RAD) .00000D+00
ALTITUDE (FT) .OOOOOD+OO
ALPHA DOT (RAD/SEC) .00000D+00
BETA DOT (RAD/SEC) .00000D+00
ELEVATOR 5 4.38313D-02
THROTTLE 12 .00000D+00
SPEED BRAKE 10 6.49346D-02
L I F T FORCE DERIVATIVES
CLFTO 1.57360D-01
ROLL RATE (RAD/SEC) .00000D+00
PITCH RATE (RAD/SEC) -1.72320D+Ol
YAW RATE (RAD/SEC) .00000D+00
VELOCITY (FT/SEC) 3.59263D-09
MACH NUMBER 3.72529D-06
ALPHA ( RAD 1 4.87061D+OO
BETA ( RAD .00000D+00
ALTITUDE (FT) .000OOD+00
ALPHA DOT (RAD/SEC) 1*72320D+Ol
BETA DOT (RAD/SEC) .OOOOOD+OO
ELEVATOR 5 5.72961D-01
THROTTLE 12 .00000D+00
SPEED BRAKE 10 3.74913D-02
L
SIDE FORCE DERIVATIVES
CY0 4.15737D-16
ROLL RATE (RAD/SEC) .OOOOOD+00
PITCH RATE (RAD/SEC) .OOOOOD+OO
YAW RATE (RAD/SEC) .OOOOOD+00
VELOCITY ( FT/SEC) .00000D+00
MACH NUMBER .00000D+00
ALPHA ( RAD .OOOOOD+OO
BETA (RAD) -9.74030D-01
ALTITUDE (FT) .OOOOOD+OO
ALPHA DOT (RAD/SEC) .00000D+00
BETA DOT (RAD/SEC) .00000D+00
ELEVATOR 5 .OOOOOD+OO
THROTTLE 12 .OOOOOD+OO
SPEED BmKE 10 .OOOOOD+OO
I
I
89
APPENDIX H: EXAMPLE OUTPUT ANALYSIS F I L E
The following is an example analysis file. This file was produced using the
example input file listed in appendix F and the example user-supplied subroutines
listed in appendix J.
L I N E A R I Z E R T E S T AND DEMONSTRATION C A S E S
~ U S E R ' S GUIDE
STATE VARIABLES
I Q
I
ALPHA
THETA
VEL
= 0.465695D-01
= 0.921683D-01
= 0.159885D-01
= 0.933232D+03
RADIANS
RADIANS/SECOND
RADIANS
FEET/SECOND
CONTROL VARIABLES
ELEVATOR = 0.538044D-01
THROTTLE = 0.214105D+00
S P E E D BRAKE = 0.000000D+00
OBSERVATION VARIABLES
AN = 0.300163D+01 GS
AY = 0.941435D+00 GS
I A-MATRIX FOR: DX / DT = A * X + B * U + D * V
B-MATRIX FOR: DX / DT = A * X + B * U + D * V
D-MATRIX FOR: DX / DT = A * X + B * U + D * V
0.343642D-07 0~000000D+00 0.737378D-06 O~OOOOOOD+OO 0~000000D+00
0.113192D-06 0~000000D+00-0~242885D-050.605694D-05 0~000000D+00
O~OOOOOOD+OO O~00000OD+00 O.OOOOOOD+OO O~OOOOOOD+OO O~OOOOOOD+OO
0.714203D-03 0.398492D-06 0.332842D-04 O~OOOOOOD+OO O ~ O O O O O O D + O O
H-MATRIX FOR: Y = H * X + F * U + E * V
0*351752D+02 0.277556D-16 0.150046D-02 0.640771D-02
0~000000D+00 0~000000D+00-0~150534D-010.446789D-10
F-MATRIX FOR: Y = H * X + F * U + E * V
E-MATRIX FOR: Y = H * X + F * U + E * V
91
T E S T CASE ................................................ 2
X - DIMENSION = 4 U -
DIMENSION = 3 Y DIMENSION = - 2
STATE EQUATION FORMULATION: STANDARD
OBSERVATION EQUATION FORMULATION: STANDARD
STATE VARIABLES
CONTROL VARIABLES
ELEVATOR = 0.637734D-01
THROTTLE = 0.225092D+00
S P E E D BRAKE = 0.000000D+00
OBSERVATION VARIABLES
AN = 0.985228D+00 GS
AY = 0.990655D-14 GS
A-MATRIX FOR: DX / DT = A * X + B * U + D * V
0.120900D+01 0.100000D+01-0.575730D-02-0.701975D-04
0.149189D+01-0.22145lD+Ol 0.189640D-01 0.231368D-03
0.000000D+00 0.100000D+01 0.000000D+00 0.000000D+00
0.576868D+02 0.000000D+00-0.316251D+O2-0.460435D-02
5-MATRIX FOR: DX / DT = A * X + B * U + D * V
I 92
1 D-MATRIX FOR: DX / DT + A * X + B * U + D * V
H-MATRIX FOR: Y = H * X + F * U
F-MATRIX FOR: Y = H * X + F * U
0.411323D+01 0.492845D-03 0*263288D+00
0~00OOOOD+OO O ~ O O O O O O D + O O O.OOOOOOD+OO
E-MATRIX FOR: Y + H * X + F * U + E * V
93
APPENDIX I: EXAMPLE P R I N T E R OUTPUT F I L E
The following listings are printer output files generated by L I N E A R using the
I example input file in appendix F and the example user-supplied subroutines in appen-
dix J.
I
V E H I C L E WEIGHT
28700.000 (SLUG-FT**2)
IX
IY 165 100.0 00 (SLUG-FT**2 )
I2 187900.000 (SLUG-FT**2 )
I xz -520.000 (SLUG-FT**2 )
IXY 0.000 (SLUG-FT**2 )
I
IYZ 0.000 (SLUG-FT**2)
94
,
ALPHA
Q
THETA
VEL
DX/DT = A * X + B * U
FOR THE P R O J E C T :
U S E R ' S GUIDE
LOCATION I N /CONTROL/
ELEVATOR 5
THROTTLE 12
S P E E D BRAKE 10
FOR THE P R O J E C T :
U S E R ' S GUIDE
AN
AY
Y = H * X + F * U
95
T R I M CONDITIONS FOR CASE # 1
L I N E A R I Z E R T E S T AND DEMONSTRATION CASES
T R I M ACHIEVED
C O E F F I C I E N T OF L I F T - 0.40 144
C O E F F I C I E N T OF DRAG - 0.03058
LIFT ( LBS I = 13474 1.68807
DRAG (LBS 1 - 10265.70661
ALTITUDE (FT) - 20000.00000
MACH - 0.90000
VELOCITY ( FT/SEC ) - 933.23196
EQUIVALENT A I R S P E E D (KTS - 403.42303
SPEED O F SOUND (FT/SEC) -
- 1036.92440
GRAVITATIONAL ACCEL (FT/SEC**2) = 32.11294
NORMAL ACCELERATION (G-S - 3.00163
LOAD FACTOR - 2.99995
DYNAMIC PRESSURE (LBS/FT**2) = 552.05302
DENSITY (SLUG/FT**3 = 0.00126774
WEIGHT ( @ A L T I T U D E ) (LBS) - 44914.60434
BETA ( DEG - 0.03193
ALPHA ( DEG - 2 -66824
PHI ( DEG - 70.62122
THETA ( DEG - 0 -91607
ALTITUDE RATE ( FT/SEC - 0.00000
GAMMA (DEG) - 0.00000
ROLL RATE ( DEG/SEC 1 - -0.0895 1
P I T C H RATE ( DEG/SEC ) - 5 28086
YAW RATE ( DEG/SEC ) - 1.85749
THRUST (LBS) - 10277.03515
S U M O F THE SQUARES - 0.00000
T R I M PARAMETERS
CONTROL VARIABLES
ELEVATOR - 0 05380
THROTTLE - 0 - 214 10
S P E E D BRAKE (DEG) -- 0.00000
OBSERVATION VARIABLES
AN - 3.00163339 GS
AY - .94136286 GS
96
n n n n n o n n n n n n n n
m o o o o o o o o o o 0 0 0
N 0 0 0 0 0 0 m 0 0 0 0 0 0
w F 0 0 0 0 0 0 0 0 0 0 0 0 0
w v N 0 0 0 0 0 0 * 0 0 0 0 0 0
r o w
0 0 0
1 + 1
n n n
0 0 0
l D O N
m o m
Ec
L,
H
4 r O r O r r * 0 0 r
.
0
. ...
N O *
- O- F
m o m
I
N O N
0 0 0
1 + 1
nnn
0 0 0
- o m
m o m
m o m
0 0 0
0 0 0
r + + +
n 0n 0
0
n
0 0 0 a:
0 0 0 Ec
w
cn
0
...
0
0 0
0 0 0
~~
0
0
cn
a:
V
O r
0 0
+ I
W o n
z
HEc
0 0
0 0
x z o m
v w O F
Ecr:
?7
E2 LD 0-3
m r O r F * O r 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
1 1 + 1 1 1 + 1 + + + ??? dp
m
5nn
0 0 0 m
0 0 0
0 0 0
0 0 0
999
0 0 0
cnz
HE
MATRIX A USING THE FORMULATION OF THE STATE EQUATION:
DX/DT = A * X + B * U + D * V
FOR CASE # 1
LINEARIZER TEST AND DEMONSTRATION CASES
DX/DT = A * X + B * U + D * V
FOR CASE # 1
LINEARIZER TEST AND DEMONSTRATION CASES
98
0 0 0 0
0 0 0 0
0 0 0 0
2
H
0 0 0 0
0 0 0 0
0 0 0 0
il
il
0
a
....
0 0 0 0
0 0 0 0
0 0 0 0
o m o o
0 0 0 0
+ I + +
nnnn
0 - 0 0
o m o o
O L D 0 0
o m 0 0
....
0 0 0 0
O L D 0 0
0 0 0 0
LDmo-
0 0 0 0
m I 1 + 1
nnnn
ii comohl
t-coo-
mcooco
P N O N
m - o m
0
a ????
w 3 I 0 0 0 0
E * N I
C n
w +
X
B 3 OOOLD
0 0 0 0
m
:
+ + + I
nnnn
O O O N
o o o m
0 0 0 -
oooco
o o o m
....
O
0 0 0 0
O O ~
[I)
wm
5
0 0 0 0
0 0 0 0
v) +n n
+a+n
+
ii 0 0 0 0
0 0 0 0
0 0 0 0
$I
n
0 ....
0 0 0 0
u
z
H
0 0 0 0
....
0 0 0 0
0 0 0 0
'p I 0 0 0 0
x
B
V
w
br4
o n m m
l%H w w
p 1 3
w u
2 ..
gi?a 4 4
X
aw
o m
PI
il
Ex w4
E 3 4 OIB 3
99
MATRIX H USING THE FORMULATION OF THE OBSERVATION EQUATION:
Y = H * X + F * U + E * V
FOR CASE # 1
LINEARIZER TEST AND DEMONSTRATION CASES
FOR CASE # 1
L I N E A R I Z E R TEST AND D E M O N S T R A T I O N C A S E S
100
1
0 0
+n +n
0 0
0 0
0 0
0 0
0 0
0
0
0 0
..
0
0
0 0
0 0
+n n
+
0 0
0 0
0 0
3: 0 0
u
E-c
H
!a
0
0
0 0
..
0
0
>
c
.30
w cn
0 0
w
X
+ H
X
I
n n
N O
+
B 3 A m o
'0
Erc c - 0
0
Erc
+
- 0
N O
0 0
..
I
X
c
3:
II 0.3
0 0
$I 4 - 1
w b b
X o m
B o m
o m
O N B
z
irj
3
o m
o m
0 0
.. 2!
0
0 0
0 0
+n n
+
0 0
E: 0 0
w u 0 0
X
E-r z 0 0
e:
0
r-0
0 0
I +
5N ..
0
0
0 0
0
0
h 3 a n
1-0
m o
0 0
r-0
I
..
r-0
m o
0 0
X I
5%
101
TRIM CONDITIONS FOR CASE # 2
LINEARIZER TEST AND DEMONSTRATION CASES
TRIM ACHIEVED
1 LOAD FACTOR
DYNAMIC PRESSURE
DENSITY
0.98803
552.05302
0.00126774
I WEIGHT (@ALTITUDE) 44914.60434
BETA 0.00000
ALPHA -0 72565
PHI 0 .ooooo
THETA 9.27435
I ALTITUDE RATE 162 05403
GAMMA 10.00000
I
ROLL RATE 0.00000
PITCH RATE 0.00000
YAW RATE 0 .ooooo
THRUST 10804.39673
0 .ooooo
I
, SUM OF THE SQUARES
102
I T R I M PARAMETERS
CONTROL VARIABLES
ELEVATOR - 0.06377
THROTTLE - 0.22509
S P E E D BRAKE - 0.00000
OBSERVATION VARIABLES
AN 0.98522771 GS
AY 0.00000000 GS
103
1 + + + + + + 1 + + +
a C l a a a a a a n a a
+ + +
Clap
1 - 0 0 0 0 0 0 0 0 0 0
0 0 0
m O O O O O O m O O O 0 0 0
w ~ 0 0 0 0 0 0 0 0 0 00
m o o o o o o w o o o
0 0
w u 0 0 0
a & .-??????????
Z 8 w o o o o o o m o o o 0 0 0
r O N
0 0 0
1 + 1
a n n
0 0 0
w o w
m o m
...
N o w
l-ol-
m o m
a a a n a a n ~ l a a a a n n
0 0 0 0 0 0 0 0 0 0 0 0 0 0
w o o o o o l - 0 0 0 0 r o o
1-ooooomoooo m o m
W 0 0 0 0 0 N 0 0 0 0 w o m
3
n
???????????
r O O O O O m O O O O
??P
*OLD
a n a n a a a a a n a
l n o o o o o o o o o o
ggg 3
U H m r ~ o o or m ~ ~ ~ ~ ~
m N 0 r - 0 0 0 m 0 0 0 0 0 0 a:
*
N
z E N l - 0 w 0 0 0 m 0 0 0 0 0 0
5
??????????? ???
W
m
3
3 r m 0 w 0 0 0 r 0 0 0 0 0 0 a
a:
V
d
N 0 0 0 0 l - r 0 0 r 0 r o r
8 O O O O r O O O O O O 0 0 0
1 + + + 1 1 1 + + + +
O O C l n Q P Q C l Q Q C l
o o o o m l - 0 0 0 0 0
AAA
0 0 0
w O m O m w N 0 0 l - 0 w o o
o o m o m m w o o a J o N o m
N 0 m 0 w N m 0 0 w 0 m o l -
????4????7? ???
w 0 m 0 w w r 0 0 r 0 w o w
I l l I I I
z
85:
0 0 0
e
9 2 2 2
nnn
0 0 0 m
W
0 0 0
5d 5w 0 0 0
45:
2%
...
0 0 0
0 0 0
0 0 0
B
u
w ?--- Y Y
b w
o n
i%H
b 3
W
w wu)
x m 4 H
B - u x
d c-‘”
a w
o m
E 3
104
MATRIX A USING THE FORMULATION OF THE STATE EQUATION:
DX/DT = A * X + B * U + D * V
F O R CASE # 2
L I N E A R I Z E R T E S T AND DEMONSTRATION CASES
DX/DT = A * X + B * U + D * V
F O R CASE # 2
L I N E A R I Z E R T E S T AND DEMONSTRATION C A S E S
105
0 0 0 0
+n n
+n+n
+
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
...
0
00090
0 0 0 0
0 0
o m o o
+
0 0 0 0
I
n n n n
++
o e o o
$
H
0 0 0 0
01d00
X o m o o
V
xa ....
0 0 0 0
01d00
0 0 0 0
LDmom
0 0 0 0
i1+1
n n n n
m m o i -
-n00
w
a
z
.. >
u
0
m
I ....
N
E
0 0 0 0
n I I
w
4
3
+ 2
a
w
3
u
e 0 0 0 0
M 0 0 0 0
m +n +n +n +n
+
X
4
w
0
0
0
0
0
0
0
0
0
0
0
0
w n 0 0 0 0
X
B
u
4
0
m
I ....
0
0
0
0
0
0
0
0
E
0 II ..
H
w
w
0 0 0 0
B V V
n w a 0 0 0 0
t l w
\ o n W P o m +a n
+ a+ n
0 0 0 0
+
E H
X a 3 M 0 0 0 0
a c3 11+1 0 0 0 0
w
X M
B -
i nnnn
0 - 0 0
coeocu
c3
z
0
0
0
0
0
0
0
0
0
0
0
0
a
aw >d0 c0000
e1-09
....
0
0
0
0
0
0
0
0
w
X
B
o m
E 3 m
X
I ....
m o o -
0m01-
0 0 0 0
0 0 0 0
c3 1
5M M
3 w
106
MATRIX H USING THE FORMULATION O F THE OBSERVATION EQUATION:
Y = H * X + F * U + E * V
F O R CASE # 2
L I N E A R I Z E R T E S T AND DEMONSTRATION CASES
Y = H * X + F * U + E * V
F O R CASE # 2
L I N E A R I Z E R T E S T AND DEMONSTRATION CASES
107
0 0
+n n
0 0
+
0 0
0 0
0 0
0 0
..
0
0
0 0
0
0
0 0
0 0
0 0
0 0
0 0
..
z ..
0
0
0
0
s H
a
0 0
w
u
&
0
z F
0 0
0 I +
H
H nn
1 0 0
2
w > $I
- 0
- 0
d o
n
m
m
0
u
w
0
m
I
..
- 0
N O
0 0
w
z +
N I
H w
F
O
3
C
20
F O d
0 0
LD + I
a n
!i o
o
o
w
w
w
sr
n
o
o
m
w
0
m 9?
I 0 0
sr
w s r
1:
H .. w
u
&
8w EI 1-0 0 0
b w
o n
& H
0 0
I
b!i
& +n +n
0 0
a 3 1 0 0 0 0
u G o
z. z
0 0
0 0
.. ..
0 0
0 0
0 0
zsr
4 4
108
TRIM CONDITIONS FOR CASE # 1
LINEARIZER TEST AND DEMONSTRATION CASES
TRIM ACHIEVED
109
T R I M PARAMETERS
CONTROL VARIABLES
ELEVATOR 0 -05380
THROTTLE 0.21410
S P E E D BRAKE (DEG 0.00000
OBSERVATION VARIABLES
AN - 3.00163339 GS
AY - .94136286 GS
TRIM ACHIEVED
111
T R I M PARAMETERS
CONTROL VARIABLES
ELEVATOR - 0.06377
THROTTLE - 0 22509
S P E E D BRAKE - 0 .ooooo
OBSERVATION VARIABLES
AN - 0.98522771 GS
AY - 0~00000000 GS
112
APPENDIX J: EXAMPLE USER-SUPPLIED SUBROUTINES
The following subroutines are examples of the user-supplied routines that provide
the aerodynamic, control, engine, and mass and geometry models to LINEAR. These sub-
routines are based on an F-15 simulation and are typical of the routines needed to
interface LINEAR to a set of nonlinear simulation models. These subroutines are
meant to show the use of the named common blocks to communicate between LINEAR and
the user's routines. These subroutines are used with all examples in this report.
Included with this report are microfiche listings of these Subroutines.
The following two subroutines define a linear aerodynamic model. Even though
this model is greatly simplified from the typical nonlinear aerodynamic model, the
example shows the functions of the subroutines ADATIN and CCALC.
SUBROUTINE ADATIN
C
c.... EXAMPLE AERODYNAMIC DATA DEFINITION (OR INPUT) SUBROUTINE
C
c.... ROUTINE TO DEFINE STABILITY AND CONTROL DERIVATIVES FOR THE
C AERODYNAMIC MODEL
C
C
C COMMON BLOCK TO COMMUNICATE AERODYNAMIC DATA BETWEEN THE
C SUBROUTINES ADATIN AND CCALC
C
C
COMMON /ARODAT/ CLB ,CLP ,CLR ,
CLDA ,CLDR ,CLDT ,
CMO ,CMA ,CMQ ,CMAD
CMDE ,CMSB ,
CNB ,CNP ,CNR
CNDA ,CNDR ,CNDT
CDO ,CDA ,CDDE ,CDSB
CLFTO ,CLFTA ,CLFTQ ,CLFTAD,
CLFTDE,CLFTSB,
CYB lCYDA ,CYDR ,CYDT
C
C.... ROLLING MOMENT DERIVATIVES.
C
C STABILITY DERIVATIVES WITH RESPECT TO
C SIDESLIP, ROLL RATE, YAW RATE .
C
CLB = -1.3345 D-01
CLP = -2.0000 D-01
CLR = 1.5099 D-01
C
C CONTROL DERIVATIVES WITH RESPECT TO
C AILERON, RUDDER, DIFFERENTIAL TAIL
C
113
CLDA = 2.6356 D-02
CLDR = -2.3859 D-03
CLDT = 4.0107 D-02
C
C.... PITCHING MOMENT DERIVATIVES.
C
C STABILITY DERIVATIVES WITH RESPECT TO ANGLE OF
C ATTACK, PITCH RATE, ANGLE OF ATTACK RATE
c
CMO = 4.2204 D-02
C
CMA = -1.6882 D-01
CMQ = 3.8953
CMAD = -1.1887 D+O1
C
C CONTROL DERIVATIVES WITH RESPECT TO
C ELEVATOR, SPEED BRAKE
C
CMDE = -6.9528 D-01
CMSB = -4.1750 D-01
C
c.... YAWING MOMENT DERIVATIVES.
C
C STABILITY DERIVATIVES WITH RESPECT TO
C SIDESLIP, ROLL RATE, YAW RATE
c
CNB = 1.2996 D-01
CNP = -3.3721 D-02
CNR = -4.0471 D-01
C
C CONTROL DERIVATIVES WITH RESPECT TO
C AILERON, RUDDER, DIFFERENTIAL TAIL
C
CNDA = 2.1917 D-03
CNDR = -6.9763 D-02
CNDT = 3.0531 D-02
C
c.... COEFFICIENT OF DRAG DERIVATIVES.
C
C STABILITY DERIVATIVES WITH RESPECT TO
C ANGLE OF ATTACK ...
C
CDO = 1.0876 D-02
C
CDA = 3.7257 D-01
114
C.... COEFFICIENT OF LIFT DERIVATIVES.
C
C STABILITY DERIVATIVES WITH RESPECT TO ANGLE OF
C ATTACK, PITCH RATE, ANGLE OF ATTACK RATE
C
CLFTO = 1.5736 D-01
C
CLFTA = 4.8706
CLFTQ = -1.7232 D+01
CLFTAW 1.7232 D+O1
C
C CONTROL DERIVATIVES WITH RESPECT TO
C ELEVATOR, SPEED BRAKE
C
CLFTDE= 5.7296 D-01
CLFTSB= 3.7492 D-02
C
C.... SIDEFORCE COEFFICIENT DERIVATIVES.
C
C STABILITY DERIVATIVES WITH RESPECT TO
C SIDESLIP
C
CYB = -9.7403 D-01
C
C CONTROL DERIVATIVES WITH RESPECT TO
C AILERON, RUDDER, DIFFENTIAL TAIL
C
CYDA = -1.1516 D-03
CYDR = -1.5041 D-01
CYDT = -7.9315 D-02
C
RETURN
END
SUBROUTINE CCALC
C
C.... EXAMPLE AERODYNAMIC MODEL.
C
C... ROUTINE TO CALCULATE THE AERODYNAMIC FORCE AND MOMENT COEFFICIENTS.
C
C COMMON BLOCKS CONTAINING STATE, CONTROL, AND AIR
C DATA PARAMETERS
C
C
COMMON /DRVOUT/ F(13),DF(13)
COMMON /CONTFS/ DC( 30 )
C
COMMON /DATAIN/ S,B,CBAR,AMSS,AIX,AIY,AIZ,AIXZ,AIXY,AIYZ,AIXE
COMMON /TRIGFN/ SINALP,COSALP,SINBTA,COSBTA,SINPHI,COSPHI,
SINPSI,COSPSI,SINTHA,COSTHA
COMMON /SIMOUT/ AMCH,QBAR,GMA,DEL,UB,VB,WB,VEAS,VCAS
COMMON /CGSHFT/ DELX,DELY,DELZ
C
115
C COMMON BLOCK TO OUTPUT AERODYNAMIC FORCE AND MOMENT
C COEFFICIENTS
C
COMMON /CLCOUT/ CL ,CM ,CN ,CD ,CLFT ,CY
C
C COMMON BLOCK TO COMMUNICATE AERODYNAMIC DATA BETWEEN
C THE SUBROUTINES ADATIN AND CCALC
C
COMMON /ARODAT/ CLB ,CLP ,CLR I
. (P
(V
(THA
(H
(TDOT
(PDOT
( VDOT
(THADOT
(HDOT
C
C
v2 = 2.0 *v
B2V =B /v2
C2V =CBAR fl2
C
C.... ROLLING MOMENT COEFFICIENT.
C
CL =CLB * BTA +CLDA *DA +CLDR *DR +CLDT *DT
+B2V *(CLP *P KLR *R 1
C
C.... PITCHING MOMENT COEFFICIENT.
C
CM =CMO + CMA *ALP +CMDE *DE +CMSB *DSB
+c2v *(CMQ *Q +CMAD *ALPDOT)
C
C.... YAWING MOMENT COEFFICIENT.
C
116
CN %NB * BTA +CNDA *DA +CNDR *DR +CNDT *DT
+B2V *(CNP *P +CNR *R 1
C
C.... COEFFICIENT OF DRAG.
C
CD =CDO + CDA *ALP +CDDE *DE +CDSB *DSB
C
C.... COEFFICIENT OF LIFT.
C
CLFT =CLFTO + CLFTA *ALP +CLFTDE*DE +CLFTSB*DSB
+C2v *(CLFTQ *Q +CLFTAD*ALPDOT )
C
C.... SIDEFORCE COEFFICIENT.
C
CY =CYB *BTA +CYDA *DA +CYDR *DR +CYDT *DT
C
RETURN
END
The following subroutine UCNTRL models the gearing between the control inputs
(that is, trim parameters 6a, 6e, 6r, and thr) and the control surfaces. This pro-
vides LINEAR with a generic interface capable of handling most airborne vehicles.
Figure 8 shows the control system implemented in this example subroutine UCNTRL.
DES -- -__
25.0
5.43
-
-
n
180 -
- de
DAS -- ~
20.0
4.0
-
-- 180n
- * da
I -1.0 I
L p d >
(to IFENGN)
THR
UCNTRL
117
SUBROUTINE UCNTRL
C
C.... EXAMPLE TRIM/CONTROL SURFACE INTERFACE ROUTINE.
C
c.... ROUTINE TO CONVERT T R I M I N P U T S I N T O CONTROL SURFACE DEFLECTIONS.
C
C
C INPUT COMMON BLOCK CONTAINING T R I M PARAMETERS
C
COMMON /CTPARM/ DES ,DAS ,DRS ,THRSTX
C
C OUTPUT COMMON BLOCK CONTAINING CONTROL SURFACE DEFLECTIONS.
C
COMMON /CONTRL/ DC(30)
C
C EQUIVALENCE VARIABLE NAMES
C
EQUIVALENCE (DA
(DR
C
DATA DGR /57.29578/
C
c.... CONVERT FROM I N C H E S O F S T I C K AND PEDAL T O DEGREES OF SURFACE.
C
DA =DAS * ( 20.0 / 4.0 )
DE =DES *(-25.0 / 5.43)
DR =DRS *( 30.0 / 3 . 2 5 )
C
c.... S E T D I F F E R E N T I A L T A I L BASED ON AILERON COMMAND.
C
DT =DA / 4.0
C
c.... CONVERT THRUST T R I M PARAMETER TO PERCENT THROTTLE COMMAND.
C
THR = 0.0
IF(THRSTX.GE. 0.0 ) THR =THRSTX
C
c.... USE S P E E D BRAKE I F NEEDED.
C
DSB = 0.0
IF(THRSTX.LT. 0.0 ) DSB =THRSTX*(-45.0 )
C
c.... CONVERT SURFACE COMMANDS TO RADIANS.
C
DA =DA /DGR
DE =DE /DGR
DR =DR /DGR
DT =DT /DGR
DSB =DSB /DGR
I C
RETURN
END
118
Engine Model Interface Subroutine
The following subroutine IFENGN both defines an engine model and provides the
interface to LINEAR. In normal usage, this subroutine would call subroutines that do
the detailed thrust, engine rotation, and fuel consumption modeling; the information
from these subroutines would be transferred into the /ENGSTF/ common block.
SUBROUTINE IFENGN
C
C.... EXAMPLE SUBROUTINE TO PROVIDE PROPULSION SYSTEM MODEL-
C
C.... ROUTINE TO COMPUTE PROPULSION SYSTEM INFORMATION FOR LINEAR
C
C THIS SUBROUTINE IS THE INTERFACE BETWEEN THE DETAILED ENGINE
C MODELING SUBROUTINES AND LINEAR.
C
C INPUT COMMON BLOCK CONTAINING INFORMATION ON THRUST
C REQUEST TO ENGINE
C
COMMON /CONTRL/ DC(30)
C
C OUTPUT COMMON BLOCK CONTAININGDETAILED INFORMATION
C ON EACH OF UP TO FOUR SEPARATE ENGINES
C
C.... ROUTINE TO COMPUTE ENGINE PARAMETERS:
C
C THRUST(1) = THRUST CREATED BY EACH ENGINE
C TLOCAT(1,J) = LOCATION OF EACH ENGINE IN THE X-Y-Z PLANE
C XYANGL(1) = ANGLE IN X-Y BODY AXIS PLANE AT WHICH EACH
C ENGINE IS MOUNTED
C XZANGL(1) = ANGLE IN X-Z BODY AXIS PLANE AT WHICH EACH
C ENGINE IS MOUNTED
C TVANXY(1) = ANGLE IN THE X-Y ENGINE AXIS PLANE OF THE
C THRUST VECTOR
C TVANXZ(1) = ANGLE IN THE X-Z ENGINE AXIS PLANE OF THE
C THRUST VECTOR
C DXTHRS(1) = DISTANCE BETWEEN THE ENGINE C.G. AND THE
C THRUST POINT
C EIX(1) = ROTATIONAL INERTIA OF EACH ENGINE
C AMSENG(1) = MASS OF EACH ENGINE
C ENGOMG(1) = ROTATIONAL VELOCITY (RAD/SEC)
C
COMMON /ENGSTF/ THRUST (4) ,TLOCAT( 4,3 ) ,XYANGL ( 4 ) ,XZANGL ( 4) ,
TVANXY( 4) ,TVANXZ( 4 ,DXTHRS( 4 ,
EIX(4),AMSENG( 4),ENGOMG(4)
C
119
C EQUIVALENCE VARIABLE NAMES
C
EQUIVALENCE (THR ,DC(12))
C
C.... ASSUME THRUST PER ENGINE IS HALF VEHICLE WEIGHT.
C
THRUST(l)= 24000.0 *THR
THRUST(2)= 24000.0 *THR
C
C.... LET ALL OTHER PARAMETERS DEFAULT TO ZERO
C
RETURN
END
The subroutine MASGEO enables the user to model mass, inertia, and center-of-
gravity changes due to vehicle configuration or mass changes. This particular ver-
sion is simply a RETURN and END statement, because the aircraft that it models is a
fixed-wing vehicle, and any mass changes can be done through the input files or even
interactively. However, this subroutine does provide an elegant way of including a
model of those changes for other a i r c r a f t .
SUBROUTINE MASGEO
I
C
C.... SUBROUTINE TO COMPUTE THE MASS AND GEOMETRY PROPERTIES OF THE
C AIRCRAFT
C
COMMON /CONPOS/ DAP,FLAT,DATRIM,DEP,FLON,DETRIM,DRP,FPRF,DRTRIM,
DSBP,DFP,PLAPL,PLAPR,THSL,THSR
COMMON /CONTRL/ ~ ~ ( 3 0 )
COMMON /DATAIN/ S,B,CBAR,AMSS,AIX,AIY,AIZ,AIXZ,AIXY,AIYZ,AIXE
COMMON /SIMOUT/ AMCH,QBAR,GMA,DEL,UB,VB,WB,VEAS,VCAS
COMMON /DRVOUT/ F( 13),DF( 13)
EQUIVALENCE (T F( 1))t
(P F( 2)),(Q F( 3)),(R F( 411,
(V F( 5)),(ALP F( 6)),(BTA F( 711,
(THA I F( 8)),(PSI I F( g)),(PHI I F(10)),
(H F(II)),('X 8 F(12)),(Y F(13)),
(TDOT ,DF( I)),
(PDOT ,DF( 2)),(QDOT rDF( 3)),(RDOT ,DF( 411,
(VDOT ,DF( 5)),(ALPDOT,DF( 6)),(BTADOT,DF( 7)),
(THADOT,DF( 8)),(PSIDOT,DF( g)),(PHIDOT,DF(IO)),
(HDOT ,DF(11)),(XDOT ,DF(12)),(YDOT ,DF(13))
C
RETURN
END
120
REFERENCES
121
Report Documentation Page
1. Report No. 2. Government Accession No. 3. Recipient's Catalog No.
NASA TP-2835
5. Supplementary Notes
6. Abstract
3. Security Classif. (of this report) 20. Security Classif. (of this page) 21. No. of pages 22. Price