system dynamics by ogata 3rd editionFull description
HelpFull description
modelamiento de sistemas dinamicos multicuerpos
System Dynamics Modeling and SimulationFull description
An Exmple Embedded System
Descrição completa
DynamicsDescrição completa
dynamics
lol lol lol lolFull description
OPERATOR'S MANUALFull description
steering system maintenance an servicing
02 Ground Vehicle System Dynamics 1
Descripción: Vehicle dynamics and road dynamics are two separate subjects. In vehicle dynamics, road surface roughness is generally regarded as random excitation to the vehicle, while at the same time handling ...
dFull description
SYSTEM DYNAMICS AN INTRODUCTION
DEREK ROWELL DAVID N. WORMLEY
·--,
System Dynamics: An Introduction Derek Rowell David N. Wormley
Prentice Hall, Upper Saddle River. New Jersey 07458
Ubrtlry of Congress Cataloging-in-Publication Data Rowell, Derek. System dynamics : an introduction I Derek Rowell, David N. Wormley
p.
em.
Includes bibliographical references and index.
ISBN
~13-210808-9
1. Systems engineering.
2. System analysis.
I. Wormley, D. N.
IL ntlc. TA168.R69 1997 620' .OOJ 'l--dc20
96-27622 CIP
Acquisitions editor: Bill Stenquist Production editor: bookworks Editorial production supervision: Sharyn Varano Editor-in-Chief: Marcia Horton Managing editor: Bayani MendoZil DeLeon Copy editor: Carol Dean Cover designer: Karen Salzbach Director of production and manufacturing: David W. Riccanli Manufacturing buyer: Julia Meehan Editorial assistant: Meg We~t Composition: PriljJ{, Inc.
The author and publisher of this book have used their best effons in preparing this book. These efforts include the development, research, and testing of the theories and programs to determine their effectiveness. The author and publisher make no warranty of any kind, expressed or implied, with regard to these programs or the .documentation contained in this book. The author and publisher shall not be liable in any event for incidental or consequential damages in connection with, or arising out of, the furnishing, performance, or use of these programs.
«:> 1997 by Prentice-Hall, Inc. A Pearson Education Company Upper Saddle River, NJ 07458
All rights reserved. No pan of this book may be reproduced, in any form or by any means, without permission in writing from the publisher.
Printed in the United States of America
JO 9 8 7 6 5 4 3 2
ISBN
0-13-210808-9
Prentice-Hall International (UK) Limited,London Prentice-Hall of Australia Pty. Limited, Sydney Prentice-Hall Canada Inc., Toronto Prentice-Hall Hispanoamericana, S.A., Mexico Prentice-Hall of India Private Limited, New Delhi Prentice-Hall of Japan, Inc., Tokyo Pearson Education Asia Pte. Ltd., Singapore Editora Prentice-Hall do Brasil, Ltda., Rio de Janeiro
To our families, especially Marjorie and Shirley, for their continuing support and encouragement
Contents
Preface xiii
1
Introduction 1.1 1.2 1.3
System Dynamics 1 State-Determined Systems 5 Physical System Units 12 References 17
2
Energy and Power Flow in State-Determined Systems
2.1
Introduction 2.1.1 2.1.2
2.2
Definition of Power Flow Variables 30 Primitive Rotational Element Definitions 32
Electric System Elements 37 2.4.1 2.4.2
2.5
Definition of Power Flow Variables 22 Primitive Translational Element Definitions 23
Mechanical Rotational Systems 30 2.3.1 2.3.2
2.4
19
Energy Conservation in Physical Systems 19 Spatial Lumping in Physical Systems 20
Mechanical Translational System Elements 21 2.2.1 2.2.2
2.3
19
Definition of Power Flow Variables 37 Primitive Electric Element Definitions 38
Fluid System Elements 44 2.5.1 2.5.2
Definition of Power Flow Variables 44 Primitive Fluid Element Definitions 46
v
~
2.6
Conren~
Thermal System Elements 53 2.6. 1 2.6.2
Definition of Power Flow Variables 53 Primitive Thennal Element Definitions 54
References 65
66
3
Summary of One-Port Primitive Elements
3.1 3.2 3.3
Introduction 66 Generalized Through- and Across-Variables 67 Generalization of One-Port Elements 71 3.3.1 A-TYPe Energy Storage Elemen~ 71 3.3.2 3.3.3 3.3.4
T-'JYpe Energy Storage Elemen~ 76 D-Type Dissipative Elements 78 Ideal Sources 80
3.4 3.5
Causa1ity 82 Linearization of Nonlinear Elements 83 References 91
4
Formulation of System Models
4.1 4.2 4.3
Introduction to Linear Graph Models 92 Linear Graph Representation of One-Port Elements 93 Element Interconnection Laws 95 4.3.1 4.3.2
4.3.3
4.4 4.5
Compatibility 95 Continuity 97 Series and Parallel Connection of Elements
98
Sign Conventions on One-Port System Elements 98 Linear Graph Models of Systems of One-Port Elements 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5
Mechanical Translational System Models Mechanical Rotational Systems 103 Linear Graph Models of Electric Sysrems Fluid Sysrem Models 105 Thermal System Models 107
4.6
Physical Source Modeling References 119
5
State Equation Formulation
5.1
State Variable System Representation 5.1.1 5.1.2
5.1.3 5.1.4
5.2
92
104
108
120 120
Definition of Sysrem State 120 The State Equations 121 Output Equations 123 State Equation-Based Modeling Procedure
Linear Graphs and System Structural Properties 5.2.1 5.2.2
101
101
Linear Graph Properties Graph Trees 127
124
124
124
vii
Contents 5.2.3 5.2.4
5.3 5.4
Input Derivative Form 145 Transformation to the Standard Form
145 147
State Equation Generation Using Linear Algebra Nonlinear Systems 152 5.6.1 5.6.2
Linearization of State Equations References 168
6
Energy-Transducing System Elements
6.1 6.2
Introduction 169 IdeaJ Energy Transduction 6.2.1 6.2.2
150
General Considerations 152 Examples of Nonlinear System Model Formulation
5.7
6.3 6.4
128
State Equation Formulation 135 Systems with Nonstandard State Equations 5.4.1 5.4.2
5.5 5.6
System Graph Structural Constraints The System Normal Tree 129
158
173
Transformer Models 175 Gyrator Models 180
Graph Trees for Systems of 1\vo-Port Transduction Element~ Specification of Causality for Two-Port Elements 188 Derivation of the Normal Tree 190 State Equation Generation 193
References
Operational Methods for Linear Systems
7.1 7.2
Introduction 205 Introduction to Linear Time Domain Operators 207 7.2.1 7.2.2 7.2.3 7.2.4
205
System Operators 207 Operational Block Diagrams 209 Primitive Linear System Operators 209 Superposition for Linear Operators 211
Representation of Linear Systems with Block Diagrams 7.3.1 7.3.2
188
204
7
7.4 7.5
169
Multipart Element Models 181 State Equation Formulation 187 6.4.1 6.4.2 6.4.3 6.4.4
7.3
153
212
Block Diagrams Based on the System Linear Graph 212 Block Diagrams Based on the State Equations 217
Input-Output Linear System Models Linear Operator Algebra 220
219
7 .5.1 7 .5.2 7.5.3
221
Interconnected Linear Operators Polynomial Operators 222 The Inverse Operator 223
viii
Contents
7.6 7.7 7.8 7.9
The System Transfer Operator 225 Transformation from State Space Equations to Classical Form 226 Transformation from Classical Fonn to State Space Representation 233 The Matrix Transfer Operator 237 References 243
8
System Properties and Solution Techniques
8.1 8.2
Introduction 244 System Input Function Characterization 245 8.2.1 8.2.2 8.2.3
8.3
246
Classical Solution of Linear Differential Equations 251 8.3. J 8.3.2 8.3.3
Solution of the Homogeneous Differential Equation 252 Solution of the Nonhomogeneous Differential Equation 255 The Complete Solution 257
System Properties 259 8.4.1 8.4.2 8.4.3 8.4.4
System Stability 259 Time Invariance 261 Superposition for Linear Time-Invariant Systems 262 Differentiation and Integration Properties of LTI Systems
8.5
Convolution 264 References 275
9
First- and Second-Order System Response
9.1 9.2
Introduction 276 First-Order Linear System Transient Response 277 9.2.1 9.2.2 9.2.3 9.2.4
9.3
244
263
276
The Homogeneous Response and the F'JJ'St-Order TlDle Constant The Characteristic Response ofFJl'St-Order Systems 283 System Input-Output Transient Response 286 Summary of Singularity Function Responses 288
279
Second-Order System Transient Response 295 9.3.1 9.3.2 9.3.3
Solution of the Homogeneous Second-Order Equation 300 Characteristic Second-Order System Transient Response 308 Second-Order System Transient Response 315
References 330
10
General Solution of the Linear State Equations
10.1 10.2
Introduction 331 State Variable Response of Linear Systems 332 10.2.1 10.2.2
The Homogeneous State Response 332 The Forced State Response of Linear Systems
331
334
Contents
10.3 10.4
ix
The System Output Response 336 The State Transition Matrix 337 10.4.1 10.4.2 10.4.3 10.4.4 10.4.5 10.4.6 10.4. 7
10.5
Properties of the State Transition Matrix 337 System Eigenvalues and Eigenvectors 338 A Method for Determining the State Transition Matrix 344 Systems with Complex Eigenvalues 345 Systems with Repeated Eigenvalues 347 Stability of Linear Systems 347 Transfonnation of State Variables 349
The Response of Linear Systems to the Singularity Input Functions 10.5.1 10.5.2 10.5.3
References
365
11
Solution of System Response by Numerical Simulation
11.1
Introduction
11.2
Solution of State Equations by Numerical Integration 11.2.1 11.2.2 11.2.3 1J.2.4
11.3
394
The Transfer Function
12.1 12.2 12.3 12.4
Introduction 395 Single-Input Single-Output Systems 396 Relationship to the Transfer Operator 398 System Poles and Zeros 398 The Pole-Zero Plot 400 System Poles and the Homogeneous Response 400 System Stability 404
Geometric Evaluation of the Transfer Function 405 Transfer Functions of Interconnected Systems 407 State Space-Formulated Systems 408 12.7.1 12.7.2
Numerical Integration Techniques 367 Euler Integration of a First-Order State Equation 368 Euler Integration Methods for a System of Order n 374 Higher-Order Integration Techniques 375
References
12.4.1 12.4.2 12.4.3
366
366
Numerical Simulation Methods Based on the State Transition Matrix 11.3.1 11.3.2
353
The Impulse Response 354 The Step Response 356 The Ramp Response 359
Single-Input Single-Output Systems 408 Multiple-Input Multiple-Output Systems 412
References
420
395
Contents
X
422
13
Impedance-Based Modeling Methods
13.1
Introduction 422
13.2
Driving Point Impedances and Admittances · 422 13.2.1 The Impedance ofldeal Elements 424
13.3
The Impedance of Interconnected Elements 426 13.3.1 Series Connection of Elements 426 13.3.2 The Impedance of Parallel-Connected Elements 428 13.3.3 General Interconnected Impedances 430 13.3.4 Impedance Relationships for Two-Port Elements 431
13.4
Transfer Function Generation Using Impedances
13.5
Source Equivalent Models 441 13.5.1 Thevenin Equivalent System Model 441 13.5.2 Norton Equivalent System Model 443 References
434
452
453
14
Sinusoidal Frequency Response of Linear Systems
14.1
Introduction
14.2
The Steady-State Frequency Response
14.3
The Complex Frequency Response
14.4
The Sinusoidal Frequency Response
14.5
The Frequency Response of First- and Second-Order Systems 14.5.1 First-Order Systems 460 14.5.2 Second-Order Systems 463
14.6
Logarithmic (Bode) Frequency Response Plots 467 14.6.1 Logarithmic Amplitude and Frequency Scales 469 14.6.2 Asymptotic Bode Plots of Low-Order Transfer Functions 471 14.6.3 Bode Plots of Higher-Order Systems 478
14.7
Frequency Response and the Pole-Zero Plot 483 14.7.1 A Simple Method for Constructing the Magnitude Bode Plot Directly from the Pole-Zero Plot 486 References 499
15
Frequency Domain Methods
15 .I
Introduction
15.2
Fourier Analysis of Periodic Waveforms 502 15.2.1 Computation of the Fourier Coefficients 507 15.2.2 Properties of the Fourier Series 509
15.3
The Response of Linear Systems to Periodic Inputs
453 453
454 457 460
500
500
514
Contents
15.4
xi
Fourier Analysis of Transient Waveforms 519 15.4.1 15.4.2
15.5
Fourier Transform-Based Properties of Linear Systems 531 15.5.1 15.5.2 15.5.3 15.5.4 15.5.5
15.6
Response of Linear Systems to Aperiodic Inputs 531 The Frequency Response Defined Directly from the Fourier Transform 535 Relationship between the Frequency Response and the Impulse Response 535 The Convolution Property 537 The Frequency Response of Interconnected Systems 538
The Laplace Transfonn 15.6.1 15.6.2 15.6.3
15.7
Fourier Transform Examples 523 Properties of the Fourier Transform 528
539
Laplace Transform Examples 542 Properties of the Laplace Transform 545 Computation of the Inverse Laplace Transform 548
Laplace Transform Applications in Linear Systems 550 15. 7.1 Solution of Linear Differential Equations 550 15.7.2 15.7.3 15.7.4 15.7.5
Solution of State Equations 554 The Convolution Property 555 The Relationship between the Transfer Function and the Impulse Response 556 The Steady-State Response of a Linear System 556
References 563
A
Introduction to Matrix Algebra
A.l A.2 A.3 A.4
Definition 564 Elementary Matrix Arithmetic 565 Representing Systems of Equations in Matrix Form 567 Functions of a Matrix 568 A.4.1 A.4.2 A.4.3
The Transpose of a Matrix 568 The Determinant 569 The Matrix Inverse 570
A.5 A.6
Eigenvalues and Eigenvectors Cramer's Method 572
B
Complex Numbers
8.1 8.2 8.3 B.4
Introduction 574 Complex Number Arithmetic 575 Polar Representation of Complex Numbers 577 Euler's Theorem 579
c
Partial Fraction Expansion of Rational Functions
C.I C.2 C.3
Introduction 580 Expansion Using Linear Algebra 582 Direct Computation of the Coefficients 584
Index 587
564
57 J
574
580
Preface
The system dynamics approach provides important unifying concepts for the analysis of systems which span the traditional engineering disciplines, for example, electrical, mechanical, civil, and chemical engineering. The concepts embodied by system dynamics, while developed for engineering systems, have now been adapted and modified for use in many other types of systems, including economic, biological, and demographic. In this text the concepts of system dynamics are introduced, with the primary emphasis on applications to engineering systems. In particular, the basis for constructing a lumped-parameter system model from a set of primitive element~ in a systematic way and understanding the transient and frequency reponse performance of the model are developed in detail. Many of the concepts and techniques of system dynamics were developed independently within the individual engineering disciplines in the 1940s. The initial emphasis was on dynamic behavior of electric and electronic circuits and mechanical vibrational systems. The gradual realization that there was a set of unifying concepts, particularly related to energy and power flow, alJowed these techniques to be extended to other disciplines. In the 1950s, a new set of analysis techniques, the state space methods, were developed and are now commonly implemented in computer-assisted analyses. Today's practicing engineer must be equally conversant with both the classical input-output system representation and the modern state space approach. In this text, we develop modeling techniques using an energy-based state space fonnulation method and provide linkages to the classical system representations. This approach provides a basis for developing an understanding of basic system behavior and an ability to analyze more complex systems using computer-assisted techniques. This text is a direct outgrowth of our many years of teaching a sophomore level course in system dynamics within the Department of Mechanical Engineering at Massachusetts Institute of Technology. The course covers most of the material in the book but not at the depth indicated by some of the later chapters. In writing the text we have attempted to organize it for use in a range of courses throughout the undergraduate or early graduate levels. Each chapter is organized so that early chapter sections provide a basis for an xill
xiv
Preface
introductory level course, while later chapter sections are more advanced. The problems accompanying each chapter are similiarly organized. Thus, an instructor may select chapters and chapter sections for an introductory one-semester or one-quarter course, or may include more advanced materials for senior level or graduate students. Chapter sections suggested for an introductory level course, as weii as a more advanced cou!Se, are listed in Table 1. A suggested introductory level course includes model formulation techniques for mechanical, electric, and fluid and thermal systems in a systematic manner, resulting in a set of state equations, the use of operational techniques to transform between state space and classical system representations, input waveform characterization, and a detailed development of first- and second-order transient solution and sinusoidal frequency response techniques. The materials can be readily taught with the assistance of computer-based analysis packages by selection of appropriate homework problems. A more advanced course may include additional modeling materials on multienergy domain systems u~ing two-port primitive elements, advanced_solution techniques for statedetermined system models, nonlinear modeling and analysis techniques, impedance model formulation techniques, and advanced frequency domain analysis techniques. In developing this text we have given considerable thought to the choice of a graphical representation of system structure. Over the years we have taught modeling methods using the various graphical methods, for example, linear graphs, bond graphs, and block diagrams. On balance, we believe that the linear graph method has distinct advantages at the introductory level: It stresses the concepts of continuity and compatibility and is easy for students to grasp. In this book frequency domain methods and the Laplace transform have been delayed until the final chapters. Our decision to do this is based upon our desire to stress the time domain basis of the dynamic behavior of systems~ We have chosen to introduce and use linear operational algebra to manipulate the dynamic equations directly in the time domain. Fourier and Laplace methods are introduced toward the end of the book, as a method of waveform representation, and then used to defines-plane-based system properties. Derek Rowell David N. Wormley
Preface
XV
Table 1. Distribution of Course Material
TOPICS (COURSE MATERIALS) Introduction to System Dynamics Concepts (Ch. 1) Modeling (Cbs. 2 - 6) Energy Concepts (Ch. 2) Primitive Elements (Ch. 2) A Multi-Domain Unified Approach (Ch. 3) Linear Nonlinear Model Construction (Ch. 4) Equation Derivation (Cbs. 5 and 6) Single energy domain (Ch. 5) Multiple energy domains (Ch. 6) Operational Methods (Ch. 7) Block diagrams Equation manipulation System response Classical Time-Domain Solution Methods (Ch. 8) Low-Order SISO System Response (Ch. 9) FlfSt-Order Response Second-Order Response State-Space Time-Domain Solution Method~ (Ch. 10) Numerical Solution Techniques (Ch. 11) Transfer Functions (Ch. 12) Impedances (Ch. 13) Frequency Response Methods Sinusoidal Response (Ch. 14) Fourier and Laplace Transform Methods (Ch. 15) .
ThiTRODUCTORY
ADVANCED
1.1 - 1.3 2.1 2.1-2.6 3.1-3.4 3.5 4.1 -4.5
5.1-5.3
5.4-5.5 6.1-6.4
7.1-7.3 7.5-7.7
7.8-7.9
8.1-8.4
8.5
9.1 -9.2 9.3 10.1- 10.3 11.1-11.2 12.1- 12.6
10.4- 10.5 11.3 12.7 13.1 - 13.4
14.1- 14.6 15.1- 15.7
1
Introduction
1.1
SYSTEM DYNAMICS Engineering is a creative activity leading to the design, development, and manufacture of devices and systems to meet societal needs. Many of the engineering technologies and systems developed to address such issues as human health and safety, energy production and utilization, and the environment involve the integration of elements from diverse engineering, scientific, and social disciplines. Engineering systems, ranging from large structures such as tall bui1dings and bridges excited by wind and seismic forces, to ocean ships and platforms excited by wind and waves, to audio and video consumer products, represent systems in which the dynamic, or time-varying, response to external inputs is critical. In many cases the effectiveness of a system is intrinsically related to its dynamic behavior. For example, the design of the automobile air bag, developed to improve occupant safety, involves mechanical, electrical, and chemical engineering components as well as a detailed knowledge of human physiology. The dynamic response of the air bag, in terms of the requirement to detect a crash condition and deploy within a period of a few mi11iseconds, is critical to its effectiveness. Similarly, an electric power generation and distribution system utilizes technologies that span several engineering disciplines-fluidic, combustion, nuclear, electrical, and so on. The power system must respond in a timely manner to daily and seasonal changes in demand and react to sudden failures and faults in the system components without interruption of service. Inadequate responses to disturbances may result in blackouts, such as occurred in the northeastern United States in the fall of 1965. Historically engineers have developed specialized methods for analyzing the behavior of systems within their own discipline. For example, electrical engineers have developed and refined circuit analysis methods in order to determine the response of voltages and currents in electronic systems; and structural and mechanical engineers have developed methods of computing forces and displacements within systems assembled from mechanical components. The generalized discipline of system dynamics has been developed over the past five decades to provide a unified method of system representation and analysis that can 1
Introduction
2
Chap. 1
Gripper
Figure 1.1: A high-perfonnance industrial robot.
be applied across a· broad range of technologies. System dynamics concepts are now used in the analysis and design of many types of interconnected systems including mechanical, electric, thermal and fluid systems [1-9]. The general methodologies arising from this field have recently been extended to the analysis of many other types of systems including economics, biology, ecology, the social sciences, and medicine [10-12]. In dynamic systems, a number of questions related to system performance are often of interest. For example, consider robots, which are now commonly used in highly repetitive or hazardous tasks at automated manufacturing facilities. The dynamic behavior of a robot arm as it moves a payload from point tO point significantly affects its productivity. The design. of a high-performance robot, such as is shown in Fig. 1.1; must consider many factors. Of prime importance is the interaction between the robot, which may be defined as the system, and the forces and torques originating from its environment. Questions that may be addressed through dynamic analyses of the robot include the following:
• How fast can the robot perform its tasks, and what size· motors and actuators are needed to achieve the desired speed?
Sec. 1.1
System Dynamics
3
• What are the forces and torques on the various system components during the execution of a task? • Given a command to move a load held by the robot from one point to another, what is the trajectory of the arm? • How sensitive is the accuracy of the spatial position of the gripper to changes in the load? Such questions can often be answered by developing an analytical model of the robot and its environment and using the model to develop performance data as a function of system parameters such as the size of the electric motors selected to move the arm. Selection of a set of parameters that yield an acceptable performance from simulation studies forms the basis for the design and construction of a prototype. System dynamics is the study of the dynamic or time-varying behavior of a system and includes the following components: 1. Definition of the system, system boundaries, input variables, and output variables. 2. Formulation of a dynamic model of the physical system, usually in the form of mathematical or graphical relationships determined analytically or experimentally. 3. Determination of the dynamic behavior of the system model and the influence of system inputs on the system output variables of interest. 4. Formulation of recommendations or strategies to improve the system performance through modification of the system structure or parameter values. These implicit elements of dynamic analyses are commonly employed by engineers in the design and development of a wide range of complex systems including spacecraft, automobiles, energy production and distribution systems, computer and control systems, water distribution and purification systems, chemical processes, and manufacturing systems. The advent and proliferation of digital computing methods now allow analysis of proposed designs using dynamic simulation methods before expensive prototypes are constructed. The following example illustrates a number of elements of system dynamics. In the example engineers recognized the possibility of undesirable wind-induced motions in a structure and developed a novel solution using the principles of system dynamics. Example 1.1 Tall buildings. above 50 stories in height, often exhibit oscillatory motions when subjected to external forces and sway with a period of approximately one cycle every 6-10 s [13]. Under windy conditions the motion of the top floors may be several feet from side to side. The motion of such structures is important because when building motion is sufficiently large, people occupying the upper floors may become uncomfortable and even experience motion sickness. Figure 1.2 depicts a tall building responding to wind forces. The building structure is a dynamic system. with wind forces on the building acting as inputs and. the resulting motion as output A dynamic model of the system must include a description of the structural response to the forces generated on the building under various wind conditions. In the design of several tall buildings, it was recently anticipated that windinduced motion could be a problem. and systems known as tuned-mass dampers were included as an integral part of the building to modify the motion response characteristics. These units are dynamic systems consisting of a large mass sliding on lubricated bearing surfaces on an
Introduction
4
Chap. I
Mass velocity vm(l)
II II II
II II II
/
(a)
F..,(r)
vm(l)
0
"'~
.,c
.£
Building (unmodified)
~
System output
·g
II
u>
eo c
:§ ·;; ~
(b) F..,(T)
"" l
v \J
vu
vm(l)
System input
"'
~
.£
.,c ~
Building (modified)
System output
0 ·;:; 0
u>
eo c
:§
·;;
(c)
~
Reduction of building motion using a tuned-mass damper. (a) The structure of a tuned-ma~s damper showing the sliding mass coupled to the building through springs and dampers. (b) The building response to sinusoidal wind force s without the tuned-mass damper. (c) The reduction in building motion with the tuned-mass damper in action.
Figure 1.2:
upper floor of the building which are coupled to the building through a spring and a damper system. The system is designed so that as the building sways at its own natural frequency, the mass oscillates at the same frequency but in a direction opposite the building motion. The tuned-mass damper exerts a reaction force on the building structure as it moves, which can significantly reduce building motion. Building designers have successfully employed tunedmass dampers in the John Hancock Building in Boston, Massachusetts, and in the Citicorp Building in New York City. In these two cases the designers, after initially evaluating a system response and finding it unacceptable, were able to modi fy the original system by adding a set of dynamic mechanical elements to achieve an acceptable level of overall system performance.
Sec. 1.2
1.2
State-Determined Systems
s
STATE-DETERMINED SYSTEMS Fundamental to system dynamics is the interaction between a system and its environment. In the broadest context of system dynamics, a system and its environment are defined as abstract entities:
• System: A col1ection of matter, thoughts, or concepts contained within a real or imaginary boundary.
• Environment: All that is external to the system. The interaction between a system and its environment is characterized in terms of a set of system variables, as illustrated in Fig. 1.3, which in engineering systems may be timevarying physical quantities such as forces, voltages, or pressures or mathematical variables with no direct physical context. These variables may be internal to the system and reflect the state of an element, for example, the force acting on a spring, or they might express the time variation of some quantity at the interface between the system and its environment. It is useful to define two important classes of system variables:
• Inputs: An input is a system variable that is independently prescribed, or defined, by the system's environment The value of an input at any instant is independent of the system behavior or response. Inputs define the external excitation of the system and can be quantities such as the external wind force acting on a tall building system or the rainfall forming the input flow into a reservoir system. A system may have more than one input.
• Outputs: An output is defined as any system variable of interest. It may be a variable measured at the interface with the environment or a variable that is internal to the system and does not directly interact with the environment
Figure 1.3:
Schematic representation of a dynamic system.
The identification of a system and inputs and outputs may be illustrated by considering the design of an automobile suspension. The goal is to achieve both good handling characteristics, to ensure safe operation during cornering and driving maneuvers, and good ride comfort while traversing bumpy roads. Suspension design requires a trade-off in the selection of the stiffness of the springs and damping effects of the shock absorbers, to achieve the good handling (relatively stiff suspensions) associated with high-performance cars, and the good ride quality (relatively soft suspensions) associated with more conventional cars.
Introduction
6
Chap. 1
In this case the system may be defined as the automobile itself, with inputs from the environment defined as the road surface profile and the driver's steering actions. Output variables of interest are vehicle motions and accelerations and forces between the road and · the tires, which provide a measure of the handling and ride quality. Questions of interest to the designer include: Do all wheels remain in contact with the ground during emergency actions taken by the driver? What are the vertical accelerations under typical city and highway road conditions? To develop an initial suspension design from the system definition, a mathematical model, which can predict vehicle motions from the roadway and steering inputs of the system, is generated and implemented as a computer program. Representative road profiles and driver inputs are created and used as inputs to the simulation to determine the quality of the ride and the handling characteristics of the car. Through many simulations, based on different suspension parameters, the design trade-offs are identified. Finally a set of suspension parameters may be selected that are recommended for testing in a prototype vehicle. A central element in all dynamic analyses is the formulation of a mathematical model of the system. Many physical systems of interest to engineers may be represented by a set of mathematical equations that fonn a state-determined system model of the system. A state-determined system model has the characteristic that 1. a mathematical description of the system, 2. specification of a limited set of system variables at an initial time to, and 3. specification of the inputs to the system for all time t :::: to are necessary and sufficient conditions to determine the system behavior for all time t > to. The definition of a state-determined system model is developed from the concept of system state, which as described by Kalman [14] and others [15-17] is represented by the specification of a minimum set of variables, known as state variables, that uniquely define the system response at any given time. The mathematical model of the system is given by a set of state equations. This definition states that the response of a state-determined system model to any arbitrary input can be determined if the value of each of the state variables at time to (known as the initial conditions) and the time history of the inputs for time t :::: to are known. Thus, at any time to, the system state, defined by the values of the state variables, completely characterizes the present condition of the system and no information is required · concerning the past history of the system. Although the number of state variables required to represent a system is uniquely determined for a state-determined system model, the specific set of state variables is not unique. Many different sets of state variables may be used to describe a particular system, however, the set must be complete and ail the state variables in the set must be mathematically independent In this text we introduce and use a set of state variables that are both physically measurable and directly related to the energy stored in system elements. In the following example, the state variable concept is illustrated for a simple mechanical system.
Sec. 1.2
State-Determined Systems
7
Example 1.2 In Fig. I .4 an automobile is shown traveling along a straight road under the influence of a time-varying propulsive force F1,(r). We assume that the velocity v(r) of the car is of primary interest. A simple state-determined model of the car may be formulated by considering the system to consist of the car as a mass element m, acted o n by the sum of the propulsion force and forces resisting the motion (for example, wind drag and ground resistance). In this case the velocity, which determines the car's kinetic energy, is selected as the state variable and is also the output variable of interest. Velocity
I'---•~- v.,(r) Propulsive force Fp(l)
Figure 1.4:
Automobile traveling on a straight. flat road.
If at time to the velocity is u0 , the initial kinetic energy E:o of the vehit:le is (i)
For time r > r0 , the propulsion force F1,(t) from the engine is considered to be the input (independently specified by the driver), and if all resistance forces are neglected, the acceleration is determined by Newton's law: dv
mdt
= Fp(T)
(ii)
where v is the system state variable, Fp is the system input, and m is a system parameter. The velocity v(r) at any time may be determined by integrating Eq. (ii):
l
v(t) dv
vCto) v(r)
=
1t J
-
F1,(r) dr
(iii)
= -1 1t Fp(r) dt + v(to)
(iv)
to m
m
to
Equation (iv) shows that the velocity v(r) at any timet can be determined if 1. the initial velocity v(to) is known, and
2. the input F,(l) is known for timet
~ t0 •
The velocity thus satisfies the requirements of a state variable, and Eq. (ii) is a state-determined model of the car. If a constant propulsion force Fp(t) = F is applied to the mass and the initial time to = 0, the velocity fort > 0 is v(r)
= -IllF t + v(O)
(v)
8
Introduction
Chap. 1
The velocity v(t) therefore increases linearly with time when a constant propulsion force is . applied in the absence of any resistance forces. The resulting velocity v(t) for any other Fp(t) can also be found by simply substituting into Eq. {iv) and solving the integral. While velocity v is a logical and convenient choice for a state variable in this example, the choice of a state variable is not unique, and momentum p = mv could have equally well been chosen. Beeause velocity and momentum are directly related by the constant mass m, knowledge of either one determines the other variable and either one descnl>es the system state.
The concept of a state-detennined system model, while developed most fully for physical systems, has also been utilized in the study of social and economic systems. In the next example, a classic predator-prey population model is described following the presentation of Luenberger [10]. Example 1.3
On a remote islarid a colony of rabbits created serious ecological problems by depleting the ground cover vegetation and opening the soil to erosion by wind and rain. In an effort to control the rabbit population a number of foxes were brought to the island to reduce the rabbit population. After the foxes were introduced. a cyclic oscillation in the populations of the foxes and the rabbits was observed. A dynamic model of the population dynamics that explains the oscillatory behavior of the populations can be developed from generic population models [ 10]. Consider the island as defining the boundary of the system. Let the number of rabbits x1 {t) and the number of foxes x 2{t) be system variables. Before the introduction of the foxes. and in the presence of a plentiful supply of food. a simple model for the rabbit population assumes that the breeding rate of rabbits is constanL When the birth and death rates are taken into account. the rate of population growth is proportional to the size of the population iLc;elf, that is. (i)
where a is a positive constanL Equation (i) is a- dynamic model of unconstrained population growth. The system response may be found by reorganizing Eq. (i) and integrating:
dx1 -=adt Xt
1
XJ(f)
ZJ(O)
}
-dx1 =a Xt
1'
(ii)
dt
(iii)
0
with the result (iv) which indicates exponential growth. Clearly at some point additional factors not considered in the model represented by Eq. (i) must come into play because the finite food supply on the island cannot support an infinite rabbit population. Mer the predator is introduced. the growth rate is significantly altered. We may surmise that the death rate of rabbits due to foxes depends on both the number of rabbits and the number of foxes. and conjecture that the death rate is proportional to the product of the two populations [10]. The model in Eq. {i) is therefore modified by the inclusion of an extra tenn that accounts for the effect of the fox population: · dxt(t)
--;u- =
ax1 (t)·-
bx1 (t)x2(t)
{v)
Sec. 1.2
State-Determined Systems
9
where b is a positive constant. The presence of the foxes has a negative effect on the rabbit population growth rate. Equation (v) is not a complete model of the system because the fox population x 2 (t) is itself dependent on the rabbits. The fox population model is developed by considering two cases. First, because rabbits are the primary source of food for foxes, we assume that the fox population will die out in the absence of any rabbits on the island, giving a simple model for the fox population: (vi) where c is a positive constant The solution of this differential equation is (vii)
indicating an exponential decay in the number of foxes. Second, we assume that the growth rate of the fox population is affected by the product of the number of rabbits and foxes, with a resultant model of the fonn (viii) where d is a positive constant. The complete model of the predator-prey system is represented by Eqs. (v) and (viii) together:
(ix)
which are a pair of coupled nonlinear differential equations. This model is state-determined because, given the two equations with the values of the four system parameters a, b, c, and d and the initial values of the two state variables x 1(to) and x2(t0) at some time to, the response for all t ::::. to may be computed. This model has no input (forcing function), and the dynamic response of the two populations is determined only by the initial conditions. The response of the model equations may be determined by numerical integration on a digital computer using methods described in Chap. 11. A typical set of results showing the evolution of the populations can be seen in Fig. 1.5. In Fig. 1.5a the unconstrained exponential growth of the rabbit population is shown; this fonn of response is typical of an unstable system; in Fig. 1.5b a typical oscillatory response is shown where both populations undergo cyclic variations but the rabbit population is kept within acceptable bounds.
State-determined system models are the primary types of models utilized in engineering and science. However, for some systems it is not possible to formulate a state-determined model because the initial conditions cannot be completely determine~ the system description is inadequate, or the inputs cannot be completely specified. An example of such a system is the stock market, where investors are not able to formulate a state-determined model, that is, a system description relating stock prices to a finite set of variables, and cannot quantify the inputs that influence the system. · In this text the techniques of system dynamics are developed with primary application to engineering systems (including mechanical, electric, fluid, and thermal systems) and the· interactions occurring among these systems. An essential characteristic of these
10
Chap. 1
Introduction 1600
{a)
1400 1200 c
.i0
1000
-;
a.
8.
:E .c CIS ~
800 600 400 200 0 2500
2
Time (yr)
3
4
5
(b)
2000
= 1500
·~
:; Q, 0
Q.,
JOOO
500
0
5
10 Time(yr)
15
20
Figure 1.5: Typical responses of the population dynamics predicted by the predator-prey model with parameters a 1, b 0.002, c 0.5, and d = 0.001. (a) Predicted exponential growth of the rabbit population from an initial population of 10 rabbits in the absence of foxes. (b) Oscillatory population response caused by the introduction of 100 foxes into a population of 1000 rabbits.
=
=
=
physical systems is the association of their dynamic behavior with changes in the storage and dissipation of energy in the system· components. Thus, the central basis for formulating state-determined system models of these physical systems is the conservation and conversion of energy. It is often convenient to consider a system as an interconnection of several subsystems that are. wholly contained within th~ overall system. In this context th~ complete system is considered to be part of the environment for each of the subsystems. For example, an automated manufacturing machine might in~lude several electric subsystems (~otors and their control systems) and many mechanical subsyst~ms for parts handling and ~achining. This
Sec. 1.2
11
State-Determined Systems
process of subdividing a system m ay be continued unti l the subsystem is a single lumped
element that cannot be further divided. An element is the simplest prim itive unit f rom which all systems can be constructed. For the engineering systems discussed in this text primitive elements that supp ly, s tore, and dissipate energy in mechanical, electric, fluid, and thermal energy domains are de fin ed in Chap. 2. The formulation of state-determined system models of phys ical systems requires
1. selecti on of a set of primitive elements to represent the e nergy interaction within a system a nd between a system and its environment, and 2. definition of the system structure or the m anner in which the primitive e lem ents are connected.
Example 1.4 A simplified model of an automobile suspension system is required for some preliminary design studies. Only the vertical motions of the car need to be considered. The system is taken to be the car itself, and the input is defined by the profile of the road surface. The engineers decide that for this initial study it is adequate to model ( I) the car body as a single lumped-mass element, (2) the primary suspension as a spring representing the combined effects of all four springs, a dashpot representing the energy dissipation in the shock absorbers, and a mass element representing the axles, and (3) the tires as a spring element to model their compliance together with a dashpot to account for frictional losses as the tires are flexed. The structure of the model is shown schematically in Fig. 1.6. It consists of interconnected primitive mass, spring, and dashpot elements driven by a vertical velocity input source element. Although simplified, this model using seven lumped elements can give valuable insights into the dynamic response of automobiles as they travel down a rough road.
Simplified schematic representation of an automobile suspension system as an interconnection of seven primitive elements.
A technique based on the linear graph as a unifie d means of expressing the topology or structure of physical systems is developed in Chaps. 3 and 4 . Linear graphs are similar in form to electric circuit diagrams but prov ide a commo n fram ework for the representatio n of mechanical, electric, fluid, and thermal systems. In addition they prov ide a basis for the coupling of systems that involve more than one energy modality. The development of state-determined models from a linear graph representation is described in Chap. 5.
12 1.3
Introduction
Chap. 1
PHYSICAL SYSTEM UNITS In physical system models, the system parameters and variables are ~xpressed in terms of specific measures or units, some of which have evolved over a long period of time. In the United States, units in common use have been derived primarily from the English system. (Note, however, that England has now converted to the metric system and no longer uses the English system!) For example, the English unit of length is the foot (ft), which was originally defined as the length of the Icing's foot. As civilization has progressed, precise and repeatable standards have been developed to represent fundamental units of measurement The International System of Units, Systeme International d'Unites (known as SI units in all languages), is the system that has been adopted by the principal industrial nations of the world, including the United States. SI units are the primary system of units used throughout this book, however, because much engineering practice in the United States is based on the English unit system, the relationship between the SI and English unit systems is discussed below. Each physical quantity may be described in terms of a set of generalized dimensions such as length and time. For example, the dimension of the unit of meter or foot is length, and of area is length squared. In a consistent set of units, a minimal set of fundamental dimensions may·be defined in terms of particular units, and then all other quantities may be defined in terms of the units of these fundamental dimensions. SI units are based on a set of seven fiindaniental, or base, units as summarized in Table 1. 1. All other units of llieas.urement, known as derived units, may be expressed in terms of the base units. In this book the fundamental dimensions of time (t), l~ngth (L), mass (m), current (i), and temperature (T) are used primarily. TABLE 1.1:
Sl Physical System Units•
Quantity Time Length Mass Current Temperature Luminous intensity Amount of substance Area Volume Velocity Aeceleration Force Energy Power Voltage Pressure
Dimension
SI Unit
t
second meter kilogram ampere kelvin candela mole
L
m T
Symbol
s m
kg A K cd mol
m2 square meter m.l . cubic meter Lt-1 meter per second m/s Lt-2 meter per second squared mls 2 mLr-2 newton N (kg-rills 2) J (N-m) mL 2r 2 joule W (J/s) mL2 r 3 watt mL 2r- 3;-• V (W/A) volt mL -1,-2 pascal Pa (N/m 2 ) L2 L3
•The top section shows the seven primary quantities, while the bottom section shows a set of commonly used derived quantities.
Sec. 1.3
13
Physical System Units
The selection of a basic set of units is not unique; for example, either force or mass may be selected as a primary dimension. Newton's law provides the connection between the units of force and mass since a pure mass element m under the influence of an external force F experiences an acceleration a given as F=ma
(1.1)
If mass (m) is selected as a primary dimension, along with length (L) and time (t), then force may be defined in terms of mass (m) and acceleration (Lr- 2 ) as
F=ma
while if force (/) is selected as a primary dimension, then mass may be defined as F
m=a
In the SI system mass is chosen as the base quantity and force is the derived unit In the English system force is the base unit, expressed in pounds (lb), and the unit of mass, the slug, is defined as that mass that accelerates at I ft/s 2 when subjected to a constant force of lib. The mass of a quantity of material is related to its weight. Since weight is a measure of the gravitational attraction force on a particular object, although directly proportional to the mass, it is expressed in units of force. If the weight of an object is determined as W from a scale, then the mass is found by Newton's law F = ma; noting that F = Wand a = g, the acceleration due to gravity
w
m=g
(1.2)
At the surface of the earth g is 9.81 m/s 2 or 32.17 ft/s 2 , and so a mass of 1 slug has a weight of 32.17 lb, while in the SI system a mass of 1.0 kg requires a force of 9.81 N to support its weight The basic unit of mass is the kilogram or the slug. Energy is also identified in Table 1.1 with the basic dimension of mL 2 t- 2 , which is equivalent to force times length and in the SI system is expressed in newton-meters or joules (after James P. Joule who in the 1840s experimentally verified the first law of thermodynamics). Power is defined as the rate of flow of energy, or the energy flowing per unit time (mL 2r- 3), and thus has units ofN-rnls and is defined in watts (after James Watt who made significant advances in steam engine performance between 1760 and 1820). A power unit of 1 W is equivalent to 1 J/s. Conversion factors between SI and English units are summarized in Table 1.2. Also shown in the table are two common English measures of energy and power: the British thermal unit (Btu), which is a measure of energy, and the horsepower (hp), which is a measure o(power. In the SI system, pressure (force per unit area) is defined in pascals (after Jacques Pascal who made major contributions in the field of fluid dynamics) or N/m 2 • Example 1.5 How much electric power (W) is available from a 150-hp electric generator?
14
Introduction TABLE 1.2:
Chap. 1
Unit Conversion Factors for Common Sl and English Engineering Units
1.0 Btu =778.16 ft-lb J.O hp =550 ft-lb/s 1.0 Jblin. 2 144 lb/ft2 1.0 Pa =1 N/m 2 g =9.81 m/s 2 = 32.17 ft/s 2
=
Solution From Table 1.2, the 150 hp may be converted to the fundamental English units of ft-lb/s by using the factor 550 ft-lb/slhp: (150 hp) (550 ft-lb/slhp) = 82,500 ft-lb/s This power level may be converted to SI unite; (W or J/s) by the factor of 1.3558 J/ft-lb in Table 1.2: · (82,500 ft-Jb/s) (1.3558 J/ft-lb)
=111,854 J/s
Noting that I W is equal to 1 J/s, approximately 111.854 kW is available from a 150-hp generator.
PROBLEMS 1.1. Consider a home heating system. The outside temperature and radiant heat from the sun influence the internal room temperature. The furnace and its thermostat control are used to maintain the house temperature at a desired level as the external weather conditions change. (a) Use an engineering sketch to describe the system of interest and its environment, identifying the system inputs and outputs. Identify the sources of heat flow between the system and the environment (i) when the room temperature is above the temperature set on the thennostat, and (ii) when the room temperature is below the set point. (b) Discuss how an increase in the effectiveness of wall insulation in the house walls influences the system behavior.
Chap. I
15
Problems
1.2. Wind energy is used in some areas as a renewable energy source. A wind turbine, illustrated in Fig. I. 7, is used to supply electric energy to a remote farm house. The rotational energy of the blades drives an electric generator through a mechanical gear train. The generator supplies electric energy to the house, where it is used directly or stored in baneries. The house draws water from an artesian well through an electric pump, and stores the water in a tank at the top of a tower.
Storage tank II II
,
·:
~·
II II
II II
II II
II II
L
w'"'
Wind
~:
j§
1
j Pump
Pu 1 I" Figure 1.7:
Electric power
A rural wind power generation system.
(a) Use a sketch to illustrate the energy flow in the wind to electric energy generation system, and identify the system inpuL~ and outputs. (b) Identify the major energy conversion and transmission elements that are important in the overall conversion of wind to electrical power.
(c) Would you expect the system to be 100% efficient? Is all of the available energy in the wind flow converted to electrical energy? Identify potential sites of energy dissipation. (d) Trace the flow and conversion of electrical energy through a typical appliance that rrtight be found in the farm house, such as a stove. Where does the energy ultimately end up?
(e) Discuss the storage and dissipation of energy associated with the water storage system.
1.3. Solar heating systems use incident energy from the sun's radiation. In a typical solar heating system a fluid is circulated from an insulated storage tank through solar collectors, where heat is transferred to the fluid and returned to tbe tank. A second circulation system is used to pump the heated fluid from the tank through radiators in the building. (a) A variable speed pump, which is controlled by the temperature of the fluid leaving the solar collectors, sets the circulation rate of the input flow. Construct an engineering diagram showing the important elements of the heat collection system. Identify the system inputs and outputs. What variable characterizes the thermal energy stored in the insulated tank? (b) In the heat distribution system a fixed speed pump is turned on or off by a thermostat in the building and is used to force the hot water through the radiators. Augment the sketch in part (a) to include this second circulation loop and identify any additional system inputs and outputs. Describe how the two circulation systems are influenced by the total thermal energy stored in the tank.
(c) Comment on the design factors that you think would affect the efficiency of the solar collector panels.
16
Introduction
Chap. 1
1.4. Many urban areas receive their water supply from reservoirs .located in nearby mountains. Rain and melting snow in the catchment area flows through streams into the reservoir. Water is drawn from the reservoir by pumps for supply to the urban area. In addition, water evaporates into the atmosphere . from the surface of the reservoir, and water seeps into the ground around the reservoir. We are interested in the variation of the total volume of water stored in the reservoir. (a) Describe the system of interest using a sketch and identify the system inputs and the output of interest. (b) The net volume flow rate of water into the reservoir varies with the time of year, as does the net flow leaving the reservoir. The net input and output volume flow rates are shown in Fig. 1.8. If the net flow into the reservoir is Qin and the net flow out is Qou1• the resultant total reservoir net Qin- Qout determines the change in the total volume of water in the reservoir at flow Qnet any given time. Determine and plot the total reservoir net flow as a function of time.
=
f
Q(t)
2.5
e
2
-e·
1.5
~ B
0
>
Qjp(l)
I I I I I I I
Qout (t)
I I I I
r-------~
---
~
c
e=
1------.r 1
;;;-
I
0
:
·------------
0.5
2
4
6
8
10
12
Time (months) Figure 1.8:
Reservoir volume flow rates.
(c) The volume of water V(t) in the reservoir at any time, t, is equal to the initial volume V0 at time t = 0 plus the integral of the total reservoir net flow over time
V (t)
= Vo +
1'
Qnctdl
Determine the total volume of the water in the reservoir as a function of time if at time t = 0, V0 = 4 x 108 m 3 • Plot the volume as a function of time. When is the volume a minimum? In many urban areas, a water emergency is declared if a reservoir reaches a sufficiently low level, which for the example is 2.5 x 1011 m 3 • Does the volume of water in the reservoir ever decrease to an emergency level during the year'?
1.5. A large truck pulls into a highway weighing station to ensure that it meets state weight limits. The truck's weight is 24,000 lb. (a) What is the mass of the truck (i) in SI units and (ii) in English uiuts. (b) Use Ne\Vlon's laws of motion to determine the propulsive force that the truck's engine must develop to accelerate the truck at 2.5 ftls 2 in (i) Sl units and (ii) in English units. (c) If the truck accelerates from rest with a constant force of I 0,000 ,lb, how far has it traveled after 10 seconds? What is its speed at this time?
Chap.
t
17
References
1.6. One of the proposals to reduce pollution in congested areas is to encourage the use of electric battery-powered automobiles. In these vehicJes an electronic module controls the energy ftow from a battery to an electric motor, which drives the wheels of the car through a gear train. The electric current delivered to the motor is established by the driver through adjustment of the controller. We wish to formulate a model for the electric car that is appropriate for operation on a nominally straight, level road. (a) Using an engineering sketch, define the car and propulsion system including inputs and any outputs of interest (b) In a test drive on an electric vehicle it was found that an average of 20 horsepower was used over the trip duration of two hours. How many joules of electrical energy are used from the battery during the trip? If the car uses 24-volt batteries, what was the average current drawn during the trip (assume that the battery voltage remains constant).
1.7. A robotic machine is used to move a mass m in a cyclic motion along a straight line. For high speed motions the dominant force which the robot must provide is the inertial force associated with the mass. Assume that the prescribed cyclic motion is x = xo sin wt. where x is the displacement in meters and w is the angular frequency in radls, and xo is the amplitude of the motion. (a) Determine expressions for the mass velocity and acceleration as a function of time. If the displacement xo is 2.0 em, at what cyclic frequency is the maximum acceleration of the mass equal to 5 times the nominal acceleration of gravity. (b) The mass inertial force is equal to the product of the mass and the acceleration. For a frequency of (J) =50 radls what is the largest mass that can be moved with an amplitude of x 0 = 2.0 em if the robotic machine can provide a peak force of 10 N?
REFERENCES [1) Paynter, H. M., Analysis and Design of Engineering Systems, MIT Press, Cambridge, MA, 1961. [2] Koenig, H. E., Tokad, Y., Kesavan, H. K., and Hedges, H. G., Analysis of Discrete Physical Systems, McGraw-Hi11, New York, 1967. [3] Shearer, J. L., Murphy, A. T., and Richardson, H. H., Introduction to System Dynamics. AddisonWesley, Reading, MA, 1967. [4] Blackwell, W. A., Mathematical Modeling of Physical Networks, Macmillan, New
Yor~
1967.
[5] Crandall, S. H., Karnopp, D. C., Kurtz, E. F., Jr., and Predmore-Brown, D. D., Dynamics of Mechanical and Electromechanical Systems, McGraw-Hill, New York, 1968. [6] Doebelin, E. 0., System Dynamics Modeling and Response, Charles E. Merrill, Columbus, OH, 1972. [7] Ogata, K., System Dynamics, Prentice Hall, Englewood Cliffs, NJ, 1978. [8] Karnopp, D. C., Margolis, D. L., and Rosenberg, R. C., System Dynamics: A Unified Approach (2nd Ed.), John Wiley, New York, 1990. [9] Shearer, J. L., and Kulakowski, B. T., Dynamic Modeling and Control of Engineering Systems, Macmillan, New York, 1990. [10] Luenberger, D. G., Introduction to Dynamic Systems, Theory, Models, and Applications, John Wiley, New York, 1979. [11] Riggs, D. S., Control Theory and Physiological Feedback Mechanisms, Williams and Wilkins, Baltimore, MD, 1970. [12] Forrester, J. W., Principles of Systems, MIT Press, Cambridge, MA, 1968. [13] Wiesner, K. B., ..Taming Lively Buildings," Civil Engineering, 56(6), 54-57, June 1986.
18
Introduction
Chap. 1
[14] Kabnan, R. E., ••0n the General Theory of Control Systems:• Proceedings of the First IFAC Congress, 481-493, Butterworth, London, 1960.
[ 15] Athans, M., and Falb, P. L., Optimal Control: An Introduction to the Theory and Its Applications, McGraw-Hill, New York. 1968. [16] Schultz, D. G., and Melsa, J. L., State Functions and Linear Control Systems, McGraw-Hill, New York, 1967. [17] Timothy, L. K., and Bona, B. E., State Space Analysis: An Introduction, McGraw-Hill, New York, 1969.
2
Energy and Power Flow in State-Determined Systems
2.1
INTRODUCTION 2.1.1 Energy Conservation in Physical Systems
A set of primitive elements that form the basis for construction of dynamic models of a physical system may be defined from the energy flows within the system and between .the system and its environment. In this chapter we define such primitive elements, which characterize the generation, storage, and dissipation of energy in four energy domains: mechanical, electric, fluid, and thermal. In Chap. 6 an additional set of elements representing energy flows between energy domains are defined. The principle of energy conservation provides a fundamental basis for characterizing and defining the primitive elements. An idealization is adopted in which it is assumed that a system model exchanges energy with its environment through a finite set of energy or power ports [1] as shown in Fig. 2.1. For systems defined by such a boundary, the law of energy conservation may be written as d£ dt
P(t) = -
(2.1)
where tis time, £(t) is the instantaneous stored energy within the system boundary, and 'P(t) is the instantaneous net power flow across the system boundary (where power flow is defined as positive into the system and negative out of the system). Equation (2.1) states that the rate of change of stored energy in the system is equal to the net power flow 'P(t) across the system boundary. It is assumed that the system itself contains no sources of energy. All sources are external to the system and influence the dynamic behavior through the power flows across the system boundary. 19
20
Energy and Power Flow in State-Determined Systems
Figure 2.1:
Chap.2
Power flows into a dynamic system.
For the systems considered in this chapter, the power flow across the system boundary over an incremental time period dt may be written as 'Pdt
= L\W + L\H
(2.2)
where L\ W is the increment of work performed on the system by the external sources over the period dt and L\H is the increment of heat energy transferred to the system over the same period. Positive work and heat flow are defined as increasing the system total energy. The work done on the system and heat flow crossing the system boundary result in a change in the total energy level of the system as expressed by Eq. (2.1 ), which when integrated with respect to time and combined with Eq. (2.2) is a form of the first law of thermOdynamics [2]. 2.1.2 Spatial Lumping in Physical Systems In the formulation of system models. it is convenient to consider power flows across the
system boundary to be localized at a set of discrete locations on the system boundary as shown in Fig; 2.1. H the power flows are localized at n sites, the net power flow is the sum of the power. flows at each location: 'P(t)
= 'Pt (t) + 'P2(t) + ·· · + 'Pn(t) n
= L'P;
(2.3)
i=l
where 'P; (t) is the power flow at location i. The power flows include power delivered {or extracted) by energy sources in the environment as well as power flows from the system due to energy dissipation in system elements. The power flows in Eq. (2.3) do not include the flow of power between system elements contained within the boundary. .In a similar manner the total system energy· at any instant may be expressed as the sum of energies stored at m discrete locations within the system: e(t) = Et (t)
+ E2(t) + · ·· + Em(t) (2.4)
Sec. 2.2
Mechanical Translational System Elements
21
The m energies are associated with a set of m energy storage elements in the system model. The energy conservation law may then be expressed in terms of local power flow sites and energy storage elements as n
L:P;(t) i=l
m
d£·
i=J
dt
= L:-'
(2.5)
which states that the total power flow across the boundary is distributed among the m energy storage elements. Equation (2.5) may be applied directly to systems consisting of lumped-parameter elements where elements considered to be "lumped" in space have locally uniform system variables and parameters. In a lumped-parameter model, the variables at a given spatial location are used to represent the variables of regions in the near vicinity of the point In Example 1.2, which examines an automobile traveling along a road under the action of propulsion forces, a single velocity is used to represent the motion of the car as a whole; in effect the entire car mass m is considered to be located at a single position. All points on the body are represented by a single forward velocity. Differences in the velocity of different parts of the car, for example, resulting from vibration in the car structural members, are neglected. Similarly, in the automobile suspension examined in Example 1.4, the whole car is lumped into a small number of discrete, interconnected elements. In lumped-parameter dynamic models the variables at discrete points in the system are functions of time and are described by ordinary differential equations. They are not considered continuous functions of both time and position as is characteristic of spatially continuous or distributed models described by partial differential equations [3]. In the following sections, variables are defined for power and energy flow at discrete locations in mechanical, electric, fluid, and thermal systems. These variables provide the basis for defining a set of lumped-parameter elements representing energy sources, energy storage, energy dissipation, and energy transformation. Each-element is described in terms of a constitutive equation expressing the functional relationship for the element in terms of material properties and geometry.
~.2
MECHANICAL TRANSLATIONAL SYSTEM ELEMENTS
Mechanical translational systems are characterized by straight-line or linear motion of physical elements. The dynamics of these systems are governed by the laws of mechanical energy conservation and are described by Newton's laws of motion. The power flow to and from translational systems is through mechanical work supplied by external sources, and energy is dissipated within the system and transferred to the environment through conversion to heat by mechanical friction. There are two mechanisms for energy storage within a mechanical system: 1. As kinetic energy associated with moving elements of finite mass
2. As potential energy stored through elastic deformation of springlike elements.
Energy and Power Flow in State-Determined Systems
22
Chap.2
Two energy-conserving elements, based on these storage mechanisms, together with a third dissipative element representing frictional losses, are used as the basis for lumpedparameter modeling of translational systems. The functional definition of these elements may be developed by considering the mechanical translational power flow into a system. 2.2.1 Definition of Power Flow Variables
Figure 2.2 shows ·~m energy port into a mechanical system through which power is transferred by translational motion along a prescribed direction. For any such mechanical system the power flow 'P(t) (W) at any instant is the product of the velocity v(t) (rnls) and the collinear force F(t) (N): 'P(t)
= F(t)v(t)
(2.6)
The increment in energy expended or absorbed in the form of mechanical work flowing through a power port in an elemental time period dt is defined as ~W
= 'P(t) dt = F(t)v(t) dt
~W
(2.7)
By convention the external source is said to perform work on the system when the power is positive, that is, when F(t) and v(t) have the same sign (or act in the same direction), as shown in Fig. 2.2. When 'P(t) > 0, the external source supplies energy to the system. This energy may be stored within the system and later recovered, or it may be dissipated as heat and thus rendered unavailable to the system. If F(t) and v(t) act in opposite directions, the ·power flow is negative and the system performs work on its environment. The two variables F(t) and v(t) are the primary variables used to describe the dynamics of mechanical translational systems throughout this book. Reference
r--------. Power into port @l(t)
Reference direction
=F(t)v(t)
Figure 2.2: Mechanical system with a single power port.
~
Equation (2.7) may be integrated to determine the total mechanical work W transferred through the port in a time period 0 ~ t ~ T: W
=iT
'P(t)dt
=iT
(2.8)
Fvdt
It is useful to introduce two additional variables; the linear displacement x(t) (m), which is the integral of the velocity: x(t) =
fo' v(t)dt +x(O)
or
dx
= vdt
(2.9)
Sec. 2.2
Mechanical Translatianal System Elements
23
and the linear momentum p(t) (N-s), which is defined as the integral of the force: p(t)
= Ia' F(t) dt + p(O)
or
dp = Fdt
(2.10)
The work performed across a system boundary in time dt may be expressed in terms of the power variables and the integrated power variables in the following three forms: LlW LlW LlW
=
= =
F(vdt) v(Fdt) (Fv)dt
= = =
Fdx vdp (vF)dt
= =
dt:'kinetic
=
d£'dissipated
dEpotential
(2.11)
These three forms of power flow illustrate the origins of the definitions of the three lumped-parameter elements used in mechanical system models - the spring, mass, and damper elements. The first expression states that the mechanical work may result in a change in the system stored energy through a change in displacement dx, which is usuaiJy associated with potential energy storage in a springlike element. The second expression states that the work may result in a change in momentum dp, which is usually associated with energy storage in a masslike element. The third expression indicates the work is converted into heat, as occurs with friction in a mechanical system, and is no longer available in mechanical form. The energy is then considered to have been dissipated and transferred to the environment. Lumped-parameter models of physical systems may be defined in terms of these three elements. Often considerable engineering judgment is required in deciding how to represent physical components in terms of primitive elements. These decisions require knowledge of the function of the component within the. system. For example, a large coil spring that does not undergo any deflection but has a uniform velocity might be represented as a simple mass because the only energy stored is kinetic. A coil spring in an automobile suspension might be represented as a pure spring for slowly varying applied forces since the energy stored within it is based on the spring deflection. For very rapid1y varying deflections of the coil, however, a significant amount of kinetic energy might be associated with the rapid1y moving mass of the coil spring. In high-performance mechanical systems a model of a physical spring may need to include both primitive spring and mass effects. 2.2.2 Primitive Translational Element Definitions Energy Storage Elements Energy storage within a mechanical translational system may be described in terms of two lumped-parameter primitive elements defined in terms of the power and integrated power variables.
Translational Spring: A pure mechanical translational spring element is defined as an element in which the displacement x across the element is a single-valued monotonic function of the force· F: X= :F(F) (2.12) where FO is a single-valued monotonic function, as shown in Fig. 2.3. Equation (2.12) is known as the constitutive equation for a spring. The displacement x is the net spring
Energy and Power Flow in State-Determined Systems
24
Chap. 2
deflection, as shown in Fig. 2.3, expressed in tenns·of the difference of two measurements in the fixed coordinate system, less the spring rest (natural) length lo, that is, x = x2-Xt -lo. v = v2 -v1 VJ(t) /.
ttK
X
v2(t)
2~
cu
F(t) . ~~~ F(t)
e
x,~,_J
-5.8 xo "' Q F0
F
Force Figure 2.3: Definition of the pure translational spring element.
From Eq. (2.11) the energy stored in a spring with displacement x is &=
fo" Fdx
(2.13)
and is illustrated as the shaded area in Fig. 2.3. The energy stored in the spring is a direct function of x and is zero when x = 0. A pure spring is any element described by Eq. (2.12) and may be represented by a nonlinear relationship between x and F. The restriction that the relationship is single-valued and monotonic ensures that a unique relationship exists between X and F so that given a displacement x, the force may be uniquely determined, or given F, the displacement may be uniquely determined. An ideal or linear spring is defined as a pure spring in which the relationship between displacement and force is linear so that Eq. (2.12) becomes x·=CF
(2.14)
where the constant of proportionality C is defined to be the spring compliance (miN). In engineering practice linear springs are usually described by the reciprocal of the compliance, and the linear relationship ofEq. (2.14) is written F=Kx
. (2.15)
where K = 1I C (N/m) is defined to be the spring constant or stiffness. Equation (2.15) is Hooke's Jaw for a linear spring [4]. For an ideal spring with a displacement x from the rest position and an applied force F K x, the energy stored is
=
E=
XFdx= LX Kxdx=-Kx I 1 2 = - F2 . o 2 2K Lo
(2.16)
The stored energy is always a positive quantity since it depends on the square of the displacement or force.
Sec. 2.2
Mechanical Translational System Elements
25
The relationships between force and displacement for springs depend on geometry and material properties. Tabulations of spring constants and derivations of constitutive equations for simple coil and beamlike springs are contained in several references [4, 5]. Figure 2.4 shows several configurations for mechanical springs, including a coil spring, a deflecting beam, and a compressible material. The definition of a pure or ideal spring and its stored energy, given in Eq. (2.16), requires that the displacements be defined as shown in Fig. 2.4, and so at x = 0 the force and energy are both zero and any finite displacement x is associated with energy storage. F(t)
t
(a) Coil spring
(b) Cantilevered beam
(c) Compressible material
Figure 2.4: Examples of translational springs.
An equation for the ideal spring, expressed directly in terms of the power variables force and velocity, may be derived by differentiating the ideal constitutive equation Eq. (2.15): dF (2.17) -=Kv dt Equation (2.17) is called an elemental equation because it expresses the element characteristic in terms of power variables. Mass Element: A pure translational mass element m is defined as an element in which the linear momentum pis a single-valued monotonic function of the velocity v, that is
P = :F(v)
(2.18)
In general for very high velocities, the constitutive relationship for a pure mass is given by the nonlinear relativistic relationship [6]
mv
p= -;:::=== 2 (vfc)
Jt-
(2.19)
where m is the mass at rest (kg), and c is the velocity of light (m/s). This constitutive relationship is shown in Fig. 2.5. The energy of the mass is
E=
1P vdp
and is indicated by the shaded area in the figure.
(2.20)
Energy and Power Flow in State-Determined Systems
26
Chap. 2
Constant velocity reference v1
v0 Velocity Figure 2.5:
v
Definition of the pure translational mass element
At velocities much less than the speed of light, v equation for an idea] mass element:
<< c, Eq. (2.19) reduces to the linear (2.21)
p=mv
where the mass m depends on geometry and material properties and represents the classic newtonian mass. The energy stored in an ideal mass is
e=
p • pvdp= Lp -dp=-p om 2m Lo
2
1 =-mv2 2
(2.22)
and is always positive because it depends on the square of the momentum or velocity. For the ideal mass, an elemental equation describing the element in terms of power variables may be derived by differentiating Eq. (2.21 ):
dv F=mdt
(2.23)
This form of the elemental equation is a statement of Newton's law relating force to mass and acceleration. The schematic symbol for the primitive mass element, shown in Fig. 2.5, depicts a mass with velocity v referenced to a nonaccelerating coordinate system. The mass symbol has two terminals, one associated with the velocity v of the mass element and the second connected to the inertial reference frame to indicate that velocity is always measured with respect to the reference. Energy Dissipation Element-The Damper: A pure mechanical translational damper is defined as an element in which the force is a single-valued monotonic function of the velocity across the element. A relationship for a pure damper is shown in Fig. 2.6 and is of the form F =F(v)
(2.24)
where F() ·is a ·single-valued monotonic function. The symbol for a damper is shown in Fig. 2.6, where the velocity vis the difference in velocities across the damper terminals, that is, v v2 - Vt •
=
Sec. 2.2
27
Mechanical Translational System Elements
v2(t)
I
F(t)
0~
2
.I Reference Velocity v Figure 2.6:
Definition of the pure translational damper elemenL
For an ideal damper the constitutive relationship is linear and is written
F=Bv
(2.25)
where B is defined to be the damping constant (N-s/m). The power flow associated with an ideal damper is
'P= Fv
1 2 = Bv2 = -F B
(2.26)
and is always positive, so power always flows into the damper. Energy and power cannot be recovered from the damper; the mechanical work performed on the damper is converted to heat, becoming unrecoverable as mechanical energy and transferred from the system to its environment The constitutive equation for a damper, Eq. (2.25), is expressed directly in tenns of the power variables and is also the elemental equation. The damping constant B is a function of both geometry and material properties. Linear damping phenomena, as described by Eq. (2.25), are known as viscous damping effects. In mechanical systems frictional drag forces occur between two members in contact that are moving relative to each other. When the sliding surfaces are sufficiently lubricated, forming a hydrodynamic film, the drag force is proportional to the relative velocity between the surfaces and depends on the roughness of the two· surfaces, the material properties of the surfaces and lubricant, and the normal load force between the members. When there is very little lubrication, the friction forces tend to be relatively independent of speed, as shown in Fig. 2. 7, with an almost constant force. Such damping is nonlinear since the force is not proportional to velocity. Also shown in Fig. 2. 7 is the Coulomb friction characteristic which represents both stiction and sliding friction between two solids. Because this characteristic is not monotonic and a wide range of forces may occur at zero velocity, it is not strictly a pure damper. If the single-valued monotonic requirement is relaxed, the Coulomb characteristic can be considered a quasi-pure damper and can be used (albeit with care) in models of physical systems.
Energy and Power Flow in State-Determined Systems
28
Chap. 2
"- Aerodynamic drag
Slightly velocitydependent Velocity v
friction Figure 2.7:
Examples of frictional characteristics representing mechanical damping.
An additional form of damping is associated with the drag force on an object traveling through a fluid, such as the aerodynamic drag on an automobile or aircraft. This drag force is nonlinear and is often approximated as being proportional to the square of the velocity:
F = clvlv
(2.27)
where Ivi is the absolute value of velocity and c is a drag constant that depends on the geometry of the object and properties of the fluid. (The tenn IvI v is lmown as the absolute square, or absquare, and generates a force which changes sign as the velocity changes direction so that power is always dissipated as a result of the drag force.)
Source Elements Two source elements are defined in terms of the power variables for modeling mechanical translational systems: 1. The ideal force source is a source of energy in which the force exerted is an independently specified function of time Fs (t). The force produced by this element is independent of the velocity at the input port. The velocity produced by the source depends entirely on the system to which it is connected. 2. Conversely, the ideal velocity source is an element in which the velocity is an independently specified function of time ~r (t) and is maintained without regard to the force necessary to generate the velocity. The force produced by the source is detennined entirely by the reaction of the system to which it is connected. These sources are illustrated in Fig. 2.8. These two ideal sources may continuously supply or absorb. energy since in each one power variable is independently specified while the complementary· power variable is determined by the system to which the source is coupled. Ideal sources are capable of supplying infinite power and are idealizations of real sources, which have finite power and energy capability. In Chap. 4 models of real power-limited sources are developed by combin.ing ideal source and damper elements.
29
Mechanical Translational System Elements
Sec. 2.2
~(1)
f's(t)
(b) Velocity source
(a) Force source Figure 2.8:
Ideal mechanical translational sources.
Example2.1 To illustrate the power flow in mechanical systems, consider the distance required for an automobile to stop when the driver suddenly applies the brakes, locking the wheels so that a skid occurs. The system model is sketched in Fig. 2.9, where the system is defined as the automobile and the tire-pavement interaction and where the output variable of interest is the car velocity. A model for the car after the wheels are locked at time t = 0 may be formulated by considering 1. the car as a simple mass element m which at timet= 0 has velocity vo. 2. for timet > 0, that the only forces acting on the car are the tire-pavement resistance force Fr and the weight of the car which generates the normal force between the car and the pavement, and 3. a model for the tire-pavement interaction force after the wheels are locked to be represented by a damper with a constant resistance force equal to (i)
Fr = iJ.mg
where m is the mass of the car, g is the acceleration due to gravity, and iJ. is the coefficient of sliding friction for the tire-pavement interface.
v::: v0
v:::O
~
~
~/77//TM/T/717/T/T/.ITI//T~Jll: j I x =0
Stopping distance
x1
Car stopped
Brakes locked Figure 2.9:
11
Automobile stopping distance.
The stopping distance may be determined by equating the initiai energy of the car f:o to the energy dissipated Ed at the tire-pavement interface during the skid. When all the initial energy has been dissipated, the car velocity has decreased to zero. The initial energy of the mass is 1
2
Eo= -mv0 2
(ii)
30
Energy and Power flow in State-Detennined Systems
Chap. 2
The energy dissipated by the damper over the time period 0 to 1 is the integral of the power dissipated by the resistance force: (iii)
Since the resistance force is assumed to be constant. the energy dissipated is (iv) where xf is the distance traveled (displacement) in time 0 to 1. The stopping distance may be determined by equating the initial energy to the energy dissipated: (v)
and using Eq. (i), (vi) Equation (vi) indicates that. in terms of this model, the stopping distance during a skid is independent of the mass m. For a car traveling at 20 m/s with a pavement-tire friction coefficient of 0.8, the stopping distance is 202
Xj
= 2 X 0.8 X 9.8)
(m/s)l/(rn/s
2 )
(vii)
=25.5m The stopping distance is proportional to the square of the speed, and for an initial velocity of 10 mls the distance is reduced to 6.4 m.
2.3
MECHANICAL ROTATIONAL SYSTEMS 2.3.1 Definition of Power Flow Variables In rotational systems power is transmitted and energy is stored by rotary motion about a single axis. The power flow across a rotational system boundary is through angular motion of a shaft, as illustrated in Fig. 2.11. In a rotational system, the power flow at any instant may be expressed as the product of the torque acting about the fixed axis and the angular velocity about the axis: 'P(t) = T(t)O(t)
(2.28)
where T is the applied torque (N-m) and O(t) is the angular velocity (radians/secon
Sec. 2.3
Mechanical Rotational Systems
31
I
Force
Radi··I!~F r
Rm~·r ;~al
Center of rotation
velocity
Center of rotation
T=Fr
O=vlr
Rgure 2.10:
Definition of power variables in a rotational system.
Also shown in Fig. 2.11 is the convention for schematically depicting torques on shafts. An applied torque is shown as an arrow aligned along the shaft; with a length proportional to the magnitude of the torque and with a direction defined by the "right-hand grasping rule." If the shaft is grasped in the right hand with the fingers curling in the direction of the assumed positive angular velocity, the direction of the arrow representing a positive torque is in the direction pointed to by the thumb. Thumb points in direction of positive torque vector
Power into port Angular ~(t) = T(t) O(t) velocity Torque O(t) T(t)~ system
(a) An input port represented by a shaft
Rgure 2.11:
(b) Right-hand grasping rule
Power flow and torque sign convention in a rotational system.
The rotational work crossing the system boundary over a time increment dt is ~W
= T(t)Q(t) dt
(2.29)
In a manner analogous to mechanical translational systems, the energy may be expressed directly in terms of integrated power variables by defining angular displacement e as the integral of the angular velocity: 19(1)
=
fo' !J(t)dt
or
de= Q(r) dr
(2.30)
with units of radians, and angular momentum h as the integral of the torque: h(t)
with units of N -m-s.
= fo' T(t) dt
or
dh = T(t)dt
(2.31)
Energy and Power Flow in State-Detennined Systems
32 The increment in following three forms:
wor~
.~W
~w
~w
=
=
=
Chap.2
Eq. (2.29), across a boundary may then be expressed in the
=
T(Odt) n(Tdt) Tfldt
= =
Tde Odh OTdt
= = =
d£Potential df:kinetic
(2.32)
df:dissipated
Mechanical rotational power flow into a system. may result in a change in stored energy through changes in angular displacement de associated with a rotational spring, or may result in changes in angular momentum dh associated with a rotational mass or inertia, or may be dissipated by conversion of rotati~nal work to hea~ in a rotational damper.
2.3.2 Primitive Rotational Element Definitions Energy Storage Elements
Rotational Spring: A pure rotational spring, also known as a torsional spring, is defined as an element in which the angular displacement e is a single-valued monotonic function of the torque as illustrated in Fig. 2.12. A pure spring has a general constitutive relationship:
e = :F
(2.33)
The energy stored in a pure. rotational spring is
(e
E=
lo
(2.34)
Tde
and is illustrated by the shaded area in Fig. 2.12. An ideal spring is one in which the constitutive relationship Eq. (2.33) is linear and may be written (2.35)
where Kr is the rotational spring constant, or rotational stiffness, with units of N-m/rad.
T0 Torque T Figure 2.12: Definition of the pure rotational spring element
Sec. 2.3
33
Mechanical Rotational Systems
For an ideal spring the energy E stored with an applied torque T is (2.36)
The symbol for the rotational spring, shown in Fig. 2.12, is similar to that for the translational spring. The rotational displacement e is defined as the displacement from a rest displacement resulting from a finite torque and the resultant energy storage. As shown in Fig. 2.12, the relative displacement between the ends of the spring is the difference between displacements at each end measured with respect to a fixed reference, that is, 9 = 92 - 9 1· The rotational spring constant Kr in the constitutive equation is a function of material properties and geometry. In rotational systems, shafts and couplings often have rotational stiffness which can be determined analytically or have been measured experimentally and tabulated [4, 5]. An elemental equation for the ideal rotary spring may be derived by differentiating Eq. (2.35) to give an expression in terms of power variables: O= _1 dT Kr dt
(2.37)
Rotational Inertia Element: A pure rotational inertia element is defined as an element in which the angular momentum h is a single-valued monotonic function of angular velocicy: h
= .1'(0)
(2.38)
The energy stored in a pure inertia is illustrated in Fig. 2.13 and may be computed directly from Eq. (2.32). When the constitutive equation is linear, the ideal inertia may be defined as (2.39)
h=JO
where J is defined as the rotational moment of inertia (kg-m2 ). h
O=O:z-0 1 ---1
T(r)~~L_i! 2~~
Constant angular velocity reference
e
!a
€~
j ho c 0
I77'7'TT~~rr•.-rr..,-~.r7"71
nl
no Angular velocity Figure 2.13:
Definition of the pure rotational inertia elemenL
o
Energy and Power Flow in State-Determined Systems
34
Cbap.2
The value of the moment of inertia of a rotating body depends on the geomeny and mass distribution and has been tabulated for a variety of bodies in [4, 5]. The moment of inertia of a single lumped mass m rotating at a constant radius r about an axis is J = mr2 , and for a collection of n discrete mass elements the net moment of inertia is the sum of each elemental moment of inertia: n
J
= :Em;rf
(2.40)
i=l
For a general body with a spatially distributed mass rotating about a fixed axis, the inertia J may be determined by integrating over the body as shown in Fig. 2.14.
J=mr2 (a) Point mass at radius r
(b) Circular disk
Massm
£
\n mL2
J=w (c) Rod rotating about its centroid Figure 2.14:
Moments of inertia of typical bodies.
The energy stored in an ideal inertia is &=
ho Odh = -1 Lho hdh = J L 0
0
1 2J
1 2
-h~ = -JQ 2
(2.41)
The symbol for a rotary inertia is shown in Fig. 2.13, where the angular velocity is referenced to a fixed axis to indicate that the angular velocity of the inertia must be referenced to a fixed or nonaccelerating reference frame. The elemental equation for the ideal rotary inertia may be derived by differentiating Eq. (2.39) to obtain: T=JdQ . dt
(2.42)
Energy Dissipation Element A pure rotational damper is defined as an element in which the torque is a single-valued monotonic function of the angular velocity across the element: T =.1'(0)
(2.43)
Sec. 2.3
Mechanical Rotational Systems
35
The symbol for the rotary damper is shown in Fig. 2.15 where the angular velocity across the element is defined in terms of the difference in angular velocities at each end of the element, 0 = 02 - n •. The ideal rotary damper has a linear constitutive equation: T=B,Q
(2.44)
where B, is the rotary damper constant (N-mls). T n=~-n. ~ 1(t)
n
~ T(r)-~ -T(r) Reference
Angular velocity Figure 2.15:
n
Definition of the pure rotational damper element.
The power dissipated by an ideal damper is (2.45) and is always positive; that is, power is always dissipated. As indicated in Eq. (2.32), the work performed on a rotary damper element is converted to heat and transferred to the system environment Rotational damping occurs naturally from frictional effects in bearings an~ like translational friction, is often highly nonlinear. The ideal or linear form, given by Eq. (2.44), is often known as viscous rotary damping.
Source Elements Two energy source elements are defined for mechanical rotational systems:
1. The ideal torque source is an element in which the torque exerted on the system is an independently specified function of time Ts (t). The angular velocity produced by the source is determined by the reaction of the system to which it is connected.
2. The ideal angular velocity source is an element in which the angular velocity at a port is an independently specified function of time Sls(t). The torque produced by the source is determined by the system to which it is connected. These two ideal sources, illustrated in Fig. 2.16, are capable of supplying infinite power and thus are idealizations of real power-limited sources.
36
Energy and Power Flow in State-Determined Systems ~(t}
Chap. 2
c-> 2
n.(t)
~(t}-
n.(t} = nser>
(b) Angular velocity source
(a) Tmque source
Figure 2.16: Mechanical rotational sources.
Example2.2 A shaft-flywheel system, as shown in Fig. 2.17~ is an integral part of many mechanical systems such as pumps, turbines, and automobile transmissions. Long, lightweight shafts exhibit significant compliance and act as torsional springs. One of the issues in the design of these systems is the amount of ''windup" or twist that occurs in the drive shaft as the flywheel is accelerated or deaccelerated. A worst-case operating condition occurs when the input end of the drive shaft is stopped suddenly while the flywheel is turning at its normal operating speed. What is the maximum deflection across the shaft? With knowledge of the shaft deflection~ the stresses within the shaft and the possibility of failure can be determined. Flywheel inertial
Shaft deflection 8
=82- 8 1
Figure 2.17:
Shaft windup during ttansients.
A model can be formulated to determine the maximum shaft deflection as follows: 1. The flywheel is considered an ideal rotary inertia J with an initial angular speed of 0 0 • 2. The shaft is considered an ideal rotational spring with rotational stiffness Kr. 3. The bearings and all other dissipative features, for example aerodynamic drag on the flywheel, are neglected.
The shaft deflection is estimated by noting that the maximum shaft deflection E>m occurs when all the kinetic energy in the flywheel is transferred to potential energy in the shaft with no losses: (i)
which yields
·em= '/[(; /TOo
(ii)
Sec. 2.4
Electric System Elements
37
The maximum shaft deflection is therefore directly proportional to the initial flywheel angular velocity and is proportional to the square root of the inertia/stiffness ratio.
l.4
ELECTRIC SYSTEM ELEMENTS 2.4.1 Definition of Power Flow Variables In the electric domain the power flow through a port represented by a pair of wires is the product of cu"ent and voltage drop, as shown in Fig. 2.18: 'P(t)
= i (t)v(t)
(2.46)
where i (A) is the current flowing into the port, and v (V) is the voltage drop across the tenninals. The electric work flowing across a system boundary in an incremental time period dt is
fl. W = i (t)v(t) dt
(2.47)
The work may be expressed in terms of electric domain variables by defining the integrals of the two power variables:
q
= fo' j dt
or
dq
= i dt
(2.48)
where q is the electric charge in units of coulombs (C) (A-s) and
A=
fu' vdt
or
d'A = vdt
(2.49)
where J.. is defined to be the magnetic flux linkage (V-s or Wb). Current i(t) .....
-+
Voltage
-
Electric
Power into port
system
~(t)
v(t)
I
Reference voltage vrer
= v(t)i(t)
-
Figure 2.18: Electric power port.
The unit of charge, the coulomb, corresponds to the negative of the total charge associated with 6.22 x 1018 electrons and is equivalent to 1 A-s. The current i is the rate of flow of electric charge q and is positive in the direction of positive charge flow (or in the direction opposite electron flow). The voltage represents the potential difference between two points and is equivalent to the work performed in moving a unit charge between the two points with a potential difference of v. The distribution of charge within a medium leads to the establishment of an electric field as shown in Fig. 2.19a [7].
Energy and Power Flow in State-De~ined Systems
38
Chap.2
+ .. (a) Energy st~rage in an eleclric field
(b) Energy storage in a magnetic field
Figure 2.19: Energy storage mechanisms. (a) Electric field between two conducting plates, and (b) magnetic field associated with a conducting coil.
Flux linkage, the integral of voltage drop, is associated with the magnetic flux generated in a coil of wire carrying a current, as illustrated in Fig. 2.19b. The flux linkage is defined as the total magnetic flux passing through, or linking, the coil. The total flux linkage is a function of the magnetic flux density produced by the coil, the area of the coil, and the total number of turns in the coil through which the flux passes [7]. The electrical work passing through a system boundary in time dt may be written in terms of power variables and integrated power variables in the following three fonns: AW AW AW
= = =
i(vdt) v(idt) i v dt
= = =
idA. vdq vi dt
= =
dEma,;netic
=
dEmssipated
d£electrical
(2.50)
Electrical work crossing a system boundary may result in a change in the magnetic flux associated with the system through electromagnetic energy storage in inductors, a change in the total charge in the system associated with electrosfB:tic energy storage in capacitors, or dissipation in resistOrs through the generation of heat with no electric energy storage.
2.4.2 Primitive Electric Element Definitions Energy Storage Elements
Electric Inductor: The pure inductor is defined as an element in which the flux linkage is a single-valued monotonic function of the current: A.= :F(i)
(2.51)
The constitutive characteristic of an inductor is shown in Fig. 2.20. When the relationship between flux linkage and current is linear, the ideal constitutive equation is l=Li
(2.52)
where the constant of proportionality L is defined as the inductance in henrys (H) (V-s/A). Practical inductors used in electronic circuits are often specified in millihenries (mH) or Io-3 H, or microhenries (JLH) or to-6 H.
Sec. 2.4
39
Electric System Elements Shaded area is energy stored at flux
v2
i
L
f
v1
:; Xo
~ 2 v = v2 - v1 1
Xo )7.,..,.7~.~,,.;,
Jt io
Current Figure 2.20: Definition of the pure electric inductance elemenL
The energy stored in an ideal inductor is
£=
}.
1 /.}. 1 1 idJ...=J...dJ...=-J... 2 =-Li 2 o L o 2L 2
!.
(2.53)
The property ofinductance is associated with the magnetic fields generated by currents in a conductor, usually in the form of a coil of wire. The value of the inductance L is a function of the coil geometry and the material properties of the core on which it is wound. The circuit symbol for an inductor is shown in Fig. 2.20. The inductance for two coil geometries is shown in Fig. 2.21 where it is noted that the inductance is proportional to the permeability JL of the material through which the magnetic flux passes and to the square of the number of turns of wire. A simple coil of wire with an air core has a relatively low inductance because air has a low magnetic permeability. To achieve a higher inductance for a given coil geometry, ferromagnetic materials with high magnetic permeability are used as a core within the coil. Such materials are, however, subject to magnetic saturation and losses and are not suitable for all applications. N turns on length I
•I
14
CoreofareaA
p~~~~/Md_.wi~ ~ _p.N2A L- I
L=
(a) Helically wound coil
~
In(%)
(b) Two parallel conductors in hairpin configuration
Figure 2.21: Inductance of two conductor configurations.
An elemental equation for the inductor, expressed in terms of power variables, may be derived by differentiating the constitutive equation, Eq. (2.52): di
v=Ldt
(2.54)
Energy and Power flow in State-Determined Systems
40
Chap. 2
Electric Capacitor: A pure electric capacitor is defined as an element in which the electric charge q stored is a single-valued monotonic function of the voltage v across its tenninals: (2.55) q = F(v)
The constitutive relationship for a pure capacitor is illusttated in Fig. 2.22 where the stored energy is also indicated. When the constitutive relationship for a capacitor is linear, (2.56)
q=Cv
the capacitor is defined to be ideal, and C is the capacitance with units of farads (F) (CN). q
v0
v
Voltage · Figure 2.22: Definition of the pure electric capacitor element
A capacitor stores energy in an electrostatic field established in a nonconducting dielectric material between two conducting surfaces (plates). The value of capacitance C in the constitutive equation depends on the geometry of the plates and the material properties of the dielectric in the gap. For the parallel plate geometric configuration shown in Fig. 2.23, the capacitance is proportional to the plate area, inversely proportional to the separation of the plates, and directly proportional to the dielectric pennittivity €, which for air is 8.85 x to- 12 F/m. The energy stored in an ideal capacitor is
The elemental equation for the ideal capacitor may be found by differentiating the constitutive equation, Eq. (2.56): i =Cdv dt
(2.58)
Electric capacitors are used in electronic and electric equipment They come in many forms with different plate geometries and dielectric materials. In practice the farad is too large a unit to be of practical use; in electronic circuits, capacitors are usually expressed in microfarads (J.LF) or 1o-6 F, nanofarads (nF) or Io-9 F, or picofarads (pF) or I o- 12 F. Energy Dissipation Element A pure electric resistor is defined as an element in which the current is a single-valued monotonic function of the voltage drop: i = F(v)
(2.59)
Many electric devices, including semiconductor diodes and resistors, exhibit pure resistance. A typical characteristic is shown in Fig. 2.24. For standard electric resistors, the relationship between voltage and current is linear and the ideal elemental equation becomes Ohm's law: .
1
1
= -v R
(2.60)
where R is the electric resistance in ohms (Q) (VIA). Electric resistance is a function of the bulk resistivity p of the conducting medium and the size and shape of the conductor. (Resistivity is easily visualized as the resistance between opposite faces of a unit cube of the material and has units of Q-m.) Materials with a low resistivity, such as copper which has a resistivity of 1.742 x 10-8 Q-m at room temperature, are known as conductors, while those with very high resistivity are collectively known as insulators. A conductor of length 1 and uniform cross section A has a resistance pi R=-
(2.61)
A
Electric resistors are important components in electronic circuits. They are typically constructed of bulk carbon or a composite material, of a carbon film, or as a coil of resistance wire.
v2
•
R
vi
c
1
u
~
2
v
=v2 -v1
~
::1
v Voltage Figure 2.24:
Definition of the pure electric resistance elemenl
Energy and Power Flow in State-Determined Systems
42
Chap.2
An ideal resistor dissipates power, with the electrical work being convened to heat and made unavailable to the electric system: 2
'P(t) = vi = i R
v2
= -R
(2.62)
Source Elements 1\vo ideal electric source elements may be defined, with symbols as shown in Fig. 2.25. An ideal voltage source is an element in which the voltage across its tenninals is an independently specified function of time Vs (t). It is capable of supplying, or absorbing, infinite current in order to maintain the specified voltage. An ideal current source is an element in which the current supplied to the system is an independently specified function of time ls(t). The terminal voltage of a current source is defined by the system to which it is connected. Both ideal sources are capable of supplying or absorbing infinite power and thus only approximate real power-limited sources.
2
2
Ys(t)
(a) Cunent source
(b) Voltage source
Figure 2.25: Ideal electric sources.
Example2.3 A wire-wound resistor with a nominal resistance of 10 0 is constructed as a coil as illustrated in Fig. 2.26. A feature of wire-wound resistors is that they have relatively good beat transfer characteristics and maintain a relatively constant value of resistance with temperature. However, because of their coil structure, wire-wound resistors also have a small inherent parasitic inductance associated with the magnetic field generated by the current in the coil. Both the resistive and inductive effects may be important in critical applications. To determine the importance of the inductance effect, the frequency of a sinusoidal current waveform at which the magnitude of the voltage drop associated with the inductance is 10% of that due to the resistance is estimated. rii'St, the inductance of the coil is computed assuming an air core. The inductance for the configuration illustrated is
J.LAN 2 L=--
1
(i)
where p, is the penneability of the core, A is the cross-sectional area. l is the length of the coil, and N is the number of turns distributed along the length.
Sec. 2.4
Electric System Elements
43 Area A ls(t) = 10 sin(wt)
Electric current source
Ntums Figure 2.26:
A wire-wound electric resistor.
If the coil has 100 turns. a diameter of 1 em. and a length of 0.02 em. the inductance (assuming a permeability of air of p, = 1.26 x to-6 Him) is _ (1.26 x I0-6)(H x o.oos2 )(IOe>2> _ L 0.02 - 49.5
X
10
_6 H
(ii)
Assume that the resistor is driven by a sinusoidal current source ls(t) = lo sin(wt)
(ill)
where lo is the magnitude and w is the angular frequency. If the resistor is an ideal resistance (without any inductance). the voltage drop VR is determined from the resistance elemental equation: VR
= R/0 sin wt
(iv)
and its magnitude is
lvRI =I Rio sin(wt)l =Rio which is independent of the frequency w. If the coil is an ideal inductor L with no resistance. the associated voltage drop determined from the elemental equation
VL
= L di dt
= IoLwcos(wt)
(v)
VL
is
(vi)
and the magnitude of the voltage drop due to the inductance is (vii)
which is directly proportional to the angular frequency w. Therefore. as the frequency of the applied current waveform is increased, the total voltage drop. which is the sum of the two effects. increases. The frequency CLJo at which the ratio of the magnitude VL to VR is 0.1 is (viii)
Energy and Power Flow in State-Determined Systems
44
Chap. 2
and for the values of L and R given above, Clio
=
0.1 X 10 _ x -6 = 202,020 rad/s 49 5 10
(ix)
As the applied frequency is increased, the inductive voltage drop becomes more significant and
the resistor behaves more like an inductor. At 202,020 radls the voltage drops due to resistance and inductance are equal, and at higher frequencies the inductive voltage drop exceeds the resistance voltage drop.
2.5
FLUID SYSTEM ELEMENTS 2.5.1 Definition of Power Flow Variables
The internal flow of fluids through pipes, vessels, and pumps and the external ftow around vehicles, aircraft, spacecraft, and ships are complex phenomena involving flow variables that are continuous functions of both space and time. As such they generally cannot be represented in tenns of pure lumped elements. With some simplifying assumptions, however, a number of significant characteristics of the dynamic behavior of fluid systems, particularly for one-dimensional pipe flows, can be adequately modeled with lumped-parameter elements. ·In this section we define a set of lumped-parameter elements that store and dissipate energy in networklike fluid systems, that is, systems that consist primarily of conduits (pipes) and vessels filled with incompressible fluid. These definitions are analogous to those for mechanical and electric system networks. The power flow thiough a port into a fluid system, shown in Fig. 2.27, is expressed as the product ·of two fluid variables: 'P(t)
= P(t) Q(t)
(2.63)
where Q(t) is the fluid volume flow rate (m3/s) and P(t) is the fluid pressure drop across the port. The unit of pressure is the pascal (N/m2 ), after Jacques Pascal who formulated the law that the pressure at any point in a fluid at rest has a single scalar value independent of direction [8]. Volume
flow rate
Pipe
Q(t)
Pressure/
Fluid . system
Power into pon ~(t)
=P(t)Q(t)
P(t)
Reference pressure Prr:f Figure 2.27:
Fluid power port.
The fluid pressure is the normal force F per unit area A of the port (pipe) cross section: P=dF dA
(2.64)
Sec. 2.5
Fluid System Elements
45
For a pipe with a uniform pressure profile the pressure is the total force acting across a cross section divided by the area. The volume flow rate Q is the total volume of fluid passing through the port per unit time. It is the integration of the fluid velocity v over the area of the port: Q
=
L
(2.65)
vdA
For a port with uniform pressure and fluid velocity profiles, the power flow may be written P= PQ
F = -(vA) = Fv A
(2.66)
which is directly related to mechanical power as defined in Sec. 2.2. The incremental fluid work crossing a system boundary at a port in time dt is t:,. W
= P(t)Q(t) dt
(2.67)
and may be expressed in terms of fluid system variables by defining a pair of integrated power variables. The totaljluid volume V (m 3 ) is the integration of volume flow rate; that is,
v = Ia' Q(t) dt
or
dV = Q(t)dt
(2.68)
and the integral of the pressure is defined to be the pressure momentum r (N-s/m 2 ):
r
=
fo' P(t)dt
or
dr = P(t)dt
(2.69)
The volume V represents the total volume of fluid passing through the port over a given time period. The pressure momentum r is the time integral of pressure, analogous to momentum in mechanical systems. The increment in work passing through a fluid port in time dt may be written in terms of the power variables P and Q and the integrated power variables r and v in the following three forms: t:,.W 6W t:,.W
=
= =
Q(Pdt) P(Qdt) PQdt
=
= =
Qdf PdV PQdt
=
dekinetic
=
dGpotential
=
dedissipated
(2.70)
Work done by a fluid crossing a system boundary may result in 1. a change in pressure momentum in the system which is usually associated with energy
storage in a fluid inertance, 2. a change in the energy stored in a fluid volume which is usually associated with fluid capacitance, or 3. simply a change in pressure and flow rate representing dissipation in a fluid resistance in which fluid work is converted to heat
Energy and Power Flow in State-Determined Systems
46
Chap. 2
2.5.2 Primitive Fluid Element Definitions Energy Storage Elements Fluid Inertance: A pure fluid inertance is defined as an element in which the pressure momentum is a single-valued monotonic function of flow rate:
r
= F(Q)
(2.71)
A representation of this characteristic is shown in Fig. 2.28 where the energy stored in the inertance is indicated as detennined from Eq. (2.70). The symbol for a fluid inertance shown in Fig. 2.28 is similar to that for an electric inductor. When the relationship betWeen pressure momentum and flow is linear, the constitutive equation (2.71) for an ideal inertance is (2.72) where I is defined as the fluid inertance (N-s 2/m5 ).
r
Qo
Q
Volume flow rate
Figure 2.28: Definition of the pure fluid inertance element
The energy stored in an ideal fluid inertance is
&=
J.r o
Qdr
=.!:.I
J.r r o
dr
2 2 = ..!..r = .!:.IQ 2I 2
(2.73)
The elemental equation for a fluid inertance may be detennined by differentiating Eq. (2.72) to obtain a first-order differential equation in terms of power variables:
dQ
(2.74)
P=ldt
The value of fluid inertance depends on the pipe geometry and ftuid properties [9]. For an incompressible fluid flowing iri a pipe of uniform area A. and length l with a unifonn velocity profile, the element of ftuid is accelerated by a force F equal to the pressure difference between the two ends of the pipe multiplied by pipe area, as shown in Fig. 2.29. The acceleration of this element of fluid is given by Newton's law:
dv
F=AP=mdt
(2.75)
Sec. 2.5
47
Fluid System Elements
The mass m of fluid in the pipe is the density of the fluid p multiplied by its volume V = Al, and the velocity is volume flow rate Q divided by the pipe area A, and so Eq. (2.75) may be expressed in terms of the fluid variables as 1 1 dQ pl dQ P =-(pAl)--=-A A dt A dt
(2.76)
which is the same form as Eq. (2.74). The fluid inertance of the pipe is therefore I= pl A
(2.77)
The fluid inertance increases with increasing fluid density and pipe length and decreases with increasing area.
I
Pipe
•
Length I ..
I Area
4;1s u:rA \
P2
P1
Figure 2.29: The fluid inertance of a pipe section.
Fluid Capacitance: A pure fluid capacitance is defined as an element in which the volume of fluid stored is a single-valued monotonic function of the pressure: (2.78)
V = :F(P)
The constitutive characteristic of a pure fluid capacitor is illustrated in Fig. 2.30 where the energy stored in the capacitor is shown as the shaded area. The symbol for a fluid capacitor always has one terminal connected to a fixed reference pressure because the pressure P and the energy E stored in a fluid capacitor are always measured with respect to a known pressure. For convenience the reference is usually selected as either atmospheric pressure or absolute zero pressure. Reference pressure
v
Po Pressure Figure 2.30:
Definition of the pure fluid capacitance elemenL
P
Energy and Power Flow in State-Determined Systems
48
Chap. 2
An ideal capacitor is one with a linear relationship between volume and pressure:
(2.79) where C1 is defined to be the fluid capacitance (m5 IN). The energy stored in an ideal fluid capacitor is
E=
VPdV = LV -1V dV = -1V o CJ 2CJ Lo
2
1 2 = -C 1P
_2
(2.80)
The elemental equation for an ideal fluid capacitor, expressed in tenns of power variables, is found by differentiating Eq. (2. 79):
dP Q=C,dt
(2.81)
The most common form of fluid capacitance is an open tank containing an incompressible fluid of density p in a gravity field g, as shown in Fig. 2.31. The pressure at the bottom of _the tank is related to the depth, and therefore the volume, of fluid in the tank. The pressure due· to the weight of a liquid column of height h is
P=pgh
(2.82)
where P is the difference between the pressure at_ the bottom of the tank and atmospheric pressure. For a tank with uniform cross section A, the volume of fluid is V = Ah, and so Eq. (2.82) may be written
P
= PK hA = PKv A
A
(2.83)
or
A V=-P pg
(2.84)
The fluid capacitance of the tank is therefore A
c,=pg
(2.85)
Compressible fluids (fluids whose density varies with pressure) in a rigid wall container, as shown in Fig. 2.31, also exhibit fluid capacitance. For slightly compressible fluids, the relationship between changes in density and pressure may be expressed as
dp dP -=p /3
(2.86)
where /3 is the fluid bulk modulus. The bulk modulus is a fluid property that expresses the degree of compressibility; for liquids such as oil and water it is large, on the order
Sec. 2.5
Fluid System Elements
49
Gravity Ambient pressure Paun
g
J
Rigid container Volume V Area A
i Compressible Fluid density p
p2 (a) Open tank in gravity field Figure 2.31:
'
p
fluid Reference pressure Prcr
(b) Fixed-volume tank with compressible fluid
Two fonns of fluid capacitance.
of 2.1 x 109 Pa (300,000 lb/in 2 or psi) and a significant change in pressure is required to change the fluid density, while for gases such as air the bulk modulus depends on the process employed to change the fluid state. For perfect gases the bulk modulus is ~
=kP
(2.87)
where k is a constant and P is the absolute pressure of the gas. The constant k is equal to 1 if the temperature remains constant as the gas changes state and is larger (1.4 for air) when the process is adiabatic, that is, with no heat transfer occurring between the gas and its environment [2]. The latter case is usually associated with rapid changes in the state of the gas that do not allow significant heat transfer to occur. The capacitance of the rigid chamber may be detennined from conservation of mass by equating the net mass flow rate into the chamber to the change of mass within the chamber: d dp dV (2.88) pQ = -(pV) = V - + p dt dt dt Since the volume of the chamber is constant, the derivative of the chamber volume with respect to time is zero and Eqs. (2.86) and (2.88) may be combined to yield
V dP dP Q=--=Ct~ dt dt with the result
v
Ct=-
/3
(2.89)
(2.90)
Energy Dissipation Element A pure fluid resistance is defined as an element in which the flow rate is a single-valued monotonic function of the pressure drop across the element as indicated in Fig. 2.32:
Q = :F(P)
(2.91)
50
Energy and Power Flow in State-Determined Systems .
Chap. 2
The symbol for a fluid resistor, shown in Fig. 2.32, has a pressure drop P across the tenninals and a flow Q through the element An ideal fluid resistor has a linear elemental relationship 1
(2.92)
Q=-P Rf
where R1 is defined to be the fluid resistance (N-s/m5 ). Q
p2 Q R/ PI ~
2
I P=P2 -P 1
p Pressure
Figure 2.32: Definition of the pure fluid resistance elemenL
The power dissipated by an ideal fluid resistor is (2.93) and is always positive, representing the conversion of fluid work to heaL Fluid resistance is associated with flow through pipes, orifices, and valve openings. The value of resistance depends on geometry and fluid properties as well as flow conditions. For a long, unifonn-area circular pipe with laminar flow, the fluid resistance is given by the Hagen-Poiseuille flow law [8, 9]: (2.94) where l is the pipe length, p, is the fluid viscosity, and d is the pipe diameter. This law assumes that the flow is laminar, which requires that a Reynolds number Ry defined as R = 4p Q y 1Cdp,
(2.95)
be less than 2000. As the .flow rate increases so that Ry >-2000, the flow in the pipe becomes
turbulent and the pipe resistance becomes nonlinear and a fu~ction of flow. For incompressible flows through orifices and valve opeirlngs, as illustrated in Fig. 2.33, the orifice equation relating p~ssure and flow .is of the form (2.96)
Sec. 2.5
Fluid System Elements
51
where the coefficient CR is a function of the fluid density p, the orifice area A, and the orifice discharge coefficient cd: p
CR
(2.97)
= 2C2A2 d
The discharge coefficients cd have been tabulated for orifices with different geometries [9].
~
Orifice area A
p1
Annular~~ Outlet
area A
Inlet (a) FlXed orifice Figure 2.33:
t
p2
P=P2 -P1
Q
(b) Annular metering valve
Fluid orifices and valve metering areas.
Fluid Source Elements
Two ideal fluid sources are defined and are illustrated in Fig. 2.34. An ideal pressure source is an element in which the pressure applied to a port is an independently specified function of time Ps (t). An ideal flow source is an element in which the flow through the port is an independently specified function of time Qs(t). Like the ideal sources in the other energy domains, ideal fluid sources are not power-limited.
2
2
Q,(t)
P1 (t)
(b) Pressure source
(a) Flow source Figure 2.34:
Ideal fluid sources.
Example2.4 In many hydraulic systems, including automotive power steering and transmission systems, water distribution systems, and medical assist systems, fluid is transmitted through pipes and passageways as shown in Fig. 2.35. When the flow is time-varying, the question of the relative importance of the resistive and inertance effects in the fluid passageway is important In this example, we first compute the fluid resistance and inertance for a typical fluid passageway, and then the pressure drop due to the two effects is compared for sinusoidally varying flows. The angular frequency at which the magnitude of the resistive pressure drop is equal to that due to the passageway inertance is to be determined.
52
Energy and Power Flow in State-Detennined Systems
I•
Lengtb~A
Chap.2
~I
/~'-
~
~
~
Fluid with ~ity p.
Rgure 2.35:
Long ftuid passageway.
A pipe of diameter d = 0.002 m and length I = 0.1 m is filled with a liquid that has fluid properties equivalent to those of water at room temperature. that is. a density of 996 kg/m3 and a viscosity of 7.98 x 10-4 N-s/m 2 • The resistance of the passageway is computed from Eq. (2.94) with the assumption that the flow is laminar and that the effects of flow nonuniformity at the entrance and exit of the passage may be neglected: R I
= 128JLl = 128 x 7.98 x J0-4 x 0.1 = 2 _03 x 10s N-s/ms 7rd4
3.14 X 16
(i)
X JO-ll
The fluid inertance may be computed directly from Eq. (2.77) as . _ pi _ 996 X 0.1 _ ~ 2 S I - A- _ x J0-6 -5.08 x hr N-s /m 3 14
(ii)
If the flow in the passageway is assumed to be sinusoidal with magnitude Q0 and angular frequency w. that is. Q
= Qo sin(c.c>t)
(iii)
then the pressure drop due to resistance is (iv)
and its magnitude is (v)
The pressure drop due to the inertance of the passageway is P1
dQ = I dt = I wQ0 cos(wt)
(vi)
and the magnitude is (vii)
The frequency c.c>o at which the magnitudes of the two pressure drops are equal is found from
.
~M~~
_ R1 _ 2.03 x 10 · ~ dl 400 ra s I - 5.08 x lOS
·-
.
8
c.c>o -
(viii)
Sec. 2.6
53
Thermal System Elements
For sinusoidal flow variations with frequencies above 400 rad/s, the magnitude of the pressure drop due to the inertance effect is greater than the magnitude of the pressure drop due to passageway resistance. For slowly varying flows, with frequencies much less than 400 radls, the primary pressure drop is due to the passageway resistance.
2.6
THERMAL SYSTEM ELEMENTS 2.6.1 Definition of Power Flow Variables
Thennal systems, in which heat is generated, stored, and transferred across boundaries, have historically been characterized in tenns of thermal energy and power flow and the relationships of these variables to temperature. In the lumped-parameter thennal system models considered in this text, the temperature T is selected as a fundamental thermal variable. The temperature of an object may be defined using several relative and absolute scales, including the Kelvin absolute temperature K associated with SI units and Rankine 0 ( R) absolute temperature associated with English units [1 0]. At absolute zero temperature, a body has no kinetic energy associated with its molecules. At standard pressure water freezes at a temperature of 273.2 K or 0°C, while at the boiling point of water the temperature is 373.2 K or l00°C. When bodies at two different temperatures are brought into contact, the basic laws of thennodynamics indicate that heat H flows from the body at a higher temperature to the body at a lower temperature. Heat continues to flow until the bodies are at equal temperatures. Heat has been quantitatively defined in tenns of pure substances. One calorie (cal) of heat is the amount of heat required to raise the temperature of 1 g of water one degree Celsius (pure water at atmospheric pressure raised from l5°C to l6°C). Heat is a measure of thermal energy, and the rate of change of energy with respect to time is heat flow rate q, or power P: dH
'P=q=dt
(2.98)
where H is the heat (J) and q is the heat flow rate (J/s or W). One calorie is equivalent to 4.187 J. The law of energy conservation, defined in Sec. 2.2, may be written specifically for thermal systems in a fonn that represents the first law of thermodynamics [2]: d£ q = dt - 'Pw
(2.99)
which states that the net flow of heat across a system boundary must equal the sum of changes in the internal system stored thermal energy and the ~eat converted to another fonn 'Pw. such as mechanical, electric, or fluid work. The thennal power variable is simply heat flow rate q, and thermal energy is represented by heat H. Unlike the mechanical, electric, and fluid systems, power flow in thermal systems is not commonly described as a product of two variables. While mathematically a complementary pair of variables could be defined, physical observation of simple thermal systems of engineering interest has not identified a pair of complementary energy storage mechanisms. Thermal systems are represented by a set of pure elements that includes only one energy storage element
Chap. 2
Energy and Power Flow in State-Determined Systems
54
2.6.2 Primitive Thermal Element Definitions Energy Storage Element Thermal Capacitance: Thermal energy storage may be defined in terms of a pure thermal capacitance in which the heat H is a single-valued monotonic function of the temperature T: (2.100) H = F(T)_
A symbolic representation of the pure thennal capacitance and the constitutive relationship is illustrated in Fig. 2.36. The constitutive relationship is in general a function of geometry and material properties. For an ideal thennal capacitance, the relationship is linear: (2.101)
H=C,T
where C, is the thennal capacitance (J/K). The energy stored in a thennal capacitance is simply the heat H. H
Reference temperature
T
Temperature Figure 2.36: Definition of the pure thennal capacitance.
The elemental equation for the ideal thennal capacitance is derived by differentiating Eq. (2.101): dT q=C,dt
(2.102)
The symbol for the thermal capacitance is shown in Fig. 2.36, where the variables associated with the element are identified as heat flow H and temperature difference T across the tenninals. Because the temperature associated with thermal energy must be referenced to a fixed temperature, one tenninal of the symbol is shown connected to a fixed reference. The reference temperature nominally is absolute zero (where the stored energy is zero); however, in many engineering applications the temperature and energy difference from a specific fixed ambient level is of greater interest In these cases a fixed nonzero temperature is often used as the reference. For example, the temperatures and energy level in many systems are referenced to the ambient environmental temperature. For an object made of a pure substance the-thermal capacitance may be expressed as (2.103) where CP is the specific heat of the substance and m is the mass of subs~ce present
Sec. 2.6
Thennal System Elements
55
Thermal Inductance: No significant physical phenomenon has been observed that corresponds to energy storage due to heat flow in a "thermal inductor.n Thus only one thermal energy storage element, the thermal capacitance, is defined. Pure Thermal Resistance Resistance to heat flow is characterized in terms of a pure thermal resistance in which the heat flow is a single-valued monotonic function of the temperature difference T between two points:
q = :F(T)
(2.104)
A number of thermal phenomena are characterized by thermal resistance, including heat transfer by conduction, convection, and radiation [10, 11 ]. In an ideal thermal resistance the relationship between heat flow and the temperature difference is linear: . (2.105) where CD is the heat conductance (KIW) or where
e-N/K) and the reciprocal R,
is the thermal resistance
T = R,q
(2.106)
1 R,=-
(2.107)
with the ideal thermal resistance simply
CD
The symbol for thermal resistance is shown in Fig. 2.37 with the temperature difference T across the terminals and heat flow q identified as the variables associated with the element. q
T2 q
R1
.T1
~ 2 1
T= T2 -T1
T Temperature
Figure 2.37: Definition of the pure thermal resistance.
A pure thermal resistance neither stores nor dissipates energy since the net heat flow into the element is zero, that is, the heat flow into the resistance equals the heat flow out of the element The thermal resistance simply acts to impede heat flow and is associated with a change in system thermodynamic entropy [2]. The values of thermal resistance depend on material properties and geometry and are determined for three heat transfer mechanisms · in the following paragraphs.
56
Energy and Power Flow in State-Determined Systems
Chap. 2
Conduction Heat 1hmsfer: The conduction of heat through a material such as a metal block was characterized by Jean Baptiste Joseph Fourier (1768-1830) [11] as (2.108) where T1 and T2 are the temperatures of the two sides of the block. For a uniform material, the conduction constant CD for the geometry shown in Fig. 2.38 is CD= PeA
I
(2.109)
where Pc is the thermal conductivity (W/K-m), A is the area of ihe body (m2 ), and l is the length of the body (m). The temperature difference (T2 - T1) across the body is the driving force for the heat flux. Materials with high thermal conductivities, such as metals, are classified as thermal conductors, while those with low conductivities such as wood and plastic foam are known as insulators. The thermal conductivity of various materials is tabulated in [ 11]. Conduction heat transfer occurs in solid, liquid, and gaseous states. It is usually the dominant form of heat transfer in stationary fluids and gases and in solids at moderate temperatures. In moving fluids heat transfer by convection may dominate, and at high temperatures radiation heat transfer may also become important Convection Heat Transfer: In moving fluids heat may be transferred between spatially separated regions by bulk transport of the fluid. This mechanism is known as convective heat transfer and is directly related to the fluid motion. Convection may be natural (when the fluid moves on its own as it is heated) or forced (when an external source is used to move the fluid). Heat transfer between a moving fluid and the walls containing the fluid has been studied extensively [11] and characterized by an overall convection heat transfer coefficient and the area of contact between the fluid and the walls: (2.110) where A is the contact area (m2 ) and Ch is the convection heat transfer coefficient (W/m2 - K). The equivalent thermal resistance associated with convection is 1
R-t - ACh
(2.111)
The convection heat transfer coefficient is strongly dependent on flow geometry and flow velocities. Radiation Heat Transfer: Heat may also be transferred from one body to a second body at a distance by thermal radiation. This type of heat transfer is described by the StefanBoltzmann law [11]: (2.112) where C, is the radiation heat transfer constant (W/K4 ) and T1. and T2 are the absolute temPeratures of bodies 1 and 2 (K). The constant C, depends on the geo~etry of the two
Sec. 2.6
Thermal System Elements
57
Plates at unifonn temperature
Heat flow --H-:----H-~
q
Material with thermal conductivity Pc (a) Heat transfer by conduction
~
T2
T1
T=T2 -T1
,~;
.' ~ \
Heat flow
~-~·~q
~~
~ , ""'-Fluid in motion transfers heat (b) Heat transfer by convection
T2,
~
J
~
I
! ~
~ ~
r,
T= T2 -T1
Heat flow ~q
~
~ ~
~
Heat transfer depends on the emissivity and absorption characteristics of surfaces
(c) Heat transfer by radiation
Figure 2.38:
Modes of heat transfer.
surfaces and material properties that influence the absorption and emission characteristics of the bodies as a function of wavelength. Radiation heat transfer is highly nonlinear as indicated in Eq. (2.112) and in fact cannot be defined in terms of pure thermal resistance since the heat transfer depends on the differences between absolute temperatures raised to the fourth power. Thus, care must be used in modeling thennal systems in which heat transfer by radiation is significant since radiation is not a direct function of the difference in temperatures.
58
Energy and Power Flow in State-Detennined Systems
Chap. 2
Source Elements
1\vo ideal thermal sources may be defined as shown in Fig. 2.39. An ideal temperature source is an element in which the temperature at a system port is an independently specified function of time Ts (t) without regard to the heat flow necessary to maintain the temperature. An ideal heat flow source is an element in which heat flow is an independently specified function of time Qs(t). The temperature at the port is determined by the system connected to the heat flow source. 2
2
QJ.t)
TJ.t)
(a) Heat flow source
(b) Temperature source
Figure 2.39:
Ideal thermal source elements.
Example 2.5 An electric resistor with a resistance of 10 f2 and a thennal capacitance of 0.1 J/K is subjected to short-duration (0.01-s) voltage pulses of magnitude 100 Vas shown in Fig. 2.40. The peak temperature rise of the element resulting from the conversion of electric energy to heat is to be detennined. The time required for the element temperature to decay to within 1 K of its original temperature is also required as an estimate of the minimum time period between pulses that will allow the temperature to moderate (so that the element will not burn out after a few pulses). i(r) V(t)
100 V(t)
0
0.01
t(s)
Figure 2.40:
Temperature variation in an electric resistor.
It is assumed that in the short period of the pulse duration no significant heat is transferred from the element to the environment The te~J~perature rise due to a single pulse may then be estimated ~y assuming that all the electric energy is converted to heat and stored in the element During the pulse, the power Pis constant: 1
'P= -v2 R
2
100 = --· = 10
1000W
(i)
Sec. 2.6
59
Thennal System Elements
The power flow occurs over a period of 0.01 s, generating total electric work of
W= 101 The heat transferred is therefore H respect to the initial temperature is
ll.T
(ii)
= 10 J. For the element the temperature rise ll.T with
H 10 = -c, = -0.1 = 100 K
(iii)
The resistor's temperature is therefore raised 100 K above the ambient environmental temperature. After the rapid temperature rise, heat transfer occurs between the element and the environment. As stored heat is transferred to the environmen4 the temperature of the element decreases. The rate of the temperature decay may be found from Eq. (2.1 02): (iv) where T is the temperature of the resistive element above the environmental temperature. Assume that the thennal resistance characterizing heat transfer to the surroundings is R, = 10 K/W: (v)
Combining Eqs. (iv) and (v), the equation for the temperature difference as a function of time is obtained as
C, dTr = _ Tr dt R,
(vi)
Equation (vi) may be rearranged and integrated to determine the time required to reach Tr = 1 K above the initial temperature:
dTr
dt
-=--Tr R,C,
1
1"
dTr= - -11dt Tr R,C, o T1 lf ln-=--To R,C,
Tf
To
(vii) (viii) (ix)
For To= 100 K and Tt = 1 K, the time is
t1
= -R,C, In
io = -10 x 0.1 x ln(0.01) = 4.6 s
(x)
Thus it takes 4.6 s for the tempera~ of the resistor to return to within 1 K of its original temperature.
Energy and Power Flow in State-Detennined Systems
60
Chap. 2
PROBLEMS 2.1. Consider a mechanical system in which a force F acts through an infinitesimal distance dx, where the force and the displacement are in the same direction. The infinitesimal amount of work Fdx. The power flow 'Pinto the system is 'P = dW fdt = Fdxfdt = Fv, where v done is dW is the velocity of the point at which the force is applied.
=
(a) Check the units of 'P = Fv to show that they are consistent {b) For an accelerating mass m moving at velocity v, show that the time rate of increase of stored energy is equal to Fv.
(c) For a spring with one end free, the force required to displace the spring an amount x from its rest length is F = Kx (Hooke's Law), where K is the spring constant Determine the amount of energy required to stretch the spring a distance x. 2.2. An external force applied to a point in a system, and the velocity of that point, are shown in Fig. 2.41. Assume that the velocity reference direction is the same as the force reference direction. Plot a graph of the power input to the system at this point, and a graph of the energy input to the system from timet= 0 to 3T. Force
Figure 2.41: The force and velocity at a point in a system.
2.3. The velocity of a machine element over a 10 second period is:
v = 2.5t m/s
0
v = lOm/s
4
~
t
(a) If the element is an ideal damper with B = 10 N-s/m, determine the power absorbed as a function of time, and the total energy dissipated over the 10 s period. {b) If the element represents aerodynamic drag, approximated by the characteristic F = Cv2 , detennine the power absorbed as a function of time, and the total energy dissipated if C = 1.0 · N-s 2 /m2 •
Chap. 2
61
Problems
(c) In the time period t < 4 s, how does the power absorbed by the two dampers compare? Which damper dissipates the most energy in the 10 s period? (d) At a velocity of 20 rnls, which damper absorbs the most power? 2.4. Automobiles must be able to sustain a frontal impacl The automobile design must allow low speed impacts with little sustained damage, while allowing the vehicle front end structure to deform and absorb impact energy at higher speeds. Consider a frontal impact test of a 1000 kg mass vehicle. (a) For a low speed test at 2.5 rnls, compute the energy in the vehicle just prior to impacl If the bumper is a pure elastic element, what is the effective design stiffness required to limit the bumper maximum deflection during impact to 4 em? (b) At a higher speed impact of 25 m/s, considerable deformation occurs. To absorb the energy the
front end of a vehicle is designed to deform while providing a nearly constant force. For this condition, what is the amount of energy that must be absorbed by the deformation [neglecting the energy stored in the elastic deformation in (a)]? If it is desired to limit the deformation to 10 em, what level of resistance force is required? What is the deacceleration of the vehicle in this condition? 2.5. Consider two mechanical springs: spring A is a simple linear spring with a characteristic F = K 1x, while spring B is a nonlinear hardening spring wbicb becomes stiffer as the deflection increases F8 = K2x 2 • (Hardening springs are often designed in this manner to prevent bottoming of the load.) (a) In a laboratory test a 100 N force was found to deflect both springs by 5 em. Fmd the values (and units) of K1 and K2. (b) Find the energy stored in each spring when a force of 100 N is applied to each.
(c) If the force is doubled to 200 N, find the deflection and energy stored in each spring. For what range of values of applied force is the energy stored in the nonlinear spring greater than that stored in the linear spring? 2.6. A computer hard disk stores data on a rotating cylindrical disk. Consider such a disk with a radius of 6 em and a mass of 0.02 kg. (a) What is the moment of inertia of the disk? (b) If the disk drive motor provides a torque of 0.1 N-m during spin-up, what is the rotational speed of the disk after 5 seconds? (c) A new disk design uses composite materials to make a disk of the same mass but with a radius 1.5 times that of the original disk. What is the inertia of the new disk? What motor torque would be required to spin the new disk to the same speed as the original in 5 seconds? 2.7. The torsional stiffness of a cylindrical shaft of diameter D and length lis 1r D4 K, = G32-l
where G is the shear modulus of the shaft material. Consider the problem in Example 2.2 for the case in which a steel shaft, 5 m long and 5 em in diameter, drives a cylindrical flyweel with a 30 em diameter and a thickness of 5 em at a rotational speed of 90 r/s. Steel has a density of p = 7.8 gm/cm 3 and a shear modulus of G = 83 GPa. (a) What are the values of the shaft stiffness and the flywheel moment of inertia? (b) What is the stored energy when the system is spinning?
(c) If, as in Example 2.2. the velocity input to the shaft is suddenly stopped, what will be (i) the maximum energy stored in the shaft and (ii) the maximum angular deflection of the shaft?
Energy and Power flow in State-Detennined Systems
62
Cbap.2
2.8. Consider the air-cored inductor shown in Figure 2.21. (a) For an inductor with a 1 em diameter and a l£mgth of 4 em, how many turns of wire are required to achieve an inductance of 0.1 mH? The penneability of air is JL 1.257 x 10-6 N/m.
=
(b) How much energy is stored in the coil when a current of 0.1 A is flowing?
(c) If an of the energy stored in the inductor is transferred to a capacitor, resulting in a voltage of 10 volts, what is the value of the capacitance? Assume the pennittivity of air is E 0.885 X 1o- 11
=
F/m. (d) If the capacitor consists of two parallel plates with an area of I cm2 , what distance between the
plates is required to achieve the capacitance computed in (c)? 2.9. Superconducting materials have essentially no resistance to current ftow below their critical temperature. An important application of superconductors is the generation of strong magnetic fields in applications such as magnetic resonance imaging (MRI) for medical diagnosis. For such an application a coil of 10 em diameter, and length 5 em is wound with 400 turns. (a) Compute the inductance of the coil. (b) How much energy is stored in the coil when a steady current of one ampere is flowing.
(c) When the machine is turned on, the current is ramped up linearly from zero to one ampere over
a period of two seconds and then held steady. Make a sketch of the tenninal voltage at the coil during and after the power-on phase. (d) What is the voltage across the coil when a current I
= 2 sin 4001 A is flowing?
(e) At room temperatute (above the critical temperature) the coil has a resistance of 1 ohm. What is
the voltage across the coil with the same current as in part (c)? 2.10. Electrostatic loudspeakers are sometimes used in high-quality audio systems. An idealized representation of an electrostatic speaker is given by a parallel plate capacitor with plates separated by a nominal distance h, aS shown in Fig. 2.42. One plate is rigidly mounted while the other, the diaphragm, can move. When a voltage is applied an electrostatic attractive force is generated between the plates, and the resulting movement x_ of the diaphragm generates acoustic waves. Rigid conductor Area=A
Movable diaphragm Area=A
l_ ___Ft._____ . . ~c:----~--0 h+x
+ + + + + ;
T /
Chargeq
Figure 2.42:
F
+ ++
V
J'\s__o i
An electrostatic loudspeaker.
Chap. 2
63
Problems
(a) Assuming that both plates are fixed and unable to move, compute the electrical energy stored and the force F on the plates as a function of the applied voltage V. (b) Find the capacitance as a function of the plate separation h + x. (c) Find the change in stored electrical energy if the plate separation is increased by a small amount dx while the applied voltage v is held constant
(d) Repeat (c) with the stored charge q held constant; that is, with i
= 0.
(e) For a small increase in the gap, from h to h + dx, assume that energy is conserved and equate
the mechanical work done to the change in stored electrical energy at constant charge; thereby compute F, the electrostatic force as a function of h, A, and v. 2.11. A pair of cylindrical vertical-walled tanks, open at the top, are used to store liquids. (a) The first tank has an area of I 0 m2 • H the tank contains water, compute th~ fluid capacitance and
the pressure at the bottom when the depth is 10m. What is the stored energy in the tank? (b) The second tank, with twice the area, contains a fluid with a density I.5 times that of water. What is the fluid capacitance of this tank? When the depth is I 0 m, what is the pressure at the bottom and the total energy stored in this tank?
2.12. The excavation for a reservoir used to store water is shown in Fig. 2.43. The reservoir bas base dimensions of 1000 m by 1000 m with vertical side walls and front and back walls that slope at 30° to the horizontal.
Figure 2.43: Excavation for a reservoir. (a) Derive the relationship between the pressure at the bottom of the reservoir and the volume of
fluid stored. (b) Determine the capacitance of the reservoir.
(c) If the height of the water in the reservoir is 20m, what is the energy stored? (d) If the water depth is doubled to 40 m, what is the energy stored?
2.13. We wish to estimate the capacitance of an automobile tire. (a) Estimate the volume of a typical automobile tire. (b) If the tire is pressurized to the car manufacturer's recommended value, determine the pressure
in SI units. (c) If we assume that air may be represented by a bulk modulus of 1.4 P where P is the absolute pressure, estimate the tire capacitance and the energy stored in the tire at its nominal pressure.
Energy and Power Flow in State-Determined Systems
64
Chap.2
2.14. Water hammer in pipes frequently occurs when the flow is interrupted by the closing of a faucet or valve. The energy stored in the fluid inertance is transferred to the pipe, generating a large pressure transient Consider a typical 1.0-cm internal diameter pipe, 50 m long. supplying water to a house. (a) Compute the ftuid inertance of the pipe. (b) If the fluid is flowing in the pipe with a velocity of 0.5 mls, what is the energy stored in the
moving fluid? (c) Assume that the flow velocity is decreased from its nominal value to zero linearly over a period of 0.05 s. Determine the maximum pressure generated. 2.15. Electric utility systems must be able to meet peak electricity demands at certain times of the day. One way in which these demands are met is to use pumped water storage. At night. when demand is low, water is pumped to storage reservoirs on a hill, and in the peak demand periods the water is used to generate power through hydroelectric turbines, as shown in Fig. 2.44. The tank is located on a hill with the tank bottom 300 m above the turbine. The tank area is 200 m2 •
300m
Control valve
Figure 2.44: Hydroelectric energy storage system.
(a) Compute the fluid capacitance of the tank. (b) The depth of the water in the tank is 100m. What is the pressure at the bottom of the tank'? What
is the pressure at the inlet of the turbine? (c) A valve at the turbine is automatically controlled to keep a constant flow rate to the turbine of 0.75 m3 /s. Detennine the pressure at the turbine inlet over a period of four hours as the tank powers the turbine. At the end of the four hour period, what is the depth of the water in the tank'? (d) If it is assumed that the energy conversion efficiency of the turbine is 75%, what is the electric power produced over the four hour period? What is the total electric energy produced over the four hour period? You may neglect any fluid losses in the pipe.
Chap. 2
References
65
2.16. In many situations it is important to be able to make good engineering estimates of the parameters of a system. Consider a thermal system consisting of a freshly brewed cup of coffee in an insulated mug. Estimate the volume of a typical coffee mug, and assuming that it is full of water just below boiling temperature, compute the thermal energy and thermal capacitance of the water. 2.17. Steel parts are often heat treated to improve their properties. A heat treatment furnace, consisting of an electric resistance heater and an insulated furnace housing, is used to heat a steel bar with a cross sectional area of 0.01 m2 and length of 0.3 m. Steel has a density of 7. 75 glcm3 and a specific heat of 486 Jlkg-K. (a) What is the thermal capacitance of the steel bar? (b) The electric element of the furnace has a resistance of 10 0. If the voltage v(t) to the unit is prescribed as v(t) = 40t V
0
~
t < 50s
= 2000 v
50 ::: t < 200 s
=OV
200::;ts
what is the electric power drawn as a function of time'? What is the total electric energy supplied to the furnace'? (c) If it is assumed that after 200 seconds, 65% of the electric energy has been converted into thermal energy in the bar, what is the temperature rise of the bar above the ambient temperature?
REFERENCES [1] Paynter, H. M., Analysis and Design ofEngineering Systems, MIT Press, Cambridge, MA, 1961. [2] Cravalho, E. G., and Smith, J. L., Jr., Engineering Thermodynamics, Pitman, Marshfield, MA, 1981. [3] Crandall, S. H., Karnopp, D. C., Kurtz, E. F., Jr., and Pridemore-Brown, D. C., Dynamics of Mechanical and Electromechanical Systems, McGraw-Hill, New York, 1968. [4] Baumeister, T., et al., Handbook for Mechanical Engineers, McGraw-Hill, New York, 1967. [5] Roark, R. J., and Young, W. C., Formulas for Stress and Strain, McGraw-Hill. New York, J975. [6] Feynman, R. P., Leighton, R. B., and Sareds, M.• The Feynman Lectures on Physics, AddisonWesley, Reading, MA, 1977. [7] Halliday, D., and Resnick, R., Fundamentals of Physics, John Wiley, New York, 1988. [8] Sabersky, R. H., Acosta, A. J., and Hauptmann, E. G., Fluid Flow: A First Course in Fluid Mechanics, Macmillan, New York, 1989. [9] Streeter, V. L., Handbook of Fluid Dynamics, McGraw-Hill, New York, 1961. [10] Lienhard, J. H., A Heat Transfer Textbook, Prentice Hall, Englewood Cliffs, NJ, 1981. [11] Ronsenow, W. M., and Hartnett. J. P., Handbook of Heat Transfer, McGraw-Hill, New York, 1973.
3
Summary of One-Port Primitive Elements
3.1
INTRODUCTION In Chap. 2 we examined elementary physical phenomena in five separate energy domains
and used concepts of energy flow, storage, and dissipation to define a set of lumped elements. These primitive elements form a set of building blocks for system modeling and analysis and are known generically as lumped one-port elements because they represent the spatial locations (ports) in a system at which energy is transferred. For each of the domains with the exception of thermal systems, we defined three passive elements, two of which store energy and a third dissipative element In addition in each domain we defined two active source elements which are time-varying sources of energy. System dynamics provides a unified framework for characterizing the dynamic behavior of systems of interconnected one-port elements in the different energy domains, as well as in nonenergetic systems. In this chapter the one-port elements developed in Chap. 2 are integrated into a common description by recognizing similarities between the elemental behavior in the energy domains and by defining analogies between elements and variables in the various domains. The formulation of a unified framework for the description of elements in the energy domains provides a basis for development of unified methods of modeling systems spanning several energy domains. The development of a unified modeling methodology is based on analogies between the variables and elements in different energy domains. Several different types of analogs may be defined. In this text we have chosen to relate elements using the concepts of generalized through- and across-variables associated with a linear graph system representation introduced by F. A. F.rrestone [1] and H. M. Trent [2] and described in detail in several textS [3-5]. This set of analogs allows us to develop modeling methods that are similar to well-known techniques for electric circuit analysis. The set of analogies we have selected is not unique, for example, another widely used analogy is based on the concepts of "effort" and "flow" variables in bond graph modeling methods developed by H. M. Paynter [6] and 66
Sec. 3.2
Generalized Through- and Across-Variables
67
described in D. C. Karnopp et al. [7]. These two methods lead to different analogies, both of which are valid. For example, in this text we consider forces and electric currents to be analogous, while in the bond graph method forces and electric voltages are considered to be similar.
3.2
GENERAUZED THROUGH- AND ACROSS-VARIABLES
Figure 3.1 shows a schematic representation of a single one-port element, in this case a mechanical spring, as a generic element with two terminals through which power flows to be stored, supplied, or dissipated by the element. This two-terminal representation may be thought of as a mechanical analog of an electric element, in this case an inductor, with two connecting "wires." Hall system elements are represented in this form, the interconnection of elements may be expressed in a common "circuit" structure and a unified method of modeling and analysis may be derived for this fonn known as a linear graph. In Fig. 3.lc the linear graph representation of the spring element is shown as a branch connecting two nodes.
(a)
(c)
(b)
Figure 3.1: Schematic representation of a typical one-port element. (a) A translational spring, (b) as a two-terminal element, and (c) as a linear graph element.
With the two-tenninal representation, one of the two variables associated with the element is a physical quantity which may be considered to be measured "across" the terminals of the element, and the other variable represents a physical quantity which passes ''through" the element. For example, in the case of mechanical elements such as the spring in Fig. 3.1, the two defined variables are v, the velocity, and F, the force associated with the element. The velocity associated with a mechanical element is defined to be the differential (or relative) velocity as measured between the two terminals of the element, that is, v = v2 - VI in Fig. 3. I; notice that it must be measured across the element. Figure 3.2 shows a simple system with the same spring connected between a mass m and an applied force source F(t). In Fig. 3.2b the connection has been broken, and so the forces acting on the spring and the mass may be examined. Assume that the force transmitted to the mass is Fm(t). Because the spring element is assumed to be massless, Newton's laws of motion require that the sum of all external forces acting on it must sum to zero, or F(t) - Fm(t)
=0
Summary of One-Port Primitive Elements
68
Chap. 3
(a) Mass and spring elements driven by an external force.
F(t)~
(b) Force is measured by inserting an instnlment in series with the elements;
velocity is measured by connecting an instnlment across an elemenL
Figure 3.2: Definition of through- and across-variables in a simple mechanical system.
In other words, Fm(t) = F(t), and the external force applied to the spring element is transmitted through the spring to the mass element connected to the other side. Another way of looking at this is to say that in order to measure the force in a mechanical element,
the element must be broken and a sensing device, such as a spring balance, inserted in series with the element as in Fig. 3.2b. Such arguments lead us to define elemental velocity v to be an across-variable and force F to be a through-variable in mechanical systems. Figure 3.3 shows a simple electric circuit consisting of a battery and a resistor. The elemental variables in the electric domain are current i and voltage drop v. In order to measure the current flowing in the resistor the electric circuit must be broken and an ammeter inserted so that the current flows through it. To measure the voltage drop associated with the resistor a voltmeter is connected directly across its terminals. Current is defined as the through-variable for electric systems, and voltage drop is the across-variable. We may extend the concept of through- and across-variables to all the energy domains described in Chap. 2. Of the two variables defined for each domain, one is an across-variable because it is a relative quantity that must be measured as a difference between values at the two terminals of a network element. The other is designated as a through-variable that is continuous through any two-terminal element. Once the choice of this pair of variables has been made, generalized modeling and analysis techniques may be developed without regard to the particular energy domains associated with a system. The through- and across-variables for each energy domain discussed in this book are defined as follows. Mechanical Systems: In both translational and rotational mechanical systems the velocity drop of an element is the velocity difference across its terminals. In the case of a translational mass or rotary inertia one terminal is always assumed to be connected to a constant-velocity inertial reference frame. The force or torque associated with an element is assumed to pass through the element The elemental across-variable is therefore defined to be the relative velocity of the two terminals, and the elemental through-variable is defined to be the force or torque associated with the element.
Sec. 3.2
Generalized Through- and Across-Variables
69
An ammeter measures current "through" an element.
I
I v
A voltmeter measures voltage "across" an element.
I I
Rgure 3.3:
Definition of through- and across-variables in an electric system.
Electrical Systems: In an electric element, for example a capacitor, at any instant a potential (or voltage) difference exists between the terminals and a current flows through the element The across-variable is therefore defined to be the voltage drop across the element, and the through-variable is defined to be the current flowing through the element Fluid Systems: In the fluid domain the pressure difference across an element satisfies the definition of an across-variable, while the volume flow rate through the element is a natural choice for the through-variable.
Thermal Systems: While not strictly analogous to the other domains, thennal systems may be analyzed by defining heat flow rate as the through-variable, and the temperature difference across an element as the across-variable. The definitions of across- and through-variables for the energy domains introduced in Chap. 2 are summarized in Table 3.1. In describing generic systems, without regard to a specific energy domain, it is convenient to define a set of generalized variables. The generalized across- and through-variables are introduced as Generalized across-variable: v Generalized integrated across-variable: x
=
Generalized through-variable: f
£' £'
Generalized integrated through-variable: h =
v dt + x(O)
fdt
+ h(O)
With the exception of thermal elements, the power 'P passing into a lumped one-port element in terms of the generalized variables is
'P=fv
(3.1)
and the work performed by the system on the element over time period 0 ::: t ::: T may be expressed in terms of the generalized variables as
W=
loT Pdt= loT fvdt
(3.2)
TABLE 3.1:
Definition of Across- and Through-Variables in the Various Energy Domains
System
Across-Variable, v
Through-Variable, f
Integrated Across-Variable, x
Integrated Through-Variable, h
Translational Rotational Electric Fluid Thermal
Velocity difference, v Angular velocity difference, 0 Voltage drop, v Pressure difference, P Temperature difference, T
Force, F Torque, T Current, i Volume flow rate, Q Heat ftow rate, q
Linear displacement, x Angular displacement, e Flux linkage, A Pressure difference momentum, r Not defined
Momentum, p Angular momentum, h Charge, q Volume, V Heat, H
Sec. 3.3
Generalization of One-Port Elements
71
For thennal elements, while an across-variable, temperature T, and a throughvariable, heat flow rate Q, may also be defined, the product is not power since Q is a power variable itself.
3.3
GENERAUZATION OF ONE-PORT ELEMENTS In each of the energy domains described in Chap. 2, several primitive elements are defined: one or two ideal energy storage elements, a dissipative element, and a pair of source elements. For one of the energy storage elements, the energy is a function of its acrossvariable (for example, an ideal mass element stores energy as a function of its velocity; £ = !m v2 ), while in the other energy storage element the stored energy is a function of the through-variable; in a translational spring the stored energy is £ = 2 ~ F 2 • The dissipative elements, which store no energy, and the source elements, which may supply energy or power continuously, complete the set of one-port elements. In this section these elements are classified into generic groups.
3.3.1 A-Type Energy Storage Elements Energy storage elements in which the stored energy is a function of the across-variable are defined to be A-type elements and are collectively designated generalized capacitances. All A-type energy storage elements have constitutive equations of the form
h = :F(v)
(3.3)
where h is the generalized integrated through-variable, vis the generalized across-variable, and :F() designates a single-valued monotonic function. In general Eq. (3.3) may represent a nonlinear relationship, but a linear (or ideal) A-type element has a linear form of Eq. (3.3):
h=Cv
(3.4)
where the constant of proportionality C is defined to be the ideal generalized capacitance of the element Differentiation of Eq. (3.4) gives the generalized A-type elemental equation
f=Cdv dt
(3.5)
The definition of the lumped elements in Chap. 2 shows that the capacitive elements are the translational mass, rotational inertia, electric capacitance, fluid capacitance, and thermal capacitance. The collection of A-type elements is shown in Fig. 3.4, and their elemental relationships are summarized in Table 3.2.
Summary of One-Port Primitive Elements
72
(a) TranslationaJ mass
(b) RotationaJ inertia
Pnt~ p
a-fl (d) fluid capacitance
Chap. 3
(c) Electric capacitor
q~ Trd' (e) Thennal capacitance
Figure 3.4: The A-type elements in the five energy domains descn'bed in this book.
TABLE3.2:
Summary of Elemental Relationships for Ideal A-Type Elements
Element
Constitutive Equation
Elemental Equation
Energy
Generalized A-type
h=Cv
Translational mass
p=mv
f=Cdv dt dv F=mdt
1 £= -Cvl 2 1 £= -mv2 2
Rotational inertia
h=JO
T=JdQ dt
£=
~JQ2
Electric capacitance
q=Cv
£=
-cvl
fluid capacitance
V=C1P
Thermal capacitance
H=C,T
i=Cdv dt dP Q=C,dt dT q=C,dt
£=
2
1
2
1 2 -c 1P
2
£=C,T
The two-terminal representation of A-type elements in systems often requires a connection to a known reference value of the across-variable. Figure 3.5 shows two A-type elements, a translational mass and a fluid capacitance. In a newtonian mechanical system the momentum of a mass element m is measured with respect to a nonaccelerating inertial reference frame h = m (Vm - Vref) where Vm is the velocity of the element and Vref is the velocity of the reference frame. Then differentiation gives dh d dvm F=- =m-(Vm -vrer) =m-dt dt dt
since Vref is constant. There is an implied connection to the reference velocity that defined the momentum, and one terminal must be connected to this reference value (usually assumed
Sec. 3.3
Generalization of One-Port Elements
73
to be zero velocity). Similarly, the angular velocity of an rotary inertia must be measured with respect to a nonaccelerating rotating reference frame.
~· ..~...,[
:
h
P= pgh relative toPref
Inertial reference frame Vrer (a)
(b)
Figure 3.5: Implicit connection of typical A-type elements to a reference node. (a) A translational mass, and (b) a fluid capacitance.
1 In the case of the fluid capacitance defined by a vertical walled tank., the constitutive relationship relating volume to pressure is V
= CJ (P -
Prer)
where Pref is the constant external pressure at the fluid surface and P is the pressure at the base of the tank. The elemental equation may be written Q
dV
d
dP
= -dt = CJ(P- Pret) = CJdt dt
if Pret is constant. The two-terminal representation requires an implicit connection to the reference pressure. Similarly, the temperature associated with a thermal capacitance is measured with respect to a fixed reference temperature. The electric capacitor, however, does not require connection to a fixed reference voltage and may have its two terminals connected to points of arbitrary voltage. With the exception of the thermal capacitance, the energy stored in a pure or ideal A-type element is given by
L h
£=
vdh
(3.6)
For an ideal element with a constitutive equation given by Eq. (3.4), the stored energy can be expressed as
(3.7) resulting in a form in which the energy is a direct function of the across-variable. For the ideal thermal capacitance the energy is simply £ = H = C, T and is a function of the across-variable.
74
Summary of One-Port Primitive Elements
Chap. 3
Example3.1
Show that an A-type element is capable of both absorbing and supplying power. Solution For an A-type element the instantaneous power flow is
dv 'P=fv=C-v dt
(i)
Our sign convention is that if 'P > 0, power is flowing into the element, while if 'P < 0, power is flowing from the element Thus the direction of power flow is defined by Eq. (i); if v and dvjdt have the same sign, the element is absorbing power and storing energy, while if the signs are opposite, the element is returning stored energy to the system. Consider a mechanical mass element Equation (i) states that the element accumulates energy whenever it is accelerated in the direction of its travel and returns energy as it is decelerated.
Equation (3.7) shows that any change in the stored energy in an A-type element results from a change in the across-variable. In order to change the energy in a stepwise fashion the across-variable must change instantaneously. Equation (3.5) shows that the through-variable is proportional to the derivative of the across-variable, and therefore an instantaneous change in the stored energy requires an impulse in the through-variable. (An impulse is a mathematical function of infinitesimal duration and infinite amplitude and is introduced formally in Chap. 7.) The stored energy in any A-type element cannot change instantaneously unless infinite power is available in the fonn of an impulse in force, torque, current, or volume flow. Physical energy sources are generally power-limited and are therefore incapable of providing an instantaneous change in the across-variable or stored energy of an A-type element. Figure 3.6 shows the relationships between across- and through-variables for an A-type element
Lf-GEJ-v~ 1=, f-liEr- ]L, v
(a) Generalized capacitance
(b) Response of capacitance to discontinuous changes
in the through-variable Figure 3.6: Across- and through-variable relationships in an ideal A-type elemenL
Example3.2
A satellite circling the earth every 90 minutes (min) is subjected to cyclic heating by the sun as it passes in and out of the earth's shadow. Measurements have shown that it is reasonable to model the net solar heat flow rate Q(t) into the satellite as a cosinusoidal function with the orbital period, assuming that at time t = 0 the satellite is at the position of peak sunlight Find the time in the orbit at which the internal temperature within the satellite is a maximum.
Sec. 3.3
Generalization of One-Port Elements
75
Solution Let the time t be measured in seconds so that the heat flow rate is Q(t)
= Qmax COS ( 90': 60 t)
(i)
where Qmax is the peak heat flow rate (J/s). The satellite is modeled as a lumped thermal capacitance C, and stores energy as an A-type thermal element. For a general A-type element the elemental equation is (ii)
and for the thermal capacitance the relationship is dT
Q=C,-
(iii)
dt
In this case we require the value of T(t), given Q(t), and so Eq. (iii) must be written in integral form: T(t)
l('
= C, Jo
Q dt
+ T(O)
2n ) = C,1 Jo(' Qmax cos ( 5400 t
dt
(iv)
+ T(O)
. ( 27r ) = 5400Qmax 27rC, sm 54001 + T(O) The system input Q(t) and the response T(t) are shown in Fig. 3.7. The temperature and the input heat flow are not in synchrony; the response lags the input by one-quarter of a cycle. Since sin8 is a maximum when 8 = n/2, T(t) is a maximum when 2ntj5400 = Ir/2 or when t = 1350 s. The satellite therefore reaches its maximum temperature 22.5 min after passing the point of maximum brightness, and the maximum temperature is T. max
at
e a
~
e
,g
~
= 5400Qmax 27rC,
+
T(O)
(v)
o.s
l:l!!
]]
0
:a :a ~ e -o.s 0 0 zz
Tune (s)
-1
Figure 3.7: The input heat flow rate Q(t) and the temperature response T(t) of the satellite.
Summary of One-Port Primitive Elements
76
Chap. 3
3.3.2 T-Type Energy Storage Elements
Energy storage elements in which the stored energy may be expressed as a function of the through-variable are designated as T-type elements and are collectively known as generalized inductances. The T-type energy storage elements are defined by generalized constitutive equations of the form (3.8) X= F(f) where x is the generalized integrated across-variable, f is the generalized through-variable, and F() designates a single-valued monotonic function. For a linear, or ideal, T-type element the constitutive relationship Eq. (3.8) reduces to a simple linear equation X=
Lf
(3.9)
where the constant of proportionality L is defined to be the ideal generalized inductance. Differentiation of the constitutive equation gives the generalized elemental equation df
V=L-
(3.10)
dt
Figure 3.8 shows the four T-type elements defined in Chap. 2; there is no known thermal energy storage phenomenon that defines a T-type element for thermal systems. The generalized inductance is equivalent to the reciprocal of the mechanical translational and rotational spring constants and is equivalent to the electric inductance and the fluid inertance. Table 3.3 summarizes the elemental relationships forT-type elements. v2
v1
a.~
~K~
F~~....,_F 2 1 (a) Translational spring
~~-T T~·
£
(b) Torsional spring
P 1
; ~
v2 L VJ 1 o----rnT'-----0 ~ 2 1 (c) Electric inductance
~.-,-Q ~~ p,
Q
2 (d) Fluid inertance
Figura 3.8: The T-type elements in the energy domains described in this book. There is no T-type element for the thermal domain.
The energy stored in a T-type pure or ideal element is given by fi= fox fdx
(3.11)
For an ideal element with a constitutive equation ofEq. (3.11), the energy is a direct function of the through-variable f: (3.12)
Sec. 3.3
77
Generalization of One-Port Elements TABLE 3.3:
Summary of Elemental Relationships for Ideal T-type Elements
Element
Constitutive Equation
Generalized T-type
X=
Elemental Equation v = L df/dt
Lf
Translational spring
1 x = -F K
Torsional spring
9=-T K,
Electric inductance
').=Li
Fluid inertance
r= I1 Q
1
Energy E=
1
-Lf 2
v=--
1 dF K dt
E= _l_Fz 2K
O= _!_dT
E= _l_Tz 2K,
K, dt di v=Ldt dQ P=/1 dt
£= .!_Li 2 2 1
£= -I,Q 2
2
As in the case of an A-type element, it is not possible to change the stored energy or the through-variable in aT-type element instantaneously without an infinite source of power. Example3.3 It is commonly observed in electric circuits containing inductances that when a switch is opened a brief electric arc may develop across the air gap, causing the switch contacts to become pitted. In severe cases arcing may occur between the turns of the coil itself, causing breakdown of the electric insulation and perhaps destruction of the inductor. Explain why this arcing occurs. Solution Consider the circuit shown in Fig. 3.9. An inductor is aT-type element and has an elemental equation ·
di v=Ldt
(i)
If a current i is flowing just before the switch is opened, the energy stored in the magnetic field of the inductor is = Li 2 • When the current is interrupted, the magnetic field "collapses" and the stored energy must be either returned to the system or dissipated. The rapid change in the magnetic flux as the field decays generates a large inductive voltage in the coil. This induced voltage is sufficient to cause an arc, a short current pulse across the gap, that is potentially damaging to the switch and the coil itself. The inductive back electromotive force (emf) attempts to maintain the current through the coil so as to dissipate the stored energy.
e !
-r1 I
I
v
L
I ..........._
Figure 3.9: An electric circuit containing an inductance.
Summary of One-Port Primitive Elements
78
Chap. 3
This phenomenon may be described in terms of the elemental equation Eq. (i). An attempt to decrease the current instantaneously creates a large negative value of the derivative di1dt, generating a correspondingly large value of the across-variable v. The arcing allows the cwrent to continue briefly after the switch is opened and therefore to decay in a finite time. In practice engineers often connect semiconductor diodes or capacitors across inductors to provide an alternate current path and reduce inductive voltage spikes and arcing.
3.3.3 0-Type Dissipative Elements The elements that dissipate energy are collectively known as D-type elements. They are defined by an algebraic relationship between the across- and through-variables of thefonn
v
= F(f)
or
f
= :F 1(v)
(3.13)
where f and v are the generalized through- and across-variables, respectively. For linear (ideal) dissipative elements the relationship is commonly expressed in one of two forms: 1 (3.14) v Rf . or f=-V R
=
where R is defined to be the generalized ideal resistance. It is also common to define the conductance G = 1/R as the reciprocal of the resistance and to write Eq. (3.14) as
f=Gv
or
1
V=-f G
(3.15)
The generalized resistances are equivalent to the reciprocals of the mechanical and rotational damping constants and are equivalent to the electric, fluid, and thennal resistances. For all D-type elements except the thennal resistance element, power supplied to the element is converted to heat and dissipated. For the ideal elements the power may be expressed as (3.16) The power 'P is always a positive quantity and flows into a D-type element. In the thermal D-type element power is not dissipated In this case, because the through-variable is power, the element simply acts to impede heat flow. Table 3.4 summarizes the algebraic D-type relationships for resistances. The dissipative elements store no energy, and instantaneous changes in the power dissipated by these elements are associated with instantaneous changes in the through- and across-variables as indicated by the ideal elemental equation in which the through- and across-variables are directly related by the constant R.
Sec. 3.3
Generalization of One-Port Elements TABLE 3.4:
79
Summary of Elemental Relationships for Ideal 0-Type Elements
Element
Elemental Equations
Power Dissipated
Generalized D-type
1 f= -v R
P=
Translational damper
F=Bv
Rotational damper
T = B,rl
Electric resistance FJuid resistance Thermal resistance
1 R 1 Q=-P Rf 1 q=-T R, i = -v
V=
Rf
1 v=-F B 1 0=-T B,
1
-Vl = Rf 2
R 1 P= Bv2 = -F2 B
1 P= 8,02 = -T2 B,
P= .!.v2 = Ri 2 R
v= Ri P=RJQ
P=
1
-p2
Rf
= Q2RJ
T=R1q
Example3.4 An electric resistance of value R is connected to a voltage source supplying a sinusoidal voltage of the fonn V(t) = Vm sin(wt), as shown in Fig. 3.10. Find the average power dissipated in the resistor over one period of the voltage input.
Solution The sinusoidal applied voltage V(t) repeats itself with a period T = 27r/w seconds. The instantaneous power dissipated in the resistance is (i)
The average power dissipated over one period T is found by integrating the power over one period and dividing by the period:
(ii)
This expression shows that the average power dissipated in R over one period of the sinusoidal voltage is the same as would be dissipated by a constant applied voltage of value v = Vm 1.Ji = 0.101Vm volts.
i
=;
sinwt
V.,sinwUR Figure 3.10: An electric resistance.
Summary of One-Port Primitive Elements
80
Chap. 3
3.3.4 Ideal Sources In each energy domain two general types of idealized sources may be defined:
• The ideal across-variable source in which the generalized across-variable is a specified function of time f(t), Vs(t)
= /(t)
and is independent of the through-variable • The ideal through-variable source in which the generalized through-variable is a specified function of time Fs(t)
= /(t)
and is independent of the across-variable. An example of a through-variable source is an idealized positive displacement pump in a fluid system, in which the flow rate is a prescribed function of time and is independent of the pressure required to maintain the flow, while an example of an across-variable source is a regulated laboratory electric power supply in which the output voltage is independent of the current drawn by the circuit to which it is connected. These ideal sources are not poweror energy-limited and theoretically may supply infinite power and energy. The symbols for the ideal sources are shown in Fig. 3.11, where in the through-variable source the arrow designates the assumed positive direction of through-variable flow and in the across-variable source the arrow designates the assumed direction of the across-variable decrease or drop. For each source type one variable is an independently specified function of time.
(a) Through-variable source Figure 3.11:
(b) Across-variable source
Idealized source elements.
The value of the complementary variable of each source is determined by the system to which the source is connected. A source may provide power and energy to a system or may absorb power and energy, depending upon the sign of the complementary source variable. Table 3.5 defines the source types in each of the energy domains.
81
Generalization of One-Port Elements
Sec. 3.3
TABLE 3.5:
Definition of Ideal Sources
Energy Domain
Across-Variable Source
Through-Variable Source
Generalized Mechanical translational Mechanical rotational Electric Fluid Thermal
Across-variable, V,(t) Velocity source, V6 (t) Angular velocity source, 0,~(1) Voltage source, V,.(t) Pressure source, P.r(t) Temperature source, T, (t)
Example3.5 A force source is used to accelerate and decelerate a mass in a cyclic motion as shown in Fig. 3.12. The force source provides a square wave in force cycling between values of +Fo and - F0 with a total cycle time of To. In this example the velocity of the mass as a function of time and the power flow into the mass as a function of time are to be detennined. As shown in Fig. 3.12. the mass velocity is defined as positive when the force is positive. The velocity of the mass m is detennined from the elemental equation
dv Fs=mdt
(i)
The problem solution may be found by solving Eq. {i) in each fraction of the total time. Over the time period 0 ~ t < To/4. the elemental equation may be expressed as
Fodt = mdv
(ii)
and integrated to yield
v
1 = -Fot m
(iii)
Over the period To/4 ~ t < 3T0 j4, the equation may also be integrated, noting that at time t = To/4 the mass has velocity v0 , yielding
(-Fo)dt
= mdv
(iv)
and integrated to yield v(t)
To) = vo - Fo m (t - 4
Over the period 3T0 /4 ~ t < To. the equation may be integrated, noting that at timet the velocity is -vo:
Fodt
= mdv
(v)
= 3To/4 . (vi)
and integrated to yield
Fo ( t ·- 4 3To) v = -vo + -;;
(vii)
82
Summary of One-Port Primitive Elements
FR
Fo -Fo
Force
.._ _ _
Chap. 3
,.-:
__.li'o •
t
~~ .. ~ot
-vo
Rgure 3.12: A mass element driven by a force source.
Using the results from integration of the elemental equation, the velocity of the mass is plotted over one period of time To in Fig. 3.12. For subsequent periods of time the velocity may ·be determined in a similar fashion. The velocity curve is a sawtooth function, that is, an alternating series of linear curves with positive and negative slopes with values of ±Fo/m, the mass acceleration. The maximum and minimum velocities are
0.25FoTo vo = ± m
(viii)
The power delivered to the mass is (ix)
and may be determined by multiplying the force and velocity curves together as shown in Fig. 3.12. During the period 0 to To/4, the source provides positive power to the mass, accelerating it in the positive direction. In the period To/4 to To/2. the force source opposes the motion of the mass, absorbing power and decreasing its velocity, and then in the period To/2 to 3T0 f4, the negative force results in a velocity that has increasingly negative values and again supplies power to the mass. During the period 3T0 /4 to To, the force is in the positive direction and the mass velocity is negative, and so the source absorbs power from the mass. Over a full cycle of period T0 , the integral of the power supplied by the source is zero; for half of the cycle the source supplies energy, while for the other half it absorbs the kinetic energy stored in the mass.
3.4
CAUSALITY Each of the primitive elements is defined by an elemental equation that relates its throughand across-variables. This equation represents a constraint between the across-variable and the through-variable that must be .satisfied at every instant. An immediate consequence is that the across-variable and the through-variable cannot both be independently specified at the same time. One variable must be considered to be defined by the system or an external input, and the other variabJe is defined by the elemental equation. This is known as causality.
Sec. 3.5
83
Linearization of Nonlinear Elements
In the energy storage elements the constraint is expressed as a differential or integral relationship that defines the element as having integral or derivative causality. For example, a mass element m has an elemental relationship that is normally written in the form dv F=mdt
If a mass element is driven by a defined velocity v(t), the required force F is detennined by the above elemental equation; solution for the through-variable F (t) requires differentiation of the velocity v, and the element is said to be in derivative causality. On the other hand, if the element is driven by a specified force F(t), its resulting velocity is determined by rewriting the elemental equation: dv dt
= !_F m
or
v(t)
= -m1 f.to F dt + v(O)
which is known as the integral causality fonn. In Example 3.3.2 the thermal capacitance of the satellite is in integral causality because the heat flow rate is specified by the solar flux. Dissipative elements always operate in algebraic causality because the through- and across-variables are related by algebraic equations. The concept of causality becomes important in developing models of systems of interconnected elements. When an element is part of an interconnected system, its causality is determined by the system structure. It will be shown later that all independent energy storage elements in a system can be expressed in integral causality.
i.5
LINEARIZATION OF NONLINEAR ELEMENTS In many physical systems the constitutive relations used to define model elements are
inherently nonlinear. The analysis of systems containing such elements is a much more difficult task than that for a system containing only linear (ideal) elements, and for many such systems of interconnected nonlinear elements there may be no exact analysis technique. In engineering studies it is often convenient to approximate the behavior of nonlinear pure elements by equivalent linear elements that are valid over a limited range of operation. In many practical situations an element operates at a nominal, nonzero value of its through- or across-variable and is subjected to small deviations about this equilibrium value. For example, the springs in the suspension of an automobile may be inherently nonlinear over the full range of operation, but in nonnal use they are subjected to a nominal load force of the weight of the car, with "small" perturbation forces superimposed by the normal road conditions. We may, with care, use a linearized model of the spring that is valid over a limited range of operation. While any dynamic analyses based upon such models are at best an approximation to the behavior of the real system, for preliminary analyses such mode]s frequently capture the dominant features of the overall system response.
Summary of One-Port Primitive Elements
84
Chap. 3
Assume that a pure element is operating with an equilibrium value vo of its acrossvariable or fo of its through-variable. For small deviations about these values a pair of incremental variables v• and f* may be defined: (3.17) (3.18)
v• =v-vo
f*
= f- fo
Similarly~ if under equilibrium conditions one or both of the integrated through- or acrossvariables is constant with a value ho and xo, respectively, incremental values may be defined as perturbations from the nominal values:
= h- ho
(3.19)
x*=x-Xo
(3.20)
h*
The linearized elemental behavior is defined in tenns of these incremental variables.
A-Type Elements The A-type element defined in Eq. (3.3) has a single-valued monotonic relationship between the integrated through-variable and the across-variable, that is, h = F(v)
(3.21)
Under e.quilibrium conditions both h and v are constant with values ho and vo. When v is perturbed from equilibrium, the nonlinear function .r(v) may be expressed as a Taylor series about vo: h=
dF(v) .r (v)lv=Vo + dv
I .
I
(v- vo) V=Vo 2
2
I
d F(v) 2 (v - vo) + .. · 2. dv2 V=Vo
+ 9I
I .
(3.22)
dF(v) 1 d F(v) 2 =ho + - v+v+··· dv V=Vo 2! dv2 V=Vo
For small changes in v, v* is small and higher-order terms in the series may be neglected. If second and higher terms may be neglec~ only the first two tenns of the series are retained and an approximate linear relationship results: h - ho
I
~
dF(v) v• dv V;;No
(3.23)
= c•v•
(3.24)
I
(3.25)
or h*
where
c• =
dF(v) dv V=Vo
Sec. 3.5
Linearization of Nonlinear Elements
85
(a) A-type elements
(b) T-type elements
Agure 3.13: Linearization of constitutive relationships for A-type and T-type elements.
Equation (3.25) is a constitutive relationship for an ideal A-type element with capacitance C* and represents the elemental behavior of the nonlinear element in the region of the equilibrium point. The linearized generalized capacitance C* is the slope of the constitutive characteristic at the operating point, as shown in Fig. 3.13a. This linear approximation is used to define the elemental equation of an equivalent linear A-type element in the region of the equilibrium point by differentiation:
f* = dh* ~ c•dv* dt
(3.26)
dt
The linearized elemental equation may be used as an approximation to the behavior of the nonlinear element. Example3.6 A conica1 tank with angle 60° at the base drains through an orifice into the atmosphere as shown in Fig. 3.14. In normal operation the tank contains a fluid volume Vo. Find an expression for a linearized fluid capacitance that may be used to represent the tank for sma11 deviations about its nominal operating point.
Figure 3.14: A nonlinear fluid system and its linear graph.
Summary of One-Port Primitive Elements
86
Chap. 3
Solution Consider an elemental disk of fluid of width dh at a height h above the base. The radius of the disk is r = h tan(n'/6) = hf.J3. Its volume dV is (i)
If the tank is fi11ed to height h, the total volume of fluid V stored is
(ii)
and the pressure at the outlet is P acceleration due to gravity. Then
= pgh, where p is the density of the fluid and g is the 9)1/3
p = ( 1f
pgVI/3
(iii)
or
v
= _1C_p3 9 (pg)3
(iv)
which is the constitutive relationship of a pure but nonideal A-type fluid element. At the operating point V = Vo, and the corresponding pressure at the base of the tank is Po, which may be found directly from Eq. (iii). The equivalent linear fluid capacitance c• is found by differentiating Eq. (iv):
c• =
I
dV dp P=Po
= 3-1C-PJ 9 (pg)3
(1C
(v)
- 3 )1/3 2/3 --Vo pg
9
The equivalent linear elemental equation is
(vi)
T-Type Elements Nonlinear pure T-type elements may be linearized in a similar manner. Equation (3.8) defines a T-type element as a single-valued monotonic relationship between the integrated across-variable and the through-variable: X=
F(f)
(3.27)
Sec. 3.5
Linearization of Nonlinear Elements
87
If there is a nominal operating point defined by >
(3.28)
The first two tenns may be used to define an approximate linear relationship:
d:F(f) I f* df f:::fo
•
X =X-Xo~ - -
(3.29)
An elemental relationship may be found by differentiating both sides: v*
~ d:F(f)
I
df
df* = L• dt* dt
f=fo dt
(3.30)
where L* = d:F(f) I df f=fo
(3.31)
is a linearized generalized inductance representing the elemental behavior of the pure element at the equilibrium point Figure 3.13b shows the linearizing approximation of the constitutive relationship at the operating point
Example3.7 The measured force-extension characteristic of a spring has been found to closely approximate F = 0.125 x l06 x 3 • In its normal operating mode the spring is subjected to a static load F0 with a small sinusoidal force superimposed. Find the equivalent linearized stiffness of the spring. Solution The stiffness of a spring is the reciprocal of the generalized inductance. The constitutive relation may be rewritten X=
2
X
Then I
K•
=
dx dF
- 2
-3
X
10-2 F 113
(i)
I F=Fo
(ii)
I o-2 F.-213 0
or (iii)
88
Summary of One-Port Primitive Elements
Chap. 3
0-Type Elements D-type elements are characterized by an algebraic relationship between the the across- and through-variables:
v = F(f)
(3.32)
The nonlinear function may be expanded as a Taylor series, and the linear terms retained to fonn an approximation to the elemental behavior:
v• = v - vo
~
dF (f) dx
I
f*
(3.33)
f=fo
Then
v•
~
R*f*
(3.34)
where (3.35)
is a linearized resistance. An expression for a linearized conductance G* may be developed similarly. The linearization of lumped elements is summarized in Table 3.6. TABLE3.6:
Summary of Linearized Lumped-Parameter Elements
Element
Constitutive
Linearized Elemental Equation
A-type
h = J='(v)
r =C* dv*
T-type
X= J='(f)
v• = L* df"
D-type
v =.?='(f)
v* = R*f"
dt
dt
Elemental Value
C* = dF(v) dv L* = dF(f) df
IVc.Vo If=fo I
R* = dF(f) df f=fo
Example3.8 A set of measurements made on a test vehicle traveling along a straight road showed that the aerodynamic drag force is approximately described by a quadratic relationship (i)
where c0 is an overall drag coefficient and v is the velocity. In its normal operation the vehicle is known to travel at a nominal speed v0 but is subjected to small variations in this speed. Find a linearized D-type element that approximates the behavior of the drag force for vehicle speeds that are close to v0 •
Chap. 3
89
Problems
Solution The aerodynamic drag is a pure dissipative element which may be expressed as an equivalent nonlinear damper: (ii) The linearized representation of this damper is
F; = Bv*
(iii)
where v* = v - vo and FJ = Fd - Fo represent excursions from the nominal operating point. The value of the equivalent linear damper coefficient B* is
B*- dFd
I
dv ll=vo
-
(iv)
= 2covo The value of the linearized damper coefficient B* is directly proportional to the equilibrium velocity and at high velocities is relatively large, while at low velocities it is relatively small. The value of the drag force computed by Eq. (iii) is the excursion from the nominal operating value, and the total drag force acting on the vehicle is given by Fd:::::::
Fo + B*v*
::::::: cov~
+ B* (v -
(v)
vo)
PROBLEMS 3.1. A mass of 4 kg and a spring with stiffness 50 N/m are connected as shown in Fig. 3.15. The mass is displaced so as to compress the spring by 5 em and then released Displacement ..,.._
_. .. _x(t)
Figure 3.15: A mass-spring system.
(a) Compute the energy stored in the spring at the time of release. (b) What is the maximum velocity the mass will achieve? (c) Assume that as the spring expands it breaks when the tension reaches 2 N. What is the velocity of the mass at the moment after the break? What is the energy of the mass just prior to and just after the break?
Summary of One-Port Primitive Elements
90
Chap. 3
3.2. Failure of a component in an electrical system may generate damaging transient voltages and currents that may destroy other components. In analyzing failure modes of circuits it is often of interest to determine the state of the remaining components. Assuming that a single circuit element fails by open or short circuit, generating a transient current or voltage, and that the nonfailed elements do not change their energy storage at the moment of failure, what can you state about: (a) The currents and voltages associated with inductors in the circuit? (b) The currents and voltages associated with capacitors in the circuit? (c) The currents and voltages associated with resistors in the circuit? 3.3. Generalize the answers to Problem 3.2 to failure conditions in a generalized system. What can you state about the instantaneous values of through- and across-variables immediately after a system transient for: (a) An A-type element? (b) A T-type element? (c) A D-type element? 3.4. In many cases, the parameters that describe an ideal element are determined from experimental measurements. Consider placing a source that provides a sinusoidal input across an element. as shown in Fig. 3.16. Through variable
Source
Ideal
element
Across variable
~~ Figure 3.16:
A source connected to an ideal element
(a) The source provides a sinusoidal across-variable v(t) = v0 sin(wt). Determine and sketch the resulting through-variable f(t) if the element is (i) an A-Type, (ii) aT-type, and (iii) aD-type element. (b) The source provides a sinusoidal through-variable f(t) = fo sin(wt). Determine and sketch the resulting across-variable v(t) if the element is (i) an A-Type, (ii) aT-type, and (iii) aD-type element. 3.5. In many applications, engineers must decide how to store energy in a system. If we wish to store 100 joules of energy, find the value (in SI units) of the element in each of the following systems: (a) A pneumatic system in which compressed air is stored in a tank at a pressure of 10,000 N/m2 • Assume the bulk modulus of the compressed air is 1.41 P 1. (b) A rotational flywheel spinning at 10,000 rad/s. If the flywheel is made of steel plate with a thickness of 2 c~ what diameter is required? (c) An air dielectric parallel plate capacitor, charged to a voltage of 1000 v with plates spaced 0.1 em apart. What plate area is required? How do the energy densities-that is, the energy stored per unit volume-compare for each of these systems. 3.6. Electric cars have been proposed as a method of easing air pollution in urban areas. One proposal to make cars more efficient is to use regenerative braking, in which the motor is turned into a generator and used to charge the batteries during braking. The kinetic energy of the car is thus converted to electrical energy and stored for later use. Consider a car with a mass of 1000 kg.
Chap. 3
91
References
(a) If the car is traveling at 30m/sand regeneratively braked to a standstill, how much energy would be returned to the battery'? Assume 100% efficiency. (b) If the battery voltage is regulated at 24 volts, how much charge expressed in ampere-hours is imparted to the battery'? 3.7. Consider an electric home heating system. A resistive element R is connected to the 110-volt, 60-Hz electric supply. (a) Determine the current flow through the element as a function of time. (b) Determine the average thermal power generated per cycle. (c) If the heater is rated at 1000 watts, what is the value of the heater resistance R? 3.8. An electrical resistor, with the characteristic that the voltage drop is proportional to the square of the current, is used in a communications circuit. (a) Under normal operating conditions the voltage across the resistor is 10 v, with a current of 2 rnA. Determine the constitutive equation for the resistor. What is the power dissipated at this operating point? (b) Determine the linearized value of the resistance of the element at this nominal operating point. (c) If the applied voltage is increased to 12 v, what current would be predicted by the linearized model? What is the actual current in the nonlinear resistor? (d) Compare the predicted (from the linear model) and the actual power dissipation with 12 v applied. 3.9. In many fluid systems flow is controlled by valves or orifices, and is described by a quadratic orifice equation
where C 1 is a constant that depends upon the valve or orifice geometry. We wish to derive the equivalent linearized resistance of a quadratic orifice. (a) Derive the equivalent linear resistance at flow Q. (b) In a fluid system a pressure source of 100 N/m 2 drives a pipe with resistance of R = 5 N-s/m 5 and discharges through an orifice. Without the valve the flow through the pipe is 20 m3 /s, while with the orifice installed the flow reduces to 10 m3 /s. What are the equilibrium flow and pressure across the orifice? (c) What is the linearized resistance of the orifice?
REFERENCES [1] Firestone, F. A., "A New Analogy Between Mechanical and Electrical Systems," Journal of the Acoustic Society ofAmerica, 3, 249-267, 1933. [2] Trent, H. M.• "Isomorphisms Between Oriented Linear Graphs and Lumped Physical Systems," Journal of the Acoustic Society ofAmerica, 27, 500-527, 1955. [3] Shearer, J. L., Murphy, A. T., and Richardson, H. H., Introduction to System Dynamics, AddisonWesley, Reading, MA, 1967. [4] Koenig, H. E., Tokad, Y., Kesavan, H. K, and Hedges, H. C., Analysis of Discrete Physical Systems, McGraw-Hill, New York, 1967. [5] Blackwell, W. A., Mathematical Modeling of Physical Networks, Macmillan, New York. 1968. [6] Paynter, H. M., Analysis and Design of Engineering Systems, MIT Press, Cambridge, MA, 1961. [7] Kamopp, D. C., Margolis, D. L, and Rosenberg, R. C., System Dynamics: A Unified Approach (2nd Ed.), John Wiley, New York, 1990.
4
Formulation of System Models
4.1
INTRODUCnON TO LINEAR GRAPH MODELS
Graphical techniques are widely used to aid in the formulation and representation of models of dynamic systems. Several techniques, including linear graphs [1-5], bond graphs [6-7], operational block diagrams [8], and signal flow graphs [9-10], have been developed and are used extensively by engineers. In this text we use the linear graph to represent the structure of lumped-parameter systems and to provide basis for the generation of a state equation description for lumped-parameter system models. Linear graphs represent the topological relationships of lumped-element interconnections within a system. The tenn linear in this context denotes a graphical lineal (or line) segment representation as shown in Fig. 4.1 and is not related to the concept of mathematical linearity. Linear graphs are used to represent system structure in many energy domains and are a unified method of representing systems that involve more than one energy medium. They are similar in form to electric circuit diagrams. A graph is constructed from the following:
a
1. A set of branches each of which represents an energy port associated with a passive or source system element Each branch is drawn as an oriented line segment. 2. A set of nodes (designated by dots) that represent the points of interconnection of the lumped elements. All graph branches terminate at nodes. The nodes define points in the system where distinct across-variable values may be measured (with respect to a reference node), for example, points with distinct velocities in a mechanical system, or points in an electric system that have distinct voltages. 92
Sec. 4.2
Linear Graph Representation of One-Port Elements
93
r]Node
vmc ).Wble Across-
Through-
Branch
Figure 4.1: Linear graph representation of a single passive element as a directed line segment
A typical complete linear graph, representing a simple mechanical system with a single source and three one-port elements, is shown in Fig. 4.2. In this case there are two nodes representing points in the system at which distinct velocities may be measured. In practice it is common, but not necessary, to designate one of the nodes as a reference node and to draw this node as a horizontal line (sometimes cross-hatched) as shown. In mechanical systems the reference node is usually selected to be the velocity of the inertial reference frame, while in electric systems it commonly represents the system "ground" or zero-voltage point In fluid systems the reference node designates the reference pressure (often atmospheric pressure) from which all system pressures are measured. Apart from this special interpretation the reference node behaves identically to all other ~odes in the graph. v
Figura 4.2: Linear graph representation of a simple mechanical system.
In a linear graph one-port elements are represented in the two-terminal form introduced in Chap. 3. Each element generates a branch in the graph and is drawn as a line segment between the two appropriate nodes. Associated with each branch is an elemental throughvariable, assumed to pass through the line segment, and an elemental across-variable which is the difference between the across-variable values at the two nodes. Each linear graph branch thus represents the functional relationship between its across- and through-variables as defined by the elemental equation. Linear graph segments may be used to represent pure or ideal elements.
4.2
LINEAR GRAPH REPRESENTATION OF ONE-PORT ELEMENTS
Graph branches that represent one-port elements are drawn as oriented line segments with an arrow designating a sign convention adopted for the through- and across-variables. Figure 4.3 shows branches for the generalized passive energy storage and dissipation elements. Each branch is labeled with the generalized element type, and the across- and through-variables in the branch are related by the elemental equation. For the three generalized ideal (linear) elements the relationships.are
Formulation of System Models
94
Chap. 4
• For a generalized ideal A-type element (capacitance) C, dv dt
= .!_1
(4.1)
c
• For a generalized ideal T-type element (inductance) L, df dt
1
(4.2)
=LV
• For a generalized ideal D-type element (resistance) R, v=Rf
or
f
= .!.v R
(4.3)
where for energy storage elements the equations are expressed with the derivative on the left-hand side.
Y1
(a) A-type elements
(b) T-type element
(c) D-type element
Figure 4.3: Linear graph representation of generalized one-port passive elements.
As described in Chap. 3, A-type elements (with the exception of electric capacitors) must have their across-variable defined with respect to a constant reference value. For example, the velocity difference for a mass element is defined with respect to a constantvelocity inertial reference frame. The branches representing these A-type elements therefore must have one end connected to the reference node. Some authors use a dotted line to indicate this implicit connection to ground, as shown in Fig. 4.3. Apart from this notational difference, A-type branches are treated identically to all other branches. Each branch contains an arrow designating the sign convention associated with the across- and through-variables. The arrow on the graph element is drawn in the direction in which • v, the across-variable associated with the branch is defined to be decreasing, that is, in the direction of the assumed across-variable "drop," and • the through-variable f is defined as having a positive value. With this convention, when the elemental across- and through-variables have the same direction (or sign) power, 'P = fv, is positive and flows into the element The choice of arrow direction for passive branches simply establishes a convention to define positive and negative values of the through- and across-variables and is arbitrary. The arrow direction does not affect the equation formulation procedures described in Chap. 5 or any subsequent system analyses; the effect of reversing an arrow direction is simply to reverse the sign of the defined across- and through-variable on the element The choice of sign convention is discussed more fully in Sec. 4.4.
Sec. 4.3
Element Interconnection Laws
95
Ideal source elements are represented by linear graph segments containing a circle as shown in Fig. 4.4. In all source elements one variable, either the across- or through-variable, is a prescribed independent function of time. For source elements the arrow associated with the branch designates the sign associated with the source variable: 1. For a through-variable source the arrow designates the direction defined for positive through-variable flow. 2. For an across-variable source the arrow designates the direction defined for the across-
variable drop. The arrow on an across-variable source branch is commonly drawn toward the reference node since that is usually the direction of the assumed drop in an across-variable value.
il
Direction of
V, \
::-variable
(a) Across-variable source Figure 4.4:
4.3
F.r
{ t
Direction of through-variable
flow
(b) Through-variable source
Linear graph representation of ideal source elements.
ELEMENT INTERCONNECTION LAWS
Linear graphs represent the structure of a system model and specify the manner in which elements are connected. The general interconnection laws for linear graph elements are derived in this section, with one set of laws relating across-variables and a second set relating through-variables, following the developments of several authors [1-3].
4.3.1 Compatibility The compatibility law represents a set of constraints on across-variables on a graph that may be related to physical laws governing the interconnection of lumped elements. It may be stated: The sum of the across-variable drops on the branches around any closed loop on a linear graph is identically zero, or (4.4)
for any N elements forming a closed loop on the graph.
96
Fonnulation of System Models
Cbap.4
A compatibility equation may be written for any closed loop on a graph, including inner loops or outer loops, as shown in Fig. 4.5. Because the arrows on the branches indicate the direction of.the across-variable drop, they are used to assign the sign to terms in the summation; if the loop traverses a branch in the direction of an arrow, the term in the summation is positive, while if a branch is traversed against an arrow, the term in the sum is assigned a negative value.
A
(b)
(a)
Figure 4.5: Compatibility equations defined from loops on a linear graph. (a) Some possible loops on a graph, and (b) a loop containing four nodes and four branches.
Figure 4.5b shows a single loop with four branches and four nodes. With the arrow directions as shown, the compatibility equation for this loop is 4
LV;= VJ- v2 +v3 -v4 =0
(4.5)
i=l
We can demonstrate the compatibility law using the loop in Fig. 4.5b. The across-variable drop on an element is the difference between the value of the across-variable at the two nodes to which it is connected, for example, VJ = v A - v s is the drop associated with element 1. If all the nodal values are substituted into Eq. (4.5), then 4
LV;= (vA- vs)- (vc- Vs)
+ (vc- VD)- (vA- VD) = 0
(4.6)
i=l
The physical interpretation of the compatibility law in the various energy domains is Mechanical systems: The velocity drops across all elements sum to zero around
any closed path in a linear graph. Compatibility in mechanical systems is a geometric constraint which ensures that all elements remain in contact as they move. Electric systems: The compatibility law is identical to Kirchoff's voltage law which states that the summation of all voltage drops around any closed loop in an electric circuit is identically zero. Fluid systems: Pressure is a scalar potential which must sum to zero around any closed path in a fluid system. Thermal systems: Temperature is a scalar potential which must sum to zero around any closed path in a thermal system.
Sec. 4.3
Element Interconnection Laws
97
4.3.2 Continuity The continuity law specifies constraints on the through-variables in a linear graph that may be related to physical laws governing the interconnection of elements. It may be stated: The sum of through-variables flowing into any closed contour drawn on a linear graph is zero, that is,
(4.7) for any N branches that intersect a closed contour on the graph. Continuity is applied by drawing a closed contour on the linear graph and summing the through-variables of branches that intersect the contour, as shown in Fig. 4.6. The arrow direction on each branch is used to designate the sign of each tenn in the summation.
-
(a)
(b)
Figure 4.6: The definition of continuity conditions at (a) a single node on a linear graph. and (b) the extended principle of continuity applied to any closed contour on a graph.
For the special case in which a contour is drawn around a single node, the continuity law states that the sum of through-variables flowing into any node on a linear graph is identically zero. The law of continuity at a single node is illustrated in Fig. 4.6a. In this case f 1 - f2 - f3 = 0. The extended principle of continuity for a general contour may be demonstrated by considering the example containing three nodes shown in Fig. 4.6b. The continuity conditions at the three nodes are
+ fs = 0
at node A
f2- fs- f6 = 0
at node B
(4.8) (4.9)
+ f4 + f6 = 0
at node C
(4.10)
ft- f4 -f3
For the contour enclosing all three nodes, the sum of through-variables into the contour is (4.11) The principle of continuity applied to any node states that there can be no accumulation of the through-variable at that node. If this principle did not hold, it would imply that the integrated through-variable is nonzero at the node, and the node would either store or dissipate energy, thus acting as one of the primitive elements described in Chap. 3. In each of the energy domains, the principle of continuity corresponds to the following physical constraints:
Formulation of System Models
98
Chap.4
Mechanical systems: In a translational (or rotational) mechanical system continuity at a node arises as a direct expression of Newton's laws of motion, which require that the sum of forces (or torques) acting at any massless point must be identically zero. Electric systems: The principle of continuity at an electric node is Kirchoff's current law, which states that the sum of currents flowing into any node Gunction) in a circuit must be identically zero. Fluid systems: A node represents a junction of elements in a fluid system. The continuity principle requires that the sum of volume flow rates into the junction must be zero; if this were not true, then fluid would accumulate at the junction. Thermal systems: In a thennal system the continuity of heat flow rate ensures that there is no accumulation of heat at any junction between elements. 4.3.3 Series and Parallel Connection of Elements
Figure 4.7 shows two possible connections of elements within a linear graph. In Fig. 4.7a several elements are connected in parallel, that is, they are connected between a common pair of nodes. Compatibility equations may be written for the loop containing any pair of branches to show Vt = v2 = V3 = V4 = -vs. Similarly, the continuity condition applied to node B shows that ft + f2 + f3 + f4 - fs = 0. In general elements connected in parallel share a common across-variable, and the through-variable divides among the elements at the two nodes.
(a) Parallel connection Figure 4.7:
(b) Series connection
System elements connected in parallel and series.
Figure 4.7b shows four elements connected in series. In this configuration, with the arrows as indicated, the continuity condition may be applied to each of the internal nodes to show that f1 = f2 = -f3 = f4. If this series chain of elements is part of a loop, the compatibility condition requires that the across-variable drop across the chain is the sum of the individual drops of the branches, that is, VAB = v 1 + v 2 - v 3 + v 4 • Elements that are connected in series share a common through-variable.
4.4
SIGN CONVENTIONS ON ONE-PORT SYSTEM ELEMENTS
A simple electric system consisting of a battery and a resistor is shown in Fig. 4.8. The battery is modeled as an across-variable (voltage) source, and the resistor is modeled as an ideal D-type element. The positive (+) and negative (-)battery terminals are indicated. This
Sec. 4.4
Sign Conventions on One-Port System Elements A
99 A
(b)
(a)
Agure 4.8: Dlustration of passive element sign conventions using a simple electrical model.
simple system has only two nodes: the voltage reference node, arbitrarily chosen as the battery's negative terminal, and a node corresponding to the battery's positive terminal, which is the only other distinct voltage in the system. Branches corresponding to the source and resistive elements are connected in parallel between these nodes. The sign convention for the source requires that the arrow point in the direction of the assumed voltage drop. We have assumed that positive voltage corresponds to a positive across-variable value, and therefore the arrow must point downward, that is, from node A toward the reference node as shown. The sign convention for the resistor may be arbitrarily assigned, and in the figure the two possibilities are shown. In Fig. 4.8b the arrow is aligned in the direction of the assumed voltage drop, that is, toward the reference node. In this case the compatibility equation from the graph is -V.s +vR =0
(4.12)
which together with the D-type elemental equation for the resistor v R = RiR gives an expression for the current in the resistor: .
lR
IV.
= R
.S'
(4.13)
In Fig. 4.8c the same system graph is redrawn with the arrow on the resistor branch reversed. The compatibility equation then becomes
V.s +vR =0
(4.14)
and the current through the resistor is therefore (4.15)
which is opposite in sign to the first case. The direction defined as positive current flow is opposite in the two systems. A positive value of a computed through-variable implies that the flow is in the direction of the arrow, and a positive across-variable means that the drop is in the direction of the arrow. In this example the negative result implies that the direction of the current ftow is opposite that of the arrow. The results of both models are physically equivalent. The power flow into the resistor is positive regardless of the arrow direction.
100
Fonnulation of System Models
Chap.4
Figure 4.9 shows a simple mechanical system consisting of a mass resting on a frictionless plane and moving under the influence of an external prescribed force source. Four possible assumed positive force and velocity conditions are shown together with the corresponding linear graphs. In each case the upper node represents the velocity of the mass in the defined direction. An increase in the value of the across-variable indicates an increase in velocity in that direction. The sign convention assigned to the force source defines whether a positive force increases or decreases the velocity of the mass. In Fig. 4.9a and d the force and velocity directions are aligned and a positive force accelerates the mass in the direction of the applied force. In practice it is often convenient to adopt a convention directing all arrows on passive elements away from sources and toward the reference node and then to assign a source convention that is compatible with the convention defined in the physical system. Define positive velocity
(a)
Define positive velocity
(b)
Define positive velocity
Define positive velocity
Fm=F(t)
Fm=-F(t)
m
m
(c)
Figure 4.9:
(d)
Possible force and velocity orientations for a simple translational mass.
Sec. 4.5 4.5
Linear Graph Models of Systems of One-Port Elements
101
LINEAR GRAPH MODELS OF SYSTEMS OF ONE-PORT ELEMENTS
The representation of a physical system as a set of interconnected one-port linear graph elements is a system graph. The construction of a system graph usually requires a number of modeling decisions and engineering judgments. The general procedure may be summarized by the following steps: 1. Define the system boundary and analyze the physical system to determine the essentiaJ features that must be included in the model, including the system inputs, the outputs of interest, the energy domains involved, and the required elements. 2. Form a schematic, or pictorial, model of the physical system and establish a sign convention for the variables in the physical system.
3. Determine the necessary lumped-parameter elements representing the system sources, energy storage, and dissipation elements. 4. Identify the across-variables that define the linear graph nodes and draw a set of nodes. 5. Determine the appropriate nodes for each lumped element and add each element to the graph. 6. Select a set of sign conventions for the passive elements and draw the arrows on the graph.
7. Select the sign conventions for the system source elements to be consistent with the physical model and add them to the graph. The formulation of the model in steps 1-3 is perhaps the most difficult part of the modeling process because it requires a detailed knowledge of the system configuration and the physics of the energy domain. Usually engineering approximations and assumptions are required in the model formulation. Care must be taken to include all the essential elements so as to capture the required dynamic behavior of the physical system while not making the model overly complex. Whenever practicable, model responses should be verified against measurements made on the physical system, and the model modified if necessary to ensure fidelity of the response. In the remainder of this section we develop modeling procedures for deriving linear graphs in the five energy domains. 4.5.1 Mechanical Translational System Models
Translational system models utilize mass (A-type), spring (T-type), and damper (D-type) one-port passive elements, together with velocity (across-variable) and force (throughvariable) ideal source elements. The graph nodes represent points of distinct velocity with respect to an inertial reference frame. All A-type (mass) elements in a mechanical system must be connected to the inertial reference node.
102
Formulation of System Models
Chap.4
Example4.1 A mass m supported on a cantilever beam and subjected to a prescribed force F, (t) is shown in Fig. 4.1 Oa. In the figure positive velocity is defined as downward and is aligned in the direction of the positive force. It is assumed that the displacement of the mass is small, and so the system may be represented as a translational system in which all velocities are in the vertical direction. The schematic model, shown in Fig. 4.1 Ob, includes the following elements:
1. A force source F,(t) to represent the system input. 2. A mass element m to represent the mass.
3. A spring element K that models the effective force-displacement characteristic of the end point to represent the beam, which is assumed to be massless. There are only two nodes required in this example (the reference node and a node representing the velocity of the mass). The elements are added to the graph noting the following. 1. The velocity of the mass must be referenced to the fixed reference node.
2. The force source Fs (t) acts on the mass and acts with respect to the same fixed reference node.
3. One end of the spring moves with the velocity of the mass, and the other end is connected to the zero-velocity reference node. The sign orientation of the force source Fs (t) is chosen so that a positive force yields a positive mass velocity, as shown in the pictorial representation. The completed linear graph appears in Fig. 4.10c. F8 (t)
F,(t)
v
[
v
m
vrer= 0 (a) Physical system
(b) Schematic representation
(c) Linear graph
Figure 4.10: A mechanical system consisting of a mass element on a cantilevered beam.
The system graph indicates that all three branches are connected in parallel, with a compatibility condition indicating that Vm =Vx
(i)
And at the top node a continuity equation may be written to show F,- Fx- Fm =0
(ii)
As in any parallel connection, the across-variable (velocity) of the mass and spring are identical and the applied through-variable [force F,(r)] divides between the mass and the spring.
Sec. 4.5
103
Linear Graph Models of Systems of One-Port Elements
4.5.2 Mechanical Rotational Systems The construction of a linear graph model for a mechanical rotational system is similar to that for translational systems. Nodes on the graph represent points of distinct angular velocity, with respect to an inertial reference angular velocity, and the passive elements are rotary inertias (A-type), torsional springs (T-type), and rotary dampers (D-type). The across-variable source is an angular velocity source, and the through-variable source is a torque source. As in the case of translational systems, all A-type (inertia) elements are referenced to an inertial reference frame. Example4.2 A power transmission driving a large flywheel is shown in Fig. 4.11 a. The flywheel is supported on bearings and is driven through a frictional drag cup transmission by a motor acting as an angular velocity source rls(t). Clockwise angular rotations are defined as positive. The following elements are used to represent the system.
1. The system input from the motor is modeled as an angular velocity source rls(t). 2. The flywheel is modeled as a rotary inertia J.
3. The shaft bearings are modeled as a rotary damper B1 to account for energy dissipation due to friction as the shaft rotates. 4. The drag cup transmission is modeled as a rotary damper B2 connecting the motor to the flywheel. It is assumed that the shafts are rigid and massless. and so they do not deflect and do not add significant rotational inertia to the system.
J
(a) Physical system Figure 4.11:
(b) Linear graph
A rotational system consisting of flywheel driven through a drag cup.
Figure 4.11 shows that there are two distinct angular velocities with respect to the reference, labeled points A and B in Fig. 4.11 a, and therefore three nodes are necessary on the linear graph. The reference node is defined to be stationary; that is Orer = 0. The elements may be added to the graph by noting the following:
1. The angular velocity 0 1 of the flywheel must be defined relative to the fixed reference node. 2. The inner bearing race rotates at the same angular velocity as the flywheel, and the housing is fixed; thus, the damper B 1 is inserted in parallel with the flywheel.
104
Fonnulation of System Models
Chap. 4
3. For the transmission drag cup element B2, one end rotates at the angular velocity of the input shaft, OA, and the other end rotates at the angular velocity of the flywheel, 08 0 1 • It is therefore inserted between the nodes A and B.
=
4. The source angular velocity O.r(t) is defined with respect to the reference node. The sign of the angular velocity source is selected to provide a positive angular velocity to the damper, requiring the arrow to point toward the reference node. The completed linear graph is shown in Fig. 4.11 b.
4.5.3 Linear Graph Models of Electric Systems Electric system models consist of capacitors (A-type), inductors (T-type), and resistors (D-type) as passive elements, and voltage (across-variable) and current (through-variable) ideal sources. Electric circuits are usually easily translated into linear graphs because the topology of the linear graph is similar to the circuit diagram. The wires and connections between components in the circuit diagram are implicitly the nodes on the graph because they represent points of defined voltage. The following example illustrates the conversion of an electric circuit to a linear graph form. Example4.3 Figure 4.12 shows an electric filter designed to minimize the transmission of high-frequency electrical noise from an alternator to sensitive electronic equipment. The linear graph is generated by the fo11owing steps:
1. The alternator is represented by an ideal voltage source, and the electrical noise is modeled as variations of the voltage about its nominal value. 2. The electronic instrument is modeled as a resistive load RL. The value of the resistance is detennined from the manufacturer's specification of the nominal operating voltage and current for the instrument. Alternator
Filter
Instrument
l::t:tl
~~·~~~
(a) Physical system
V,(t)cf3:2 f A
L1
B
~
C
fR£
G (b) Electrical model
Figure 4.12:
An electric filter shown as (a) the physical system, and (b) an elecnical equivalent circuit modeling the source and the load.
Linear Graph Models of Systems of One-Port Elements
Sec.4.5
105
3. The circuit diagram in Fig. 4.12b is used to generate the system model. 4. The passive electric elements, the two coils and two capacitors, are each represented by single lumped elements.
S. The circuit diagram has four nodes, the reference ground node G and three others labeled A, B, and C in Fig. 4.12b. Each node represents a point in the circuit where a distinct voltage can be measured. 6. The elements are inserted between the nodes as shown in Fig. 4.13. 7. Sign conventions for the passive elements are established by directing the arrows away from the source and toward the reference node. 8. The sign convention for the voltage source is established as shown in Fig. 4.13 to correspond with that shown for the source in Fig. 4.12b.
Figure 4.13: Linear graph representation of the electrical filter.
4.5.4 Fluid System Models
Linear graph models for fluid systems are based on pressure drop Pas the across-variable and volume flow rate Q as the through-variable. Nodes on the graph represent distinct ·points of fluid pressure with respect to a constant reference pressure, and the passive elements are fluid capacitances (A-type), fluid inertances (T-type), and fluid resistances (Dtype). The across-variable source is a pressure source, and the through-variable source is a flow source. Fluid A-type elements are referenced to a fixed-pressure node. Example4.4 A water storage system consisting of a large reservoir, two control valves, and a tank is illustrated in Fig. 4.14. The system is fed by rainfall and may be represented with the following elements: 1. Rainfall-a flow source Qs(t) 2. The reservoir-a fluid capacitor C1
3. The two valves-in a partially open state modeled as linear ftuid resistances R1 and R2 4. The storage tank-a fluid capacitor c2 It is assumed that the connecting pipes are sufficiently short so that pressure drops associated with piping resistances and fluid inertances may be neglected The figure shows that there are two independent pressures in the system, at the base of the reservoir, point A, and at the base of the tank point, B. The graph therefore requires three nodes: the reference node representing atmospheric pressure and the two capacitance pressures.
106
Formulation of System Models
Chap.4
(\Rmn ~Q,(t)
'''
Reservoir
~
c.
A Valve (a) Physical system Figure 4.14:
(b) Linear graph
A fluid system with two storage tanks.
The two fluid capacitances (A-type elements) are placed between the appropriate nodes and the reference node Patm. The outlet valve R2 discharges between the storage tank pressure PA and the reference pressure Paun and so is connected in parallel with C2 • The pressure drop across valve R1 is PA- P8 , and so it is inserted between the two nodes A and B. Finally the flow source Q,. is inserted between the capacitance C1 and the reference node. The sign convention for the flow source Q,. is selected to give an increase in reservoir pressure when the source flow is positive. Figure 4.14b shows the completed linear graph.
In the next example we examine a simple lumped equivalent model of the distributed inertance and resistance effects in a long pipe. Example4.5 In the system shown in Fig. 4.15a fluid is pumped into a tank through a long pipe. The tank discharges to atmospheric pressure through a partially open valve. The model is formed to study the dynamic response of the flow through the outlet valve in response to changes in the pressure generated by the pump. The pump is represented as a pressure source P,.(t). The open tank is represented as a fluid capacitance C. The discharge valve is modeled as an ideal fluid resistance R1 • In the previous example it was assumed that pressure drops associated with the connecting pipes could be ignored; in this example the pipe is of sufficient length that internal pressure drops need to be included in the model. The pipe is assumed to
1. dissipate energy through frictional losses at the walls. and 2. store energy associated with the motion of the fluid within the pipe.
Tank
B
Cj
Long pipe Rp, lp A
Palm
Fluid reservoir (a) Physical system
(b) Linear graph
Figure 4.15: A fluid system that includes pipe effects in its model.
Sec. 4.5
Linear Graph Models of Systems of One-Port Elements
107
While these two effects are distributed throughout the length of the pipe, they may be approximated by a combination of a single lumped resistance Rp and a fluid inertance lp. The two elements have a common flow Q and are described by the elemental equations PRp P1p
= RpQ =
dQ
/p
dt
for the resistance for the inertance
(i)
(ii)
It is reasonable to assume that the total pressure drop across the pipe is the sum of the two effects and that the pipe should be modeled as a series connection of the elements. A nonphysical node is created in the linear graph to represent the point of connection of the two Jumped elements used to model the effects of distributed resistance and inertance in the pipe. With the addition of the pseudonode the linear graph requires a total of four nodes, representing the reference pressure, the pressure at the base of the tank A, the pressure at the end of the long pipe B, and the junction of the pipe resistance and inertance elements at the node C. The fluid capacitance is inserted between node A and the reference node. The pipe elements are inserted in series between the tank A and the pump B in arbitrary order. The discharge resistance R1 is connected to the reference node, indicating that the flow is to atmospheric pressure. The standard sign convention for passive elements is adopted, and the flow source direction is established to ensure that a positive flow from the pump establishes a positive pressure in the tank. Figure 4.15b shows the completed model.
4.5.5 Thermal System Models
Thermal systems are inherently different from the other energy domains because ( 1) the product of the across- and through-variables (temperature and heat ftow rate) is not power, (2) there is no defined T-type energy storage element, and (3) the D-type element does not dissipate energy. The two passive elements are a thermal capacitance (A-type) and a thermal resistance (D-type). The sources are a temperature source (across-variable source) and a heat ftow source (through-variable source). Example4.6 A laboratory furnace used to heat cylindrical metal specimens is illustrated in Fig. 4.16. The system model elements include the following: 1. The metal specimen, modeled as a thermal capacitance element C
2. The space between the specimen and the furnace coil element, modeled as a thermal resistance R1 3. The heating element, modeled as a heat (through-variable) source Q, 4. The outer insulation around the element, modeled as a thermal resistance element R2. In the selection of these elements, the representation of the metal specimen as a single thermal capacitance assumes that temperature gradients between its surface and center may be neglected, that is, the cylinder may be represented as a single lump at a uniform temperature. In addition the resistance R1 between the heater coil and specimen represents the combined effects of the air gap and any insulation around the inner surface of the coil, while the resistance R2 from the heater coil to the furnace exterior wall represents the heat losses to the environment and includes the total effective resistance due to the coil insulation interface, the insulation itself, and the insulation-atmosphere interface.
108
Formulation of System Models
Cbap.4
Heating element Q,r(t)
Air gap Rl
Outer insulation
source (a) Physical system
Figure 4.16:
(b) Linear graph
A laboratory furnace system.
The model contains two distinct temperatures with respect to the ambient environmental temperature Trcr: the temperature associated with the furnace heat source and the temperature of the specimen itself. The graph therefore contains three nodes, including the reference node. The thennal capacitance CT is referenced to the ambient temperature and is connected to the source node through the resistive element R1• Resistance R2 represents direct heat loss to the environment through the outer insulation and is connected directly across the sowce node. The sign convention adopted for the heat source ensures an increase in the temperature of the capacitance for a positive heat flow. Figure 4.16b shows the linear _graph.
4.6
PHYSICAL SOURCE MODELING
The ideal source elements introduced in Chap. 2 are capable of supplying infinite power to a system. Physical energy sources, on the other hand, have a limit on the power that they can supply. For example, the terminal voltage of an electric battery decreases as the current demand from the system increases. A battery is limited in the power it can supply even if the terminals are short-circuited. For small current loads it may be satisfactory to model a battery as a voltage source, but in more demanding situations with large and varying current requirements, the model of the battery must represent the variation of the terminal voltage. In general, physical energy sources are represented by a nonlinear relationship between acrossand through-variables such as shown in Fig. 4.17, and only over a limited range of operation may a real source be represented by an ideal across- or through-variable source. The power-limited characteristic of a real source can often be approximated by coupling an ideal source element with a D-type resistive element A typical power-limited source characteristic is represented in Fig. 4.18. It has a maximum value of its output across-variable Vs when the supplied through-variable is zero, corresponding to an opencircuit condition of an electric source, and a maximum value of the supplied through-variable Fs when the across-variable is zero, corresponding to a short-circuited electric source. If the characteristic is a straight line, with a slope -R, the relationship between the across- and through-variable at the source terminals at any point on the characteristic may be expressed as a linear algebraic equation in either of the following two forms: v=V,-Rf 1 f= Fs- -v R
(4.16)
(4.17)
Sec. 4.6
Physical Source Modeling
109 Region of approximate ideal across-variable
v
_/___=---
/
General cbanlcteristic
I
I
:
Region of approximate
'V source ideal through-variable 1 I
f
Through-variable (a) Typical real physical source characteristic
n
v
Current (b) A battery Figure 4.17:
p
Torque (c) A motor
T
Flow rate
(d) A pump
General characteristics of real sources.
F.r
Output through-variable Figure 4.18:
Characteristic of a simple linear source.
f
Q
110
Formulation of System Models
Chap.4
where v is the source across-variable when it is supplying through-variable f to the system. The first form states that iff= 0, the across-variable is equal to Vs, and as f increases, the output across-variable v decreases linearly. The second form states that if v = 0, the output through-variable f is equal io Fs, and as v increases, the through-variable decreases linearly. The two forms generate two possible models for a power-limited source with a linear characteristic: 1. Equation (4. 16) may be implemented by an ideal across-variable source of value Vs in series with a resistance element with a value R as shown in Fig. 4.19a. This series equivalent source model is known as a Thivenin equivalent source. 2. Equation (4.17) may be implemented by an ideal through-variable source of value Fs in parallel with a resistance of value R as shown in Fig. 4.19b. This configuration is known as a Norton equivalent source model.
These two models of real sources are equivalent and have identical characteristics as measured at their terminals. Either may be used in the modeling of systems involving physical
sources that may be approximated by a linear characteristic. The load power 'P delivered by an equivalent source model depends on the acrossand through-variables at the terminals. For the Thevenin source the power is (4.18) and for the Norton source it is 1
'P = vf = vFs - -v
2
R
(4.19)
The maximum power an equivalent source can provide is found by differentiating Eq. (4.18) with respect to for Eq. (4.19) with respect to v and equating the derivative to zero. In either case the maximum power is supplied when f = Vs/2R and v = RFs/2. The maximum power supplied is Pmax = VsFs/4.
Throughvariable source
F1(t)
(a) Th6venin equivalent source Figure 4.19:
(b) Nonon equivalent source
Th6venin and Nonon models of power-limited physical sources.
Sec. 4.6
Physical Source Modeling
111
Torque (a) The motor drive system
(b) The motor source characteristic
Figure 4.20: A rotary flywheel drive system, and the source characteristic of the electric motor.
Example4.7 It has been found that the pedonnance of the rotational flywheel drive model derived in Example 4.2, with the linear graph shown in Fig. 4.11, does not adequately reflect the dynamic response of the physical system over the full operating range of interest. Measurements on the system show that it is not valid to represent the motor as an ideal angular velocity source over the full speed range. With a fixed supply voltage and no load, the motor spins at an angular velocity of Omu, but as the torque load is increased, the motor speed decreases linearly until the shaft is stationary and generates a torque Tmax. Extend the linear graph model in Example 4.2 to include (a) a Th6venin and (b) a Norton source equivalent for the motor. Solution The measurements on the motor indicate that the source characteristic is as shown in Fig. 4.20. The equivalent source resistance is found from the slope of the characteristic, that is, R = Omax/ Tmax· Figure 4.21 shows the two modified system linear graphs using a Th6venin (Fig. 4.21a) and a Norton source (Fig. 4.21b) equivalent model for the motor where B = 1/ R. Both are equivalent with respect to the dynamic behavior of the flywheel.
(a) Thevenin source-based model
(b) Nonon source-based model
Figure 4.21: The rotational system in Fig. 4.11 redrawn with (a) a Thevenin equivalent source and (b) a Norton equivalent source.
Formulation of System Models
112
Chap.4
Thevenin and Norton source models may also be used to approximate the behavior of nonlinear physical sources when the range of variation of the source variables is small. Consider a source with a nonlinear characteristic (4.20)
v = F(f)
and assume that the source normally operates with small excursions about a nominal operating point v = vo and f = fo. IfEq. (4.20) can be expanded as a Taylor series and the first two terms are retained, v~vo+
If we define a D-type element
dF(f) df
I
f=fo
(4.21)
(f-fo)
R* = _ dF(f)l df
(4.22) f=fo
we can write an approximate source characteristic v = v0 - R* (f - fo)
(4.23)
= Vs- R*f
where Vs = vo + R*fo. Equation (4.23) defines a Thevenin equivalent source with an ideal source Vs and a series resistance R*. A linearized Norton source can also be expressed as a through-variable source Fs = fo + (1/R*)vo in parallel with aD-type element R*. PROBLEMS 4.1. For each of the systems shown in Fig. 4.22, establish a sign convention and construct the linear graph.
(b)
(c)
Figure 4.22: Four mechanical systems.
Chap. 4
Problems
113
4.2. A test apparatus for measuring the frictional characteristics of materials is shown in Fig. 4.23. A mass is released on an inclined plane and the terminal velocity is measured and used to estimate the friction between the material sample and the surface of the plane.
Figure 4.23:
An inclined plane for measuring friction.
(a) Draw a sketch identifying (i) major system elements, (ii) the forces acting, and (iii) a velocity reference direction. How is the effect of gravity represented in your sketch? (b) Construct the system linear graph.
(c) How is the system influenced by changes in the angle of inclination, 8? How is the system influenced by changes in the frictional properties of the sample? (d) If the frictional effects are modeled as linear, derive an expression for the terminal velocity of
the mass element. 4.3. A locomotive puiJing a single car on a straight, flat track is sketched in Fig. 4.24. The locomotive may be considered to generate a prescribed force F(t). The coupling between the locomotive and the car has both stiffness and damping properties. The car is subject to both rolling friction at the wheels and aerodynamic drag. Car
Figure 4.24:
A railroad locomotive and car.
(a) Make a sketch of the system, identifying the major system elements and a velocity reference direction. Make a suitable model of the coupler. Do you think that the coupler elements should be in series or in parallel? (b) Construct the system linear graph.
4.4. A four-story parking building, shown in Fig. 4.25, is located in an earthquake zone. Model each floor as a lumped mass element connected by steel girders to the floors above and below. Assume that during an earthquake the ground moves horizontally with a specified velocity, and that the girder structure has a finite translational stiffness, so that a sideways displacement on a floor results in a restoring force proportional to the displacement. Generate a linear graph model of the parking building.
Fonnulation of System Models
114
~---
Chap. 4
Slender suppon columns
'/j -
Ground motion V(r)
Figure 4.25:
~
A parking building in an earthquake zone.
4.5. A pans assembly station on a production line exhibits a severe vibration problem. A simplified schematic representation is shown in Fig. 4.26. Two large tables of mass m 1 and m 2 are each mounted to a sliding metal plate on resilient rubber mounts with shear stiffness K 1 and K2 , as shown. The tables are each subjected to a vibrational excitation force, F 1 (t) and F2 (t ). The plates are able to slide viscously on a second pair of defonnable rubber mounts, with shear stiffnesses K3 and K4. The viscous sliding coefficients are 8 1 and 8 2 • The two plates are coupled by a shaft with longitudinal stiffness Ks. Draw a lin ear graph for the system using the two forces F 1 and F2 as inputs.
K I !:-:=::--~7!1::1rtti
8I
lf"?ij Jf,M;;fl1 Figure 4.26:
A parts assembly station.
4.6. For each of the rotational systems shown in Fig. 4.27, establish a sign convention and draw a linear graph.
n,
0
r,(3)
n,
81
0~"' (d)
(b)
Fi gure 4.27:
Four rotational systems.
Chap. 4
Problems
115
4.7. Consider a wind driven electric generator, as discussed in Problem 1.1 and shown in Fig. I.7. Assume that the wind exerts a torque proportional to the wind speed on the rotating blades. The turbine is mounted in bearings and connected to an electric generator. A simple model of the electric generator is that it produces a load torque that is proportional to the shaft rotational velocity. (a) Sketch the system and define a reference angular velocity. (b) Identify a set of lumped elements that may be used to model the wind effects on the turbine shaft, the turbine rotating parts, the bearings, and the electric generator. (c) Construct a linear graph for the system. 4.8. A compact disc (CD) player uses a de electric motor to rotate the disk at a constant speed. The system is shown in Fig. 4.28, together with the motor torque-speed characteristic. T
Disc
Drive motor
To
~
E' ~
+ 0 Angular velocity Figure 4.28: A compact disc drive system and its motor characteristics.
(a) What elements are necessary to describe the motor, disc, and bearings? (b) CoD'struct a linear graph for this system.
4.9. R-C electric filters are often used in measurement and control systems to reduce high-frequency noise. Construct linear graphs for the first and second-order R-C filters shown in Fig. 4.29. R
(b)
(a)
Figure 4.29:
Two electrical filters.
4.10. Figure 4.30 shows a resistance welding system that uses the electrical discharge of energy stored in an inductive circuit to create a transient high-current flow between two pieces of metal. The localized beat generated forms a weld. A constant voltage source Vs is connected through a switch to a high-inductance coil of wire and the two pieces to be welded. When a high current is established in the coil the switch is opened. Because the current in the coil cannot change instantaneously, a high current is forced through the workpieces generating the heat necessary for welding.
116
Formulation of System Models
Chap. 4
Energy storage Switch
coil
Metallic
workpieces
Figure 4.30: An electric welding system.
(a) How would you represent the energy storage coil using lumped elements? What element would
be used to represent the metal workpieces? (b) Construct a linear graph representing the system when the switch is closed. What will determine the current flowing in the coil and the resistive workpieces after any transients have decayed to zero?
(c) Construct a linear graph representing the system after the switch is opened. At the instant after the switch is opened. how much cummt flows through the workpieces? {d) What is the direction of current flow (i) just before the switch is opened and (ii) just after the switch is opened? 4.11. For each of the fluid systems shown in Fig. 4.31, establish a sign convention and construct a linear graph.
J
c
c
~
J /,R 1
R2 (a)
(b)
(c)
(d)
Figure 4.31:
Four fluid systems.
4.12. In a biomechanics laboratory an experimental apparatus, shown in Fig. 4.32, is used to simulate the basic property of blood flow in arteries. The experiment uses a water-based fluid and a pump that may be approximated as a pressure source. A long, straight small-diameter plastic tube is used to simulate the arteries.
Chap. 4
Problems
117
/
Soft rubber section [inserted for part (c)]
Figure 4.32: Experimental apparatus to simulate blood flow.
(a) In the first experiments the pump pressure is set to a fixed, constant value. What lumped elements are required to represent the experimental system under steady flow conditions? Construct a linear graph that represents the system. If the tube internal surface is coated to simulate the effects of arterial plaque, what parameter in the model is changed? (b) In a second set of experiments the pump pressure is varied sinusoidally. It is noticed that the ratio of the amplitude of the flow to the amplitude of the pump pressure varies with the frequency of the input pressure. What additional elements are needed to model nonsteady flow conditions? Revise your linear graph to include any additional elements.
(c) In a third experiment, it is desired to simulate the effect of an aneurism; that is, a section of the artery where the wall is weak. A short piece of soft rubber tubing is inserted at a point half way down the tubing. Tests on the tube have shown that the change in volume of fluid stored in the section is proportional to the change in pressure. How might the rubber tubing be represented in a lumped-parameter model? Construct a linear graph for the system with the aneurism. _4.13. The air flow system in many fossil-fuel power plants consist of (i) a forced-draft fan, (ii) a furnace/boiler volume, (iii) an induced-draft fan, and (iv) an exhaust stack, connected by long ducts as shown in Fig. 4.33. In initial plant qualification tests the system is tested without firing the boiler, so that air at nonnal temperature is the system fluid.
Vertical
Furnace volume
exhaust stack
Forced-draft fan Duct
--
t
Duct
Figure 4.33: The air and exhaust-gas system in a power plant.
(a) We wish to form a simplified model of the fluid system. Consider each fan as a prescribed pressure rise, and the ducts and stack as having fluid inertance and resistance. What elements might be used to model the fans, ducts and stack, and the unfired furnace? (b) Construct a linear graph of the system.
Formulation of System Models
118
Chap. 4
4.14. Fonn a simple model of a household heating system. Consider a small house with a furnace that provides a prescribed heat-ftow rate within the house. (a) What elements are required to represent (i) the house and its contents and {ii) the beat ftow to and from the house from the ambient temperature outside? How can changes in the ambient outside temperature be represented? What is an appropriate element to represent the furnace? (b) Construct a linear graph for the system, and write continuity equations for all nodes on the graph. 4.15. In electronic camera ftash units a capacitor is charged from an electronic power supply, and its stored energy is discharged through the flash tube to create the flash. The electronic power supply is not an ideal source, that is, it cannot be modeled as a voltage source or a current source. The charging system is shown in Fig. 4.34. Construct linear graphs for the system using (i) a Thevenin source model and {ii) a Norton source model for the electronic power supply. Assume the switch is open.
Figure 4.34: The charging system for a camera flash-tube.
4.16. The source characteristics of (i) an electric power source and {ii) an electric motor have been measured and are plotted in Fig. 4.35. Determine equivalent Thevenin and Norton source models for each.
v
T
2S
45
e
i' ]
-r
~ u
::I
e-
~
~
0
3
1
Current (amps) Figure 4.35:
0
1000
n
Angular velocity (rad/s) Electrical and motor source characteristics.
4.17. AD-type element is driven by a source that is modeled as a Thevenin or Norton equivalent. Show that the power dissipated in the element is a maximum when its resistance R is equal to the source resistance R0 • This is known as the maximum power transfer theorem. 4.18. Long telecommunication cables have capacitance, inductance, and resistance properties distributed along their length. Simple lumped parameter models of such cables do not adequately predict the ability to faithfully transmit information over long distances. Consider a cable of length l with measured resistance R, capacitance C, and inductance L. A simple single-section model might lump all of the capacitance at the mid-point, leading to a model shown in Fig. 4.36a, where half of the inductance and resistance has been assigned to each end A less approximate model may be found by dividing the cable into several sections, using a lumped approximation for each section. as shown in Fig. 4.36b. As the number of sections is increased, the dynamic response of the model approaches
-
Chap. 4
119
References
that of the real distributed system. Use the sectional model of Fig. 4.36a to generate (i) a two-section and (ii) a three-section model of a telecommunication cable. Express your model in schematic form and as a linear graph. Include a source model and a load resistance. Identify the parameters in terms of R, L, and C. Rl2
L/2
L/2
Rl2
(a)
Section 1
(b)
Figure 4.36:
Lumped model of a long communications cable.
4.19. Garden hoses have flexible walls that expand under pressure. The system parameters are distributed along its length. Use the approach taken in the previous problem to construct a two-section lumped linear graph representation of a long garden bose connected to a lawn sprinkler. Take into account distributed fluid inertance, capacitance, and resistance. Include elements to represent the sprinkler and the source.
REFERENCES [1] Koenig, H. E., Tokad, Y., Kesavan, H. K., and Hedges, H. G., Analysis of Discrete Physical Systems, McGraw-Hill, New York, 1967. [2] Blackwell, W. A., Mathematical Modeling of Physical Networks, Macmillan, New York, 1967. [3] Shearer, J. L., Murphy, A. T., and Richardson, H. H.,lntroduction to System Dynamics, AddisonWesley, Reading, MA, 1967. [4] Kuo, B. C., Linear Networks and Systems, McGraw-Hill, New York, 1967. [5) Chan, S. P., and Chan, S. G.,Analysis ofLinear Networks and Systems, Addison-Wesley, Reading, MA,l972. [6] Paynter, H. M., Analysis and Design ofEngineering Systems, MIT Press, Cambridge, MA, 1961. [7] Kamopp, D. C., Margolis, D. L., and Rosenberg, R. C., System Dynamics: A Unified Approach (2nd ed.), John Wiley, New York, 1990. [8) Shearer, J. L., and Kulakowski, B. T., Dynamic Modeling and Control of Engineering Systems, Macmillan, New York, 1990. [9] Mason, S. J., "Feedback Theory: Further Properties of Signal Flow Graphs," Proceedings of the IRE, 44, 7, 1956. [10] Chow, Y., and Casignol, E., Linear Signal Flow Graphs and Applications, John Wlley, New York, 1962.
5
State Equation Formulation
5.1
STATE VARIABLE SYSTEM REPRESENTATION Linear graph system models, described in Chap. 4, provide a graphical representation of a system model and the interconnection of its elements. A set of differential and algebraic equations that completely define the system may be derived directly from the linear graph model. In this chapter we develop a procedure for deriving a specific set of differential equations, known as state equations, from the system linear graph. These equations are expressed in terms of a set of state variables and provide a basis for determining the system response to external inputs. The state equations are derived from the set of elemental equations representing the dynamics of each system element, together with a set of compatability and continuity equations defined from the linear graph model structure.
5.1.1 Definition of System State The concept of the state of a dynamic system refers to a minimum set of variables, known as state variables, that fully describe the system and its response to any given set of inputs [1-3]. In particular, a state-determined system model has the characteristic that A mathematical description of the system in terms of a minimum set of variables x1 (t), i = 1, ... , n, together with knowledge of those variables at an initial time to and the system inputs for time t ~ to, are sufficient to predict the future system state and outputs for all time t > to.
This definition asserts that the dynamic behavior of a state-determined system is completely characterized by the response of the set of n variables x; (t), where the number n is defined to be the order of the system. The system shown in Fig. 5.1 has two inputs u1 (t) and u2(t) and four output variables Yl (t), ... , Y4 (t). If the system is state-determined, knowledge of its state variables ·[xi (to), x2(to), ... , Xn(to)] at some initial time to and the inputs Ut (t) and u2(t) fort ~to is
120
Sec. 5.1
State Variable System Representation
121 Output vector y
___ .,._ u,(t)
System described by state variables (xl,x2, ••. Xn}
~ ~--~
t
t Figura 5.1:
System inputs and outputs.
sufficient to determine all future behavior of the system. The state variables are an internal description of the system that completely characterizes the system state at any time t and from which any output variables y;(t) may be computed. Large classes of engineering, biological, social, and economic systems may be represented by state-determined system models. System models constructed with the pure and ideal (linear) one-port elements defined in the preceding chapters are state-determined system models. For such systems the number of state variables n is equal to the number of independent energy storage elements in the system. The values of the state variables at any time t specify the energy of each energy storage element within the system and therefore the total system energy, and the time derivatives of the state variables determine the rate of change of the system energy. Furthermore, the values of the system state variables at any time t provide sufficient information to determine the values of all other variables in the system at that time. There is no unique set of state variables that describe any given system; many different sets of variables may be selected to yield a complete system description. However, for a given system the order n is unique and is independent of the particular set of state variables chosen. State variable descriptions of systems may be formulated in terms of physical and measurable variables or in terms of variables that are not directly measurable. It is possible to mathematically transform one set of state variables to another; the important point is that any set of state variables must provide a complete description of the system. In this text we concentrate on a particular set of state variables based on physical variables derived directly from linear graph models.
5.1.2 The State Equations A standard form for the state equations is used throughout system dynamics. In the standard form the mathematical description of the system is expressed as a set of n coupled first-order ordinary differential equations, known as the state equations, in which the time derivative of each state variable is expressed in terms of the state variables Xt (t), ... , xn(t) and the system inputs u 1 (t), ... , ur(t). In the general case the form of then state equations is it = /1 (x, u, t) i2 = /2 (x, u, t)
. .
·-· .-.
Xn
= fn (X, U, t)
(5.1)
Chap. 5
State Equation Fonnulation
122
where i; = dx; 1dt and each of the functions /; (x, u, t) (i = 1, ... , n) may be a general, nonlinear, time-varying function of the state variables, the system inputs, and time. 1 It is common to express the state equations in a vector fonn in which the set of n state variables is written as a state vector x(t) [Xt (t), x2(t), ... , Xn (t)]T and the set of r inputs is written as an input vector u(t) = [u 1(t), u2(t), ... , u,(t)]T. Each state variable is a time-varying component of the column vector x(t). This form of the state equations explicitly represents the basic elements contained in the definition of a state-determined system. Given a set of initial conditions (the values of . the x; at some time to) and the inputs for t ~ to, the state equations explicitly specify the derivatives of all state variables. The value of each state variable at some time ll.t later may then be found by direct integration. The system state at any instant may be interpreted as a point in an n-dimensional state space, and the dynamic state response x(t) can be interpreted as a path or trajectory traced out in the state space. In vector notation the set of n equations in Eqs. (5.1) may be written
=
i = f (x, u, t)
(5.2)
where f (x, u, t) is a vector function with n components/; (x, u, t). In this text we restrict our attention primarily to a description of systems that are linear and time-invariant (LTI), that is, systems described by linear differential equations with constant coefficients. For a LTI system of order n and with r inputs, Eqs. (5.1) become a set of n coupled first-order linear differential equations with constant coefficients:
where the coefficients a;i and bii are constants that describe the system. This set of n equations defines the derivatives of the state variables to be a weighted sum of the state variables and the system i~puts. Equations (5.3) may be written compactly in matrix form:
!!_ [xtl ~2 = [au a~t dt
:
:
Xn
anl
Q}2
a22
an2
Xt. l + [bu.
a1n a2n ] [ x2
~~
ann
bnt
.. .
..
Xn
..
b2r btr
b:,
l
LJ UJ
(5.4)
which may be summarized as
i=Ax+Bu
(5.5)
In this text we use boldface type to denote vector quantities. Uppercase letters are used to denote general matrices, while lowercase letters denote column vectors. See App. A for an introduction to matrix notation and operations.
Sec. 5.1
State Variable System Representation
123
where the state vector x is a column vector of length n, the input vector u is a column vector of length r, A is an n x n square matrix of the constant coefficients aii, and B is an n x r matrix of the coefficients biJ that weight the inputs.
5.1.3 Output Equations
A system output is defined to be any system variable of interest A description of a physical system in terms of a set of state variables does not necessarily include all the variables of direct engineering interest An important property of the linear state equation description is that all system variables may be represented by a 1inear combination of the state variables x; and the system inputs u;. An arbitrary output variable in a system of order n with r inputs may be written
(5.6) where the c; and d; are constants. H a total of m system variables are defined as outputs, the m such equations may be written as YI Y2
The output equations, Eqs. (5.8), are commonly written in the compact form:
y=Cx+Du
(5.9)
where y is a column vector of the output variables y; (t), C is an m x n matrix of the constant coefficients c;i that weight the state variables, and D is an m x r matrix of the constant coefficients dij that weight the system inputs. For many physical systems the matrix D is the null matrix, and the output equation reduces to a simple weighted combination of the state variables: y=Cx
(5.10)
124
State Equation Formulation
Chap.5
5.1.4 State Equation-Based Modeling Procedure The complete system model for a linear time-invariant system consists of (1) a set of n state equations, defined in terms of the matrices A and B, and (2) a set of output equations that relate any output variables of interest to the state variables and inputs and are expressed in terms of the C and D matrices. The task of modeling the system is to derive the elements of the matrices and to write the system model in the form
i=Ax+Bu y=Cx+Du
(5.11)
(5.12)
The matrices A and B are properties of the system and are determined by the system structure and elements. The output equation matrices C and D are determined by the particular choice of output variables. The overall modeling procedure developed in this chapter is based on the following steps: 1. Determination of the system order n and selection of a set of state variables from the linear graph system representation. 2. Generation of a set of state equations and the system A and B matrices using a welldefined methodology. This step is also based on the linear graph system description. 3. Determination of a suitable set of output equations and derivation of the appropriate C and D matrices.
5.2
LINEAR GRAPHS AND SYSTEM STRUCTURAL PROPERTIES
5.2.1 Linear Graph Properties The derivation of the state equations in this chapter is based on the use of the system linear graph model. A linear graph with B branches represents B system elements, each with a known elemental equation or source function. The graph also represents the structure of the element interconnections in terms of the continuity and compatibility constraint equations described in Chap. 4. In the following sections we use the properties of linear graphs to (1) derive the system structural constraints, (2) define the set of state variables, and (3) provide a systematic technique for deriving the system state equations [4-8]. The following definitions are introduced: System graph: The oriented linear graph model of a system.
Connected graph: A system graph in which a path exists between all pairs of nodes. A path is said to exist if the node pair is joined by at least one branch. Figure 5.2 shows a connected graph along with a system graph that is not connected. System graphs for systems consisting of one-port elements are usually connected graphs, while systems that include the two-port elements introduced in Chap. 6 may not generate connected graphs. In this chapter we assume that all system graphs are connected graphs.
Sec. 5.1
121
State Variable System Representation Output vector y
___ ..,
System described by state variables (Xt, X2, ••• Xn}
,_
__
~
Y1(t)
~
t
t Figure 5.1:
System inputs and outputs.
sufficient to determine all future behavior of the system. The state variables are an internal description of the system that completely characterizes the system state at any time t and from which any output variables y; (t) may be computed. Large classes of engineering, biological, social, and economic systems may be represented by state-detennined system models. System models constructed with the pure and ideal (linear) one-port elements defined in the preceding chapters are state-determined system models. For such systems the number of state variables n is equal to the number of independent energy storage elements in the system. The values of the state variables at any time t specify the energy of each energy storage element within the system and therefore the total system energy, and the time derivatives of the state variables determine the rate of change of the system energy. Furthermore, the values of the system state variables at any time t provide sufficient information to determine the values of all other variables in the system at that time. There is no unique set of state variables that describe any given system; many different sets of variables may be selected to yield a complete system description. However, for a given system the order n is unique and is independent of the particular set of state variables chosen. State variable descriptions of systems may be formulated in terms of physical and measurable variables or in terms of variables that are not directly measurable. It is possible to mathematically transform one set of state variables to another; the important point is that any set of state variables must provide a complete description of the system. In this text we concentrate on a particular set of state variables based on physical variables derived directly from linear graph models.
5.1.2 The State Equations A standard form for the state equations is used throughout system dynamics. In the standard form the mathematical description of the system is expressed as a set of n coupled first-order ordinary differential equations, known as the state equations, in which the time derivative of each state variable is expressed in terms of the state variables x1 (t), ... , Xn (t) and the system inputs Ut (t), ... , ur(t). In the general case the form of then state equations is
XI = !l {X, U, t) i2
= /2 {x, u, t)
. . ·-· .-. Xn = fn (X, U, t)
(5.1)
122
Chap.5
State Equation Fonnulation
=
where .i; = dx;/dt and each of the functions/; (x, u, t) (i I, ... , n) may be a general, nonlinear, time-varying function of the state variables, the system inputs, and time. 1 It is common to express the state equations in a vector fonn in which the set of n state variables is written as a state vector x(t) [x 1(t), x 2(t), ••• , Xn (t)]T and the set of r inputs is written as an input vector u(t) = [u 1(t), u 2(t), •.. , u,(t)]T. Each state variable is a time-varying component of the column vector x(t). This form of the state equations explicitly represents the basic elements contained in the definition of a state-determined system. Given a set of initial conditions (the values of the x; at some time to) and the inputs fort ~to, the state equations explicitly specify the derivatives of all state variables. The value of each state variable at some time llt later may then be found by direct integration. The system state at any instant may be interpreted as a point in an n-dimensional state space, and the dynamic state response x(t) can be interpreted as a path or trajectory traced out in the state space. In vector notation the set of n equations in Eqs. (5.1) may be written
=
(5.2)
i = f (x, u, t)
where f (x, u, t) is a vector function with n components /; (x, u, t). In this text we restrict our attention primarily to a description of systems that are linear and time-invariant (LTI), that is, systems described by linear differential equations with constant coefficients. For a LTI system of order n and with r inputs, Eqs. (5.1) become a set of n coupled first-order linear differential equations with constant coefficients:
XJ X2
= =
a11XJ a21X1
+ a12X2 + ·· · + atnXn + bJJUJ +
··· +
btrUr
+ a22X2 + · · · + a2nXn + hltUt + · · · + b2rur
(5.3)
where the coefficients a;i and b;i are constants that describe the system. This set of n equations defines the derivatives of the state variables to be a weighted sum of the state variables and the system inputs. Equations (5.3) may be written compactly in matrix form:
!!_ [Xtl ~2 = [au a~1 dt
:
:
Xn
ani
a12 a22
Otn][Xtl [bu . . + . D2n
..
an2
ann
X2
b21
..
..
Xn
bnt
b~, b2r btr
l
[JJ UJ
(5.4)
which may be summarized as
i=Ax+Bu
(5.5)
In this text we use boldface type to denote vector quantities. Uppercase letters are used to denote general matrices, while lowercase letters denote column vectors. See App. A for an introduction to matrix notation and operations.
Sec. 5.1
123
State Variable System Representation
where the state vector xis a column vector of length n, the input vector u is a column vector of length r, A is an n x n square matrix of the constant coefficients a;i, and B is an n x r matrix of the coefficients bii that weight the inputs.
5.1.3 Output Equations A system output is defined to be any system variable of interest. A description of a physical
system in terms of a set of state variables does not necessarily include all the variables of direct engineering interest. An important property of the linear state equation description is that all system variables may be represented by a linear combination of the state variables x; and the system inputs u;. An arbitrary output variable in a system of order n with r inputs may be written
(5.6) where the c; and d; are constants. If a total of m system variables are defined as outputs, the m such equations may be written as
The output equations, Eqs. (5.8), are commonly written in the compact form: y=Cx+Du
(5.9)
where y is a column vector of the output variables y; (t), C is an m x n matrix of the constant coefficients c;i that weight the state variables, and D is an m x r matrix of the constant coefficients dij that weight the system inputs. For many physical systems the matrix D is the null matrix, and the output equation reduces to a simple weighted combination of the state variables: y=Cx
(5.10)
124
State Equation Fonnu1ation
Chap. S
5.1.4 State Equation-Based Modeling Procedure The complete system model for a linear time-invariant system consists of ( 1) a set of n state equations, defined in terms of the matrices A and B, and (2) a set of output equations that relate any output variables of interest to the state variables and inputs and are expressed in terms of the C and D matrices. The task of modeling the system is to derive the elements of the matrices and to write the system model in the form
x=Ax+Bu y=Cx+Du
(5.11) (5.12)
The matrices A and B are properties of the system and are determined by the system structure and elements. The output equation matrices C and D are determined by the particular choice of output variables. The overall modeling procedure developed in this chapter is based on the following steps:
1. Determination of the system order n and selection of a set of state variables from the linear graph system representation. 2. Generation of a set of state equations and the system A and B matrices using a welldefined methodology. This step is also based on the linear graph system description. 3. Determination of a suitable set of output equations and derivation of the appropriate C and D matrices.
5.2
LINEAR GRAPHS AND SYSTEM STRUCTURAL PROPERTIES
5.2.1 Linear Graph Properties The derivation of the state equations in this chapter is based on the use of the system linear graph model. A linear graph with B branches represents B system elements, each with a known elemental equation or source function. The graph also represents the structure of the element interconnections in terms of the continuity and compatibility constraint equations described in Chap. 4. In the following sections we use the properties of linear graphs to (1) derive the system structural constraints, (2) define the set of state variables, and (3) provide a systematic technique for deriving the system state equations [4--8]. The following definitions are introduced: System graph: The oriented linear graph model of a system.
Connected graph: A system graph in which a path exists between all pairs of nodes. A path is said to exist if the node pair is joined by at least one branch. Figure 5.2 shows a connected graph along with a system graph that is not connected. System graphs for systems consisting of one-port elements are usually connected graphs, while systems that include the two-port elements introduced in Chap. 6 may not generate connected graphs. In this chapter we assume that all system graphs are connected graphs.
Sec. 5.1
121
State Variable System Representation Output vector y
---~
System described by state variables (.xl• xl• ... X'n}
t ~--~
t
t Rgure 5.1:
System inputs and outputs.
sufficient to determine all future behavior of the system. The state variables are an internal description of the system that completely characterizes the system state at any time t and from which any output variables y;(t) may be computed. Large classes of engineering, biological, social, and economic systems may be represented by state-determined system models. System models constructed with the pure and ideal (linear) one-port elements defined in the preceding chapters are state-determined system models. For such systems the number of state variables n is equal to the number of independent energy storage elements in the system. The values of the state variables at any time t specify the energy of each energy storage element within the system and therefore the total system energy, and the time derivatives of the state variables determine the rate of change of the system energy. Furthermore, the values of the system state variables at any time t provide sufficient information to determine the values of all other variables in the system at that time. There is no unique set of state variables that describe any given system; many different sets of variables may be selected to yield a complete system description. However, for a given system the order n is unique and is independent of the particular set of state variables chosen. State variable descriptions of systems may be formulated in terms of physical and measurable variables or in terms of variables that are not directly measurable. It is possible to mathematically transform one set of state variables to another; the important point is that any set of state variables must provide a complete description of the system. In this text we concentrate on a particular set of state variables based on physical variables derived directly from linear graph models.
5.1.2 The State Equations A standard form for the state equations is used throughout system dynamics. In the standard form the mathematical description of the system is expressed as a set of n coupled first-order ordinary differential equations, known as the state equations, in which the time derivative of each state variable is expressed in terms of the state variables Xt (t), ... , Xn(t) and the system inputs u 1 (t), ... , ur (t). In the general case the form of the n state equations is it
=It (X, U, t)
i2 = l2 (x, u, t)
. . ·-· .-. Xn
= In (X, U, t)
(5.1)
122
State Equation Formulation
=
Chap.5
=
where .i; dx;/dt and each of the functions/; (x, u, t) (i I, ... , n) may be a general, nonlinear, time-varying function of the state variables, the system inputs, and time. 1 It is common to express the state equations in a vector fonn in which the set of n state variables is written as a state vector x(t) [XI (t), x2(t), ... , Xn (t)]T and the set of r inputs is written as an input vector u(t) = [u 1(t), u 2 (t), ... , u,(t)]T. Each state variable is a time-varying component of the column vector x(t). This fonn of the state equations explicitly represents the basic elements contained in the definition of a state-determined system. Given a set of initial conditions (the values of . the x; at some time to) and the inputs fort :::: to, the state equations explicitly specify the derivatives of an state variables. The value of each state variable at some time at later may then be found by direct integration. The system state at any instant may be interpreted as a point in an n-dimensional state space, and the dynamic state response x(t) can be interpreted as a path or trajectory traced out in the state space. In vector notation the set of n equations in Eqs. (5.1) may be written
=
i = f(x, u, t)
(5.2)
where f (x, u, t) is a vector function with n components fi (x, u, t). In this text we restrict our attention primarily to a description of systems that are linear and time-invariant (LTI), that is, systems described by linear differential equations with constant coefficients. For a LTI system of order n and with r inputs, Eqs. (5.1) become a set of n coupled first-order linear differential equations with constant coefficients:
where the coefficients aii and bii are constants that describe the system. This set of n equations defines the derivatives of the state variables to be a weighted sum of the state variables and the system inputs. Equations (5.3) may be written compactly in matrix form:
!!_ [x1] ~2 = [au a~1 dt
:
:
Xn
anl
at2 a22
an2
a1nl [XI].. + [bu.. .. a2n
x2
b21
.
.
.
ann
Xn
bnl
!l []
(5.4)
which may be summarized as
x=Ax+Bu
(5.5)
In this teXt we use boldface type to denote vector quantities. Uppercase letters are used to denote general matrices, while lowercase letters denote column vectors. See App. A for an introduction to matrix notation and operations.
Sec. 5.1
123
State Variable System Representation
where the state vector xis a column vector of length n, the input vector u is a column vector of length r, A is an n x n square matrix of the constant coefficients aii, and B is an n x r matrix of the coefficients bii that weight the inputs.
5.1.3 Output Equations
A system output is defined to be any system variable of interest A description of a physical system in terms of a set of state variables does not necessarily include all the variables of direct engineering interest An important property of the linear state equation description is that all system variables may be represented by a linear combination of the state variables x; and the system inputs u;. An arbitrary output variable in a system of order n with r inputs may be written
(5.6) where the c; and d; are constants. If a total of m system variables are defined as outputs, the m such equations may be written as
The output equations, Eqs. (5.8), are commonly written in the compact fonn:
y=Cx+Du
(5.9)
where y is a column vector of the output variables y; (t), C is an m x n matrix of the constant coefficients c;i that weight the state variables, and D is an m x r matrix of the constant coefficients dij that weight the system inputs. For many physical systems the matrix D is the nulJ matrix, and the output equation reduces to a simple weighted combination of the state variables:
y=Cx
(5.10)
124
State Equation Formulation
Chap.5
5.1.4 State Equation-Based Modeling Procedure The complete system model for a linear time-invariant system consists of (1) a set of n state equations, defined in tenns of the matrices A and B, and (2) a set of output equations that relate any output variables of interest to the state variables and inputs and are expressed in terms of the C and D matrices. The task of modeling the system is to derive the elements of the matrices and to write the system model in the form
i=Ax+Bo y=Cx+Do
(5.11) (5.12)
The matrices A and B are properties of the system and are determined by the system structure and elements. The output equation matrices C and D are determined by the particular choice of output variables. The overall modeling procedure developed in this chapter is based on the following steps: 1. Determination of the system order n and selection of a set of state variables from the linear graph system representation. 2. Generation of a set of state equations and the system A and B matrices using a welldefined methodology. This step is also based on the linear graph system description. 3. Determination of a suitable set of output equations and derivation of the appropriate C and D matrices.
5.2
LINEAR GRAPHS AND SYSTEM STRUCTURAL PROPERTIES
5.2.1 Linear Graph Properties The derivation of the state equations in this chapter is based on the use of the system linear graph model. A linear graph with B branches represents B system elements, each with a known elemental equation or source function. The graph also represents the structure of the element interconnections in terms of the continuity and compatibility constraint equations described in Chap. 4. In the following sections we use the properties of linear graphs to (1) derive the system structural constraints, (2) define the set of state variables, and (3) provide a systematic technique for deriving the system state equations [4-8]. The following definitions are introduced: System graph: The oriented linear graph model of a system. Connected graph: A system graph in which a path exists between all pairs of nodes. A path is said to exist if the node pair is joined by at least one branch. Figure 5.2 shows a connected graph along with a system graph that is not connected. System graphs for systems consisting of one-port elements are usually connected graphs, while systems that include the two-port elements introduced in Chap. 6 may not generate connected graphs. In this chapter we assume that all system graphs are connected graphs.
Sec. 5.1
State Variable System Representation
121 Output vector y
---~
u,(t)
System described by state variables {x 1,x2, ••• Xn}
~ ~--~
t
t Figure 5.1:
System inputs and outputs.
sufficient to determine all future behavior of the system. The state variables are an internal description of the system that completely characterizes the system state at any time t and from which any output variables y;(t) may be computed. Large classes of engineering, biological, social, and economic systems may be represented by state-determined system models. System models constructed with the pure and ideal (linear) one-port elements defined in the preceding chapters are state-determined system models. For such systems the number of state variables n is equal to the number of independent energy storage elements in the system. The values of the state variables at any time t specify the energy of each energy storage element within the system and therefore the total system energy, and the time derivatives of the state variables determine the rate of change of the system energy. Furthermore, the values of the system state variables at any time t provide sufficient information to determine the values of all other variables in the system at that time. There is no unique set of state variables that describe any given system; many different sets of variables may be selected to yield a complete system description. However, for a given system the order n is unique and is independent of the particular set of state variables chosen. State variable descriptions of systems may be formulated in terms of physical and measurable variables or in terms of variables that are not directly measurable. It is possible to mathematically transform one set of state variables to another; the important point is that any set of state variables must provide a complete description of the system. In this text we concentrate on a particular set of state variables based on physical variables derived directly from linear graph models.
5.1.2 The State Equations A standard form for the state equations is used throughout system dynamics. In the standard form the mathematical description of the system is expressed as a set of n coupled first-order ordinary differential equations, known as the state equations, in which the time derivative of each state variable is expressed in terms of the state variables x 1(t), ... , xn(t) and the system inputs u 1 (t), ... , u, (t). In the general case the form of the n state equations is it
=It (X, u, t)
i2 = /2 (x, u, t)
. .
·-· .-.
Xn = fn (X, U, t)
(5.1)
State Equation Formulation
122
=
Chap.5
=
dx; /dt and each of the functions /; (x, u, t) (i 1, ... , n) may be a general, where i; nonlinear, time-varying function of the state variables, the system inputs, and time. 1 It is common to express the state equations in a vector fonn in which the set of n state variables is written as a state vector x(t) = [xt (t), x2(t), ... , Xn (t)]T and the set of r inputs is written as an input vector u(t) = [u 1(t), u 2(t), ..• , u,(t)]T. Each state variable is a time-varying component of the column vector x(t). This fonn of the state equations explicitly represents the basic elements contained in the definition of a state-determined system. Given a set of initial conditions (the values of the x; at some time to) and the inputs fort ~to, the state equations explicitly specify the derivatives of all state variables. The value of each state variable at some time ~t later may then be found by direct integration. The system state at any instant may be interpreted as a point in ann-dimensional state space, and the dynamic state response x(t) can be interpreted as a path or trajectory traced out in the state space. In vector notation the set of n equations in Eqs. (5.1) may be written
(5.2)
i = f (x, u, t)
where f (x, u, t) is a vector function with n components /; (x, u, t). In this text we restrict our attention primarily to a description of systems that are linear and time-invariant (LTI), that is, systems described by linear differential equations with constant coefficients. For a LTI system of order n and with r inputs, Eqs. (5.1) become a set of n coupled first-order linear differential equations with constant coefficients:
where the coefficients a;i and b;1 are constants that describe the system. This set of n equations defines the derivatives of the state variables to be a weighted sum of the state variables and the system i~puts. Equations (5.3) may be written compactly in matrix form:
[x'] = [a"
!!_ ~2 dt
a~1
:
:
Xn
ant
a12 a22
a,.. ][x,. a2n
..
an2
ann
x2
..
Xn
l [ !l[] +
bu b21
..
.
b,,
(5.4)
bnl
which may be summarized as
i=Ax+Bu
(5.5)
In this text we use boldface type to denote vector quantities. Uppercase letters are used to denote general matrices, while lowercase letters denote column vectors. See App. A for an introduction to matrix notation and operations.
Sec. 5.1
State Variable System Representation
123
where the state vector x is a column vector oflength n, the input vector u is a column vector of length r, A is an n x n square matrix of the constant coefficients a;i, and B is an n x r matrix of the coefficients bu that weight the inputs.
5.1.3 Output Equations
A system output is defined to be any system variable of interest A description of a physical system in tenns of a set of state variables does not necessarily include all the variables of direct engineering interest An important property of the linear state equation description is that all system variables may be represented by a linear combination of the state variables x; and the system inputs u;. An arbitrary output variable in a system of order n with r inputs may be written
(5.6) where the c; and d1 are constants. If a total of m system variables are defined as outputs, the m such equations may be written as
The output equations, Eqs. (5.8), are commonly written in the compact form: y=Cx+Du
(5.9)
where y is a column vector of the output variables y; (t), C is an m x n matrix of the constant coefficients c;i that weight the state variables, and D is an m x r matrix of the constant coefficients d;i that weight the system inputs. For many physical systems the matrix D is the null matrix, and the output equation reduces to a simple weighted combination of the state variables: (5.10)
State Equation Formulation
124
Chap. 5
5.1.4 State Equation-Based Modeling Procedure
The complete system model for a linear time-invariant system consists of (1) a set of n state equations, defined in terms of the matrices A and B, and (2) a set of output equations that relate any output variables of interest to the state variables and inputs and are expressed in terms of the C and D matrices. The task of modeling the system is to derive the elements of the matrices and to write the system model in the form x=Ax+Bu y=Cx+Du
(5.11) (5.12)
The matrices A and B are properties of the system and are determined by the system sttucture and elements. The output equation matrices C and D are determined by the particular choice of output variables. The overall modeling procedure developed in this chapter is based on the following steps: 1. Determination of the system order n and selection of a set of state variables from the linear graph system representation. 2. Generation of a set of state equations and the system A and B matrices using a welldefined methodology. This step is also based on the linear graph system description. 3. Determination of a suitable set of output equations and derivation of the appropriate C and D matrices. 5.2
LINEAR GRAPHS AND SYSTEM STRUCTURAL PROPERTIES
5.2.1 Linear Graph Properties
The derivation of the state equations in this chapter is based on the use of the system linear graph model. A linear graph with B branches represents B system elements, each with a known elemental equation or source function. The graph also represents the sttucture of the element interconnections in terms of the continuity and compatibility constraint equations described in Chap. 4. In the following sections we use the properties of linear graphs to (I) derive the system structural constraints, (2) define the set of state variables, and (3) provide a systematic technique for deriving the system state equations [4-8]. The following definitions are introduced: System graph: The oriented linear graph model of a system. Connected graph: A system graph in which a path exists between all pairs of nodes. A path is said to exist if the node pair is joined by at least one branch.
Figure 5.2 shows a connected graph along with a system graph that is not connected. System graphs for systems consisting of one-port elements are usually connected graphs, while systems that include the two-port elements introduced in Chap. 6 may not generate connected graphs. In this chapter we assume that all system graphs are connected graphs.
Sec. 5.2
125
Linear Graphs and System Structural Properties
(a)
(b)
Figure 5.2: Examples of (a) a connected system graph, and (b) an unconnected system graph.
Consider a system represented by a connected linear graph with B branches of which S branches are active source elements and the remaining B - S branches represent passive one-port elements. Each branch has an across-variable and a through-variable, giving a total of 2B variables within the system. Of these, S are prescribed source variables, and so there are 2B - S unknowns in the system; we therefore require a total of 2-B - S independent equations in these unknowns in order to determine all system variables. There are B - S elemental equations relating the across- and through-variables for the passive branches. In addition the system structure, defined by the compatibility and continuity conditions, may be used to generate an additional B linearly independent constraint equations. The total set of 2B - S elemental and structural equations may be algebraically manipulated to produce the state and output equations. The following example illustrates these relationships for an electric system model. Example 5.1 The electric system shown in Fig. 5.3 consists of a capacitor C, an inductor L, and a resistor R connected as shown and driven by a voltage source Vs(t). Its linear graph contains four branches each of which has an across-variable and a through-variable, giving a total of eight system variables of which seven (ic, vc. h. VL, iR, VR, and is) are unknown. Each of the three passive elements is described by an elemental equation: (i) (ii) (iii)
giving three equations in six unknowns. The system structure defined by the linear graph imposes additional constraints; the three variables on the right-hand side may be eliminated by using (1) a continuity equation (iv) to define ic, and (2) two compatibility equations VL
= VC
VR
= Vs- vc
(v) (vi)
126
State Equation Formulation
Chap.5
to define VL and VR· Substitution of Eqs. (ivHvi) into Eqs. (iHili) and some algebraic manipulation produce a pair of coupled differential equations:
dve 1 1. 1 -=--ve+-rL+-Vs dt RC C RC
dit
1
dt =
(vii) (viii)
Lve
which are a pair of coupled first-order differential equations in the form of Eqs. (5.8). These are a set of two state equations for this system in tenns of state variables ve and i L. Equations (vii) and (viii) allow the system A and B matrices to be written
A= [-1/RC -1/C] 1/L
0
,
B = [ 1/RC] 0
(ix)
Equations CiHvi) may be used to generate output eqWuions in the fonn of Eqs. (5.7). For example, if the variables iR. VR, VL. and ic are of interest,
. lR
1 1 = -live + li Vs
(X)
= -ve + Vs VL = Ve
(xi)
VR
(xii)
. 1 . 1 v. ze =-livelL + R s
(xiii)
l
(xiv)
and so if the output vector is defined to be y = [i R, vR, vL, ie ]T, the C and D matrices are
-1/R -1 C=
[
1
-1/R
00 o ' -1
D=[T] l/R
R
R
L
Figure 5.3:
An electric system and its linear graph.
Sec. 5.2
Linear Graphs and System Structural Properties
127
5.2.2 Graph Trees
A systematic procedure for generating the system equations is based on relationships defined by a graph tree. A tree is defined to be a subgraph of the system graph containing 1. all of the graph nodes, and 2. the maximum number of branches of the system graph that can be included without creating any closed loops. Branches of the system graph that are not included in a tree are known as links. In general several different graph trees may be formed from any linear graph, as shown in Fig. 5.4. The number of branches in a tree Br and the number of tree links BL depend on the number of nodes N and the number of branches B in the graph. For a connected graph, the first branch entered into a tree connects two nodes, while all of the subsequent branches connect one additional node until the maximum number (N- 1) of branches is entered without forming any closed loops. The number of tree Jinks is simply the total number of branches Jess those in the graph tree: Br
= N -1
Bt = B - Br = B - N
(5.13) (5.14)
+1
Each tree link is a system graph branch that forms a closed loop when added to a graph tree.
\l)
~
v T
\l l) Figure 5.4: A system graph with four nodes and five branches. and severaJ trees derived from the graph.
128
State Equation Formulation
Chap. 5
5.2.3 System Graph Structural Constraints A graph tree may be used to generate a set of B linearly independent compatibility and continuity equations that are particularly useful in system equation development. We define the following classes of variables based on a given tree: Primary variables: The system primary variables are the across-variables on tree branches and the through-variables on tree links. Secondary variables: Conversely, the secondary variables are the through-variables on tree branches and the across-variables on tree links. The compatibility constraint equations relate across-variables around any closed loop in the system graph. Consider the tree of a linear graph with N = 5 and B = 6 shown in 4 branches and B - N + 1 2 links in any tree of this Fig. 5.5. There are N - 1 graph. Each time a link is placed in the tree, a closed loop is formed, and a compatibility equation may be written for the loop. For the tree shown in Fig. 5.5 the two compatibility equations generated by replacing the links are
=
=
In this tree structure v2 and v 4 are secondary variables; each of the above compatibility equations specifies one of these secondary variables in terms of the primary across-variables. In general, each time a loop is formed by placing a link in a tree, the across-variable on that link may be written in terms of the across-variables on the tree branches; in other words, the resulting compatibility equation contains only one secondary variable.
Figure 5.5: A system graph tree, with the links shown as dotted lines, and a set of contours used to generate continuity equations.
The continuity equations represent a set of constraints on through-variables passing through any closed contour on the graph. If a closed contour is drawn on a tree such that it cuts only one tree branch, then the through-variable on that branch (a secondary variable) may be expressed in terms of the through-variables on the tree links, which are primary variables. In Fig. 5.5 a set of four contours has been drawn so that each cuts a single tree branch. For the contours shown the following continuity equations may be written: fl = -f2
f3 = f2- f4 fs
= f4
f6 = f4
Sec. 5.2
Linear Graphs and System Structural Properties
129
The secondary through-variables on the tree branches f1, f3, fs, and f6 are expressed directly in tenns of the through-variables on the links (f2 and f4). This particular set of contours has generated a set of continuity equations that express the secondary through-variables in tenns of the primary through-variables. In summary, each of the B - N + 1 tree links generates a compatibility equation involving a single secondary across-variable, and each of the N- I tree branches generates a continuity equation expressing its secondary through-variable in terms of the link primary through-variables. The tree therefore generates a set of B constraint equations that can be used in the equation formulation method to eliminate secondary variables from elemental equations. Figure 5.6 shows the division of the system variables into primary and secondary variables using a graph tree.
.
System linear graph: Bbranches Nnodes I
_i
N-ltree branches
B-N-ltree links
I
'
N-l primary across-variables I
I
t I
I
t
l
N- 1 secondary through-variables
•• I Figure 5.6:
l
B- N + 1 primary through-variables
~t
Totals: B prim~ variables B secon ary variables
I
B - N + 1 secondary across-variables I
I
System graph variables.
5.2.4 The System Normal Tree
We may fonn a special graph tree, known as a normal tree, and use it to define ( 1) the system primary and secondary variables, (2) the system order n, {3) the state variables, and (4) a set of independent compatibility and continuity equations. A nonnal tree for a connected system graph is formed using the following steps: Step 1: Draw the system graph nodes. Step 2: Include all across-variable sources as tree branches. (If all across-variable sources cannot be included in the nonnal tree, then the across-variable sources must fonn a loop and compatibility is violated.) Step 3: Include as many as possible of the A-type energy storage elements as tree branches. (Any A-type element that cannot be included in the nonnal tree is a dependent energy storage element as described below.)
130
State Equation Formulation
Chap. S
Step 4: Attempt to complete the tree, which must contain N - 1 branches, by including as many as possible D-type dissipative elements. It may not be possible to include all D-type elements. Step 5: If the tree is not complete after the addition of D-type elements, add the minimum number ofT-type energy storage elements required to complete it. (Any T-type element included in the tree at this point is a dependent energy storage element) Step 6: Examine the tree to determine if any through-variable sources are required to complete it. If any through-variable source can be inserted into the normal tree, then that source cannot be independently specified and continuity is violated. The normal tree effectively defines a set of independent energy storage elements, that is, the set of elements whose stored energy may be independently set and controlled. If in step 3 an A-type element cannot be included in a normal tree, it implies that a loop has been formed from a combination of across-variable sources and A-type elements. The compatibility equation for that loop specifies that the across-variable on the A-type element link is dependent on the across-variables on other A-type elements and sources. This is illustrated in Fig. 5.7a where an electric system and a normal tree are shown. It is not possible to include both capacitors in the normal tree; if capacitor C2 is placed in the tree, the resulting compatibility equation will be
The energy storage variables (voltage) on the two capacitors are therefore linearly dependent In this case either C 1 or C2 , but not both, can be included in the normal tree. Simi1arly, in step 5 any T-type element that is a branch of a normal tree is a dependent energy storage element When the tree is complete, the resulting continuity equation generated by a contour cutting this branch expresses its through-variable in terms of link primary variables. The continuity equation for this branch therefore specifies a linear dependence between its through-variable and other T-type or source through-variables. This is illustrated for a mechanical system in Fig. 5. 7b where a spring K is used to transmit energy between a force source Fs(t) and a mass m. The spring can be inserted into the normal tree. Continuity applied to the spring element requires that
or in other words, the energy stored in the spring is defined entirely by the force source Fs (t). The spring K is a dependent energy storage element Dependent energy storage elements do not generate independent state equations. From the normal tree we make the following definitions: 1. The system primary variables are the across-variables on the normal tree branches and the through-variables on its links. 2. The system secondary variables are the through-variables on the normal tree branches and the across-variables on its links.
Sec. 5.2
Linear Graphs and System Structural Properties
V1 (t)
"-----+---' R
131
r
Vm(t)
F,(t)-:Q~
Linear graph
Linear graph
Normal tree
NormaJ tree
K
K
(b)
(a)
Figure 5.7: Two systems with dependent energy storage elements and their normaJ trees. (a) An electric system with dependent capacitors, and (b) a mechanical system
with a dependent spring.
3. The system order is the number of independent energy storage elements in the system, that is, the sum of the number of A-type elements in the normal tree branches and the number ofT-type elements among the links. 4. The n state variables are selected as the energy storage variables among the primary variables, that is, the across-variables on A-type elements in the normal tree branches and the through-variables on T-type elements in the links.
Figure 5.8 shows two systems along with their system graphs and normal trees. The mechanical system in Fig. 5.8a has four energy storage elements, the normal tree indicates that they are all independent, and the system order is 4. The normal tree defines the state variables to be the velocities (vm 1 and Vm 2 ) of the two mass elements and the forces (FK 1 and FK2 ) on the two springs. The electric system in Fig. 5.8b contains five energy storage elements, but the normal tree indicates that capacitors c2 and c3 are dependent. The order of this system is 4, and the state variables for the normal tree shown are vc 1 , vc2 , i L 1 , and h 2 • ·
State Equation Fonnu1ation
132
Chap. S
Linear graph
Linear graph
K2
Rl
Normal tree
Figure 5.8:
Two systems with their linear graphs and normal trees.
Special Cases in which the Procedure Results in "Excess" State Variables Two special cases in which the procedure outlined above 2 results in a formulation in which the number of state variables exceeds the number of independent energy storage elements are the following:
1. Systems containing two or more A-type elements in direct series connection 2. Systems containing two or more T-type elements in direct parallel connection. 2 In these special cases, the procedure results in a state variable formulation which is uncontrollable, that is, the across-variables on each of the direct series A-type elements and the through-variable on each of the direct parallel T-type elements may not be independently specified and controlled [2, 3].
Sec. 5.2
Linear Graphs and System Structural Properties
133
m V,(t)
Linear graph
Linear graph
Normal tree
Normal tree
I I I ~
Figure 5.9: Examples of two systems with excess state variables.
Illustration of these two special cases is provided in Fig. 5.9. In the two cases the number of state variables identified by forming a normal tree exceeds the number of independent energy storage elements. The difficulty represented by the two special cases described may be avoided by combining all A-type energy storage elements directly in series into a single equivalent A-type element, and all T-type elements directly in parallel into a single equivalent element. The general expressions for the equivalent elements are indicated in Fig. 5.1 0. When the elements are combined and the equivalent system linear graph is used to generate the normal tree, the number of state variables in the combined system is equal to the number of independent energy storage elements in die combined system. Since controllable representations of systems are desired, all A-type elements directly in series and all T-type elements directly in parallel should be combined before determining the system normal tree.
/
1 Ceq=-n--
I
i=l
Figure 5.10:
5.3
Chap. 5
State Equation Fonnu1ation
134
l.cq=
1 -n--
1/C;
I
i;;;J
liL;
Combination of elements in series and in parallel to eliminate excess state variables.
STATE EQUAnON FORMULATION The system normal tree may be used to generate a set of state equations in terms of the energy storage variables on the n independent energy storage elements. In a system graph with B branches, of which S represent ideal source elements, there are 2(B - S) system variables associated with the passive branches: one across- and one through-variable on each branch. On each branch one of these variables is a primary variable, while the other is a secondary variable. The desired n state variables are a subset of the B - S primary variables. There are B - S elemental equations relating these primary and secondary variables for the passive branches; the nonnal tree is used to generate B - S continuity and compatibility equations that can be used to eliminate the secondary variables associated with the passive elements. The state equations are formulated in two steps:
I. Derivation of a set of B - S differential and algebraic equations in terms of primary variables only by starting with the passive elemental equations and using B - S compatibility and continuity equations to eliminate all secondary variables. 2. Algebraic manipulation of this set of B - S equations to produce n differential equations in the n state variables and the S specified source variables. Since sources have one variable independently specified, only B - S elemental equations for the passive elements need to be written. It is convenient to divide the number of sources S into across-variable sources SA and through-variable sources ST, and so S = SA +ST. The secondary variables may be eliminated from these equations by using a total of B - S independent compatibility and continuity equations formed from (1) N -1 -SA continuity equations, ~d (2) B - N + 1 - ST compatibility equations. (The secondary variables associated with sources do not enter directly into the state equation formulation; therefore, SA c~ntinuity and Sr compatibility equations do not need to be considered.)
Sec. 5.3
State Equation Formulation
135
A systematic procedure for deriving the n state equations is as follows:
Step 1: Generate a normal tree from the connected system graph. Step 2: From the branches and links of the normal tree identify the primary and secondary variables. Define the system order n as the number of independent energy storage elements. Select the state variables as across-variables on A-type energy storage elements in the normal tree branches and through-variables on T-type energy storage elements in the links. Step 3: Write the B- S elemental equations for the passive (nonsource) elements explicitly in terms of their primary variables, that is, with the primary variable on the left-hand side of the equations. Note that the derivatives of the n state variables should appear on the left-hand side of the elemental equations for all independent energy storage elements. Step 4: Write N- 1 -SA independent continuity equations involving only one secondary through-variable (a tree branch through-variable) by applying the continuity condition to a set of N - 1 -SA contours that each "cut" only one passive branch of the normal tree. Express each equation explicitly in terms of the secondary through-variable. StepS: Write B - N + 1 - ST independent compatibility _equations involving only one secondary across-variable (a tree link across-variable) by placing each of the passive links back in the tree to form a loop and writing the resulting compatibility equation. Express each equation explicitly in terms of the secondary across-variable. Step 6: Use theN- 1 -SA continuity and the B- N + 1 - ST compatibility equations (a total of B- S equations) to eliminate all secondary variables from the B - S elemental equations by direct substitution. Step 7: Reduce the resulting B- S equations in the primary variables ton state equations in the n state variables and the S source variables. Step 8: Write the resulting state equations in the standard form. The application of this procedure is illustrated in the examples that follow, which show that after the normal tree is formed the subsequent steps in the procedure may be completed in a straightforward manner. Example5.2 A set of state equations describing the mechanical system in Example 4.1 may be derived directly from the system graph, shown in Fig. 5.11. The system graph has three branches (B = 3), two nodes (N = 2), and a single force source (S = 1). The normal tree therefore contains N - 1 I branch. The rules for constructing the tree specify that the branch should contain the mass element m. The spring element K and the source element F therefore form the tree links. From the normal tree in Fig. 5.llc, where the link elements are indicated by dotted lines,
=
Primary variables: F.J(t), Vm, FK Secondary variables: Vs' Fm. v K System order. 2 State variables: Vm, FK
State Equation Formulation
136
Cbap.S
Contour used to continuity
. ; - genera1e
(~~:' equation
v
m
F,(t)
I
\
\
I I I /
cb \
fK
m
~ (a) Physical system
(b) Linear graph
(c) Normal tree
Figure 5.11: Mechanical system model and its normal tree.
1. The B - S
= 2 elemental equations may be written in tenns of the primary variables as
Primary variables
dvm dt { dFg dt
= =
!Fm}
Secondary variables
(i)
Kvg
2. The single continuity equation (N- 1 - S~o = 2- 1 - 0 = 1) required to eliminate Fm may be written using the closed contour shown in Fig. S.llc: Fm
= F,- Fg
(ii)
3. The single compatibility equation (B - N + 1 - S7 = 3 - 2 + 1 - 1 = 1) required to eliminate the secondary variable v K may be found by placing the spring element in the nonnal tree (Fig. S.llc), and writing the loop equation: (iii)
4. The secondary variables Fm and vg may be eliminated by substituting Eqs. (ii) and (iii) into the elemental equations to yield dvm 1 -=-(F,-Fg) dt
m
dFg
(iv)
- - =Kvm dt
Equations (iv) express the derivatives of the state variables directly in terms of the state variables and the input They are the desired pair of state equations. 5. The pair of state equations may be written in the standard matrix notation: (v)
If the output variable of interest is the velocity of the mass, then an output equation may be written in matrix fonn: (vi)
Sec. 5.3
137
State Equation Formulation
Example5.3 A mechanical system and its oriented linear graph are shown in Fig. 5.12. In the graph two T-type energy storage elements are connected direct1y in parallel; therefore, to eliminate the generation of an excess state variable, the two spring elements are combined into one equivalent spring with an effective spring constant K = Kt + K2 • The equivalent linear graph is shown in Fig. 5.12b, with the system normal tree in Fig. 5. l 2c with N - 1 = 1 branch containing the mass m. From the normal tree, Primary variables: F.,(t), Secondary variables:
v.~.
Vm,
FK, Fs
Fm.
VK,
vg
System order: 2 State variables:
Vm,
FK
Total viscous friction B (b) Linear graph
(a) Physical system Figura 5.12:
1. The B - S
(c) Normal tree
A mechanical system with two parallel springs, its linear graph and a nonnal tree after combining the two springs.
= 3 elemental equations written in terms of the primary variables are
: : ~: I ! 1
dvm
Primary variables
dt d FK dt
Fs
Secondary variables
=
(i)
Bvs
2. The single (N - 1 - SA = I) continuity equation required to eliminate the secondary through-variable F,, is found by drawing a closed contour that cuts the ma'is tree branch as shown in Fig. 5.12: (ii)
+ 1 - ST = 2 compatibility equations required to eliminate the secondary variables VK and v 8 are written by considering the loops formed by adding the two links back into the tree shown in Fig. 5.12c:
3. The B - N
(iii) Vg
=
Vm
(iv)
138
State Equation Formulation
Chap.5
4. All secondary variables may be eliminated from the elemental equations by direct substitution of the three continuity and compatibility equations to yield
dvm
1
dFx dt Fs
= Kvm = Bvm
dt =;;; (F,- Fs- Fx)
(v)
(vi) (vii)
=
5. These B - S 3 equations in terms of primary variables may be combined to give the two desired state equations:
dvm 1 = - (-Bvm- Fx dt m
-
dFx dt
+ F,)
(viii)
= Kv
(ix)
m
6. Finally the pair of state equations may be written in the standard matrix fonn: (x)
Example5.4 The mechanical rotational system described in Example 4.2 has the linear graph shown in Fig. 3). The normal 5.13b. The linear graph contains four elements (B 4) and three nodes (N tree, shown in Fig. 5.13c, contains the angular velocity source and the rotary inertia. From the normal tree,
=
=
Primary variables: O,(t), 0;. T8 " Ts,. Secondary variables: T,, TJ, Os1 , Os2 System order: I State variable: OJ
(a) Physical system Figure 5.13:
(b) Linear graph
(c) Normal tree
A rotational system, its linear graph and normal tree.
Sec. 5.3
139
State Equation Formulation
1. The 8 - S = 4 - 1 = 3 elementaJ equations written in terms of the primary variables
are
I
r81
=
2.J 1, 8 1Q 81
TTJz
=
82!2s2
dn, dt
Primary variables
=
I
Secondary variables
2. The secondary variable T1 may be eliminated by the single (N- 1 -
s~.
(i)
= 1) continuity
equation found from the closed contour shown in Fig. 5.13c: (ii)
3. The two secondary variables !2 81 and 0 82 maybeeliminatedfromthe 8-N +1-Sr = 2 compatibility equations formed by placing the two Jinks in the normal tree:
(iii)
4. The secondary variables may be eliminated from the elemental equations (i) using Eqs. (ii) and (iii): dO, dt Ts 1
= .!_J (TB2 -
Ts) I
= BtQJ
(iv)
Ts 2 = 82 (Q.f- !2,) 5. By combining the elemental equations in Eq. (iv) to eliminate Ts 1 and Ts2 • the single state equation may be written
(v)
6. The state equation may be expressed in matrix form as
(vi)
7. If the flywheel angular velocity n, is selected as the output variable, the output equation in matrix form is (vii)
140
State Equation Formulation
Chap. 5
Example5.5 An electric circuit is shown in Fig. 5.14a together with its oriented linear graph model in Fig. 4 and 8 4. The normal 5.14b. For the model the numbers of nodes and branches are N tree, shown in Fig. 5.J4c, has N- 1 3 branches which include the voltage source Vs. the capacitor C, and the resistor R. The inductor branch L remains in the tree links. From the normal tree,
=
=
Primary variables: Vs(t), vc, VR,
=
h
Secondary variables: is. ic. iR, VL System order: 2 State variables: vc.
R
h
c
c
R
Vs(t)
(a) Physical system Agure 5.14:
(b) Linear graph
(c) Normal tree
An electric circuit, its linear graph, and a normal tree.
The state equations may be derived in the following steps:
I
1. The 8 - S = 3 elemental equations are written in terms of the primary variables:
Primary variables
[
d;; dh
= ~ic = .!..vL
dt VR
Secondary variables
(i)
L
=
RiR
2. TheN- 1 -SA = 2 continuity equations required to eliminate the two secondary through-variables ic and i R are found by drawing a pair of closed contours that cut only one normal tree branch:
ic=h iR =it
(ii) (iii)
3. The B - N + 1 - Sr = 1 compatibility equation to eliminate the secondary variable VL is written by adding the inductor back into the tree and writing the equation (iv)
Sec. 5.3
State Equation Formulation
141
4. The secondary variables may be eliminated from the right-hand side of the elemental equations by direct substitution from the continuity and compatibility equations to generate three equations in the primary variables: dvc
1.
diL
1
Tr = c'L
(v)
dt = L (Vs VR
(vi)
VR - Vc)
=Rh
(vii)
5. The B - S = 3 equations in the primary variables may be combined to yield two first-order differential equations in terms of the state and source variables:
1.
dvc
Tr
=
c'L
(viii)
diL 1 , = - (-vc - R1L
dt
L
+ V.)s
(ix)
6. The pair of state equations may be written in the standard matrix form: 0 [ vc h ] = [ -1/L
1/ C ] [ vc ] -R/L h
+[
0 ] 1/L Vs(t)
(x)
VL,
ic. and v,. are defined to be output variables for this example, a set of algebraic output equations may be formed in the state and input variables by using the elemental, compatibility, and continuity equations. In particular, If the system variables
(xi)
= Vs- RiL- vc ic = iL
(xii)
vc = vc
(xiii)
The output equations y = Cx + Du become
~
·[VL]
=
~ -R] ~. [ ;~] + [1] ~ V,(t)
[-]
(xiv)
Example5.6 The fluid system described in Example 4.5 is shown in Fig. 5.15 together with its linear graph. The linear graph contains five elements (B 5) with two energy storage elements and one source (SA= 1). The graph contains four nodes (N = 4); thus, N- 1 = 3 elements must be placed in the normal tree. The order of placement of elements into the tree is ( 1) the pressure source (an across-variable source), (2) the fluid capacitance C (an A-type element), and (3) the resistive element Rp. At this point the tree is complete and is as shown in Fig. 5.15c. The independent energy storage elements are then the fluid capacitance C and the fluid inertance of the pipe /p:
=
142
State Equation Formulation
Chap. 5
Valve Long pipe
Rf
~j
I-Fl-uidreserv-oir _ _ P_
(a) Physical system
(b) Linear graph
Figure 5.15:
(c) Normal tree
A fluid system, its system graph, and a normal tree.
Primary variables: P,(t), Pc. PR,• QJ,, QR 1 Secondary variables: Qs. Qc. QR,. P,P, PR 1 System order: 2 State variables: Pc, Qlp
1. The B - S = 4 elemental equations are
Primary variables
dPc dt dQ1 dt
=
PRp QRI
1 -Qc
=
c
I -QI lp RpQRp
=
Secondary variables
(i)
1 Rl PR.
2. The two secondary flow variables Qc and QRp may be expressed in terms of primary variables using the N - 1 - S~a 2 continuity equations. Using the contours shown in Fig. 5.15c,
=
Qc
= Q,- QR1
QRp = Ql
(ii)
Sec. 5.3
State Equation Formulation
143
3. The two secondary pressure variables P1 and PR, may be expressed in terms of primary variables from the B - N + 1 - Sr = 2 compatibility equations formed by placing the links back into the tree:
P1 = Ps - PR, - Pc PR1
(iii)
= Pc
4. The secondary variables in the elemental equations (i) may be eliminated by direct substitution from the continuity and compatibility equations: (iv) (v)
(vi) (vii)
5. Equations (vi) and (vii) may be used to eliminate PR, and QR, from Eqs. (iv) and (v) to yield two state equations: (viii) (ix) 6. The pair of state equations may be written in the standard matrix fonn:
Pc] [-l/R1C 1/C ] [Pc] [ Q., = -1/1 -Rp/ I Q1
+ [ 1/0 I ]
Ps(t)
(x)
Example5.7 The thermal system model for Example 4.6 has the linear graph shown in Fig. 5.16 consisting of four elements (B = 4) with one energy storage element (a thermal capacitance), a throughvariable source ( Sr = I ). and three nodes N = 3. The order of entry of elements into the nonnaJ tree is ( 1) the capacitance C, and (2) one of the two thermaJ resistances R 1 or R2 • It is arbitrary which one is chosen; in this example we select R2 as a normal tree branch. Primary variables: Q.,(t), Tc. QR,. TR 2 Secondary variables: Tu Qc. TR,. qR2 System order: I State variable: Tc
144
State Equation Fonnulation
Chap. 5
Heating element Q,(t)
source
(a) Physical system
(b) Linear graph
(c) Nonnal tree
Figure 5.16: A thennal system, iiS linear graph. and a nonnal tree.
Primary variables
I
d:,c
=
TR2
=
QRJ
=
Secondary variables
(i)
2. The secondary heat flow variables qc and q R2 may be expressed in tenns of primary variables using the N- 1 -SA = 2 continuity equations derived from the contours shown in Fig. 5.16c: qc =qR• QR2
(ii)
= Qs -qR 1
3. The secondary temperature variable TR 1 may be expressed in terms of primary variables from the B - N + 1 - Sr 1 compatibility equations fanned by placing the link back into the tree: (iii)
=
4. Using the continuity (ii) and compatibility (iii) equations, the secondary variables may be eliminated from the elemental equations (i):
dTc
1
Tt = cqR. TR2
(iv)
= R2 (Q,- qR,) 1
qR1 = Rt (TR 2
-
Tc)
(v)
(vi)
Sec. 5.4
145
Systems with Nonstandard State Equations
5. Equations (v) and (vi) may be used to eliminate all but state and source variables from Eq. (iv). Combining Eqs. (v) and (vi).
1
qR 1
= R1 + R2 (R2Q8- Tc)
(vii)
and substituting into Eq. (iv). dTc
1
dt = C (R1 + R2)
(R Q 2
8
T. -
c)
(viii)
6. If temperature is selected as the output variable. the matrix forms of the state and output equations are
[tc] = [ C
(R~: R2)] Tc + [ C (R~~ R2)] Qs(t)
Tc = [1] Tc
5.4
+ [0] Q.t(t)
(ix) (x)
SYSTEMS WITH NONSTANDARD STATE EQUATIONS
5.4.1 Input Derivative Form Occasionally system models generate a set of state and output equations that contain terms in the derivative of the system inputs. In such cases. which generally result from models containing dependent energy storage elements, the standard form of the state equations must be extended to include these derivative terms:
i = Ax+ Bu + Eti y=Cx+Du+Fti
(5.15) (5.16)
The n x r matrix E and the m x r matrix F are introduced to include the input derivative terms ti(t). Assume, for example, that a system contains a dependent T-type element L. The element is a branch in the normal tree. and its primary variable is the across-variable v. The elemental equation is written with the derivative of the through-variable f on the right-hand side: df (5.17) V=Ldt
If the continuity equation used to eliminate the secondary variable f contains any throughvariable source terms F3 (t), substitution into Eq. (5.17) generates a term involving the derivative of the input:
v
d
= L(.. · + Fs + · · ·) dt
(5.18)
This input derivative term remains throughout the subsequent algebraic manipulations that generate the state and output equations.
146
State Equation Formulation
Chap.5
The most common situations that generate the extended form of the state equations are the following: 1. When a compatibility equation includes the across-variable on a dependent A-type element and an across-variable source term 2. When a continuity equation includes the through-variable on a dependent T-type element and a through-variable source term. Example5.8 A lead-lag electric circuit, used in control systems, is shown in Fig. 5.17 together with its system graph and normal tree. Find a state equation describing the system and an output equation for the current in the capacitor C1•
V.r(t)
(b) Linear graph
(a) Circuit
(c) Normal tree
Figure 5.17: Simple first-order electric lead-lag network with a dependent energy storage element.
Solution The system is first-order and contains a dependent capacitor. 'IWo normal trees are possible; with the choice of the nonnaJ tree as shown: Primary variables: Vs(t), vc2 • iR,. iR2' ic, Secondary variables: System order: 1
i.r,
ic2 , vR., VR2 , vc,
State variable: vc2 The elemental equations are dvc2 dt
=
c2'c2
iR1
=
Rt VR,
jR2
=
1 R2 VR2
ic,
=
Primary variables
1 •
I
Secondary variables
{i)
C dvc 1
ldr
The normal tree generates one continuity equation: {ii)
Sec. 5.4
Systems with Nonstandard State Equations
147
and three compatibility equations: VR2
=
VR 1
= V.s(t) - vc2
(iv)
vc1 = Vs(t) - vc2
(v)
Vc2
(iii)
When Eq. (v) is substituted into Eqs. (i) to eliminate the secondary variable vc1 , the elemental equation becomes ic = Ct [dVs(t) _ dvc2 ] I dt dt
(vi)
The derivative propagates through the subsequent algebraic steps, and the state equation is (vii) The output equation for ic 1 may be found from Eqs. (i) and (v): (viii)
and substituting Eq. (vii), (ix)
Both the state and output equations include the derivative of the input Vs(t).
5.4.2 Transformation to the Standard Form If the modeling procedure generates state equations in the form of Eq. (5.15), an algebraic transfonnation may be used to generate a new set of state variables and state equations in the standard fonn of Eq. (5.5). For a system with state equations,
i=Ax+Bu+Eo
(5.19)
a new set of state variables x' may be defined:
x' =x-Eu
(5.20)
Differentiation of Eq. (5.20) gives
i' = i - Eo= (Ax+Bu+Eti)- Eo
= A (x' + Eu) + Bu =Ax' +B'u
(5.21)
148
State Equation Formulation
Chap.5
x
where B' = AE + B. Although the elements of the new state vector are no longer the physical variables that were used to generate the original equations, the complete vector r satisfies all the requirements of a state vector. Any physical variable in the system may be found from a modified set of output equations written in terms of the transformed state vector:
y=Cx+Du+FU = C(x'+Eu) +Du+Fti
(5.22)
= Cx' +D'u+Fii whereD'
= CE+D.
Example5.9 Figme 5.18 illustrates a mechanical translational system. The system graph and normal tree demonstrate that although there are three energy storage elements, the two springs are dependent and the system order is 2. Find a set of state equations that does not involve the derivative of the input vector and an accompanying output equation for the velocity of the dash pot B 1•
m
lSS,
;;;;;;;,;;;;;;;;;;;;;;;;;;;. (a} Mechanical system
(b} Linear graph
Figure 5.18:
(c) Normal tree
Second-order mechanical system with dependent springs.
Solution With the choice of nonnal tree as shown~ the state variables are Vm and FK 1 and the elemental equations are
dvm _ _!_F. dt - m m dFKt ---;it = KlVKt
(ii)
= B2vs2
(iii)
Fs2
1
vs 1 = B Fs 1
(i)
(iv)
1
I dFK
VK 2
=K2- -dt-2
(v)
Sec. 5.4
Systems with Nonstandard State Equations
149
There are two compatibility equations: VK 1
=
VB2
= Vm
VK2 -
(vi)
VB 1
(vii)
and three continuity equations: FK2
= Fs(t)- FK1
Fs 1
= FK
Fm
(viii) (ix)
1
= F.s(t) -
Fs2
(x)
Equation (viii) relates the through-variable FK2 on a dependent T-type element K 2 to the input Fs(t). When the secondary variables are eliminated and the two state equations are written in matrix form, the result is
[
-B2/m
Vm ] _ [
FK 1
0
-
0
-K, K2/ [Bt (Kr
+ K2)]
][
Vm ]
+
FK 1
[
1/m] F. (1) 0
s
(xi)
+ [KI/(K~ + K2)] Fs(t)
showing the dependence on the derivative of the input F,, (t). The output equation for v81 is found from Eqs. (iv) and (ix): 1 (xii) VBl = -FKI Br and in matrix form, (xiii) The state variables may be transformed using Eq. (5.20); that is,
i'
= Ax' + (AE +B) u
or
(xiv)
and the corresponding output equation in terms of the transformed state vector is found directly from Eq. (5.22): vs 1
= Cx' + (CE +D)u +Fil
= [0
1/ B1 ]
[~i] + [[o
1/81] [ Kt/
+ [0] Fs.(t) 1 ,
Kr
= Bt x 2 + 81 (Kt + K2) Fs(t)
(K~ + K
2
)]
+ [0]] Fs(t) (xv)
150 5.5
State Equation Formulation
Chap. 5
STATE EQUATION GENERATION USING LINEAR ALGEBRA For linear systems, the state equations may also be found directly from the equations in the primary variables and inputs by matrix methods. After the elemental equations have been written with causality defined by the normal tree and the substitutions for the secondary variables made through the continuity and compatibility equations, the primary variables may be divided into three groups and expressed in three vectors: • x-the vector of state variables (primary variables associated with independent energy storage elements) • d-the vector of primary variables associated with dependent energy storage elements • p-the vector of primary variables associated with nonenergy storage elements [Dtype elements and two-port branches (Chap. 6)]. The set of equations in the primary variables and inputs can be written as three matrix equations in x, d, and p:
i = Px+Qp +Rd+So d=Mi+Nti
(5.23)
p = Hx+Jp+Kd +Lu
(5.25)
(5.24)
The state equations are found by solving explicitly for p and d and substitution into Eq. (5.23). If there are no dependent energy storage elements in the system, that is, d = 0 and N = K = R = 0, the state equations are found by solving Eq. (5.25) for p and M substituting into Eq. (5.23). In the simplest case, the matrix J = 0 and the state equations may be found by substituting Eq. (5.25) directly into Eq. (5.23):
=
X = [P + QH] X + [S + QL] u
(5.26)
Otherwise p must be found by rearranging and solving Eq. (5.25):
[1-J]p=Hx+Lu
(5.27)
where I is the identity matrix, or
p
= [I - J]-1 Hx + [I = H'x+L'u
where B' = [I- J]- 1 Hand L' (5.23) generates the state equations
i
J]- 1 Lu
(5.28) (5.29)
= [I- J]- 1 L. Substitution of Eq. (5.29) into Eq.
= {P + QB') X + {S + QL') u
(5.30)
Sec. 5.5
State Equation Generation Using Linear Algebra
151
Example 5.10
The electric circuit shown in Fig. 5.19, together with its linear graph and a normal tree, generates the following equations in the primary variables: 1. 11 -c'R• +c ,
.
(i)
vc = . 1 h = LVR2 VR2
. 'R1
= R2iRl
=
(ii} (iii}
- R2iL
1 1 R, vc- R
1
(iv)
VR 2
Use the matrix method to find the state equations in the variables vc and h. Soludon Divide the primary variables into two vectors, X = [vc iLlT and p = [ VR2 Then the primary equations [Eqs. (iHiv)] can be written
[ ~c]=[O0 lL
O][~c]+[
0
lL
0
1I L
-I/C][~R2]+[1/C] 1s(t) 0
0
l R,
iRl
r. (v)
(vi)
Equation (vi) may be rearranged:
(vii)
(viii)
R2] [ 0 1
1/Rt
-R2] [vc] h 0
(ix) (x)
When Eq. (ix) is substituted into Eq. (v), the state equations are found to be
152
State Equation Formulation
(b) Linear graph
(a) Electric circuit
Figure 5.19:
Chap.5
(c) Nonnal tree
An electric system, its linear graph. and a normal tree.
In the most general case, when there are dependent energy storage elements in the system so that d :F 0, the state equations are found by substituting Eqs. (5.29) and (5.24) into Eq. (5.23), giving
[I- (QK' +R)M]i = (P + QH')x + (S + QL') u + (R + QK') Nti which may be solved by premultiplying both sides by the state equations. 5.6
(5.31)
[I- (QK' + R) M]- 1 to generate ·
NONLINEAR SYSTEMS 5.6.1 General Considerations
In the general case of nonlinear state-determined system models, relationships may exist in which a single system variable is a nonlinear function of several other variables. For example, the torque output of an automobile engine may be represented as a nonlinear function of the fueVair ratio, spark advance, and engine speed. Systematic equation formulation procedures are not generally available for such systems. However, for nonlinear systems that can be represented by linear graph models containing combinations of pure (nonlinear) and ideal Oinear) one- and two-port elements, the equation formulation procedures described in Sees. 5.1-5.4 provide an effective starting point for the formulation of a set of nonlinear state equations. For such models, the system constraints represented by a set of compatibility and continuity equations are valid. Thus, the procedure of forming a normal tree and identifying the independent variables and state variables is unchanged from the method described for linear system models, as are the procedures for generating the compatibility and continuity equations. With models containing nonlinear elements the algebraic steps in the subsequent elimination of secondary variables are not always straightforward and may not always be accomplished with simple analytical techniques. However, for many nonlinear systems containing pure elements, the methods developed for linear system models may be used with some modification to derive a set of nonlinear state equations. The formulation of nonlinear state equations is illustrated in the following section, where a set of nonlinear state equations is derived in the general form of Eqs. (5.2), that is, i
= f(x, u, t)
Sec. 5.6
Nonlinear Systems
153
where the derivative of each state is related by a nonlinear function to the system state variables and inputs. Some nonlinear systems models may not be written explicitly as a set of nonlinear state equations in the standard form of Eqs. (5.1) because it may not be possible to solve directly for the derivative of each state variable independently.
5.6.2 Examples of Nonlinear System Model Formulation To illus trate the equation derivation procedures for systems containing nonlinear elements, state equations are derived for three representative systems in the following examples. Each example contains one or more nonlinear dissipative or energy storage elements. Example 5.11 An automobile, with mass m, traveling on a flat, straight section of road is shown in Fig. 5.20. Derive a model for the forward speed Vm of the car in response to a time-varying propulsive force F,(t) generated by the engine. The model is restricted to the moderate- to high-speed range where the two primary resistance forces (in the absence of braking) are road resistance F, and aerodynamic drag Fa , approximated as (i)
(ii) Solution The road resistance is represented as a constant resistance force Fo. and the aero· dynamic drag Fa is represented as a resistive force which increases with the square of vehicle velocity with the constant ca dependent on the automobile drag coefficient.
F,(r)'fJ!Fd~ F, m\
\
-1----F,
' (b) Linear graph
(a) Nonlinear mechanical system Figure 5 .20:
(c) Normal tree
Linear graph model of automobile with nonlinear drag forces.
A system graph model for the car is shown in Fig. 5.20b, in which the car mass m is represented as an ideal element, the propulsive force is represented as an ideal force source F,(r), the road resistance is represented as an ideal force source Fo, and the aerodynamic drag is represented as a nonlinear damper element. The system contains one independent energy storage element as shown by the normal tree. From the normal tree (Fig. 5.20c), Primary variables: Vm, F,, F, , Fa Secondary variables: Fm . v, , v,, va System order: I State variable: Vm The elemental equations for the two passive elements are
dvm I = - Fm
(iii)
Fa= cav~
(iv)
dr
m
State Equation Formulation
154
Chap. 5
The nonnal tree generates one continuity equation: (v)
and one compatibility equation: (vi) Substitution to eliminate the secondary variables from the elemental equations yields (vii) (viii)
Combining these two equations generates the system nonlinear state equation: 1 ( -dvm dt = m F.P -
2)
(ix)
Fo- cdvm
Example 5.12 Part of a sensitive torque-measuring instrument, shown in Fig. 5.21a, consists of a pendulum of length l with a proof mass m mounted in support bearings in a gravity field g .
-
, ' /'
n I
I
T1 (t)
T,(t)
~~~ I
I
....,, r
~
t
...
\
\
' tB
Jl K J \ \ I I ', \ I I ,\I /
~
(a) Nonlinear pendulum Figure 5.21:
(b) Linear graph
(c) Normal tree
A mechanicaJ torque-measuring instrument based on a pendulum.
The input to the instrument is a time-varying torque T,(t) which acts on the shaft to displace the pendulum by an angle 8. Under static input conditions where Ts(t) = T0 , the gravitational restoring torque is a function of the angular displacement: (i)
To= mglsin8
This is a algebraic relationship between a torque (through-variable) and a displacement (integrated across-variable) and represents the constitutive relationship of a nonlinear torsional spring. The elemental equation for the equivalent spring K is found by differentiating Eq. (i): dTK
-
dt
df)
= (mglcos8)dt
(ii)
Sec. 5.6
155
Nonlinear Systems
The support bearings for the shaft have a resistive torque T8 proportional to the shaft angular velocity Sl B: Ts = B!ls
(iii)
In addition to the gravitational restoring torque, the pendulum also has a rotational inertia with a point mass m concentrated at a radius I from the center of rotation, and so the moment of inertia is (iv) By considering the inertia, the equivalent spring, the damper, and the input source, a system graph model may be formulated, as shown in Fig. 5.21b, that has the normal tree shown in Fig. 5.21c. From the linear graph and normal tree,
Primary variables: Sl;, Ts, TK, Ts Secondary variables: T;, ns, nK, ns System order: 2 State variables:
nJ, TK
There are three elemental equations: dSl; 1 --=-T; dt J dTK d9 dr (mgl COS 9) dt
=
(v)
= (mgl COS 9) QK
(vi)
(vii)
Ts = B!ls
The normal tree generates a single continuity equation:
TK = - T; - TB
+ 1's
(viii)
and two compatibility equations: (ix) (x)
Elimination of the secondary variables yields
-dQJ = -J1 (Ts dt dTK
B!l; - TK)
dr = (mgl cos 9) nJ
(xi) (xii)
State Equation Formulation
156
Chap. 5
The equations may be expressed directly in terms of the state variables alone by substituting directly for 8 from the constitutive equation [Eq. (i)}:
9
= sin-• (~) mgl
(xiii)
and Eq. (xii) may be written
dJ,K = mgl cos [sin- 1 (;;l)] Q 1
(xiv)
Equations (xi) and (xiv) represent a pair of state equations for the nonlinear system, while
Eq. (xiii) allows the computation of 8. the system output. The nonlinearity in this system arises from the trigonometric relationship of the pendulum restoring torque to its displacement. While the basic derivation method used is similar to that for linear systems, additional manipulation is required to eliminate the secondary variables and to form the state equations. Example 5.13 The fluid distribution system shown in Fig. 5.22 consists of a ftow source Qs (t) which feeds a storage tank with nonvertical walls. The output from the tank is distributed into a fluid network consisting of a short pipe discharging through an orifice and a long pipe discharging through another orifice. The fluid flow through an orifice obeys a quadratic relationship:
Q = CoJI~PI sgn (~P)
(i)
where Q is the flow through the orifice, ~ P is the pressure drop across the orifice, and Co is an orifice coefficient that is dependent on the geometry of the orifice. The signum function, sgn (),is used to indicate that the flow changes sign when the sign of ~p changes. The tank is shaped like the frustum of a cone and therefore has a volume that is a nonlinear function of the height of the fluid in the tank. From the tank geometry shown in Fig. 5.22, the volume is
V=
1h
1rr
2
dh
=
1h
1r (r1
+ Kch) 2 dh
= foh 1r (rr + 2r1Kch + K~h 2 ) dh =
1r
(ii)
(r~h + r 1Kch 2 + K~h 3 /3)
In an open tank in a gravity field, the pressure at the base is directly related to the height of the fluid:
Pc
= pgh
(iii)
so that the following constitutive relationship may be written
V
1rr~ p,
=Pi c +
1r K~ pl
1rr1Kc pl (pg)2 c
+ 3(pg)3
Kn
Kn
2
= KroPc + TPc
·
3
+ 3Pc
c
(iv) (v)
=
where Kro 1rrfjpg, Kr1 2Hr 1Kcf(pg) 2, and Kn HK'f:j(pg) 3 • The tank has the constitutive relationship of a pure nonlinear fluid capacitance.
=
=
Sec. 5.6
Nonlinear Systems
157
Long pipe/
Orifice
(a) Nonlinear fluid system I
(b) Linear graph Figure 5.22:
(c) Normal tree
Fluid distribution system with nonlinear elements.
The system graph model, including the nonlinear capacitance, the two nonlinear resistances of the orifices, and a fiuid inertance I of the long fiuid line (assuming that the pipe resistance is small compared to the orifice resistance), is shown in Fig. 5.22b. From this graph and the normal tree shown in Fig. 5.22c, the system model includes the following: Primary variables: Pc, PR2 • Q.r. QJ, QR 1 Secondary variables: Qc. QR2 , Ps, P1, PR 1 System order: 2 State variables: Pc. Q1 The system has four elemental equations. For the fiuid inertance dQ1 1 --=-PI
dt
I
(vi)
For the nonlinear fiuid capacitance the elemental equation must be found by differentiating the constitutive equation (v): (vii) or (viii)
State Equation Formulation
158
Chap.S
For orifice R 1 the elemental equation is (ix)
while for orifice R2 , which has the pressure drop PR2 as its primary variable, the equation may be written (x)
where QR2 IQR2 1 is the absolute square (absquare), which ensures that the pressure drop changes sign when the flow changes direction through an orifice. The two continuity equations are Qc = Q,- QRs QR2 = Ql
(xi) (xii)
and the two compatibility equations are
PR 1 = Pc P1 = Pc- PR2
(xiii)
(xiv)
Elimination of the secondary variables yields (xv)
(xvi) (xvii) (xviii)
and substituting for QRs and PR2 results in two nonlinear state equations: (xix)
(xx)
5.7
LINEARIZATION OF STATE EQUATIONS
A set of nonlinear state equations for a system may be linearized directly to obtain a set of linear state equations that approximate the system response over a limited range of operation. In the process of linearization a new set of variables is defined that describe the response about a system equilibrium point. The method is useful for systems containing
Sec. 5.7
Linearization of State Equations
159
nonlinear elements where the excursion of the system variables about the equilibrium point is small. Because the response of a linearized model only approximates that of the nonlinear system, care must be taken in interpreting any analyses, and judgment must be used in defining the applicable range of operation. To illustrate the linearization process, it is convenient to initially consider a first-order nonlinear system with a single state equation
x=
(5.32)
f(x, u)
Assume that with a known constant input uo, the system ultimately reaches a steady response xo, after which time the derivative x is identically zero. Any such equilibrium value for the state variable must therefore satisfy the algebraic equation f(xo, uo)
=0
(5.33)
In general more than one value or no values of x may satisfy a nonlinear equilibrium equation, and the solution of Eq. (5.33) may prove to be a difficult task. However, for many
nonlinear systems containing only ideal and pure elements an equilibrium condition can be found. The linearization of I (x, u) may be performed by expanding the function as a Taylor series in two variables x and u about the equilibrium condition:
aj(x, u) a
l(x, u) = l(xo, Uo) + .
X
I X=Xo
(X - Xo)
U=Uo
+ al(x, aU u) IX=Xo (U -
uo)
+ ·· ·
(5.34)
U=Uo
By definition, l
=
aI (x' u) I ax
X*
X=Xo
u=uo
u) + af (x' au
I
U*
(5.35)
X=Xo
u=uo
Equation (5.35) is a linear first-order state equation with constant coefficients which may be written as a standard state equation
x* =ax* +bu* where a= a1(x, u)
ax
I X=Xo
U=Uo
and
b = a1(x, u) au
(5.36)
I
(5.37)
X=Xo
O=Uo
The procedure for linearizing a higher-order system about an equilibrium point is analogous to that described for a first-order system. The set of n state equations with r inputs (5.38) :X= f(x, u)
160
State Equation Fonnulation
Chap. 5
is first solved for an equilibrium state xo with the given input uo by setting the derivative of the state vector to zero and solving the resulting set of nonlinear algebraic equations
f(xo, no)= 0
(5.39)
Each of the n state equations (5.40)
may then be linearized by generating a Taylor series expansion in the n + r variables about the operating point and ignoring all but the linear terms. A set of incremental variables x; = x; - (xo); and ui = u1 - (uo); is defined. Because there are n + r such variables, n + r partial derivatives are required in each equation. The result is
(5.41)
which is a linear state equation of the form (5.42)
The collection of all such equations can be written in matrix form:
x• = Ax• +Bn•
(5.43)
where the elements of the matrices A and B are a;j
= a/;(x. u) I axj
X=Xo U=Uo
.
and
.. _ aj;(x, u) bI J auj
I
(5.44)
X=Xo U=Uo
Matrices containing partial derivatives in the form of A and B are known as Jacobian matrices. Example 5.14 In Example 5. I J a nonlinear state equation was derived for a vehicle of ma'is m traveling at moderate speed Vm with propulsive force Fp(t). The model. including the effects of aerodynamic drag (Fd = cdv!) and constant road resistance (Fr)• generated a single nonlinear state equation
Derive a linearized state equation to describe the dynamics of the vehicle for small deviations in speed from a nominal operating speed Vm = vo.
Solution First the equilibrium condition is found by solving the equation (i)
Chap. 5
Problems
161
and at equilibrium (ii)
The linearized equations may be derived in terms of incremental variables
.• Vm
v:, F;, and F,*:
aF I . aF 1 . aF 1 . = avm 0 vm + BFp 0 Fp + aF, 0 F,
and when each tenn is evaluated and the substitution ( Vm )o
• = [ -2cdvo] v. m -m- vm• + [ -m1 ] F*p
(iii)
= v0 is made,
+ [ -m1 ]
F*
(iv)
r
When it is noted that F,* is zero because F, is constant, the linearized equation may be written
B • IF'* v.•m = --v m m +m P
(v)
where B = 2cdvo is the equivalent damper coefficient. In interpreting and using this equation, is the deviation from the equilibrium speed and that the input it is noted that the solution F;(t) is the deviation from the equilibrium propuJsive force.
v:
PROBLEMS
5.1. A metal block of mass m sits on a tabJe. Vibrations in the floor cause the table to move horizontally with a velocity V (t). A thin film of lubricant allows the block to slide on the table with an effective viscous frictional coefficient B. as shown in Fig. 5.23.
L I
Input V(t)
vm
Metal block /
m
r
Lubricant B
sssss;ssss/ Table
Figure 5.23: A mass element sliding on a table.
(a) Draw the system linear graph and normal tree. (b) Derive a state equation for the system. (c) Derive an output equation for the force accelerating the mass.
I
State Equation Formulation
162
Chap.5
5.2. For each system shown in Fig. 5.24: (a) Draw the linear graph. (b) Determine the system order and identify a set of state variables.
(c) Derive the state equations and express them in matrix form. (d) Write the output equation for the velocity of the mass Vm.
(a)
(b)
Figure 5.24:
Two mechanical systems.
5.3. For the friction measurement system in Problem 4.2. with the assumption that all elements are linear, derive a state equation and an output equation for the frictional force between the sliding element and the inclined plane. 5.4. A one-quarter car model is useful for studying the effects of the road surface on the vertical motion of a car body. The model includes the tire stiffness as well as the suspension damping and stiffness, and supports a mass of one quarter of that of the car, as shown in Fig. 5.25. The roadway is modeled as providing a vertical velocity input to the tire as the car travels along the road. {Because the gravitational force is constant, it may be omitted when modeling incremental motions about an equi1ibrium point.)
Body velocity
Axle velocity
l l
114 car body mass Suspension stiffness/damping Wheel/axle mass Tire stiffness
....__ _.,..,_ forward velocity Figure 5.25:
(a) (b) {c) {d)
A quaner-car model of an automobile suspension.
Construct the system linear graph. Identify the system state variables. Derive the state equations and express them in matrix form. Derive output equations for the total force acting on the car body mass from the suspension spring and damper.
Chap. 5
163
Problems
5.5. Seismometers are used to measure the motion of the earth's surface. A schematic drawing of a simple seismometer is shown in Fig. 5.26. A proof mass is suspended in springs and slides horizontally on a viscous friction material. The relative displacement of the proof mass with respect to the instrument case is used as a measure of the severity of an earthquake. Input velocity
I
B
Figure 5.26: A seismometer. (a) Construct a linear graph model of the system. (b) How many independent energy storage elements are there? What are the system state variables?
(c) Derive the system state equations and express them in matrix form. (d) Derive an output equation for the instrument reading, that is, the relative displacement of the proof mass with respect to the instrument case. 5.6. A tugboat tows a heavy barge at the end of a long elastic cable in smooth water. The tug's propellers generate a controlled propulsive force; hydrodynamic drags may be represented by linear viscous drag effects. Generate a third-order linear graph model, a set of state equations in matrix form, and an output equation that describes the dynamics of the velocity of the barge. 5.7. Generate one or more state equations to describe the dynamics of the wind-driven electric generator described in Problem 4.7. 5.8. For each of the rotational systems shown in Fig. 5.27:
(b)
(a)
Agure 5.27: Two rotational systems.
(a) Draw the linear graph. (b) Derive the state equations.
(c) Write the output equation for the angular velocity of the rotary inertia J.
164
State Equation Fonnulation
Chap.S
5.9. A simple tachometer is shown in Fig. 5.28. The rotation of the input shaft is coupled to the indicator, with inertia J, through a rotary drag cup B1. The indicator is supported in bearings with viscous friction 8 2 , and is connected to the instrument housing through a torsional spring K.
Input shaft
Bt Drag cup Figure 5.28:
A tachometer mechanism.
(a) Draw a linear graph and normal tree for this system.
(b) Derive a set of state equations for this system. (c) Derive an output equation for the indicated rotational speed, that is, the angular displacement of the inertia J. 5.10. In a two-color printing press, two pairs of large printing drums are rotated from a single drive shaft as shown in Fig. 5.29. Each drum pair has total rotary inertia J. and is supported in bearings with a linear rotational drag coefficient B. The drive-shaft sections each have a torsional stiffness K. The system is driven by a motor that may be considered as an angular velocity source. Derive a set of state equations for this system.
Motor
n.
J,B
Figura 5.29:
J,B Longsbaft K
Long shaft K
A rotary drive system.
5.11. Derive a set of state equations for each of the electrical networks in Problem 4.9. Write an output equation for the voltage across capacitor C2 • 5 ••2. L-C circuits are commonly used as tuning circuits in radio receivers. In Fig. 5.30 the remote radio transmitter, the propagation path, and the antenna are modeled as a Thevenin source with source resistance R,. The circuits consist of an inductor L (with a small but finite resistance RL) and a variable capacitor C connected in series or parallel as shown. The output voltage v0 is amplified and demodulated into an audio signal. For the series L-C circuit in Fig. 5.30a. and the parallel L-C circuit in Fig. 5.30b: (a) Draw the linear graph and normal tree for the tuning circuit. (b) Derive a set of state equations for the circuit (c) Develop an output equation for the voltage V0 (t).
Chap. 5
Problems
165
+
+ V,(t)
Vs(t)
(a)
c
(b)
Figure 5.30:
Series and parallel L-C tuning circuits.
5.13. An electric "bridged-T., filter is shown in Fig. 5.31. The output voltage is the voltage across R2 • Draw a system linear graph and derive a set of state equations. Derive an output equation for the output voltage.
Figure 5.31:
An electrical filter network.
5.14. An electric circuit containing three inductive devices is shown in Fig. 5.32.
Figure 5.32:
An inductive network.
(a) Construct the system linear graph and normal tree. (b) Identify the system primary variables and state variables. What is the order of this system? Are there any dependent energy storage elements in the system? (c) Derive a set of state equations. (Note that you may have to solve a pair of simultaneous equations to generate state equations in the standard form.) (d) Derive an output equation for the voltage across resistor R2 •
166
State Equation Formulation
Chap. 5
5.15. A current source /1 (I) drives a parallel pair of electromechanical machines, each of which may be modeled as a series connection of resistive and inductive elements, as shown in Fig. 5.33.
Figure 5.33: Two inductive electrical machines connected in parallel.
(a) Construct the system linear graph. (b} Identify the system order.
(c) Derive a set of state equations. (d) Explain why this system's state equations are not directly in the form X. =
Ax+ Bu.
5.16. For each of the two fluid systems shown in Fig. 5.34:
(a)
(b)
Figure 5.34:
Two fluid systems.
(a) Construct the system linear graph. (b) Identify the state variables. (c) Derive the state equations. (d) Write the output equations. 5.17. Consider the fluid apparatus used to study the effect of an arterial aneurism in Fig. 4.32. (a) Derive a set of state equations for the system as shown. (b) If the expandable rubber section is removed from the midpoint of the tube and placed at the pump outlet, how is the linear graph altered'? How many state variables are required to represent the system? Derive a new set of state equations.
Chap. 5
167
Problems
5.18. A chemical plant uses a pair of open tanks to store chemicals prior to use, as shown in Fig. 5.35. Each tank is fed by a positive displacement pump modeled as a flow source. The chemicals in the tanks are combined in a mixing valve with a check valve at each of its inlets to prevent back flow. When the plant is operating normally these check valves are open and may be modeled as a linear ftuid resistance that is large compared to the pipe resistances. The pipe fluid inertances cannot be neglected. The flow of the mixed chemicals is controlled by a valve at the outlet, which may be modeled as a linear resistance.
Check valves
r"
--~~== Outlet valve
. . hamber / Mrunge
Figure 5.35:
i
Qout
An industrial chemical mixing system.
(a) Construct a linear graph model of the system.
(
(b) Derive a set of state equations in matrix form.
(c) Derive an output equation for the output flow rate. 5.19. A fluid system consists of a tank. fed from a flow source Qs(t), that discharges through a valve R at the end of a vertical pipe of height h as shown in Fig. 5.36. Draw a linear graph for the system, and explain how you have accounted for the pressure increase pgh at the base of the pipe. Derive a state equation for the system.
Tank
r h
L Figure 5.36:
Valve
A fluid system with a vertical pipe section.
168
State Equation Formulation
Chap. 5
5.20. Consider the thermal model of the home heating system described in Problem 4.14. Consider the system to have two inputs: the outside ambient temperature and the heat generated by the furnace. (a) Construct the system linear graph and identify the state variables. (b) Derive the state equations. ' 5.2L It is common to mount machines and rotating equipment on shock isolation pads to reduce the transmission of time varying forces to the ground. In the system shown in Fig. 5.37 a machine, represented as a mass m, has a vibrational force acting at its center of mass in addition to the gravitational force. The pad that supports the machine is made of a damping material with nonlinear stiffness given by the constitutive equation F cx 2 , where c = 25 N/m 2 • The material also has damping properties that are approximately linear, that is, the damping force is proportional to the velocity across the pad.
=
Machine m
&
+
F(t)
Nonlinear
_ _Ef~i~·ii!;['1:1J "'·.~·t:~~~"iij§:ii::~~~·-dam=ping pad Figure 5.37: A vibrating machine mounted on a resilient pad. (a) Construct a linear graph for the system and identify the state variables. (b) Derive a set of nonlinear state equations for the system. (Hint: it is useful to differentiate the constitutive equation to obtain an elemental equation in terms of the power variables.) (c) If the mass of the machine tool is 1000 kg, and the vibrational force has a zero average value, what is the nominal equilibrium condition for the system? (d) Derive a set of linearized state equations for small excursions from the nominal equilibrium condition.
REFERENCES [1] Kalman, R. E., "On the General Theory of Control Systems," Proceedings of the First IFAC Congress, 481-493, Butterworth, London, 1960. [2] Schultz, D. G., and Mel sa, J. L., State Functions and Unear Control Systems, McGraw-Hill, New York, 1967. [3] Timothy, L. K., and Bona, B. E., State Space Analysis, McGraw-Hill, New York. 1969. [4] Koenig, H. E., Tokad, Y., Kesavan, H. K., and Hedges, H. G., Analysis of Discrete Physical Systems, McGraw-Hill, New York, 1967. [5] Blackwell, W. A., Mathematical Modeling of Physical Networks, Macmillan, New York, 1967. [6] Chan, S. P., Chan, S. Y., and Chan, S. G., Analysis of Linear Networks and Systems, AddisonWesley, Reading, MA. 1972. [7] Shearer, J. L., Murphy, A. T.• and Richardson, H. H., Introduction to System Dynamics, AddisonWesley, Reading, MA, 1967. [8] Durfee, W. K., Wall, M. B., Rowell, D., and Abott, F. K., "Interactive Software for Dynamic System Modeling Using Linear Graphs," IEEE Control Systems Magazine, 11(4), 60-66, June 1991.
6
Energy-Transducing System Elements
6.1
INTRODUCTION
One-port model elements are used to represent energy storage, dissipation, and sources within a. single energy domain. In many engineering systems energy is transferred from one energy medium to another. For example, in an electric motor electric energy is converted to mechanical rotational energy, while in a pump mechanical energy is converted to fluid energy. The process of energy conversion between domains is known as transduction, and elements that convert the energy are defined to be transducers. Within a single energy domain power may be transmitted from one part of a system to another, for example, a speed reduction gear in a rotational system. In this chapter we define two types of ideal energy transduction elements which can be used to represent the process of energy transmission. We also develop methods to derive a set of state equations for these types of systems. A wide range of devices and mechanisms have been developed to transform energy from one medium to another. Figure 6.1 illustrates the transduction between mechanical translation, mechanical rotational, electric, and fluid systems. Energy transduction devices include the following: • Rack and pinions, ball screws, and linkages for transduction between mechanical translation and mechanical rotational systems • Motors and generators for transformation between electric and mechanical rotational systems • Electromagnetic, magnetostrictive, and piezoelectric devices for transduction between electric and mechanical translational systems • Magnetohydrodynamic and electrohydrodynamic energy transfer for transductions between electric and fluid systems • Pumps, compressors, and turbines for transduction between fluid and mechanical rotational systems 169
170
Energy-Transducing System Elements
Chap. 6
Figure 6.1: Transduction between different energy domains.
• Ram and piston-cylinder systems for transduction between fluid and mechanical translational systems. Several of these transducers are illustrated in Fig. 6.2. Energy may also be transmitted within a single energy domain through transducers such as the following: • Levers and linkages for transmission between one part of a mechanical rotational system and another
• Gear trains for transmission between one part of a mechanical rotational system and another • Electric transformers for transmission between one part of an electric system and another • Fluid transformers for transmission between one part of a fluid system and another. Several of these transducers are illustrated in Fig. 6.3. The basic energy transduction processes occurring in these types of devices can be represented by a two-port element, as shown in Fig. 6.4, in which energy is transferred from one port to another. Each port has a through- and an across-variable defined in its own energy domain. Power may flow into either port. The ideal two-port transducer is a lossless element; for many physical systems it is necessary to formulate a model that consists of an ideal two-port transducer coupled with one or more one-port elements to account for any energy storage and dissipation that occurs in the real transducer. In the following sections general ideaJ energy transduction processes are defined, yielding two ideal two-port transducers foJiowing the development given by H. M. Paynter [1]. Other two-port model elements that represent dependent sources and energy sources and dissipation elements have also been defined [2, 6].
Sec. 6.1
171
Introduction
V=rfi F=-j_T r
(a) Rack and pinion
(b) Slider-crJnk
E= Kv i= -
iF
(c) Rotary positive displacement pump
(d) Moving-coil loudspeaker
(e) A uid piston-cylinder
(f) Electric motor-generator
Figure 6.2:
Examples of systems and devices using two-port transducers between different energy domains.
Energy-Transducing System Elements
172
/
Ft =
~
F2
v1 =-2v2
(b) Gear train
(a) Block and tackle
Vt
=-l
v2
Ft =LF2
(d) Belt drive
(c) Mechanical lever
For ac inputs
Vt
1 = Nv2
i 1 = -Ni2 (e) Electric transformer
Figure 6.3:
(f) Fluid transformer
Examples of two-port transducers within a single energy domain.
Chap. 6
Sec. 6.2
Ideal Energy Transduction
173
Two-port transducer
Figure 6.4:
6.2
1\vo-port element representation of an energy transducer.
IDEAL ENERGY TRANSDUCTION
We define an ideal energy transduction process as one in which the transduction is • Lossless-power is transmitted without loss through the transducer with no energy storage or dissipation associated with the transduction process. • Static-the relationships between power variables are algebraic and independent of time. There are no dynamics associated with the transduction process. • Linear-the relationships between power variables are represented by constant coefficients and are linear. A two-port transducing element as illustrated in Fig. 6.4 identifies a power flow P 1 into port 1, defined in terms of a generalized through-variable f1 and an across-variable v 1: (6.1)
and a power flow P2 into port 2, also defined in terms of a pair of generalized variables f2 and v2: (6.2)
The condition that the two-port transduction process is lossless requires that the net instantaneous power sums to zero for all time t: (6.3)
where it is noted that power flow is defined to be positive into both ports. The most general linear relationship between the two pairs of across- and throughvariables for the two-port transducer may be written in the following matrix form: (6.4)
where Ctt, c12, c21, and c22 are constants that depend on the particular transducer. With the specification of the constants in this form, a unique relationship is established between the power variables. When the additional condition is imposed that the transduction be lossless as well as linear and static, Eqs. (6.3) and (6.4) may be combined to yield a single equation in terms of the variables f2 and v2 (or, equivalently, in terms of f1 and Vt) and the four transducer parameters: (6.5)
174
Chap.6
Energy-Transducing System Elements
[If the condition were derived in tenns of f1 and VJ, it would be of the same fonn as Eq. (6.5).] Only two nontrivial solutions exist in which Eq. (6.5) is satisfied for arbitrary values of f 2 and v 2 and which correspond to power transfer between ports 1 and 2. By appropriate selection of the constants c 11 , c 12 , c21, and c22 these solutions yield two possible ideal two-port transducers:
Transforming Transducer: CJ2
= C2J = 0
and
c22 = -1/cu
(6.6)
and
C2J
= -1/Ct2
(6.7)
Gyrating Transducer: C]J
= C22 = 0
These two general solutions are the only nontrivial solutions with power transfer and give two distinct forms of ideal two-port transduction. The ideal two-port transformer relationship, defined by the conditions in Eq. (6.6), may be written by substituting c 11 = TF: (6.8) where TF is defined to be the transformer ratio. Equation (6.8) states that in a transformer the across-variable v 1 is related by a constant TF to the across-variable v2 on the other side and through-variable f 1 is related by the negative reciprocal of the same constant ( -1 /TF) to through-variable f2:
v 1 = TFv2 ft
(6.9)
=-(~)t2
(6.10)
This transduction process is called a transfonner because it relates across-variables to acrossvariables and through-variables to through-variables at the two ports. The symbol for the ideal transfonner is shown in Fig. 6.5.
..
fl
:~·
lt l-
--
J
(a) Transformer Figure 6.5:
.
f2
fl
~:
f2
+
+
(b) Gyrator
Symbolic representation of transforming and gyrating transducers.
Sec. 6.2
Ideal Energy Transduction
175
Similarly, the ideal two-port gyrating transducer, described by the conditions in Eq. (6.7}, may be written by substituting c12 = GY:
[ 0 [ VJ] f1 = -1/GY
GY] 0
[v2] f2
(6.11)
where GY is defined to be the gyrator modulus. Equation (6.11) states that the acrossvariable VJ at port 1 is related by a constant GY to the through-variable f 2at port 2 and the through-variable f1 is related by the negative reciprocal constant -1/GY to the acrossvariable v2: Vt = GYf2
(6.12)
f1 =- (a~)v2
(6.13)
The transduction process is termed gyration because it relates across-variables to throughvariables, and vice versa. The two-port symbol for the gyrator is shown in Fig. 6.5. 6.2.1 Transformer Models
Many engineering transduction devices and mechanisms are transformers. In this section we examine ideal models of a gear train, a rack-and-pinion drive (commonly employed in automotive steering systems), and a permanent-magnet electric motor-generator (commonly used in control systems). The Gear Train A pair of mechanical gears used to change the torque and speed relationship between two rotational power shafts is illustrated in Fig. 6.6.
Figure 6.6: A gear train as a transforming transducer.
If gear 1 has n 1 teeth at an effective radius r1 and meshes with gear 2 which has n2 teeth at a radius r2 , the gear ratio N for the two gears is defined as the ratio of the number of teeth on the two gears or, equivalently, the ratio of the two radii: (6.14)
176
Energy-Transducing System Elements
Chap. 6
The torque and angular velocity sign convention for each gear is defined in Fig. 6.6, with the assumption that power flow is defined as positive into each power port. For rotation of the two gears without slippage, the linear velocity v, tangent to the pitch radius at the meshing teeth must be identical for each gear. (6.15) Therefore, the angular velocity of the two shafts must be related: (6.16) where the sign conventions are chosen according to the definitions of positive angular velocity for each gear. Furthermore, at equilibrium the linear force F1 tangent to the pitch radius on the meshing teeth of gear 1 must be equal and opposite to the linear force F2 tangent to the pitch radius on gear 2: (6.17)
consistent with the definition of torques identified in Fig. 6.6, or (6.18)
Equations (6.16) and (6.18) define a transformer relationship which may be written in the matrix form ofEq. (6.8) as (6.19) where it is noted that to establish consistency with the torque and angular velocity sign conventions in Fig. 6.6, the transformer modulus TF is -1 1N.
A Rack-and-Pinion Drive Rack-and-pinion drive systems are used to convert rotary motion to translational motion, and vice versa, as shown in Fig. 6.7. The rotary input at the pinion shaft is expressed in terms of its angular velocity n and the applied torque T, while the translational power associated with the rack is expressed in terms of its linear velocity v and force F. The analysis of the system as an ideal transducer assumes that both elements are massless and that no frictional losses occur at the contact between the teeth. With the further assumption that no slippage occurs between the rack and pinion, the linear velocity of the rack is related to the angular velocity of the pinion directly by the pinion radius r, that is, v=rrl
(6.20)
Sec. 6.2
177
Ideal Energy Transduction
For equilibrium, the force F on the rack must be related to the torque on the pinion shaft T at the meshing teeth by the relationship (6.21) where a negative force is required to balance the positive torque as shown in Fig. 6.7. Equations (6.20) and (6.21) define the rack and pinion as a transformer because of the direct relationship between the across-variables v and n and between the through-variables F and T at the two ports. In this case the transformer ratio TF is simply the pinion radius r and the transduction equations are (6.22) The rack and pinion can be used either to transform rotary motion to translational motion if the shaft is driven from an external source or to transform translational motion to rotary motion if the rack is connected to a translational source.
Electromagnetic Transducers Electromagnetic transducing elements include electric motors, electric meters, solenoids, microphones, and phonograph pickups. Their operation depends on two complementary laws: ( 1) the Lorentz law, which states that an electric charge moving in a magnetic field experiences a force, and (2) Faraday's law, which states that an electric voltage is induced in a coil of wire that moves in a magnetic field [4]. Figure 6.8 shows a particle with electric charge q moving with vector velocity v along a wire in a magnetic field of flux density B. The particle experiences a force ~F given by the vector cross-product ~F
= q (v x
B)
(6.23)
which states that the direction of the force is at right angles to the direction of the motion v and the magnetic flux B and has a magnitude proportional to the component of the vector v that is perpendicular to B, that is, to Ivi sin 8 in Fig. 6.8. If the wire has length t. and there are N such discrete charged particles within the wire, the total transverse force is F
= Nq (v x B) =(I
X
B) t.
(6.24) (6.25)
178
Energy-Transducing System Elements
Chap. 6
Electric conductor
Figure 6.8: Electromagnetic forces on a moving charged panicle.
where the the vector current I = N qvI i. is the total charge passing through any cross section of the wire in unit time. If a coil is constructed by winding the wire into a circular or rectangular configuration, the total electromagnetic force on the coil is equal to the sum of the forces acting on each elemental section of the coil. Equation (6.23) also implies that if a mobile charge within a conductor is transported physically in a magnetic field it experiences a force that tends to displace it along the conductor. The resulting migration of the charged particles induces a voltage difference proportional to the velocity between the two ends of the wire. The induced voltage V; in a wire of length i. traveling with velocity v peq>endicular to a magnetic field with flux B is equal to
V; = i.Bv
(6.26)
If the conductor is wound into a coil configuration, the total voltage induced by motion is found by integrating the elemental potential differences along all sections of the coil. Motion-induced voltages sum to zero in a coil subjected to a translational motion in a uniform magnetic field but sum to a finite value if the coil is rotated in the same field. Equations (6.25) and (6.26) indicate that there is a direct relationship between force (or torque) and current and a similar relationship between velocity (or angular velocity) and voltage. Electromagnetic transducers as a class therefore may be represented as transformers. The particular transformer ratio for any device must be derived from the system structure and the magnetic flux geometry.
The Permanent-Magnet De Electric Motor A permanent-magnet direct current (de) motor-generator transforms energy between the electric and mechanical rotational energy domains. Its basic structure is illustrated in Fig. 6.9. In applications where the transduction is primarily electric to mechanical rotational energy, the transducer is designated a motor, while in applications where the transduction is from mechanical to electric energy, the transducer is usually designated a generator. In both cases the electromechanical coupling determines the motor-generator characteristics. The motor-generator consists of a rotor containing an electric coil that rotates in the magnetic field produced by a pair of permanent magnets. The electromechanical coupling constant may be derived by assuming that the magnets generate a radial magnetic flux with constant flux density B which is assumed to be uniform around the circumference of the rotor. If the radius of the rotor is r, its length is i and it is wound with an electric coi1 with N turns carrying a current i, a force F Bii perpendicular to the local magnetic field is produced on each length of wire. (No force is exerted on the ends of the coil.) Each of
=
Sec. 6.2
Ideal Energy Transduction
179
+
Commutator/ ,.....__,_............ brushes
Figure 6.9:
The de permanent-magnet motor-generator.
the N turns in the coil has two sides interacting with the field, so the total torque exerted on the rotor is its radius multiplied by the number of wire lengths 2N multiplied by the magnetic force on each wire, or T
= -2rNBli
(6.27)
Additionally, as the rotor spins with angular velocity Q, each wire section passes through the magnetic field with a tangential velocity v = rs-2, generating an induced voltage between the two ends of each wire. The total voltage v induced in all wire sections is equal to the total number of wire lengths (2N) multiplied by the voltage induced in each wire traveling at the rotational velocity: v = 2NBlrfJ.
(6.28)
In summary the relationship for the transducer may be written (6.29) where the transformer constant is
TF= 2NBlr
(6.30)
The sign convention for the motor-generator is consistent with the idea that power is defined as positive into the transducer at both ports, and the relationship in Eq. (6.30) represents the energy transduction for both motor and generator applications. In practice, many motor manufacturers adopt a sign convention with electric power into the transducer as positive and mechanical power out as positive and express the transduction relationships in terms of two constants as
T* = K,i V=Kvfl
(6.31) (6.32)
180
Energy-Transducing System Elements
Chap.6
where K1 is the motor torque constant and Kv is the motor back-emf voltage constant. If the manufacturer's sign convention is adopted with T* = - T, these two constants may be expressed as (6.33) and by comparing Eqs. (6.33) and (6.29), the standard motor constants are identified as
Kv
= K, = 2NBlr
(6.34)
When a consistent set of units such as the SI system is utilized in specifying Kv and K,. the two constants are numerically equal; however, common practice for manufacturers
is to utilize English units, which are not a consistent set, and thus in many motor and generator specifications the values for Kv and K, are not numerically equal and conversion to a consistent set of units is required in model formulation. 6.2.2 Gyrator Models The Hydraulic Ram A common engineering example of a gyrating transducer is the hydraulic ram, consisting of a cylinder and piston as shown in Fig. 6.1 0, in which conversion occurs between mechanical translational power and fluid power. For the ram illustrated in Fig. 6.1 0, the mechanical force F on the piston is related directly to the fluid pressure P by the piston area A: F=AP
(6.35)
and with the sign convention adopted in the figure, the velocity v of the shaft is related to the fluid volume flow rate Q by the negative reciprocal of the area: 1 A
v=--Q
(6.36)
Equations (6.35) and (6.36) show the linear relationship between an across-variable in one energy domain and a through-variable in the other. The ram therefore acts as a gyrator, with · the gyration constant 1 A
OY=--
(6.37)
In matrix form the hydraulic ram equations are
(6.38)
Multipart Element Models
Sec. 6.3
181
F~r====l
Figure 6.10: The hydraulic ram as a gyrating transducer.
p
The ram is one example of a class of positive displacement fluid-mechanical devices represented by gyrators. Other similar transducers inc1ude gear pumps and hydraulic motors, vane pumps and hydraulic motors, and piston pumps and hydraulic motors.
6.3
MULTIPORT ELEMENT MODELS The linear graph symbols used to represent the ideal transformer and gyrator two-port elements are illustrated in Fig. 6.11. The sign convention adopted for each of the two-port elements is that power flowing into the element at either port is defined to be positive. The graph element implies a direct coupling between the across- and through-variables aSsociated with each branch of the graph as defined by the two-port elemental equations (6.8) and (6.1 1). The two-port elements are inherently four-terminal elements ·and are in general connected to four distinct nodes in a system graph. Thus, a system model containing an electromechanical transducer contains two reference nodes, one mechanical and one electric, as illustrated in Example 6.1. Similarly, in Example 6.2, which illustrates the use of a gyrating transducer to couple the fluid and mechanical domains, the model contains two reference nodes. Systems with two-port transducing elements often generate system graphs containing separate connected graphs because of the multiple energy domains represented. The variables associated with the two separate graphs are related by the transducer equations. Many physical transducing elements cannot be modeled directly with a simple energyconserving two-port element. They have implicit energy dissipation and storage phenomena associated with the transduction, and these must be accounted for by the inclusion of additional lumped-parameter elements in the model. Consider, for example, the transduction between the electric and rotational energy domains in a permanent-magnet de motor-generator. The ideal energy conversion relationships are described by Eq. (6.29). The modeling of a real motor, however, may need to account for the following additional phenomena:
v] 1~\. I
f1
I \
\ I
~2
f2
\
I
\
I
(a) Tran!;fonner
v; 1~\. I
\
I I
I I
\
I
\ I
I
f1
~2
f2
I I
I \ \
I
\
I (b) Gyrator
Figure 6.11: Linear graph representation of two-pon elements.
182
Energy-Transducing System Elements
Chap. 6
• The windings in the motor armature will have finite electric resistance R. The voltage drop v R = i R across this resistance may be significant in a given modeling situation. • The motor windings consist of many turns of wire, usually on a high permeability ferrous core, and will therefore exhibit properties of inductance associated with energy storage in the magnetic field. It may be important to account for the voltage drop VL = Ldi/dt in a given model. • The rotating armature will have a finite moment of inertia J; it may be important to include the kinetic energy storage in a model. • The internal bearings in the motor may have significant frictional losses that need to be described by a viscous damping coefficient B. The two electrical phenomena share the common motor current i, and the voltage drop may be represented by series lumped R and L elements in the electric circuit The energy storage and dissipation in the rotational phenomena may be represented by lumped J and B elements in parallel with the mechanical side of the two-port element The complete model for the de motor is shown in Fig. 6.12a. L
R
(a) Electric motor with armature inductance. resistance, inertia. and friction ~~"iJii?l'~·r::.~Q p
(c) Rack and pinion with inenia and friction effects Figure 6.12: Examples of two-pon energy conversion devices with associated lumped elements to account for internal energy storage and dissipation.
Sec. 6.3
183
Multipart Element Models
The decision whether or not to include these additional elements in a system model must be based on an analysis of the complete system and its expected operating mode. For example, a decision to include the armature inductance L in a model should be based on the estimated significance of the voltage drop vL during the normal operation of the motor. If the motor is expected to act in a mode where the torques and drive current change slowly, it may be acceptable to ignore the inductive effects, but if the same motor is to be used in a "high-performance" dynamic system where the voltage VL is significant, the inductance L may need to be included in the model. Two additional examples of elements that might be included in power conversion devices are shown in Fig. 6.12. In Fig. 6.12b a positive displacement fluid pump is shown with additional elements to account for the inertia J of the shaft and rotor, viscous damping B to account for frictional effects in the bearings and rotating fluid seals, and a fluid leakage resistance R1 to account for the fact that some flow does leak past the seals. Figure 6.12c shows a rack-and-pinion drive with additional elements to account for the mass m and sliding friction B of the translational rack element, and inertia J and rotational damping coefficient B, to account for the rotating pinion and its bearings. Example6.1 A de electric motor is used to drive a turntable in a high-quality audio reproduction system. Because very small variations in the turntable speed can have an audible effect on the sound quality, the variation in turntable speed in response to changes in the input voltage is of interesL Form a system graph model of the electromechanical system shown in Fig. 6.13.
R
:Motor R 1-------------...1
L
(b) Linear graph
(a) System
Figure 6.13: Linear graph model of a electric motor drive with an inertial load.
Solution The construction of the linear graph model begins with the selection of elements. The input to the motor is assumed to be a prescribed voltage and is represented as a voltage source Vs (t). The motor armature (rotor) coil has both inductive energy storage and energy dissipation and is modeled by a series inductance L and resistance R. The electromechanical conversion of energy is represented by an idea] two-port transformer with the electromechanical coupling relating torque T to current im and angular velocity Sl to the motor internal voltage (back emO Vm generated. The two-port transformer relationships are T =-Kim
(i)
1 0=-Vm K
(ii)
184
Energy-Transducing System Elements
Chap.6
and are represented explicitly by the two-port linear graph elemenL Figure 6.13 shows the turntable to be supported by external bearings. We assume that there are significant frictional effects in the internal motor bearings and in the external bearing and that these may be combined to form an effective rotational viscous damping coefficient B. Similarly, we assume that the moments of inertia of the armature and the turntable may be combined to fonn an equivalent inertia J. The construction of the system graph may start with the mechanical system. The inertia and damper share a common angular velocity n and therefore are inserted in parallel between a node representing the turntable angular velocity and the rotational reference node. The rotational side of the two-port transformer element (motor) also has the same angular velocity as the turntable and is inserted in parallel with the inertia and damper. The electrical side of the two-port transfonner is placed with one node at the electric reference node and with the second node representing the internal motor voltage. The motor coil, represented by the inductor and resistor elements, has a common current with the electric branch of the transformer and thus is represented as a series connection. The voltage source acts with respect to ground and is assigned a sign convention to ensure that positive input voltage generates a positive current ftow to the motor. The completed linear graph is drawn in Fig. 6.13b. The linear graph demonstrates that in normal operation the voltage v 1 applied to the ideal transfonner is not the motor terminal voltage Vs(t). The dynamic behavior of the drive system will be affected by the ·resistance and inductance elements.
Example6.2 Fonn a dynamic model of a system consisting of a positive displacement pump which drives a hydraulic ram to move a mass sliding on a surface as represented in Fig. 6.14. The pump is driven from a constant angular velocity source D.r(t). The dynamic response of the mass to variations in the angular velocity D.r(t) is of interesL
(a) System Figure 6.14: Linear graph model of a hydraulic linear actuator system.
Solution The hydraulic part of the system is represented by an angular velocity source driving a transfonner-based pump model with a leakage resistance R1 included to account for internal fluid flow around the seals in the pump. A fluid resistance R1 is included to account for pressure drops in the pipe connecting the pump and hydraulic ram. The hydraulic-mechanical interface is represented by a gyrator with F=AP 1 V=--Q A
(i) (ii}
Sec. 6.3
185
Multipart Element Models
where A is the piston surface area. By convention power is defined as positive into both branches, and thus a positive fluid volume flow Q generates a negative mechanical velocity. The system graph may be constructed by first considering the mechanical system in which the mass is referenced to the mechanical reference node. The mechanical subsystem consists of three elements: a mass m, a spring K, and a damper B, all sharing a common velocity (across-variable) and therefore connected in parallel across the gyrator port. The hydraulic branch of the gyrator (the piston-cylinder) has flow supplied by the pump through the resistance R1 ; therefore, the three hydraulic branches are connected in series. The signs associated with the hydraulic system are selected so that positive pressure with respect to the-hydraulic reference node generates a positive volume flow to the ram. The complete linear graph is shown in Fig. 6.14. The two-port elements divide the system into three sections, each with its own reference node; the system graph is not a single connected graph, but contains three connected graphs, each with its own reference node in its energy domain.
Two-port transducers representing energy transfer within a single energy domain may share a common reference across-variable on each side and effectively be reduced from a fourterminal element to a three-terminal element. In such cases two of the nodes are implicitly joined to form a common reference as shown in Fig. 6.15. A common reference, or equivalent three-terminal representation, is required for two port transducers that represent 1. mechanical translational to mechanical translational energy transfer, such as occurs in a mechanical lever, since both port velocities must be referenced to a common inertial reference frame; 2. mechanical rotational to mechanical rotational energy transfer, such as occurs in a gear train, since both port angular velocities must be referenced to a common frame; and 3. fluid to fluid energy transfer, such as occurs in a fluid transformer, since both port pressures must be referenced to a common constant pressure.
a
b
c
(a) Transfonner
a
b
c
(b) Gyrator
Figure 6.15: Linear graph representation of two-port elements with a common node (VJ = V0 - Vc and V2 = Vb- Vc)•
When a common reference node is shared between the two sides of a two-port element, the two sides fonn a connected region of the overall graph. The formation of a linear graph model incorporating a common node is illustrated in Example 6.3.
Energy-Transducing System Elements
186
Chap. 6
Example6.3 In many engineering applications, de motors are connected to loads through a gear train, as shown in Fig. 6.16, in which a de motor is coupled to an inertial load though a speed-reducing gear train with ratio N . It is desired to form a system model relating the motor voltage to the angular speed of the flywheel. Motor R
L
+
Gear ratio n
(a) System Figure 6.16:
(b) Linear graph
Electric motor-speed reducer drive syste m.
Solution The de motor is represented as described in Example 6.1, using an armature resistance R and an inductance L to account for voltage drops in the coil and a two-port electric to mechanical rotational transformer with coupling constant K to model the electromechanical conversion. The gear train is represented as a rotational transformer with a gear ratio N. The fl ywheel is represented as a rotational inertia J. All the shafts in the system are assumed to be rigid, and two sets of bearings represented by rotational dampers B 1 and B2 are shown in Fig. 6.1 6. The system has an electric reference node and an angular velocity reference node. On the electric side, the voltage source defines the voltage between the reference node and the series connection of the resistance, inductance, and the electric side of the two-port transduction element. The rotational part of the graph contains the inertia J and bearing damper element B2 in parallel with branch 2 of the gear train. Branch 1 of the gear train is in paral lel with bearing damper B1 and branch 2 of the electric motor element. The linear graph model is shown in Fig. 6.16, where the two-port transducer for the electric motor is connected to four distinct nodes and is effectively a four-terminal device, while the two-port element representi ng the gear train is connected effectively as a three-terminal element since two terminals are j oined at a common reference node. The system graph contains two connected graphs because the electromechanical two-port transducer couples two separate energy domains.
Example6.4 A single massless, fri ctionless pulley with radius r is attached to a mechanical system as shown in Fig. 6.17a and is driven through a flexible line of fi xed length L . The two ends of the line are connected to two independent velocity sources V0 (t ) and Vb(r). Derive a linear graph-based model that will describe the system dynamics.
Sec. 6.4
187
State Equation Formulation
Solution The kinematics of the pu11ey drive system are shown in Fig. 6.17a. If the distances of the two ends of the line from a reference point are Xa(t) and xb(t), then
which when differentiated and rearranged gives the velocity of point c as (i)
Because the pu11ey is massless and there are no frictional forces in the bearings, the force in the line FL is continuous. The net force acting on the mechanical system at point cis therefore (ii)
The system linear graph must embody Eqs. (i) and (ii). The linear graph is constructed by realizing that the velocity (across-variable) of point cis the sum of two components, Va/2 and Vb/2. and that the force (through-variable) is twice that ac;sociated with either source, that is, 2F. These facts indicate that a pair of transformer relationships exist between the forces and the velocity components associated with the sources and that experienced by the mechanical system. Figure 6.17b shows how these relationships may be expressed by the use of two transformers, each driven by a velocity source, and with the two branches 2 and 4 connected in series. Note that for drawing convenience the reference node v = 0 has been drawn as three separate nodes; they should an be considered one node.
a
Va(l)~o---~..... 1
b
:
I I I I
I I I
i
Vb(t)~O-----t-_ ____.;::..,........
1 I
:
xb
Xa
~·•.---~------------------------------------~
l· (a) System
Figure 6.17:
6.4
I I I I
Vb(t)l
I I I
._ (b) Linear graph
A mechanical system driven through a floating pulley.
STATE EQUATION FORMULATION The generation of state equations for systems containing two-port transduction elements is similar to the method described in Chap. 5 for systems with one-port elements. The major difference lies in the stepwise procedure for constructing the normal tree because of the four-terminal nature of the two-port elements.
188
Energy-Transducing System Elementc;
Chap. 6
6.4.1 Graph Trees for Systems of Two-Port Transduction Elements
1\vo-port elements are essentially four-terminal elements and in general are connected to four distinct nodes on the system graph. When there is no common reference node between the two sides of a two-port element, the system graph is effectively partitioned into two distinct connected graphs, each with a separate reference node. When a system graph with a total of N nodes and B branches is divided into Nd separate connected linear graphs by two-port elements, the overall system tree consists of Nd section trees. When the ith such section contains N; nodes, as defined in Chap. 5, the tree for that section contains N; - I branches. The total number of branches Br in any tree of the system graph is then NJ
Br
= L (N; -
1)
=N -
Nd
(6.39)
+ Nd
(6.40)
1=1
and the number of links B L in any system tree is BL = B - Br = B - N
For a system graph containing SA across-variable sources and Sr through-variable sources, and containing Nd distinct connected graphs, there is a total of B - SA - Sr passive branches, each with an elemental equation. The B - SA - Sr constraint equations required to solve the system may be found from B L - Sr = B- N + Nd - Sr compatibility equations formed by replacing the passive links in the tree and Br - SA = N - Nd - SA continuity equations formed by creating contours that cut a single tree branch. 6.4.2 Specification of Causality for Two-Port Elements
The elemental equations for transformers and gyrators impose causality constraints across the two-port element and generate a pair of rules that specify how the branches of a twoport element may be entered into a tree. In Chap. 5 we defined a primary and a secondary variable associated with each elemental equation in the system graph. Furthennore, the primary variables are defined to be the across-variables on tree branches and the throughvariables on tree links. The elemental equations for the two-port elements relate variables across the element, so when the condition is imposed that only one of the two variables on each branch may be considered primary, only two possible causal conditions may be defined for a two-port element.
The Transformer: For the transformer shown in Fig. 6.18, branch I has acrossand through-variables Vt and f 1, while branch 2 has variables v 2 and f 2 • The transformer equations Vt
= TFv2
fl =-
(~ )t2
(6.41) (6.42)
Sec. 6.4
189
State Equation Formulation
specify that if Vt (or v2) is considered to be a primary variable, then v2 (or v 1) must be a secondary variable. Similarly, if ft (or f2) is chosen as a primary variable, f2 (or f 1 ) is by definition a secondary variable. The transformer equations allow only one across-variable and one through-variable to be used as primary variables.
Primary variables:
v1, f 2
Secondary variables: f 1, v2
Primary variables:
f 1, v2
Secondary variables: v1, f 2
Figure 6.18: The two allowable tree configurations for a transfonner. The links are shown as dotted lines.
Since only one across-variable may be a primary variable for a transformer, only one branch of a transformer may appear as a tree branch. In other words, either 1. branch 1 appears in the tree and branch 2 is a link, in which case v 1 and f2 are the two primary variables and v2 and f 1 are secondary variables, or 2. branch 2 appears in the tree and branch 1 is a link, and so v2 and ft are the two primary variables and v 1 and f2 are secondary variables.
These two allowable causalities are shown in Fig. 6.18. The Gyrator: The generation of a set of independent compatibility and continuity equations from a tree structure containing a gyrator requires a different set of causal conditions. For an ideal gyrator, such as shown in Fig. 6.19, with elemental equations V]
f,
= GYf2
(6.43)
=-(a~ )v2
(6.44)
it can be seen that 1. ifv 1 is taken as a primary variable, then v2 must also be considered a primary variable since f 2 is a secondary variable, or 2. iff 1 is considered a primary variable, then because v2 is then by definition a secondary variable, f2 is also a primary variable. To satisfy the first case, with two primary across-variables, both gyrator branches must be placed in a tree. To satisfy the second possibility, where both through-variables are primary, the two gyrator branches must both be tree links. The two allowable tree structures for gyrators are illustrated in Fig. 6.19.
190
Energy-Transducing System Elements
,
~
\ \ \
I I I
I
\ \
Chap. 6
lqxp2 I I
•
\
• Figure 6.19:
Secondary variables: f 1, f 2
Secondary variables: v1, v2
The two allowable tree con-
figurations for a gyrator. The links are shown as dotted lines.
6.4.3 Derivation of the Normal Tree The derivation of a normal tree for a system containing two-port elements is an extension of the procedure described in Sec. 5.2 for systems of one-port elements. The system normal tree for a system graph model containing two-port transducers should be formed in the following steps:
Step 1: Draw the system graph nodes. Step 2: Include all across-variable sources as tree branches. (If all across-variable sources cannot be included in the normal tree, then the sources must form a loop and compatibility is violated.)
Step 3: Include as many as possible of the A-type elements as tree branches such that the completion of the tree does not require the placement of both branches of a transformer or one branch of a gyrator in the tree. (Any A-type element that cannot be included in the normal tree is a dependent energy S!orage element) Step 4: Include one branch of each transformer and both or neither branch of each gyrator in the tree so that the maximum number of T-type energy storage elements remain out of the tree. If this step cannot be completed, the system model is invalid. Step 5:
Attempt to complete the tree by including as many as possible D-type dissipative elements in the tree. It may not be possible to include all D-type elements.
Step 6: If the tree is not complete after the addition of D-type elements, add the minimum number ofT-type energy storage elements required to complete it (Any T-type element included in the tree at this point is a dependent energy storage element.) Step 7: Examine the tree to determine if any through-variable sources are required to complete it. If any through-variable source can be inserted into the normal tree, then that source cannot be independently specified and continuity is violated. System graphs and their normal trees for some simple systems containing one-port energy storage elements and an ideal two-port transducer are illustrated in Fig. 6.21. In some cases a choice of two-port causality exists in formulating the normal tree. For example, in cases 2, 3, and 4 in Fig. 6.21 either causality results in the identification of only one state variable. The two energy storage elements are dependent, and the energy storage
191
State Equation Formulation
Sec. 6.4
variable on either may be used as the state variable. In cases 1, 5, and 6, however, the choice of two-port causality leads to either two state variables or none. The procedure outlined above usually chooses the config uration that maximizes the number of selected state variables. In more complex systems, with many sources and energy storage elements, system structural constraints may require use of the representations 1 B , 5 A, and 6 B in order to identify the maximum number of independent energy storage elements in the complete system. Example 6.5 Derive the normal tree for the system shown in Fig. 6.20a in which an electric motor is coupled to an inertial load through a speed-reducing gear train.
Motor
(a) System
R
R
L
L
'~\ \I J
\
'~/,'
2
{
\ \t /
/
/
J
-, nrer =0 (b) Linear graph
(c) Normal tree
Figure 6.20: Generation of the normal tree for a electromechanical system consisting of an electric motor driving an inertial load through a gear train.
Solution The system linear graph in Fig. 6.20b contains two two-port elements to represent the motor and the gear train. The motor is represented as a four-terminal transducer, while the gear train has each branch referenced to a common reference angular velocity and is represented as a three-terminal element. The system graph consists of two connected graphs and has N 7 nodes and two distinct sections ( Nd = 2). The number of branches in the two sections of the system graph normal tree is therefore Br = N - Nd = 5. The normal tree is constructed by inserting first the voltage source V,, followed by the inertia element J. In this case there is no choice of causality assignment because branch 2 of the gear train transformer must be in the links, requiring that branch I be a normal tree branch. With this assignment, branch 2 of the motor must also be in the links. The only D-type element that may be included in the tree branches is the electric resistor R.
=
192
Energy-Transducing System Element~
Case 1:
T-type
1~4
A-type
1{ 2 34 8:(~' A:'?,) I 2\ 3t4 I
L\
\
C
1~4
A-type
A-type
1~4
T-type
T-type
T-type
1~4
A-type
1~4
A-type
A-type
c\
\
\
c
\
1~4
T-type
T-type
1C
C
I
1C
I
I
State variables: v1
1{ 2 34 ~ I(~' A:'?,) 2\ 3t4 I
L\
\
\
L
L
\
I
I
I
1L
State variables: f 4
A: t1~\ 8:·(~)4 I
\
1
2
L\
3 t4
\
I
/c
l
1
\
\
I
C
State variables: v4
A: t1~\ 8:·(~)4 I
\
1
2
3 t4
\
C\
I
\
I
I C
State variables: none Case6:
I
I
State variables: f 1 CaseS:
1
1{ 2 34 8:(~' A:'?,) I 2\ 3t4
State variables: f 1 Case4:
I
State variables: none
State variables: v4 Case 3:
L
\
\
State variables: f 1• v4 Case2:
Chap. 6
C
1
\
I
\
C
State variables: v1, v4
A: t1~\ 8:1(~)4 I
\
1
2
3 t 4
L\
}L
\
I
State variables: f 1• f 4
L
I
1
\
\
State variables: none
Figure 6.21: Examples of two-port system normal trees when energy storage elements are connected across both branches. The links are shown as dotted lines.
L
Sec. 6.4
193
State Equation Formulation
6.4.4 State Equation Generation
With the nonnal tree, we can begin the derivation of the state equations for systems with twoport elements by choosing the primary variables as the across-variables on all branches of the normal tree and the through-variables on all nonnal tree Jinks, including those associated with the two-port elements, As defined in Chap. 5 the system state variables are those primary variables associated with the n independent energy storage elements defined by the normal tree, that is, 1. the across-variables of the A-type energy storage elements in the normal tree, and 2. the through-variables of the T-type energy storage elements in the normal tree links. The procedure for deriving n state equations in tenns of the n state variables and S source variables is similar to that described in Chap. 5 for systems of one-port elements, with the addition that the two elemental equations for each two-port element must be included in the derivation. The procedure is illustrated in the following examples. Example6.6 A sketch of a fixed-field de motor drive system, with its system graph model containing B = 7 branches and N = 6 nodes, is shown in Fig. 6.22. The motor is represented as a four-terminal element, generating two distinct connected graph sections in the system graph (Nd = 2}, so there are Br = N- Nd = 4 branches in the normal tree and two branches in the links. The system normal tree is shown in Fig. 6.22c. From the normal tree in Fig. 6.22c: Primary variables: V1 (t), QJt VR, h. Ts. Vt. T2 Secondary variables: ls(t), TJt iR. VL, Os. i., !12 System order: 2 State variables: QJt hThe B - S = 6 elemental equations written in terms of primary variables are dOJ
dt
= .!.rJ J
dh
1
dr = LVL VR
= RiR
Ts = Brls Vt T
l2
1
(i)
(ii) (iii)
(iv)
= -Q2 Ka
(v)
1 •
(vi)
=
--ll
Ka
TheN- Nd- SA = 3 continuity equations are
= -T2- Ts iR =it
T1
it
=it
(vii) (viii)
(ix)
194
Energy-Transducing System Elements
Chap.6
:Motor R 1-------------...1 (a) System
R
L
R
L
I~ 2
, \
jsl
,,/
'7IJ77 fi=O (b) Linear graph
(c) Normal tree
Figure 6.22: An electric motor drive, a system graph, and a normal ttee.
The 8- N
+ Nd- ST = 3 compatibility equations are VL
= Vs -
VR -
(x)
V1
0a=0 1
(xi)
02=0}
(xii)
The secondary variables may be directly eliminated from the elemental equations: d01
1
dh
1
dt = J(-T2-Ts)
(xiii)
Tt =I (V.r- VR- VJ) VR
(xiv)
= RiL
(XV)
(xvi)
Ts = B01 I
v, =-OJ Ka
'I"'
'2
=
(xvii)
1 .
(xviii)
--IL
Ka
By direct substitution the six elemental equations may be reduced to two state equations and placed in the standard form:
[ -B/J [OJ] h =
-l/KaL
1/KaJ] -RJL
·[OJ] [ 0]V,~(t) h + 1/L
(xix)
Sec. 6.4
State Equation Formulation
195
If the dynamic study required computation of the torque to accelerate the inertia T1 , the motor current iL. and the viscous bearing torque T8 as output variables, the elemental and constraint equations may be used to write a set of three output equations in terms of the state and input variables: (XX) (xxi)
(xxii) In output matrix form these equations are written
~
T1 ]
[
~
[ - B =
1I~Ka ]
0]
~] + ~ [
[
V,(t)
(xxiii)
Example6.7 A hydraulically actuated mechanical system and its linear graph model are shown in Fig. 6.23. The hydraulic actuator is a gyrator and divides the system into the fluid and mechanical domains. On each side a separate reference node is established. The system graph has B = 7 branches and N = 5 nodes. The gyrator, representing the hydraulic ram, divides the overall graph into two distinct connected graphs Nd = 2. The normal tree for the system has BT = 5 - 2 = 3 branches; the pressure source, the mechanical mass and the fluid resistor are shown in Fig. 6.23c. The two gyrator branches, together with the spring and mechanical damper form the links of the tree. From the normal tree shown in Fig. 6.23c: Primary variables: Ps(t), PR, Vm, FK, Fs, Q1, F2 Secondary variables: Qs(t), QR, Fm. VK, Vs, P., ~ System order: 2 State variables: Vm, FK The B - S
= 6 elemental equations written in terms of primary variables are dvm _ 2_F. dt - m m dF1c -=KvK dt PR = RQR Fs = Bvs Q1 = -Av2 F2 =APt
(i) (ii) (iii)
(iv) (v) (vi)
From the normal tree the N - Nd - SA = 2 continuity equations are Fm = - F2 - FK QR = Q1
-
FB
(vii) (viii)
Energy-Transducing System Elements
196
Chap. 6
(a) System
P=Parm v=O (b) Linear graph Figure 6.23:
and the B- N
Hydraulic actuator system. its linear graph. and a normaJ tree.
+ Nd- ST = 4 compatibility equations are Vm
(ix)
VB= Vm
(x)
. VK
V2
Pt
=
= Vm
(xi)
= P,- PR
(xii)
The secondary variables may be eliminated from the elemental equations to yield
By direct substitutio~ the six elemental equations may be reduced to two state equations: (xix)
(x.x)
with the matrix form
Chap. 6
197
Problems
PROBLEMS
6.1. The dynamic performance of actuator systems is affected by the equivalent inertia driven by the motor. Consider the two systems illustrated in Figure 6.24. In (a) a servo motor, which may be considered as a torque source, drives a load inertia J through a 10:1 frictionless gearbox. In (b) a similar servo motor drives a translating mass m through an ideal rack and pinion of radius rP.
Mass m
(b)
(a)
Figure 6.24: 1\vo inertial loads on a servo motor.
(a) Draw the linear graph for each system. (b) Determine the equivalent rotational inertia Jeq reflected through the transduction element to the drive motor. 6.2. A cam follower may be modeled as a lever with ann lengths l1 and 12 as shown in Figure 6.25. A spring, with stiffness K. is used to keep the follower in contact with the cam. Detennine the effective stiffness of the follower as seen at the contact between the follower and the cam. The mass of the follower may be ignored.
Figure 6.25: A cam follower.
198
Energy-Transducing System Elements
Chap.6
6.3. A ball-screw linear actuator is shown in Fig. 6.26. The actuator uses a de electric motor, with an electromotive coupling constant Ka, armature resistance R, and inductance L, and driven by a voltage source V.r(t}. The motor drives a threaded shaft with N threads/em on which the ball-nut moves linearly. The mechanical load is a mass m which slides on a surface with viscous damping coefficient B. Motor +
m
DampingB
/ Figure 6.26: A ball-screw drive mechanism.
(a) Construct a model for the ball-screw that relates the shaft torque and angular velocity to the nut linear velocity and force. Write the equations for the transduction process and show that they are energy conserving. Is this a transforming or gyrating relationship? (b) Generate a set of state equations that describe the dynamics of the system.
6.4. The drive train for a front wheel drive car is shown in Fig. 6.27. The wheels interact directly with the groun~ and if no slip occurs provide a force to accelerate or decelerate the car mass. Engine
"""/n,(t)
/
Wheel
/
~(r)
/ ,.L..
I
l
~·
Axle
""" ._
r
I """"'
17-'
'
~"
Transmission
(N:l)
Figure 6.27: An automotive front-wheel drive.
(a} Consider the pair of drive wheels as an ideal rotary-to-linear transducer. Construct the transducer linear graph and determine the relationships among the translational force and velocity and the wheel angular velocity and torque. Show that the wheels are a power-conserving transducer in the ideal case. (b) Construct a linear graph relating the torque input through the wheel axle to the linear velocity of the car, including the effects of the car mass, and assuming that the car aerodynamic drag and rolling resistance may be represented as a single equivalent linear damper.
Chap. 6
199
Problems
(c) The transmission in a car is used to match the engine output to the car speed. If the transmission is a lossless gear train with a step-down ratio N, what element would you use to represent the
transmission? If it is desired to operate the engine at a constant speed of approximately 6001r r/s {approximately 1800 rpm) what are the gear ratios required for {i) traveling in town at 15 m/s and {ii) highway driving at 30 m/s? Assume that the tire diameter is 0.75 m.
= 0 r/s has a static torque of 1000 N-m and at a top speed of 2001r r/s develops no torque. Construct a model for the engine. (e) Construct the linear graph model for the complete vehicle drive system.
(d) Consider the engine as a power limited source, which at S"2
(t) Derive the system state equations.
6.5. A steamroller, with total mass m, has a pair of large rear drive wheels with radius r 1 and a combined inertia J 1• The roller at the front has radius r2 and inertia J 2 • Assume that all wheels roll without friction or slip. Find the effective moment of inertia reflected to the rear
Hammer
Rotational bearing Spring between shaft and bearing
Drive shaft Sliding bearing B
Figure 6.28: A mechanical hammer mechanism.
{a) Draw a linear graph for the system. (b) Derive a set of state equations for the system and express them in matrix form. 6.7. A permanent magnet de motor may be modeled by the lumped system shown in Fig. 6.29, where R1 and L1 are the electrical resistance and inductance of the field winding, eb is the back-emf, and J and B are the inertia and viscous damping of the rotor and its bearings. The motor performance has been specified by the manufacturer in terms of the relationships T = Kmi and vb = KuO.. (a) Draw a linear graph and normal tree for the system, assuming that the motor is driven from a voltage source. (b) Derive a set of state equations.
Energy-Transducing System Elements
200
Chap. 6
Rotor
+
J
Electrical
Rotational
Figure 6.29: Equivalent circuit of a de motor.
(c) Manufacturers typically specify Km in units of oz-inlamp, and Kv in units of voltsllapm (1 krpm I000 revs/minute). These are not consistent units. Consider the motor as an ideal powerconserving two port. If a sample motor has a specified Km 6 oz in/amp, find its value of K v
=
=
in voltsllapm. (d) Measurements on a motor with the values of Km and Kv as found in part (c) showed that
R1 = 3Sl, and L 1 = O.OOSH. When connected to a constant current source of 1 amp, this motor reached a constant speed of I000 ~pm. i. What is the effective viscous damping B in the bearings? ii. What is the voltage measured at the motor terminals?
iiL What fraction of the total power being supplied by the source is dissipated on the electrical side, and on the mechanical side of the motor. Identify the elements that are dissipating the power? 6.8. Explain why a de motor becomes hot, and may bum out. if the shaft jams so that it may not rotate. Assume that the motor described in Problem 6.7 is driven by a 15 volt source. What power is dissipated if the shaft is jammed? Where is the power dissipated? 6.9. Fig. 6.30 shows a loudspeaker voice coil. The magnet structure setc; up a uniform radial magnetic field of strength B weber/meterl in the air gap. The coil has N turns, length l, and radius r. Voltage v1 appears across the coil and current i flows through il (a) Assume that the coil is massless and has neither resistance nor inductance. Also assume that the
coil is mounted so that it is always radially centered in the air gap but can move freely in the axial direction. Derive relationships between the electrical variables i and v 1 , and the mechanical variables v and F. (b) Is this ideal element a transformer or a gyrator?
(c) Draw the linear graph and normal ttee for a real loudspeaker. Add the following nonideal effects
to the model: assume that the coil has resistance R and inductance L and the cone has mass m and is supported in a structure that resists linear motion with a damping coefficient B, and linear stiffness K. Assume that the input is an ideal voltage source V, (t). (d) Derive the state equations for your model and derive an output equation for the velocity of the
coil v.
Chap. 6
201
Problems SupportK
+
Magnetic
flux
(b)
(a)
Figure 6.30: A loudspeaker voice coil.
6.10. A voice coil, similar to that described in Problem 6.9, is modified to act as an adjustable dashpot. A push rod is connected to the coil, and a variable resistor R is connected across the coil as shown in Fig. 6.31. Using the same electromagnetic parameters as in Problem 6.9, find the equivalent viscous damping coefficient for the dashpot. The inductance of the coil and the mechanical parameters may be ignored.
Variable resistance R
(a)
Figure 6.31:
An electro-mechanical dashpot
6.11. A gyrator may be constructed from electronic components. Fig. 6.32 shows an electronic gyrator in which i 1 = Gv2 , connected in a circuit with two capacitors C1 and C2 , and a resistor R. Derive a set of state equations for the system and an output equation for the voltage across capacacitor C 1 • R
Electronic gyrator G
V(t)
Figure 6.32:
An electronic gyrator circuit
202
Energy-Transducing System Elements
Chap. 6
6.12. Electrical transfonners consist of two coils of wire, designated the primary and secondary windings, wound on a common high-penneability magnetic core. For alternating current (ac) inputs the system behaves approximately as an ideal transfonner with a voltage relationship v,.jv 1 = N2/ N 1• where N 1 and N2 are the number of turns on the primary and secondary windings. In an ideal electrical transfonner the penneability of the core would be infinite, and all of the magnetic flux would link both coils. Practical transformers have cores with finite premeabiJity, and inevitably not all of the flux associated with current flowing in one winding links the other coil. A lumped equivalent model of a transformer is shown in Fig. 6.33 in which L 1 and L 2 represent the leakage inductances associated with the flux components that do not link both coils, Lm represents the magnetic field necesary to maintain the flux in the finite penneability core, and R1 and R2 are the resistances of the primary and secondary windings.
\
Ideal
transformer
Secondary
High-penneability magnetic core (b)
(a)
Figure 6.33: (a) An electrical transformer; (b) its lumped electrical equivalent model.
(a) Derive a set of state equations for an electrical transfonner connected to a voltage source and driving a resistive load R. · (b) Does the model given in Fig. 6.33 predict that an electrical transformer will not work for de inputs, that is, when v (I) is constant. Explain your answer. 6.13. An automotive shock absorber consists of a fluid-filled closed cylinder of cross sectional area A, with a moving piston containing a small orifice as shown in Fig. 6.34. As the piston moves, fluid is forced through the orifice. Laboratory measurements have shown that the fluid flow rate through the orifice is approximately proportional to the pressure difference across it, and that it may be modeled as a linear fluid resistance R1 . Find the translational viscous damping coefficient for the shock absorber. (The cross sectional area of the piston rod may be neglected.) Orifice
Area A
Figure 6.34: A fluid filled mechanical shock absorber.
6.14. A fluid accumulator, shown in Fig. 6.35, consists of a cylinder of cross sectional area A containing a movable piston that is supported against the housing by a spring of stiffness K. Find the fluid capacitance of the system.
Chap. 6
203
Problems Area A
Q_....
Figure 6.35:
A spring loaded fluid accumulator.
6.15. A high-performance hydraulic actuator is shown in Fig. 6.36. The de motor, with the torque/current relationship T = - Kai, is controlled from a voltage source Vs, and has winding resistance R and inductance L. The positive displacement pump displaces D m 3 of fluid per radian of shaft rotation. The mass m is driven through a ram of area A. A bypass valve, with fluid resistance R 1 , returns the fluid to the reservoir tank.
Figure 6.36:
A high-performance hydraulic drive system.
(a) Construct the system linear graph and identify the state variables. (b) Derive the state equations.
(c) Write an output equation for the displacement of the mass. (d) Determine the relati onship between the ram force on the mass to the motor torque for the case when the mass is clamped so that it cannot move. 6.16. A rotary turntable with radius r 1 and moment of inertia 1 1 , is driven by a permanent magnet de motor through a rubber belt, as shown in Fig. 6.37. The drive pulley has radius r 2 , and the motor, which has an armature with a moment of inertia h. is driven by a current source I (t) . Each side of the rubber drive belt may be approximated as a linear spring of stiffness K . The turntable is mounted in bearings with a small but significant viscous drag coefficient B . (a) Draw a linear graph representation of the system. (b) Determine the system order.
(c) Generate a set of state equations fo r this system.
204
Energy-Transducing System Elements
Chap. 6
Motor J2
Source /(t)
figure 6.37: A flexible belt rotary drive system.
6.17. A permanent magnet de generator is driven by a line around a pulley of radius r as shown in Figure 6.38. One end of the line is connected to a spring of stiffness K, and the other is attached to a source of known force F (t). The line is taut at all times. The generator is connected to a large capacitor C. Derive a set of state equations and an output equation for the voltage across the capacitor. You may ignore the inductance of the generator winding but should include the rotor inertia J and the winding resistance R.
c Figure 6.38: A line driven electric generator.
REFERENCES [ 1) Paynter, H. M., Analysis and Design of Engineering Systems, MIT Press, Cambridge. MA, 1961. [2] Koenig, H. E .• Tokad, Y., Kesavan, H. K., and Hedges, H. G., Analysis of Discrete Physical Systems, McGraw-Hill, New York, 1967. [3] Blackwell, W. A .• Mathematical Modeling of Physical Networks, Macmillan, New York, 1967. [4] Shearer, I. L., Mwphy, A. T., and Richardson, H. H., Introduction to System Dynamics, AddisonWesley, Reading, MA, 1967. [5] Kuo, B. C., Linear Networks and Systems, McGraw-Hill, New York, 1967. [6] Chan, S. P., Chan, S. Y.• and Chan, S. G., Analysis of Linear Networks and Systems, AddisonWesley. Reading, MA. 1972.
7
Operational Methods for Linear Systems
7.1 .INTRODUCTION There are many ways to express the relationship among variables in a system. Engineers often use block diagrams to indicate both the structure of a system and its interactions with the environment. Mathematical operational and transform methods provide tools for the manipulation of system equations and allow engineers to develop different system representations. In this chapter we develop graphical and mathematical methods for depicting and manipulating the structure of a system through time domain operational methods. In particular we introduce a notation that allows the differential equations representing a system to be manipulated as if they were algebraic equations. It is often useful to consider the functional or mathematical relationship between a single system input and a single output variable. Figure 7.1 shows a simple block diagram, containing one block, for a system. The block implies that there is a causal relationship between the input u(t) and the system output y(t), that is the output is defined by an operation on the input. In general the relationship is defined by the system itself through its differential equations. A single block description, as in Fig. 7.1, may be expanded to include multiple interconnected blocks representing the dynamics of single lumped elements, blocks representing a combination of system elements, or blocks interconnecting systems [1-3]. The operational block diagram also provides a basis for developing computational methods for solving system responses using both analog and digital computers and is a particularly useful system representation when coupled with measurement and control systems [4-6]. 205
Operational Methods for Linear Systems
206
System input u(t)
Mathematical "operation" relating output to input
Chap. 7
System output y(t) = H{u(t)}
H{u(t)}
Figure 7.1: Block diagram of a system operator.
For linear time-invariant systems, the input-output operational descriptions relate a single output variable y(t) directly to a single system input u(t). The system dynamics are often expressed in the fonn of a single nth-order differential equation that relates the output variable to the input variable:
(7.1)
where the constant coefficients a; and b; are defined by the system parameters. Equation (7. 1) is known as a classical form of system description. It is the basis for the classical feedback control theory for single-input single-output (SISO) systems that was developed in the 1930s and 1940s [4-6]. On the other hand, the state space modeling methods, developed in Chaps. 4-6, represent a system by a set of n coupled first-order differential state equations and m associated algebraic output equations: i =Ax+Bu
y=Cx+Du
(7.2) (7.3)
where the state vector x(t) is an internal representation of the system. This system representation, developed in the 1950s and 1960s, is the modem form of representation and is the basis for many multiple-input multiple-output (MIMO) control system design techniques [7, 8]. Both state variable and classical system descriptions are used commonly in dynamic system analysis and design. The state variable descriptions are in a fonn that may be solved directly by numerical integration in a digital computer (as described in Chap. 11), while the classical descriptions are in a fonn for which analytical solutions are readily available, especially for low-order systems (as described in Chap. 9). For linear systems the two forms of description are directly related, and both provide complete representations. In this chapter we develop the necessary operational tools and block diagram representations for transfonning system models between the system representations. We consider linear timeinvariant systems in which all system parameters contained in the A, B, C, and D matrices are constants and develop operational methods for transfonning between the state variable and classical input-output system descriptions.
Sec. 7.2
7.2
Introduction to Linear Time Domain Operators
207
INTRODUCTION TO LINEAR TIME DOMAIN OPERATORS
7.2.1 System Operators
A linear time-invariant system with one input and one output may be described in terms of afunctional operator relating the output y(t) to the input u(t) through a well-defined mathematical relationship. The system behavior may be written operationally as y(t) = H {u(t)}
(7.4)
with the interpretation that the output function y(t) is the result of a mathematical operation H (} on the input function u(t), as illustrated in Fig. 7.1. The operator H {} is defined to be the dynamic transfer operator and forms an alternative description of the dynamics of the system. Equation (7.4) is a causal relationship since it implies that the system response y(t) is defined by a direct operation on the input. The dynamic transfer operator represents the system dynamics contained in a system model, for example, a differential equation such as Eq. (7.1). Dynamic transfer operators are illustrated in Fig. 7.2 for three simple systems, each under the influence of a single external input. For each the system response y(t) is related to the input u(t) by the system dynamic model, expressed as a differential or algebraic equation together with any necessary initial conditions. For example, in the case of the fluid capacitance in Fig. 7.2c, the mathematical operation relating the output variable Pc(t) to the input flow Q(t) is Pc(t) = -I
c
f.' 0
Q(t) dt
+ Pc(O)
(7.5)
which involv~s the elementary operations of scaling (multiplication by 1I C) and integration. If the tank is empty at time t = 0, the time history of the flow rate Q(t) into the tank defines the pressure Pc(t) for all timet > 0. A tank operator HT (} may be defined, and the relationship between Pc(t) and Q(t) written in operational form: Pc(t)
= HT {Q(t)} s -1 c
f.' 0
Qdt
(7.6)
The output Pc(t) is interpreted as the result of HT {} acting on Q(t). A cause and effect is implicit in this operational statement of the system response; the output is the result of an action taken by the system on the input. In the three examples shown in Fig. 7.2 the required mathematical actions are one or more of multiplication by a constant (scaling}, differentiation, and integration. An operator such as HT {} represents a mathematical transformation on a system function. The actions defined by an operator may be complex, for example, representing the overall input-output behavior of a high-order system, or may be as simple as the algebraic scaling operation of the voltage divider in the example in Fig. 7.2b. An operator is similar
208
Operational Methods for Linear Systems
Chap. 7
Output vK(t)
Input ~ F K(t} ~ O:::::::::::J---1
(a} Massless spring driven by a force source
v,.(r)
--8--
•.<•>
(b) Electric voltage divider
Q ( t ) - - & P.,(t) Input Q(t)
__
~
P.,(t) =
~f.'o_t!t+P.,(O)
_..._,_.. (c) Vertical walled fluid tank capacitance
Figure 7.2: Three simple linear systems showing a physical system representation. a block diagram implying a relationship between input and output variables. and the mathematical operation relating output to input
to an algebraic function, such as a sine or exponential function, in the sense that both transform (or map) an input within their domain to an output Unlike a function, which maps instantaneous values of the input to the output, an operator maps an input function to an output function. At any instant the output of an operator may depend not only on the current value of the input but also on its complete time history. For example, the operator Hr {}defined for the tank computes the integral of the input from timet = 0 to the present time. Such operators are defined to be dynamic operators. The voltage divider in Fig. 7 .2b contains no energy storage elements, and its output depends on only the current value of the input; it is an algebraic or static operator. Algebraic functions, such as the square root, sine, and exponential may be considered nonlinear static operators. The use of operational methods for manipulating and solving linear differential equations in engineering systems was developed by the English electrical engineer Oliver Heaviside in the late 1800s. His work was originally criticized for its apparent lack of rigor, and it was not until many years after his death that its importance was realized. The basis for the operational algebra and calculus based on Heaviside's work has since been developed in detail [9- 1 1] but is beyond the scope of this text. In this chapter we draw on some of the results of functional methods to develop alternative descriptions and methods for manipulating linear systems.
Sec. 7.2
Introduction to Linear TliDe Domain Operators
209
7.2.2 Operational Block Diagrams
Functional operators describing a system are often depicted graphically in an operational block diagram. The system behavior defined by the input-output transformation is shown graphically as a processing block with a single input and a single output An arrow, pointing into the block, defines the input and therefore the causality. Each block in the diagram specifies the operational relationship between the input function and the output as indicated in Fig. 7.1. Block diagrams can be drawn at many levels of detail, from a complete description of the input-output relationship of a system in a single block to a detailed interconnection diagram showing the primitive mathematical operations implied by each system element. Each block is labeled with its appropriate operator function. The block diagram structure for any system is not unique; many equivalent block diagrams may be constructed for a given system. While transfonnations on single variables are described by operators, two or more system variables are combined through the arithmetic operations of addition, subtraction, multiplication, and division shown in block diagram fonn in Fig. 7.3. Although all four arithmetic operations may be needed to describe complex nonlinear systems, only two (addition and subtraction) are needed in the description of linear systems. (Strictly only the process of addition is required because the negation of a variable may be defined through a scaling operator before summation.) A "signed" addition element, as shown in Fig. 7.3, is used in block diagrams to allow either addition or subtraction at any of its inputs. u 1 (t)~
Ut(t)Yy(t)
u2(t)
= u 1(t) + u2(t)
+
~ y{t)
= u 1(t)
X u2(t)
u2(r)
(c) Multiplication
(a) Addition
Ut(l)~ ~ y(t):::u 1(t)/u2(t)
u2(t) (b) Subuaction (signed addition)
Figure 7.3:
(d) Division
Arithmetic operations to combine system variables.
7.2.3 Primitive Linear System Operators
All linear time-invariant systems may be represented by an interconnection of three primitive operators: 1. The constant scaling operator: The scaling operator multiplies the input function by a constant factor. It is denoted by the value of the constant, either numerically or symbolically, for example, 2.0 {} , 1/m {}, RI/(Rl + R2) {},or a{}.
210
Operational Methods for Linear Systems
Chap. 7
2. The differential operator: If a function f(t) is differentiable and has the property that f(t) = 0 at timet= 0, then the differential operator, designated S {},generates the time derivative of the input f(t) for time t > 0: 1 y(t) = s {f(t)}
=dtd {/(t)}
fort> 0
(7.7)
Notice that the output of the operator is defined only in the period t 2: 0.
3. The integral operator: The integral operator, written s- 1 {} (or sometimes as 1/S), is defined as
y(t) =
s- 1 lfl
"'fo' J
dt
(7.8)
where it is assumed that at timet = 0, the output y(O) = 0. If an initial condition y(O) is specified, y(t) =
s-I {f(t)} + y(O)
(7.9)
and a separate summing block is included at the output of the integrator to account for the initial condition. Figure 7.4 is the block diagram representation of the primitive operators. In addition, two other useful operators may be defined:
4. The identity operator: The identity operator I {} leaves the value of the input unchanged, that is, y(t) =I (J(t)}
= f(t)
(7.10)
The action of the identity operator is therefore equivalent to scaling the input by unity.
5. The null operator: The null operator N (} identically produces an output of zero for any input; that is, y(t)
= N (f(t)} = 0
(7.11)
for any f (t). The action of the null operator is equivalent to scaling the input by zero.
The operational calculus, based upon generalized functions [9-11 ], provides a definition of the differential operator that aJlows for nonzero values of the function f (t) at the time origin t = 0. In particular the full definition is y(t)
= s {/(t)} =dtd {/(t)} + /(0) &(t)
where «S(t) is the Dirac delta function introduced in Chap. 8. This definition is not pursued further in this text; we simply state here that results derived in this chapter generalize to situations involving nonzero initial conditions.
Sec. 7.2
211
Introduction to Linear Time Domain Operators (a) Scaling
u(l)
(b)Diffetendation
u(r)
(c) Integration
u(t)
-8---------0-
y(r)
y(t)
y(t)
y{O)
Figure 7.4:
The three primitive operational elements required for linear time-invariant system analysis.
7.2.4 Superposition for Linear Operators
A linear operator, written £ {}, is defined as one that satisfies the principle of superposition. When the input f(t) to a linear operator C {}is the sum of two component variables, that is, f (t) = ft (t) + fz (t), the principle of superposition requires that C{ft(t)
+ /2(t)} =
£{/I(t)}
+ C{/2(t)}
(7.12)
The result of any linear operator C {} acting on the combined variable [/I (t) + /2(t)] is the same as the sum of the effects of that operator acting on the two variables independently. Figure 7.5 illustrates this required operational equivalence in block diagram form. All the three primitive system operators defined above are linear since a {/t (t) + /2(t)} =aft (t) + a/2(t) d d S {/I (t) + /2(t)} = dt /1 (t) + dt f2(t)
s-• lf•J =
£
hOO
fl(t)dt
+
(7.13) (7.14)
£
(7.15)
Jz(t)dt
hOO y(t)
fl(t)
-
y(t)
fl(t)
Figure 7.5:
Block diagram equivalent structures for linear operators.
212 7.3
Operational Methods for Unear Systems
Chap. 7
REPRESENTATION OF LINEAR SYSTEMS WITH BLOCK DIAGRAMS
7.3.1 Block Diagrams Based on the System Linear Graph Linear state-determined systems may be represented directly by block diagrams based on the three primitive linear operators and the summation operation. The elemental equations for ideal A-type, T-type, and D-type elements described in Chap. 3 may be expressed directly by operational blocks in terms of the through- and across-variables. For the energy storage elements a causality must be assigned; for example, the elemental equation for a mass element may be written in two forms:
dvm _.!_F. dt - m m
or
F, m
=m dvm dt
(7.16)
The output variable is implicitly on the left-hand side; in the first case integration of the input (Fm) is required:
defining an integral causality, while in the second case derivative causality is implied:
Fm
= m dvm dt
or operationally
Fm
= m {S {vm}}
(7.18)
Figure 7.6 shows block diagram representations for the elemental equations of the three types of lumped system elements, indicating both integral and derivative causality for the two energy storage elements. Integral causality is preferred in any system representation because it implicitly incorporates the initial conditions associated with any energy storage element into the system structure and provides a direct form for computer-based solution techniques. The steps in constructing a system operational block diagram using integral causality parallel the procedure described in Chap. 5 for deriving state equations from the linear graph and the normal tree. The nonnal tree is used to define a set of independent energy storage elements together with a set of primary and secondary variables. One or more blocks are drawn for each element, with causality chosen such that the output is a primary variable and the input is a secondary variable. A compatibility or a continuity constraint equation is associated with each element Each such equation expresses a single secondary variable as a sum of primary variables. Each constraint equation is therefore represented on the block diagram as a summation element that generates a secondary variable. Each elemental block requires a summer at its input.
Sec. 7.3
Representation of Linear Systems with Block Diagrams f(t)
v(t)
v(t)
213
~f(t) Derivative causality
(a) A-type elements
V(l)
f(t)
f(t) - - 8 - D - - v ( t )
Derivative causality (b) T-type elements
f(t)-0--
v(t)
v ( t > - - 0 - f(t)
Algebraic causality
Algebraic causality (c) D-type elements
Rgure 7.6: Operational block diagram representation of ideal elements in integral and differential causality.
The steps for constructing a block diagram from a linear graph model are as follows. Step 1: Construct operational block representations for each passive system element as in Fig. 7 .6, using the secondary variable associated with that element as the input and the primary variable as the output. Step 2: Use the set of independent continuity and compatibility constraint equations to express the secondary variable at each input in tenns of primary variables. A summer at each elemental input represents the constraint equation with the inputs to each summer as either system inputs or primary variables and the output as the secondary variable. Step 3: Complete the diagram by connecting the summer inputs to the primary variables at the outputs of the appropriate elemental blocks. Example7.1 Draw an operational block diagram for the system shown in Fig. 7. 7 from its linear graph and normal tree. R
C
v.CJ
R
c
R
c
Vrcr=O
{a) Circuit diagram Rgure 7.7:
(b) System graph
(c) Normal tree
A series RLC circuit, its system graph, and a nonnal tree.
214
Operational Methods for Linear Systems
Chap. 7
Solution The normal tree results in the elemental equations
d;~
Primary variables
!
diL
dt
VR
=
= =
~ic I
_!_VL
(i)
Secondary variables
L RiR
with the continuity and compatibility equations ic
=h (ii)
The three steps in constructing the block diagram are illustrated in Fig. 7 .Sa-c. Three elemental subdiagrams appear in Fig. 7.8a, representing each of the elemental equations. In Fig. 7.8b summer blocks are added to each input to determine the secondary variables, and in Fig. 7.8c the interconnections are made. Summers with a single input have been removed.
VL~iL it(O)
··--0-i·
(a) Draw elemental blocks
~~
vc(O)
VR~iL (b) Add compatibility and continuity summers
vc(O)
(c) Complete the block diagram Figure 7.8:
Construction of an operational block diagram for the RLC circuit
Similar procedures may be used to construct block diagrams for systems that include twoport elements. Each two-port element is defined by a pair of elemental equations, thus requiring two functional blocks.
Representation of Linear Systems with Block Diagrams
Sec. 7.3
215
The state variables for block diagrams formed from the system linear graph are the outputs of the integral causality blocks. The derivatives of the state variables are therefore defined as the inputs to the integrators in the diagram. The state equations may often be derived by inspection from the block diagram by writing an expression for the variable at the input to each integrator in terms of other state variables and inputs. Similarly, the output equations may be easily determined because all primary and secondary system variables are on the block diagram. Example7.2 Verify that the block diagram in Fig. 7.9 describes the electromechanical system analyzed in Example 6.4. Derive the state equations and output equations for VL and T8 from the block diagram by inspection.
Figure 7.9: Block diagram for electromechanical system analyzed in Example 6.4.
Solution Verification of the block diagram is left to the reader. Notice that two blocks are used to represent the de electric motor two-port element and that the state variables iL and 0 1 are the outputs of the integrator blocks. The state equations may be found by observing that the derivatives of the state variables exist at the inputs of the two integrator blocks. Then, working backward through each summer, (i)
(ii) and (iii)
(iv) The output equations may be determined by inspection in a similar manner. (v)
(vi)
216
Operational Methods for Linear Systems
Chap. 7
For systems containing dependent energy storage elements, direct application of the method described generates derivative causality blocks in the diagram. These dependent elements may often be eliminated by redefinition of the system variables as described in Sec. 5.4. If the derivative block cannot be eliminated, the state and output equations can still be derived from the block diagram. In the examples presented above, linear systems are represented by operational block diagrams. In general, nonlinear and time-varying operations may also be represented within a block diagram. For example, nonlinear blocks may be used to characterize phenomena such as aerodynamic drag (which is a function of the square of the velocity), flow through an orifice (which is a function of the square root of the pressure drop across the orifice), and Coulomb friction (in which the force is a nonlinear function of velocity). Example7.3 Draw the block diagram and write the state equations forthe nonlinear system shown in Fig. 7.I 0 where an automobile of mass m has a net propulsion force Fp which is used to accelerate the mass and overcome aerodynamic drag Fv and tire-road resistance F,.
-f.--- Fv Aerodynamic drag
Figure 7.10:
Nonlinear model of an automobile with its linear graph.
I
Solution In the model, the automobiJe is represented by the followin g elemental equations: dvm
Primary variables
I
dt F,
;Bl,v, Fm
Fv
Rv lvvl vv
Secondary variables
(i)
The continuity equation is ( ii)
and compatibility shows that Vm
= Vr = VD
(iii)
The nonlinear block diagram may be constructed as shown in Fig. 7 . I I. The state equation for the system is derived by noting that the derivative of the mass velocity may be expressed in terms of the state variable vm and inputs as (iv)
Sec. 7.3
Representation of Linear Systems with Block Diagrams
217
Fo~•o Nonlinear (a) Lumped-parameter elements
Nonlinear (b) Complete block diagram
Figure 7.11: Block diagram for a nonlinear system. (a) Representation by lumped elements. and (b) the complete diagram derived by using continuity and compatibility.
7.3.2 Block Diagrams Based on the State Equations
The state equations express the derivatives of the state variables explicitly in terms of the states themselves and the inputs. In this form the state vector is expressed as the direct result of vector integration. The block diagram representation is shown in Fig. 7.12. This general block diagram shows the matrix operations from input to output in terms of the A, B, C, and D matrices but does not show the path of individual variables.
Figure 7.12:
Vector block diagram for a linear system described by state space system dynamics.
218
Operational Methods for Linear Systems
Chap. 7
In state-determined systems, the state variables may always- be taken as the outputs of integrator blocks. A system of order n has n integrators in its block diagram. The derivatives of the state variables are the inputs to the integrator blocks, and each state equation expresses a derivative as a sum of weighted state variables and inputs. A detailed block diagram representing a system of order n may be constructed directly from the state and output equations as follows: Step 1: Drawn integrator (S- 1) blocks and assign a state variable to the output of each block. Step 2: At the input to each block (which represents the derivative of its state variable) draw a summing element Step 3: Use the state equations to connect the state variables and inputs to the summing elements through scaling operator blocks. Step 4: Expand the output equations and sum the state variables and inputs through a set of scaling operators to fonn the components of the output. Example7.4 Draw a block diagram for the general second-order, single-input single-output system
[~~] = [::: ::] [;~] + [!~] u(t} y(t}
= (Ct
C2]
(i}
[;~] + du(t}
Solution The block diagram shown in Fig. 7.13 was drawn using the four steps described above.
u(t)
y(t)
Figure 7.13:
Block diagram for a state equation-based second-order system.
Sec. 7.4
7.4
219
Input-Output Linear System Models
INPUT-OUTPUT LINEAR SYSTEM MODELS
In analyzing linear time-invariant system models, we often need to consider the relationship between a single output variable and the system inputs. For systems that have only one input, it is frequently convenient to work with the classical system input-output description in Eq. (7 .I), consisting of a single nth-order differential equation relating the output to the system input: (7.19)
where y(t) is the system variable of interest and u(t) is the single system input The constant coefficients a; and b; are defined by the system parameters and for physical systems m ::5 n. The classical form of the system description requires n initial conditions to be specified in order for the system to be completely described. It is usual to specify the output y(t) at timet = 0 and the first n - I derivatives of y(t) evaluated at t = 0 as the initial conditions. The classical system representation is unique; there is only one differential equation that relates a given output variable to the input. The classical nth-order differential equation may be derived directly from the system state equations by combining the state and output equations in such a way as to eliminate all variables except the output variable y(t) and the input u(t). · Example7.5 Derive the classical second-order differential equation that relates the position y(t) of the mass m to the input force FAt) from the state equation model of the system shown in Fig. 7.14. The state equations are (i) (ii)
and the position of the mass is directly related to the force in the spring: 1
y= -FK K
(iii)
Also, specify a set of initial conditions for the classical equation that corresponds to the initial states Vm(O) = 0 and FK(O) = 0.
=
Solution The system is second-order, n 2, and therefore a second-order differential equation in the displacement y is required. We begin by noting that
dy dt =
Vm,
and
(iv)
220
Operational Methods for Linear Systems
Chap. 7
Output y(t)
Rolling resistance 8 Figure 7.14:
A second-order mechanicaJ system.
and then from Eq. (i),
(v)
Substituting for the state variables from Eqs. (iii) and (iv),
2
B dy K I -ddt2y = ----y+ -F (t) m dt m m 5
(vi)
and rearranging the terms gives the required second-order differential equation
d 2y
B dy
K
I
-dt2 + - + -y = -Fs(t) m dt m m
(vii)
The second-order equation requires two initial conditions, the output variable and its derivative at time t o:·
=
and
-dy' dt
r=O
= Vm(O) = 0
In following sections, we develop fonnal methods based on the system transfer operator to relate the classical input-output fonn to the state equations.
7.5
UNEAR OPERATOR ALGEBRA In this section we develop a set of relationships that allow us to transform and manipulate linear differential equations as if they were algebraic equations [9, 10]. We start by considering some general properties of scalar linear operators and then apply these properties to operational representations of linear differential equations.
Sec. 7.5
221
Linear Operator Algebra
7.5.1 Interconnected Linear Operators If two linear operators £ 1 {} and £2 {} are applied in series, or cascade, so that £2 {} acts on the output of £ 1 {} as shown in Fig. 7.15, that is, if z(t) .C1 {x(t)} is the variable generated by the first operator and this becomes the input to the second, then
=
(7.20)
This relationship defines the cascade, or sequential, connection of the two operators. The notation adopted in writing cascaded operators is to retain the braces around the original input quantity only; for example, .C1 {£2 {x(t)}} is written £1£2 {x(t)}. As an example we can write an elemental equation for a mass element as F(t) = mS {v(t)}
(7.21)
as a pair of cascaded scaling and differential operators.
u(t)
-GJ----W-- ~(:£ 1 tu(t)J}==
u(t)
-§-;e,_:£1(u(t)}
(a) Cascade application of two operators
u(t)
-0--0-----
:if(:iftu(t)} J:= u(t)
-0--
!fl{u(t)}
(b) Repetitive application of the same operator
Figure 7.15: Equivalence of two cascaded operators and a single operator.
If the same operator .C {} is applied in succession n times, as in Fig. 7.15, it is written with an exponent
This notation is not unusual; for example, the high-order derivatives of a variable are conventionally written d { dt d { ... dt d {x(t)}... S n {x(t)} =_ dt
II =
dn dtnx(t)
(7.23)
where the interpretation is that of repeated application of the derivative operator S to a single variable. Similarly, an expression such as a 3 {},while conventionally interpreted as multiplication by a factor a 3 , may also be interpreted as three successive scaling operations by the same constant a, that is, a {a {a{}}). Operational expressions such as £1£2 {} and £ 2 (} do not denote algebraic products. They define the cascaded application of one or more operators in which the output from one operator is passed sequentially to the next. If £ 1 {} and £2 {} are both linear operators, then the combined action .C 1.C2 {} is also a linear operator.
222
Operational Methods for Linear Systems
Chap. 7
For cascaded scalar linear operators, the output is independent of the order in which they are appJied, that is, y(t)
= .Ct (£2 {x(t)}} = £2 {.Ct {x(t)}}
(7.24)
This general commutative property of linear operators states that the result of an operation on a variable by a series of linear scalar operators is independent of the order in which they are applied. Thus, Sa {x(t)} is equivalent to aS {x(t)}. In the block diagram in Fig. 7.16 a system variable y(t) is shown as the summation of the outputs of two linear operator blocks, .Ct and .C2, each acting on the same input variable. This is defined to be a parallel combination of operators and is written y(t) = £1 (x(t)}
= [.Ct
+ .C2 {x(t)}
+ .C2]{x(t)}
If .Ct {}and .C2 {}are both linear operators, then the parallel operator [.Ct linear operator.
(7.25)
+ .C2] (} is also a
u(t)
Figure 7.16:
Parallel application of linear operators.
Care must be taken with the interpretation, because the plus sign in the parallel operator [.Ct + £2] does not imply addition of the operators in the usual arithmetic sense; it denotes the addition of the two results of the application of the two component operators. An operational expression such as y = [S + a]{x(t)} implies that
dx
y(t) = -
dt
+ ax(t)
(7.26)
7.5.2 Polynomial Operators A linear operator of the form (7.27) . is defined to be a polynomial operator in the operator .C {}. While clearly not an algebraic polynomial, because it denotes a set of cascaded and parallel operators, an operator of this
Sec. 7.5
223
Linear Operator Algebra
fonn has many properties that allow it to be manipulated using the rules of polynomial arithmetic. For example, the expansion of two cascaded parallel operators each containing a common operator .Ct {} y(t)
generates an equivalent second-order operator in .C 1{). Cascaded linear operators may be combined into an equivalent single operator using the standard rules of algebra. For example, the operational expression y(t) = [S + 2] [S + 1] {x(t)} = [S2
+ 3S + 2] {x(t))
(7.29)
implies that (7.30)
Similarly, it is often possible to factor a polynomial operator into a cascaded set of lowerorder terms. The classical single nth-order differential equation [Eq. (7.1)] relating a system output variable y(t) to a single input u(t),
d"y dt"
=
+ an-1
dmu bm -
dtm
d"- 1y drn-1
+ ... +at dm- 1u
+ bm-1 1 + drm-
dy dt
+ aoy
dy .. · + bt -
dt
(7.31)
+ bou
may be written in operational form using polynomial operators as
Every linear operator C, {}that is not the null operator N {}implicitly has an inverse, written
.c- 1 (}, which has the property
.c-• {.C {}}a I{}
(7.33)
so that for any x(t), y(t) =
e,- 1 {£ {x(t)}} = x(t)
(7.34)
The inverse .c- 1 {} therefore "undoes" any action of£ {} and reproduces the original input x(t).
224
Operational Methods for Linear Systems
Chap. 7
The concept of an inverse operator is important in the description of dynamic models. For example, assume that a differential equation describing a system may be operationally described as in Eq. (7 .32) and summarized by a pair of linear operators £1 and £2 acting on the input and output variables: £2 {y(t)}
= £1 {u(t)}
(7.35)
Then an explicit operational expression for the response y(t) may be found by operating on both sides of the equation using the inverse operator r; 1 (7.36) or I {y(t)}
= y(t) = £2 1£1 {u(t)}
(7.37)
For historical reasons it is common to write an expression with an inverse scalar operator y(t) = £2 1£ 1 {x(t)} as a quotient: £1 2
£2-1 £1 {x(t)}
y(t) = £ {x(t)} =
(7.38)
Both notations may be used, however, when an operator appears in a denominator, it does not imply algebraic division; it denotes application of the inverse of the operator. The inverse of the primitive scaling operator a {} is simply another scaling operator with a value 1/a, or 1 a-t{}=-{}
(7.39)
a
The derivative operator S and the integral operator s-t are by definition natural inverses. It is for this reason that the integrator is commonly written as an inverse operator. Example7.6 Show that the mathematical operation implied by [S + y(t)
Solution Assume that u(O)
= e-at
1'
ar
1
{u(t}} is
e01 u(t) dt
=0, so du [S +a] {u(t)} = dt
+ au(t)
and substitute into the assumed fonn of the solution: [S + ar' [S + a]{u(t)} =e-ar
1'
e"' [ ~;
+ au(t)] dt
Sec. 7.6
The System Transfer Operator
225
Evaluating the first term in the integral by parts gives [S +
ar• [S +a] {u(t)} =e-at [ea'u(t)- L' e(J'au(t)dt + L' e(J'au(t)dt] = u(t)
Thus, the sequential application of the operator and its assumed inverse yields the original function.
7.6
THE SYSTEM TRANSFER OPERATOR
The operational form of the classical nth-order differential equation [Eq. (7 .32)], is
If the inverse operator [S" + an-1S"- 1 + · · · + a1S + ao]- exists, it may be applied to each side to produce an explicit operational expression for the output variable: y(t) =
or using the quotient notation for the inverse, (7.42)
The operational description of the system dynamics has been reduced to the form of a single linear operator, defined in Eq. (7.4) to be the dynamic transfer operator H {}, y(t) = H {u(t)}
(7.43)
H {} = bmSm +.bm-lsm- 1 + · · · + btS + bo {} S" + an-tS"- 1 + · · · + a1S + ao
(7.44)
where
Equation (7 .44) is a system description that is equivalent to the differential equation from which it was derived. Figure 7.17 shows this input-output relationship in block diagram fonn.
Operational Methods for Linear Systems
u(t)
bmsm + bm-1sm-l + •·· + b 1S + b0
--.~
Chap. 7
.....,_~y(t)
sn + a,_ 1S""'1 +···+ a aS+ Do
Figure 7.17: The input-output dynamic transfer operator of a system represented by a single differential equation.
Example7.7
Derive the dynamic transfer operator relating the mass position y(t) to the input force f's(t) for the mechanical system described in Example 7.S. Solution From Example 7.S the second-order differential equation for the system is d 2y
B dy
1
K
-dt2 + - + -y= -F,(t) m dt m m
(i)
This differential equation may be written in operational form,
[
B K]
S2 + -S + - {y} m m
= -m1 {F,}
(ii) 1
and applying the inverse operator [S2 + (Bjm)S + K/m]- to solve for y yields
K]-• 1
B
y
= [ S 2 + ;;;S + m
;;; {F,}
1/m
= S2 + (B/m)S + K/m {F,}
(iii)
and so the transfer operator is
1/m
H {}
7.7
= S2 + (Bjm)S + Kjm
(iv)
TRANSFORMATION FROM STATE SPACE EQUATIONS TO CLASSICAL FORM
The transfer operator may be used to derive the classical input-output differential equation for any system variable directly from a state space representation. The following example illustrates the general method for a first-order system. Example7.8
Find the transfer operator and a single first-order differential equation relating the output y(t) to the input u(t) for a system described by the first-order linear state and output equations dx -d
. t
= ax(t) + bu(t)
(i)
+ du(t)
(ii)
y(t) = cx(t)
Sec. 7.7
Transfonnation from State Space Equationsto Classical Fonn
227
Solution The state equation in operational form is S {x(t)} =a {x(t)} + b {u(t)}
(iii)
which may be rewritten with the state variable x(t) on the left-hand side: [S-a] {x(t}} = b {u(t)}
Then using the inverse operator [S-
(iv)
ar'. solve for the state variable:
x(t) = [S-
ar' b {u(t)}
(v)
and substitute into the output equation y = e {x} + d {u} y(t) = [e (S- a)- 1 b + d] {u(t}}
(vi)
The transfer operator may be found by extracting the inverse y(t)
The differential equation is found by operating on both sides with [S-a] (S-a) {y(t)}
= [dS +(be- ad)] {u(t}}
(ix)
and rewriting as a differential equation: dy - - ay dt
= ddu - +(be- ad) u(t) dt .
(x)
Classical representations of higher-order systems may be derived in an analogous set of steps by using matrix operational algebra. A set of linear state and output equations written in standard form
x=Ax+Bu y=Cx+Du
(7.45) (7.46)
Operational Methods for Linear Systems
228
Chap. 7
may be rewritten in operational form by interpreting the matrices A, B, C, and D as matrix operators acting on the state and input vectors and writing them in operational form as A {}, B {}, C {}, and D {}. The system equations are then
S {x(t)} =A {x(t)} + B {u(t)}
(7.47)
y(t) = C {x(t)} + D {u(t)}
and the state equations may be rewritten (7.48)
S {x(t)}- A {x(t)} = [SI- A] {x(t)} = B {u(t)}
where the term SI creates an n x n matrix operator with S on the leading diagonal and the null operator elsewhere. (This step is necessary because matrix addition and subtraction are defined only for matrices of the same dimension.) The matrix operator [SI- A] {) appears frequently throughout linear system theory; it is a square n x n operator with elements directly related to the A matrix: (S- au) 21
-~
[SI- A]{}=
-atn -a2n
.
l
{}
(7.49)
[ -ani
(S -·ann)
The state equations, written in the form of Eq. (7.48), are a set of n simultaneous operational expressions. The common methods of solving linear algebraic equations, for example, gaussian elimination, Cramer's rule, the matrix inverse, elimination, and substitution, may be directly applied to linear operational equations such as Eq. (7.48). For low-order single-input single-output systems the transformation to a classical formulation may be performed in the following steps:
1. Rewrite the state equations in operational form. 2. Reorganize each operational state equation so that all terms in the state variables are on the left-hand side. 3. Treat the operational state equations as a set of simultaneous algebraic equations and solve for the state variables required to generate the output variable. 4. Substitute for the state variables in the output equation. 5. Write the output equation in operational form and identify the transfer operator. 6. Use the transfer operator to write a single differential equation between the output variable and the system input. This method is illustrated in the following two examples.
Sec. 7.7
229
Transformation from State Space Equationsto Classical Form
Example7.9 Use the operator method to derive a single differential equation for the capacitor voltage vc in the series RLC electric circuit discussed in Example 5.5. Solution The two state equations are {from Example 5.5) (i)
and the required output equation is (ii)
Step 1: In operational form the state equations are S {Vc} = 0 {Vc}
=
S{iL}
1
~
1 . +C {1 L} + 0 {Y.r}
±
(iii)
C {zd = O{Vs}
(iv)
{vc}-
~ {h} +
{V.r}
Step 2: Reorganize the state equations: S {vc}-
1 .
I{vel+ [s+ ~] =I {h}
(v)
{V.r}
Step 3: In this case we have two simultaneous operational equations in the state variables vc and iL· The output equation requires only vc. If Eq. (iv) is operated upon by [S + R/ L]. Eq. (v) is operated upon by 1/C. and the equations added. iL is eliminated: (vi) Step 4: The output equation is y = vc. Operate on both sides of Eq. (vi) using [S2 + (R/ L)S + 1/Lcr 1 and write in quotient form v _
1/LC
c- S2 + (R/L)S + lfLC
{V.} .r
\
~[_ J~
(vii)
Step 5: The transfer operator is H
_ 1/LC {} - S2 + (R/ L)S + 1/ LC
Step 6: The differential equation relating vc to
V,~
{viii)
is (ix)
Operational Methods for Linear Systems
230
Chap. 7
Cramer's rule for the solution of a set of linear algebraic equations, described in App. A, is a useful method to apply to the solution of operational equations. In solving for the variable x1 in a set of n linear algebraic equations such as Ax = b, the rule states
x;
=
det [A] det[A]
(7.50)
where A Ci) is another n x n matrix formed by replacing the i th column of A with the vector b. Cramer's rule for solution of the operational equations describing a single-input linear system is rewritten in terms of the inverse operator. H
[SI- A] {x}
= B {u}
(7.51)
then the relationship between the i th state variable and the input is x;
= (det [SI- A])- 1 det [lSI- A]<1>] {u(t)}
(7.52)
or, in quotient form, x;
=
det [lSI - A]J det [SI- A] {u(t)}
(7.53)
where (SI- A) isdefinedtobethematrixfonnedbyreplacingtheithcolumnof(SI- A) with the column vector B. The differential equation is det [SI- A] {x;} = det [ (SI- A)
(7.54)
Example 7.10 Use Cramer•s rule to solve for vL(t) in the electric system in Examples 5.5 and 7.9.
Solution From Example 5.5 the state equations are
(i)
and the output equation is (ii)
Sec. 7. 7
231
Transformation from State Space Equationsto Classical Form
In operational form the state equations are S [ 1/L
-1/ C ] [
S+R/L
vc] = [ 1/L 0 ] "in(t)
(iii)
h
The voltage vc(t) is given by
Vc(t)
=
>]
det [(sl- A)< 1
det[(SI-A)]
_
det [ (V;,.(t)}
=
det
[
0
-1/C ] S+ R L 1 I /C ] S+R/L
1/L
s
_
l/L
[V~n(t)J
(iv)
1/LC
- S2 + (R/L)S + (1/LC)
{Vin(t)}
The current h(t) is
[(SI-A)(2)] iL(I)=
det
det((SI-A)j
l"in(t)}
detL~L -1/C i~L] ] (V~a(t)).
= det [ i/L S
S+R/L
(v)
s/L
= S2 + (R/L)S + (ljLC) {Vin(t)} The output equation may be written direct1y from Eq. (ii): vL(t) = -vc - RiL
1 () d V, d vL - +-RL -dvL + -LC VL t = - dt2 dt dt2
(vii)
For a single-input single-output system the transfer operator may be found directly by evaluating the inverse matrix x = (SI- A)- 1 B {u}
(7.55)
232
Operational Methods for Linear Systems
Chap. 7
Using the definition of the matrix inverse operator (App. C),
[SI- A]- I
{}
= adj [SI -A] {} det[SI -A]
x(t)
=
adj [SI- A]B det [SI- A] {u(t)}
(7.56)
(7.57)
and substituting into the output equations gives
+ D {u(t)}
y(t) = C [SI- A]- 1 B {u(t)}
= (C[SI -A]- 1 B +D] {u(t)}
(7.58)
Expanding the inverse in terms of the detenninant and the adjoint matrix yields
() =
y t
Cadj(SI-A)B+det[SI-A]D { ( )} det[SI -A] u t
(7.59)
= H {u(t)} and so the required differential equation is
det [SI- A] {y(t)}
= (C adj (SI- A) B + det [SI- AJD] {u(t)}
(7.60)
Example 7.11
Use the inverse matrix operator to find a differential equation relating VL(t) to Vs(t) in the system described in Example 7.1 0. Solution The state vector, expressed operationa11y as (i)
from the previous example is
[
S
;: ] = [ 1/L
-1/C
S+R/L
]-l [ 0 ]
1/L Vm(t)
(ii)
The determinant of [Sl - A] is det[SI -A]= (S2 + (R/L)S+ (1/LC)]
(iii)
Sec. 7.8
Transformation from Classical Form to State Space Representation
233
and the adjoint of [Sl - A] is
•
·[ S adJ 11L
-liC ]=[S+RIL S + RIL -11L
liC] S
(iv)
From Example 5.5 and the previous example, the output equation VL (t) = -vc - Rh + V, (t) specifies that C = [ -1 - R] and D = [1]. The transfer operator, Eq. (7.59) is
H {}
=
C adj (Sl - A) B + det [Sl - A] D det[SI
-Ar
I
(v)
{}
Since
C adj (Sl - A) B = [ -1
R
- R 1[ S + R I L -tiL
1I C] [ 0 ] S
liL
I
(vi)
=-Ls- LC the transfer operator is H {}
= -(RIL)S- 1/LC + [S + (RIL)S + (IILC)] [I] 2
S2 + (RI L)S + (II LC) S2
(vii)
+ (RI L)S + 01 LC)
which is the same result found by using Cramer's rule in Example 7.9.
7.8
TRANSFORMATION FROM CLASSICAL FORM TO STATE SPACE REPRESENTATION The block diagram provides a convenient method for deriving a set of state equations for a system specified in terms of a single input-output differential equation. A set of n state variables can be identified as the outputs of integrators in the diagram, and state equations can be written from the conditions at the inputs to the integrator blocks (the derivative of the state variables). There are many methods for doing this; we present here one convenient state equation formulation that is widely used in control system theory. Let the differential equation representing the system be of order n and without loss of generality assume that the order of the polynomial operators on both sides is the same:
We may operate on both sides of the equation using s-n to ensure that all differential operators have been eliminated:
[an+ an-1s-t + ... + ats-
(7.62)
from which the output may be specified in terms of a transfer operator. If we define a dummy variable z(t) and split Eq. (7.62) into two parts,
Z (t)
= [an + an-tS-l +···+at s-
(7.63)
y (t)
= [bn + bn-tS- + · · · + bts- + bos-n] (z (t)}
(7.64)
1
Equation (7.63) may be solved for u(t): U
(t)
=[an+ an-ls-I+···+ ats-
(7.65)
and rearranged to generate a feedback structure that can be used as the basis for a block diagram:
Z (t)
= _!_ {u (t)}- [an-I s-l + · · · + al s-
an
an
an
(7.66)
The dummy variable z(t) is specified in terms of the system input u(t) and a weighted sum of successive integrations of itself. Figure 7.18 shows the overall structure of this directform block diagram. A string of n cascaded integrator (S- 1) blocks, with z(t) defined at the input to the first block, is used to generate the feedback terms, (z (t)}, i = 1, ... n, in Eq. (7.66). Equation (7.64) serves to combine the outputs from the integrators into the output y (t).
s-i
A set of state equations may be found from the block diagram by assigning the state variables x; (t) to the outputs of the n integrators. Because of the direct cascade connection of the integrators, the state equations take a very simple form. By inspection,
(7.67) Xn-1
.
Xn
=
Xn
ao at an-I 1 = - -an X t - -X2 • • • - - - X n + -u(t) an an an
Sec. 7.8
Transformation from Oassical Fonn to State Space Representation
235
y(t)
s-1
u(t)
Figure 7.18:
BJock diagram of a system represented by a classical differentia] equation.
In matrix form these equations are
it i2 Xn-2 Xn-1 Xn
0 0
=
1
0
0 0 -aofan
Xn
0 0
I
0 1 -an-tfan
0 -an-2/an
-a Ifan
(7.68)
0 0
XJ X2 Xn-2 Xn-1
0 0
0 0
+
0 0 lfan
u (t)
The A matrix has a very distinctive form. Each row except the bottom one is filled with zeroes except for a l in the position just above the leading diagonal. Equation (7 .68) is a common form of the state equations used in control system theory and known as the phase variable or companion form. This form leads to a set of state variables that may not be physical variables within the system. The corresponding output relationship is specified by Eq. (7.64) by noting that X; = s-(n+l-i) {z(t)}. (7.69)
236
Operational Methods for Linear Systems
Chap. 7
But z (t) = dxnfdt, which is found from the nth state equation in Eq. (7.67). When substituted into Eq. (7.69), the output equation is
XI] bn . + -u(t)
(7.70)
X2
[:
an
Xn
Example 7.12 Draw a direct-form realization of a block diagram and write the state equations in phase variable fonn for a system with the differential equation
. d3 y d 2y -d +7-d t3 t2
dy
+ 19-dt +
du 13y = 13-d t +26u .
(i)
Solution The system order is 3, and using the structure in Fig. 7.18. the block diagram is as shown in Fig. 7.19. The state and output equations are found directJy from Eqs. (7.68) and (7.70):
[it] = [. 0 0
0
1
x2
0
X3
-13
-19
-7
X3
1
y(t)
u(t)
1 0] [Xt] + [0]
~2
= [~
13 0]
[::J
(ii)
u(t)
+ [O]u (t)
+
~
Figure 7.19: Block diagram of the transfer operator of a third-order system found by a direct realization.
(iii)
y(l)
Sec. 7.9
7.9
The Matrix Transfer Operator
237
THE MATRIX TRANSFER OPERATOR
For a multiple-input multiple-output system Eq. (7 .55) is written in terms of the r component input vector u(t): x(t)
= [SI- A]- 1 B {u(t)}
(7.71)
generating a set of n simultaneous linear operator equations where B is n x r. Themcomponent system output vector y(t) may be found by substituting this solution for x(t) into the output equation as in Eq. (7 .58): y(t)
= C [SI- A]- 1 B (u(t)} + D {u(t)}
= [C[SI- A]- 1 B +D] {u(t)}
(7.72)
and expanding the inverse in terms of the determinant and the adjoint matrix, y(t)
= (det [SI- A])- 1 (C adj (SI- A) B + det [SI- A] D) {u(t)}
= H{u(t)}
(7.73)
where H {} is defined to be the matrix transfer operator: B (}
= C adj (SI -
A) B + det [SI - A] D det[SI- A]
(7.74)
For a system with r inputs UJ (t), ... , u,(t) and m outputs Yl (t), ... , Ym(t), H {}is am x r linear matrix operator whose elements are individual scalar transfer operators relating a given component of the output y(t) to a component of the input u(t). Expansion ofEq. (7.74) generates a set of equations: Yt(t) Y2(t) [
.. .
Ym(t)
l[
Hu H21
Hlr Htr
.. .
Hml
...
Hm2
Hmr
l["I l Ul(t) (t)
.. .
(7.75)
u,(t)
where the ith component of the output vector y(t) is y;(t) = H;1 {u1 (t)}
+ Hn [u2(t)} + ·· · + H;, (u,(t)}
(7.76)
The elemental operator Hij () is the scalar transfer operator between the i th output component and the jth input component All the elemental scalar operators in B {} have the same operator factor (det [SI- A])- 1 {} associated with them. The result is that all input-output differential equations for a system have the same coefficients on the left-hand side. If the system has a single input and a single output, H (} is a scalar operator H (} and the procedure generates the input-output transfer operator directly.
Operational Methods for Linear Systems
238
Chap. 7
PROBLEMS 7.1. Consider the mechanical system consisting of a mass suspended on a cantilevered beam as shown in Fig. 7.20. Use the linear graph to draw an operational block diagram for this system, and derive the system state equations directly from the block diagram.
v
m
m
Figure 7.20: A mechanical system and its linear graph.
7.2. A mechanical cam drive system is shown in Fig. 7.21. The cam may be represented as a velocity input V (t) to the cam follower, which is connected to a mass supported on a horizontal surface. The rod connecting the follower and the mass has finite stiffness K, and the mass slides on the horizontal surface with effective viscous friction B. Assume that the follower is always in contact with the cam. Use an operational block diagram to derive a set of state equations for this system.
K
m
B
Figure 7.21:
Cam drive system.
7.3. Construct a linear graph model for the electrical circuit shown in Fig. 7.22. Draw the operational block diagram for the circuit, and derive the system state equations from the block diagram.
Figure 7.22: Electrical circuit
7.4. Consider the nonlinear fluid system described in Example 5.13 and shown in Fig.·5.22. From the linear graph model given in the example, construct the system operational block diagram using linear and nonlinear elements. Derive the system state equations from the operational block diagram and compare them with the results given in the example.
Chap. 7
239
Problems
7 .S. Operational block diagrams are often used to model physical systems that are coupled to instrumentation and control systems. Consider the motor drive system described in Example 5.4 and illustrated in Fig. 5.13. (a) Use the linear graph to draw an operational block diagram for the system. (b) A tachometer is attached to the shaft and produces a voltage v, proportional to the angular velocity of the flywheel. that is. v, = K1 0. Modify the system block diagram to include the tachometer and derive the differential equation relating the sensor output voltage to the motor rotational speed.
(c) An angular position sensor is installed on the flywheel shaft. The output voltage v4 of this sensor is proponional to the shaft displacement 8. that is, v4 = K 28. Modify the block diagram for the system to include the position sensor and derive a set of system state equations which reflect the addition of the position sensor. Has the addition of this sensor changed the order of the system? 7.6. Feedback control, illustrated in Fig. 7.23, is used to modify the dynamic behavior of a system by monitoring its response y(t), comparing the response with a desired response r(t), and using the error e(t) = r(t)- y(t) as the input to drive the system. Example 6.1 describes an electric motor drive system for a turntable and derives the linear graph for the system. In this problem we examine feedback control of the motor speed.
e(t)
System
Error
Figure 7.23:
l----4-~
y(t)
Response
Feedback control applied to a system.
(a) Draw the operational block diagram for the motor drive.
=
(b) A tachometer, which provides an output voltage, v0 K 10, proponional to the turntable angular velocity 0, is installed on the shaft. The output voltage from the tachometer is compared to a reference voltage vd in an electronic amplifier-summer and the difference is amplified to generate the input voltage to the motor terminals V.s = K2 (vd- v 0 ), as shown in Fig. 7.24. Modify the system block diagram to include the tachometer and the amplifier-summer.
(c) Use the block diagram to derive the system state equations for the complete system with the feedback control. What is the influence of the angular velocity feedback on the system? 7.7. Draw an operational block diagram for the system described by the state and output equations:
u: J ~ ~ n[~: J ~ n[::] = [
[~] [~ ~ ~] [~;] =
+[
240
Operational Methods for Linear Systems
Chap. 7
Turntable/
Amplifier
+
K2
Motor Figura 7.24:
R
Feedback speed conttol for a rotary drive system.
7.8. A system is described in terms of three linear operators
= 2S + 1
.C.1
.c.2 = .C.3
4
= 3S2 + 2S + 1
as
.C.]1.c.2.c.~ {y} = u (a) Determine the system transfer operator relating the output y to the input u. (b) Write the differential equation relating y to u. 7.9. In Example 7.6 it is shown that if f(t) = 0 fort:: 0, the inverse operator (S- a)- 1 is satisfied by the integral (S- a)- 1{/(t)} e
[oo ez
f(r:)dr:
A first-order system has a state equation
x=-3x+2u Find the transfer operator between the input u(t) and the state variable response x(t). Use the result of Example 7.6 to find the response of the system to a step input, that is u(t) = 0
fort:: 0
=1
fort> 0.
7.10. A linear system is described by the second-order differential equation
d2y dt2
dy
+ 7 dt + 12y = u
241
Problems
Chap. 7
(a) Find the transfer operator between the input u(t) and the response y(t). (b) Express the system as a cascade connection of two first-order systems. Draw a block diagram of this configuration. (c) Express the system as a parallel connection of two first-order systems. Draw a block diagram of this configuration. (d) Use the result of Example 7.6 to find the response of the second-order system to a step input (see Problem 7.9) using both the cascade and the parallel system representations. Show that the results are the same. 7 .11. Find a single differential equation for each of the systems represented in the block diagrams in Fig. 7.25. SS+ 1
u(t)
y(t)
S+S
3S+2
u(t)
S+2
y(t)
Sl+2S+l
3 S+3 (a)
Figura 7.25:
(b)
Systems represented by cascade and parallel operators.
7.12. Consider the feedback control of the motor drive system described in Problem 7.6. The motor/turntable system is a second-order system with a measured transfer operator relating angular velocity 0 to input voltage Vs
100 - S2 +21S+20
H (} _
The tachometer gain K 1 = 0.05 v/rad, and the amplifier gain K2 feedback control system is shown in Fig. 7.26.
= 100.
A block diagram of the
r-----------------------------
1 I
I I I I+
Amplifier
100
-
Vs !
Motor 50 S2 + 21S + 20
~
Tachometer 0.05
---------------------~o~~~E=~J Figure 7.26:
Block diagram of the motor/turntable speed control system.
(a) Find the differential equation representing the motor. (b) Find the transfer operator relating the actual speed of the motor 0 to the input voltage vd for the closed-loop controlled motor.
(c) Find the differential equation that describes the cJosed-loop controlled motor.
242
Operational Methods for Linear Systems
Chap. 7
7.13. A system that has been modeled is described by the following system matrices:
C=[l
0],
D=[O]
(a) Draw a block diagram representation of the system. (b) Produce a single input-output differential equation for the system using
L Direct manipulation of the differential equations (that is by substitution and elimination). ii. Cramer's Rule. iiL Expansion of the matrix relationship y(t)
= [C(SI- A)- 1B + D] U(t).
7.14. Consider the mechanical system described in Example 5.2 and represented by the state equations:
(a) Using operator methods, derive a single differential equation relating the force input to the mass velocity. (b) Derive a differential equation relating the mass displacement from its at-rest position to the force input. 7.15. For the fluid system described in Example 5.6, derive the system transfer operator relating the tank pressure to the pump output pressure, and write a single differential equation relating the tank pressure to the pump output pressure. 7.16. For the mechanical system described in Example 5.9, write a single differential equation relating the velocity of the mass element to the input force, and derive the transfer operator relating the velocity of the mass to the input force. 7.17. Consider the system described in Example 6.5. Derive the system transfer operator relating the flywheel speed to the input voltage, and write a single differential equation relating the flywheel speed to the input voltage. 7.18•. An electro-mechanical translational drive system is used to position a mass on a horizontal surface as shown in Fig. 7.27. The drive system provides a translational force output that is a function of the drive system input voltage. The mass is driven through a rigid rod and rests on a surface that has a viscous friction retarding force. A differential equation for the drive system has been constructed from experimental measurements on the system relating the driving force Fs to the voltage input Y.r in tenns of several constant coefficients:
Figure 7.27: Electro-mechanical drive.
243
References
Chap. 7
(a) Draw an operational block diagram representing the drive system differential equation. (J)) Draw the-operational block diagram for the mass driven by the force and couple the two block
diagrams to generate the system operational block diagram. (c) Derive a set of state equations for the complete system from the system block diagram. 7.19. Write each of the following differential equations in state-space form. (a)
~; + 3y = d 2y
(b) dt 2
dy
du
+ 4 dt + 2y = u +? dt
d 3y
(c) 3 dtl
2u
d2y
dy
d 2u
du
+ 2 dt2 + 2 dt + Y = 7 dt 2 + 5 dt + u REFERENCES
[1] Shearer, J. L., Murphy, A. T., and Richardson, H. H., Introduction to System Dynamics, Addison-
Wesley, Reading, MA, 1967. [2] Shearer, J. L., and Kulakowski, B. T., Dynamic Modeling and Control of Engineering Systems, Macmillan, New York, 1990. [3] Ogata, K., System Dynamics, Prentice Hall, Englewood Cliffs, NJ, 1978. [4] Ogata, K., Modem Control Engineering (2nd ed.), Prentice Hall, Englewood Cliffs, NJ, 1990. [5] Dorf, R. C., Modem Control Systems (5th ed.), Addison-Wesley, Reading, MA, 1989. [6] Franklin, G. F., Powell, J.D., and Emami-Naeni, A., Feedback Control of Dynamic Systems, Addison-Wesley, Reading, MA, 1986. [7] Maciejowski, J. M., Multivariable Feedback Design, Addison-Wesley, Reading, MA, 1989. [8] Schul~ D. G., and Melsa, J. L., State Functions and linear Control Systems, McGraw-Hill, New York, 1967. [9] Kaplan, W., Operational Methods for linear Systems, Addison-Wesley, Reading, MA. 1962. [10] Yoshida, K., Operational Calculus, Springer-Verlag, New York, 1984. [11] Liverman, T. P. G., Generalized Functions and Direct Operational Methods, Prentice Hall, Englewood Cliffs, NJ, 1964.
8
System Properties and Solution Techniques
8.1
INTRODUCTION Knowledge of the way dynamic systems respond to external inputs is central to their design and evaluation. In order to detennine the response of a state-determined system we require the following:
1. The mathematical description of the system, that is, the set of system state equations 2. The specification of the n state variables at an initial time to, that is, conditions
th~
initial
3. The specification of the system inputs for all time t ::! to. These are necessary and sufficient conditions to determine the system behavior for all time t > to. 1\vo broad classes of methods are commonly used to determine the response of a state-detennined system model to its initial conditions and inputs: 1. Analytical solution techniques, in which closed-form expressions for the output variables are derived for a specified system input and set of initial conditions 2. Numerical solution techniques, in which the system state equations are integrated using approximate numerical algorithms to determine the response in a numerical format Both analytical and numerical solution methods are important in engineering work. The solution methodology that is most appropriate for a given study depends on the system order and complexity, and in particular on whether the models are linear or nonlinear [1-3]. Analytical solution methods generate closed-fonn expressions for the system response in tenns of the system par~meters, which can lead to an understanding of the 244
Sec. 8.2
System Input Function Characterization
245
influence of elements on system behavior. In practice these methods are generally applied to low-order linear systems and are usually restricted to limited classes of input functions for which solution methods exist. Numerical solution methods, implemented in the form of computer-based simulation software packages, are applicable to a broader class of systems, both linear and nonlinear. They generate tabulated or plotted output representing the system response to a specified (or tabulated) input function at discrete times. The output generated by the computer program is purely numerical (even in plotted form), and the simulation must be repeated if a system parameter is changed or if a new set of initial conditions or inputs is applied. Numerical simulation methods are described in Chap. 11. In this chapter we define a set of families of input functions ~sed as typical system inputs in dynamic analysis and introduce classical analytical solution techniques for linear, state-determined systems. 8.2
SYSTEM INPUT FUNCTION CHARACTERIZATION
The inputs to physical systems are prescribed variables with a known form. In mechanical systems inputs are forces and velocities, in electric systems voltages and currents, in fluid systems pressures and flows, and in thermal systems temperature and heat flows. In general, input functions u(t) may be classified in two groups: 1. Deterministic inputs in which the input is a well-defined prescribed function of time, for example, u(t) = sin(wt), and 2. Random or stochastic inputs in which the input function cannot be described as any specific function and only its statistical properties, such as the mean value, variance, and average frequency content may be specified. Although many naturally occurring phenomena, such as wind- and wave-generated forces on structures, are random in nature, the response of systems to this class of inputs is beyond the scope of this book [4]. Deterministic functions may be further divided into two classes: 1. Aperiodic (or transient functions), which are not repetitive 2. Periodic functions, which repeat at regular intervals T, that is, f(t) = f(t + nT) for all n = 1, 2, 3, .... Many physical events are transient in nature, for example, an electric current surge into a capacitor caused by the closing of a switch, the force on an automobile during a collision, and the torque on the shaft of a lathe as the tool enters the workpiece. Many other physical phenomena may be modeled by periodic input functions. System inputs from sources such as a 60-Hz electric power distribution system, structural vibrations induced by rotating machinery, and acoustic waves may often be approximated by periodic functions. Engineers frequently analyze systems by studying the response to a small set of representative functions known to elicit important system response characteristics. The suitability of a system to its intended task is then inferred from its response to these test inputs. These inputs often consist of members of the family of singularity functions and periodic functions.
System Properties and Solution Techniques
Chap. 8
8.2.1 Singularity Input Functions The singularity functions are a family of transient waveforms frequently used to characterize the response of systems to discontinuous inputs. The singularity functions are either discontinuous, or have discontinuous derivatives, at time t = 0 and are defined to be zero for all time t < 0.
The Unit Step Function The unit step function Us(t) is widely used to study the way a system responds to discontinuous, or sudden, changes in its input. It is defined as
u
_ {
s (1) -
0 for t ::; 0 1 for t > 0
(8.1)
and is shown in Fig. 8.1. Step changes of other amplitudes can be formed by multiplying the unit step by a constant.
Us(t)
I
1.0 _~------------
0
Tune
Rgure 8.1: The unit step function.
The Unit Impulse Function The unit impulse tS(t) is used to detennine system response to short-duration transient inputs. Figure 8.2 shows a unit pulse function tSr(t), that is, a brief rectangular pulse function of duration T defined to have a constant amplitude 1IT over its duration, and so the area T x I IT under the pulse is unity: 0 tST(t)
=
l/ T { 0
fort.::: 0 }
0
(8.2)
fort> 0.
The impulse function (also known as the Dirac delta function) 8(t) is defined as the limiting form of the unit pulse tST(t) as the duration T approaches zero. As the duration of tSr(t) decreases, the amplitude of the pulse increases to maintain the requirement of unit area under the function, and (8.3)
The impulse bas the properties that tS(t)
= 0 for all t =F 0 and bas unit~ and so
L:
&(t)dt =I
(8.4)
Sec. 8.2
System Input Function Characterization
247
The impulse is therefore defined to exist only at time t = 0, and although its value is strictly undefined at that time, it must tend toward infinity to maintain the property of unit area in the limit. The strength of a scaled impulse K 8(t) is defined by its area K. The impulse functions are designated graphically by an arrow, with the length indicating the strength, as shown in Fig. 8.2. &(t)
liT 1 -
liT2-11/T3 liT4
I I
I
Time
0 Time
(a) Unit pulses of different widths
(b) The impulse function
Figure 8.2: The unit impulse defined as the limit of a pulse with unit area.
Although true impulse functions are not found in nature, they are approximated by short-duration, high-amplitude phenomena such as a hammer impact on a structure or a lightning strike on a radio antenna. The unit impulse may be considered informally to be the derivative of the unit step Us (t). Although the step function is not formally differentiable because it is discontinuous at time t = 0, its derivative is zero for all t =F 0, and if the unit impulse is integrated from t = -oo to t, the result is a unit step:
u,(t) = [
&(r)ddor t > 0
(8.5)
00
and we therefore assert: 8(t)
dus dt
=-
(8.6)
The Unit Ramp Function The unit ramp function u,(t) is defined to be a linearly increasing function of time with a slope of unity:
u t _ {0 '()t
for t .:5 0 for t > 0
(8.7)
as shown in Fig. 8.3. The ramp is the integral of the unit step
u,(t) =
L:
u,(t) dt
and is used to study the response of systems to constantly changing inputs.
(8.8)
System Properties and Solution Techniques
248
Chap. 8
u,.(t)
1.0
0
1.0 Time
The unit ramp function.
Figure 8.3:
Relationships Among Singular Functions The ramp, step, and impulse functions represent a family of functions which, as shown in Fig. 8.4 are related by successive integrations.
l
u,(t)
u,.(t)
l.Ot-----
0
1.0
Integration
Integration
Differentiation
Differentiation --- 0
t
Time
Time Figure 8.4:
Time
The re1ationsbip between singu1arity functions.
Time Shifting of Singularity Functions The singularity functions may be used to describe transient inputs that take place at a time other than t = 0. The discontinuity associated with each function accurs when the function argument is zero; therefore, a step that occurs at time to may be written as Us (t - to) since t - to 0 at t to. This property may be used to synthesize a transient function from a sum of singularity functions; for example, Fig. 8.5 shows the function u(t) Us(t)- 2us(t- 1) + Ur(t- 2)- u,(t- 3).
=
=
8.2.2 Sinusoidal Inputs
=
=
Sinusoidal input functions such as u(t) A sin (wt + t/J) and u(t) A cos (wt + t/J), shown in Fig. 8.6, are periodic with period T = 2n'I w seconds. These functions are described by three parameters: w, the angular frequency, (rad/s); t/J, the phase (rad); and A, the amplitude of the waveform. The frequency f of a periodic waveform is defined directly from the period f = I IT (Hz or cycles/second). The frequency of a sinusoid is related to the angular frequency w = 21rf = 2n IT. It is also common practice to express the phase in degrees instead of radians, with 36()0 2n' rad. Sinusoidal waveforms are used to represent many naturally occurring periodic phenomena. Furthermore, they are used as the basis for representing other periodic and transient waveforms through the process of Fourier synthesis, as described in Chap. 15.
=
8.2.3 Exponential Inputs Another class of theoretically and practically important input functions includes exponential
Sec. 8.2
249
System Input Function Characterization
u(l)
u(r)
2
2 u,(r)
0
0 Time -I
-I
-2u,(t - I)
-2
-2
(a) Component step and ramp functions.
(b) Resultant function formed
by summing components. Figure 8.5:
A transient functi on u(r) = u,(r)- 2u,(r- I)+ u,(r- 2) -u,(r- 3) synthesized from unit singularity function s.
inputs u(t) = est , where the exponent s may be either real or complex. Exponential wavefonns occur naturally as the response of linear systems and also provide a means for expressing sinusoidal functions in a compact fonn. For real exponents the value of the function increases without bound if s > 0, or decays exponentially to zero if s < 0, as shown in Fig. 8.7. The exponents defines the rate of decay or growth of the wavefonn. Table 8.1lists some properties of the exponential wavefonn that are of importance in system dynamics. When the exponent s is imaginary, that is, s = jw , where j = R. est is complex and the Euler fonnulas (App. B) define the real and imaginary parts: ejwt e- jwt
+j
sin (wt)
(8.9)
= cos (wt) - j sin (wt)
(8.1 0)
= cos (wt)
A sin(wr + )
Amplitude A
r
I
Period 2'TT-T=w
Figure 8.6:
A sinusoidal function.
2SO
System Properties and Solution Techniques
Chap. 8
exp (-at) l.Or----
0
0
Time
Time
Figure 8.7: Real exponential waveforms.
The exponential eiOJt is therefore periodic with angular frequency w and period T = 231'1w. The two functions, Eqs. (8.9) and (8.1 0), may be added and subtracted to give cos (wt)
. ) = -2] (e 1. + e-JOJt
sin (wt)
=
1
0)
1 ( . . j eJOJt - e-1"'')
2
(8.11)
(8.12)
The real periodic waveforms sin (wt) and cos (cut) may therefore be considered to consist of two complex exponential components, one with a positive frequency w and the second with a negative frequency -w. This complex representation of real waveforms is examined in detail in Chaps. 14 and 15. TABLE 8.1:
Elementary Properties ofthe Exponential Function es'