are applied to ensure that physical principles are not iolated in the definition of the discrete transition model. The oerall goal is to use this fram

Similar documents
An Ontology for Transitions in Physical Dynamic Systems*

Purpose of the experiment

DEVIL PHYSICS THE BADDEST CLASS ON CAMPUS AP PHYSICS

The Kinetic Theory of Gases

Inelastic Collapse in One Dimensional Systems with Ordered Collisions

UNDERSTAND MOTION IN ONE AND TWO DIMENSIONS

0 a 3 a 2 a 3 0 a 1 a 2 a 1 0

A. unchanged increased B. unchanged unchanged C. increased increased D. increased unchanged

Chapter 1: Kinematics of Particles

Cases of integrability corresponding to the motion of a pendulum on the two-dimensional plane

Relativity in Classical Mechanics: Momentum, Energy and the Third Law

Transmission lines using a distributed equivalent circuit

Frames of Reference, Energy and Momentum, with

Qualitative Dynamic Behavior of Physical System Models With Algebraic Loops

A Study of 'I~ransitions in Dynamic Behavior of Physical Systems

Reversal in time order of interactive events: Collision of inclined rods

Section 6: PRISMATIC BEAMS. Beam Theory

4 Fundamentals of Continuum Thermomechanics

Conservation of Momentum in Two Dimensions

Linear Momentum and Collisions Conservation of linear momentum

Classical Mechanics NEWTONIAN SYSTEM OF PARTICLES MISN NEWTONIAN SYSTEM OF PARTICLES by C. P. Frahm

A COMBINED QUALITATIVE/QUANTITATIVE APPROACH FOR FAULT ISOLATION IN CONTINUOUS DYNAMIC SYSTEMS

4-vectors. Chapter Definition of 4-vectors

AP Physics Chapter 9 QUIZ

MOTION OF FALLING OBJECTS WITH RESISTANCE

ME224 Lab 5 - Thermal Diffusion

Introduction to Thermodynamic Cycles Part 1 1 st Law of Thermodynamics and Gas Power Cycles

Astrometric Errors Correlated Strongly Across Multiple SIRTF Images

SELECTION, SIZING, AND OPERATION OF CONTROL VALVES FOR GASES AND LIQUIDS Class # 6110

Chapter 4: Techniques of Circuit Analysis

Chapter 14 Thermal Physics: A Microscopic View

Residual migration in VTI media using anisotropy continuation

Dynamics ( 동역학 ) Ch.2 Motion of Translating Bodies (2.1 & 2.2)

VISUAL PHYSICS ONLINE RECTLINEAR MOTION: UNIFORM ACCELERATION

4. A Physical Model for an Electron with Angular Momentum. An Electron in a Bohr Orbit. The Quantum Magnet Resulting from Orbital Motion.

Why does Saturn have many tiny rings?

Motion in Two and Three Dimensions

DO PHYSICS ONLINE. WEB activity: Use the web to find out more about: Aristotle, Copernicus, Kepler, Galileo and Newton.

A possible mechanism to explain wave-particle duality L D HOWE No current affiliation PACS Numbers: r, w, k

(a) Taking the derivative of the position vector with respect to time, we have, in SI units (m/s),

CS-184: Computer Graphics

FOCUS ON CONCEPTS Section 7.1 The Impulse Momentum Theorem

An Introduction to Three-Dimensional, Rigid Body Dynamics. James W. Kamman, PhD. Volume II: Kinetics. Unit 3

Purpose of the experiment

Chapter 11 Collision Theory

Tools for Investigation of Dynamics of DC-DC Converters within Matlab/Simulink

Brake applications and the remaining velocity Hans Humenberger University of Vienna, Faculty of mathematics

particle p = m v F ext = d P = M d v cm dt

CONSTRUCTION PROCESS NUMERICAL SIMULATION AND SEISMIC ASSESSMENT OF MALLORCA CATHEDRAL

LECTURE NOTE THERMODYNAMICS (GEC 221)

EXPERIMENT 8 BALLISTIC PENDULUM. Figure 1 Setup to determine the initial speed of the projectile using the Blackwood Pendulum

Motion in Two and Three Dimensions

Are the two relativistic theories compatible?

P2.8 THE MECHANICS OF FALLING HAILSTONES AND HAILSWATHS. Kevin Vermeesch* and Ernest Agee Purdue University, West Lafayette, IN. where b is given as

Position in the xy plane y position x position

General Lorentz Boost Transformations, Acting on Some Important Physical Quantities

Your Thoughts. What is the difference between elastic collision and inelastic collision?

Web Resource: Ideal Gas Simulation. Kinetic Theory of Gases. Ideal Gas. Ideal Gas Assumptions

Probabilistic Engineering Design

A-level Mathematics. MM03 Mark scheme June Version 1.0: Final

Chapter 7: The Second Law of Thermodynamics

The number of marks is given in brackets [ ] at the end of each question or part question. The total number of marks for this paper is 72.

DYNAMICS OF ESSENTIALLY NONLINEAR VIBRATION ABSORBER COUPLED TO HARMONICALLY EXCITED 2 DOF SYSTEM

(a) During the first part of the motion, the displacement is x 1 = 40 km and the time interval is t 1 (30 km / h) (80 km) 40 km/h. t. (2.

Chapter 1. The Postulates of the Special Theory of Relativity

DYNAMICS. Kinetics of Particles: Energy and Momentum Methods VECTOR MECHANICS FOR ENGINEERS: Tenth Edition CHAPTER

AP Physics C: Mechanics Practice (Systems of Particles and Linear Momentum)

Physics 2A Chapter 3 - Motion in Two Dimensions Fall 2017

AP Physics C Mechanics Objectives

CJ57.P.003 REASONING AND SOLUTION According to the impulse-momentum theorem (see Equation 7.4), F t = mv

AP Physics C. Momentum. Free Response Problems

Magnetic Fields Part 3: Electromagnetic Induction

Think-Pair-Share. Linear Momentum (Ch 9) Linear Momentum, cont. Newton and Momentum

REUNotes08-CircuitBasics May 28, 2008

Plasma electron hole kinematics. I. Momentum conservation

Lesson 2: Kinematics (Sections ) Chapter 2 Motion Along a Line

N10/4/PHYSI/SPM/ENG/TZ0/XX PHYSICS STANDARD LEVEL PAPER 1. Monday 8 November 2010 (afternoon) 45 minutes INSTRUCTIONS TO CANDIDATES

Z transform elements Part 1:

Velocity, Acceleration and Equations of Motion in the Elliptical Coordinate System

PHYSICS (B) v 2 r. v r

SF Chemical Kinetics.

Lecture #8-6 Waves and Sound 1. Mechanical Waves We have already considered simple harmonic motion, which is an example of periodic motion in time.

LECTURE 2: CROSS PRODUCTS, MULTILINEARITY, AND AREAS OF PARALLELOGRAMS

MATHEMATICAL MODELLING AND IDENTIFICATION OF THE FLOW DYNAMICS IN

Course Name: AP Physics. Team Names: Jon Collins. Velocity Acceleration Displacement

where G is called the universal gravitational constant.

Scalar multiplication and algebraic direction of a vector

Semi-implicit Treatment of the Hall Effect in NIMROD Simulations

Nonequilibrium thermodynamics of driven amorphous materials. I. Internal degrees of freedom and volume deformation

Min Chen Department of Mathematics Purdue University 150 N. University Street

AP PHYSICS 1 Learning Objectives Arranged Topically

Realization of Hull Stability Control System for Continuous Track Vehicle with the Robot Arm

Kinetic plasma description


Semi-Empirical Formulas of Drag/Lift Coefficients for High Speed Rigid Body Manoeuvring in Water Column

Relativistic Energy Derivation

Chapter 2: 1D Kinematics Tuesday January 13th

Physics 4A Solutions to Chapter 4 Homework

What make cloth hard to simulate?

qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq

Transcription:

A Comprehensie Methodology for Building Hybrid Models of Physical Systems Pieter J. Mosterman Λ Institute of Robotics and System Dynamics DLR Oberpfaffenhofen P.O. Box 1116 D-8223 Wessling Germany Gautam Biswas y Dept. of Electrical Engineering and Computer Science Box 1679, Sta B Vanderbilt Uniersity Nashille, TN 37235 U.S.A. May 3, 2 Abstract This paper describes a comprehensie and systematic framework for building mixed continuous/discrete, i.e., hybrid physical system models. Hybrid models are a natural representation for embedded systems (physical systems with digital controllers) and for complex physical systems whose behaior is simplified by introducing discrete transitions to replace fast nonlinear dynamics. In this paper we focus on two classes of abstraction mechanisms, iz., time scale and parameter abstractions, discuss their impact on building hybrid models, and then derie the transition semantics required to ensure that the deried models are consistent with physical system principles. The transition semantics are incorporated into a formal model representation language, which is used to derie a computational architecture for hybrid systems based on hybrid automata. This architecture forms the basis for a ariety of hybrid simulation, analysis, and erification algorithms. A complex example of a colliding rod system demonstrates the application of our modeling framework. The diergence of time and behaior analysis principles Λ Pieter J. Mosterman is supported by agrantfromthedfgschwerpunktprogramm KONDISK. y Gautam Biswas is supported by DARPA SEC contract number F33615-99-C-3611 and a grant from HP Labs, Palo Alto, CA. While on leae at the Knowledge Systems Lab, Stanford Uniersity, CAhewas supported by NIST grant number 7NANB6H75-5. 1

are applied to ensure that physical principles are not iolated in the definition of the discrete transition model. The oerall goal is to use this framework as a basis for deeloping systematic compositional modeling and analysis schemes for hybrid modeling of physical systems. Preliminary attempts in this area are discussed, with thoughts on how to deelop this into a more general methodology. Keywords: hybrid modeling, systematic model abstractions, parameter abstraction, time scale abstraction, model erification. 1 Introduction The need to achiee more optimal and reliable performance in complex physical systems that span from consumer products to aircraft and nuclear plants, while meeting more rigorous safety standards has led to a proliferation of computer-based techniques for modeling and analysis of these systems. The complexity of simulating, analyzing, and understanding system behaior is often handled by replacing nonlinear models by simpler component model constructs that together proide a good approximation to actual system behaior. Traditional qualitatie reasoning methods in Artificial Intelligence (e.g., [9, 14, 24]) employ abstractions in (i) the quantity space of system ariables, and (ii) the functional relations among these ariables to create simpler discretized piecewise behaiors that emphasize qualitatie differences between different components of the behaior [9, 22]. Howeer, these methods, tend to generate a large number of behaiors, many of them spurious, thus limiting their usefulness in real world applications. A key to generating correct physical system behaior is to ensure that energy conseration and continuity of power constraints [51] are properly incorporated into the system model. System models expressed as ordinary differential equations (ODEs) or a combination of differential and algebraic equations (DAEs) generate quantitatie behaior in real space. Howeer, the continuous behaior may contain steep gradients, often of a nonlinear nature, and behaior generation algorithms hae to deal with the resulting numerical stiffness which hampers systematic analysis and interpretation of the results. Preious work in qualitatie reasoning (e.g., [18, 23]) has recognized that complex physical system behaiors often occur at different temporal and spatial scales. Iwasaki and Bhandari [18] hae used relatie magnitudes of coefficients in an influence matrix (i.e., the A matrix) of a linear system to determine nearly decomposable" substructures. They assume a linear system whose influence matrix is nearly decomposable. Making a further assumption that the system is stable, they replace the tightly-coupled ariables within each submatrix by an aggregated ariable using eigenector techniques, and reformulate the original ODE set into 2

a smaller ODE set, that can be soled to derie the dynamic behaior of the system. This is similar to Kuipers' [23] approach in QSIM [22] where the relations between tightly-coupled ariables are replaced by instantaneous algebraic relations. Methods for simulating across multiple time scales in QSIM are formulated using a hierarchy of constraint networks. Our work generalizes and extends these approaches to linear and nonlinear systems. Analyzing behaiors of complex systems, we realize that small time constant effects cannot always be ignored in generating dynamic system behaior. We identify relatiely small and large parameters in the physical system model and apply systematic techniques to abstract away their effects or condense their effect on gross behaior to occur at a point in time [32, 34, 37, 43]. The resultant system model exhibits multiple modes of operation [5], each with simpler piecewise continuous behaior, but transitions between the modes may introduce discontinuous changes in the system ariables. Consider the system of three masses, shown in Fig. 1. Initially, masses m 2 and m 3 are touching and at rest, and m 1 is moing toward m 2 with a constant elocity. For simplicity, we assume equal masses, i.e., m 1 = m 2 = m 3, and no frictional losses. When m 1 collides with m 2, there is a redistribution of momentum, which results in an abrupt change in the elocities of m 1 and m 2, i.e., 1 = and 2 =. The mass m 2 begins its continuous motion just after the abrupt change, but immediately collides with m 3. The phenomena repeats, with all of m 2 's momentum being transferred to m 3, causing another discontinuous change in elocities. On a more detailed scale, if one takes into account the elasticity of the material of the bodies, the collision process can be described by more complex continuous models that describe the fast exchange of momentum in terms of energy conersion from kinetic to potential to kinetic energy at a ery fine grained time scale. Howeer, such models are hard to build and analyze. Een if one could build a good representatie model of the detailed phenomenon, accurate estimation of the parameters of the model is a ery difficult task. Creating a more abstract but simpler model of the collision phenomena produces a discontinuous change that occurs at a point in time. Aconenient formalism for representing phenomena that combine discrete and continuous behaiors are hybrid dynamic system models [2, 15, 43]. These models generate continuous behaior interspersed with discrete eents. A sequence of discontinuous changes may occur between two continuous behaior time interals (for the colliding bodies, a collision between m 1 and m 2 is immediately followed by a collision between m 2 and m 3 ). Hybrid behaiors may naturally occur in physical systems with embedded digital control, because the controller can force the system to operate in multiple configurations or modes. For example, the Airbus A-32 fly-by-wire system includes the take-off, cruise, and go-around operational modes [55]. Within each mode, system behaior eoles continuously but discrete mode changes dictated by a superisory controller can occur at points in time, resulting in 3

m 1 m 2 m 3 Figure 1: Physical system with discontinuities. discontinuities in oerall system behaior. Our goal in this work is to deelop comprehensie methodologies for analyzing behaiors of abstract models of complex dynamic physical systems that necessarily exhibit mixed continuous and discrete, i.e., hybrid behaior. There is a rich body of work in deeloping and analyzing hybrid system models [2, 5, 15, 16, 25, 37, 49, 54]. We adopt the generic hybrid systems framework and deelop a set of unambiguous and consistent physical system principles that goern the model formulation process and define the execution semantics for behaior generation. This paper establishes a formal specification language for building hybrid system models and defining execution semantics for behaior generation. This encompasses model definition as a combination of continuous differential equations and algebraic constraints that define discrete mode transitions in dynamic system behaior, and jumps in the state ector that may accompany the discrete transitions. A well-defined mathematical formulation (DAEs plus finite state machines) that includes the generation and analysis of Dirac pulses facilitates behaior analysis and the definition of simulation algorithms based on physical principles. Examples are presented to demonstrate the effectieness of this approach. Other papers describe the underlying physics [37], its application to the deelopment of simulation algorithms [36, 42] and obserer schemes to track dynamic behaior eolution [38]. 2 Background Aphysical system can be regarded as a configuration of connected physical elements that exhibit ideal reersible or ideal irreersible behaior [7]. Capacitie (e.g., spring, tank, electrical capacitor) and inductie (e.g., mass, fluid inertia, electrical inductor) processes are reersible in that they can store and release energy. Resistie processes (e.g., dashpots, iscous friction, electrical resistances) are irreersible in that they dissipate energy. The total energy content in a system at any point in time is the sum of the energy amounts stored in the reersible processes. Therefore, ariables associated with these processes reflect the behaioral history of the system, and define the traditional notion of system state. Future behaior of the system is a function of its current state and input to the system from the present time. State changes are caused by energy exchange between the system components, expressed as power, the time 4

deriatie of flow of energy. The notions of system state, energy, and power are independent of the physical domain (e.g., mechanical, electrical, hydraulic, and thermal), and they form the basis for defining a set of mathematical equations that goern physical system behaior. Differential equations are a common representation for continuous system behaior. The system is described by a minimal set of state ariables (generalized momentum and displacement ariables that are directly related to the energy content of the inductie and capacitie elements, respectiely [6, 51]), called the state ector, x, that completely captures its behaior history. System behaior oer time is specified by a gradient of flow or field, f. Interaction with the enironment isspecifiedby input and output signals, u and y, respectiely. The gradient of behaior, _x, is affected by the state and system input expressed as a set of differential equations, i.e., _x = f(x; u) where f is time inariant. All other ariables called signals, s, are algebraically related to the state and input ariables by mathematical functions, s = h(x; u). Hybrid modeling paradigms [2, 15, 43] supplement continuous system descriptions by mechanisms that model discrete mode changes with associated discontinuities in the field description and the continuous state ariables. Hybrid dynamic systems consist of three distinct subdomains: ffl A continuous domain, T, with time, t 2 T, as the special independent continuous ariable. This defines the continuous time line. ffl A piecewise continuous domain, V ff, that specifies ariable flow, x ff (t), uniquely on the time-line. ffl A discrete domain, I, that captures the operatie piecewise continuous domain, V ff, corresponding to the system modes. We adopt notation similar to Guckenheimer and Johnson [15] and specify I to be a discrete indexing set, where ff 2 I represents the mode of the system. Each mode is defined on its domain V ff of < n. The behaior trajectory, F ff, is a continuous C 2 flow on a possibly open subset U ff ρ V ff (shown for a planar hybrid system in Fig. 2). The flows constitute the piecewise continuous part of the hybrid system. System behaior at a point in time is specified by x ff (t), a location in mode ff at time t. A discrete switching function flff fi is defined as a threshold function on V ff. If flff fi» in mode ff the system transitions to fi, and this is defined by the mapping gff fi : ff! fi. The piecewise continuous leel cures flff fi =, denoted as Sff,definetransition fi boundaries. If a flow F ff intersects the leel cure, Sff,itcontains fi the boundary point, B ff (see Fig. 2, where the flow includes boundary point B 2 ). In summary, a hybrid dynamic system is defined by the 5-tuple 1 H =< I;X ff ;f ff ;fl fi ff ;gfi ff >: (1) 1 Guckenheimer and Johnson refer to the respectie parts as <V ff ;X ff ; F ff ;h fi ; T fi > [15]. ff ff 5

U 3 V 1 U 1 γ 1 2 γ 2 3 g 2 3 V 3 g 1 2 B 2 V 2 U 2 Figure 2: A planar hybrid system. A trajectory in the system starts at an initial point x ff1 (t ), and if fl ff 2 ff 1 > 8ff 2 2 I, it continues to flow in ff 1 specified by F ff1 until the minimal time t s at which fl ff 2 ff 1 (x ff1 (t)) = for some ff 2. Computing x ff1 (t s ) = lim t"ts F ff1 (t) the transformation g ff 2 ff 1 takes the trajectory from x ff1 (t s ) 2 V ff1 to x ff2 (t s ) 2 V ff2. The point x ff2 (t s )=g ff 2 ff 1 (x ff1 (t s )) is regarded as the new initial point inmodeff 2. If there exists ff 3 2 I, suchthatfl ff 3 ff 2 (x ff2 (t s ))», the trajectory is immediately transferred to g ff 3 ff 2 (x ff2 (t s )) 2 V ff3. Acharacteristic of hybrid systems is the possibilityofanumber of these immediate changes occurring without an intermediate flow of continuous behaior [1, 15, 32, 5]. In general, this situation occurs if fl ff k+1 ff k transports a trajectory to ff k+1, and the initial point is transported by g ff k+1 ff k to a alue that results in fl ff k+2 ff k+1», i.e., g ff k+1 ff k (x ffk ) 62 U ffk+1,and another mode ff k+2 is instantaneously arried at. These immediate transitions continue till a mode ff m is arried at where the initial point is within U ffm. To deal with these sequences of transitions, Alur et al. [1, 2], Guckenheimer and Johnson [15] and Deshpande and Varaiya [11] propose model semantics based on temporal sequences of abutting interals [t 1 t 2 ]! [t 2 t 3 ]! :::! [t m t m+1] (2) z } z } z } ff 1 ff 2 ff m with behaior that satisfies the following sequence: ( x = xff1 _x = f ff1 (x; t) z } ff 1 fl ff 2 ff 1 (x) x ff2 =g ff 2 ff 1 (x)! ( x = xff2 _x = f ff2 (x; t) z } ff 2 fl ff 3 ff 2 (x) x ff2 =g ff 3 ff 2 (x)! ::: flff ffm (x) m 1 ( x ffm 1 =gffm (x) m 1 x = xffm! _x = f ffm (x; t): z } ff m (3) Figure 3 shows a schematic representation of the semantics that produce a sequence of transitions of this form. 6

γ α g f α x + x x Figure 3: A model of hybrid dynamic systems. This paper deelops the hybrid modeling paradigm for dynamic physical systems by introducing constraints on the state ector function gff fi during discrete transitions [36]. Furthermore, it modifies the definition of flff fi to closely match requirements of object oriented modeling methods [8, 1, 2]. 3 Hybrid Modeling of Physical Systems In preious work we hae applied systematic modeling principles to derie hybrid models in a number of different physical domains, e.g., the freewheeling diode circuit [32, 37, 43] in the electrical domain, braking and clutch mechanisms [42] in the mechanical domain, the secondary sodium cooling loop [43] in the combined thermal and fluid domains, and the eleator control system of aircraft [4] in the combined mechanical and fluid domains. The common theme in all of the aboe work was the abstraction of parasitic elastic, inertial, and dissipatie effects, so that complex phenomena at fast time scales could be condensed into discontinuous changes to reduce the complexity in analyzing model behaior. This paper integrates all the past work into a comprehensie and formal approach for specifying hybrid models of dynamic physical systems. The abstracted phenomena, that occur as discontinuous mode changes are represented by discrete switching mechanisms implemented as finite state machines that are then integrated with the continuous ordinary differential equation (ODE) models to generate piecewise continuous behaiors [3, 37]. System topology in a mode is generated dynamically, and the switching specifications are deried as inequality constraints on state ariables. This section deelops the systematic modeling principles into a formal mathematical framework to facilitate the analysis of hybrid systems behaior. We first discuss how conseration principles can be applied to generate physically consistent behaior. The mechanisms for parameter and time scale abstraction are introduced. The abstractions introduce discrete switching conditions in the behaior trajectory. We show that the transition conditions that 7

result from parameter abstractions hae to be in terms of a posteriori state ector alues (the final alue around a discontinuous change), and the transition conditions that result from time scale abstraction hae to be in terms of a priori state ector alues, (the initial alue around a discontinuous change). These results are then incorporated into the specifications for the formal mathematical model of hybrid systems. 3.1 Conseration of State Physical system behaior is goerned by macroscopic conseration laws. For example, the ector components of the momentum of a number of bodies that collide is consered. The oerall system momentum is unchanged by the collision process een though there may be instantaneous dissipation due to frictional effects in a non ideal elastic collision resulting in the loss of kinetic energy. Similarly, the charge in an electrical circuit is consered, but instantaneous loss of electrical energy may occur. In general, except for energy which may be instantaneously dissipated [12, 44], 2 the extensie ariables that define the physical state of a system are consered. This conseration law needs to be presered when generating behaior from hybrid physical system models and can be deried from the system model by integrating the system of differential equations [31]. Consider the two colliding bodies in Fig. 4, where m 1 moes toward m 2 with initial elocity, 1 = and m 2 is at rest (mode ff ). This can be described by the system of differential equations using Newton's Second Law: f d : " m1 m 2 #" _1 _ 2 # = " 1 1 #" F1 F 2 # ; (4) where F 1 and F 2 represent the forces on masses m 1 and m 2, respectiely. Furthermore, the following algebraic constraints hold: f a : " 1 1 #" F1 F 2 # = " indicating the two masses are moing with constant elocities. For the point masses, collision occurs when x 1 x 2, and the system transitions into mode ff 1 where the momentum is instantaneously redistributed between m 1 and m 2 resulting in # (5) + 2 + 1 =; (6) where + 1 and + 2 represent the instantaneous change in elocity of masses m 1 and m 2, respectiely, after the collision. The alues of 1 and 2 are known at the point x 1 x 2 becomes true. At this point, the continuous behaior eolution of 1 and 2 stops. Howeer, both + 1 2 Note that this does not mean there is a loss of energy, but that free energy is instantaneously dissipated. 8

m m + 1 m 1 2 m 1 m 2 Figure 4: Non-elastic collision between a bullet and a piece of wood. and + 2 are unknown, and cannot be soled for with one equation. It is also known that in the collision mode, ff 1, Newton's Third Law applies, and F 1 = F 2 6=. These constraints can be added to the system of equations by replacing Eq. (5) with f a : " 1 1 1 1 2 # 6 6 4 1 2 F 1 F 2 3 2 7 = 6 5 4 3 7 5 : (7) Combining equation (4) and Newton's third law yields m 1 _ 1 = m 2 _ 2. This can be integrated oer an infinitesimal time interal [t; t + ] to express the instantaneous effects around the discontinuous change, i.e., m 1 ( + 1 1 )= m 2 ( + 2 2 ): (8) This embodies the conseration of momentum constraint generated from physical principles. Equations (6) and (8) together proide a unique solution for + 1 and + 2 : g ff 1 : " + 1 + 2 # = " m 1 m 1 +m 2 m 1 m 1 +m 2 There may be instantaneous dissipation when discontinuities occur resulting in loss of kinetic energy in the system. In case of a nonelastic collision, free energy in the system before collision, 1 m 2 1 2, exceeds the free energy in the system after collision, 1 m 2 1 2 m 1 +m 2 2. In general, the deried conseration laws are the instantaneous equialent of the continuous dynamics in a new actie mode. This corresponds to a projection onto a manifold defined by the algebraic constraints that replace the fast continuous behaior. The projection takes place in the impulse space or jump space and causes the system behaior or state space trajectories to include discontinuous jumps onto the manifold [17, 31, 56]. 3.2 Abstractions in Physical System Models The macroscopic iew of the physical world is that its behaior is continuous and all physical system behaior is goerned by the principle of continuity of power [51]. Howeer, when one 9 #

looks at complex physical systems, their behaiors combine phenomena at multiple temporal and spatial scales. Depending on the granularity of the obserations and the detail at which analysis is performed, certain aspects of a system's behaior may appear to be instantaneous. Consider the example of two bodies one on top of the other, shown in Fig. 5, sliding towards a rough surface that has a ery high coefficient of friction. When m 1 reaches the rough surface, shown as switch ariable Sw 1 going from to 1 in the graph, the frictional force opposing the motion is large enough to bring it to rest almost immediately. The resulting deceleration force F f also acts on mass m 2. If the Coulomb friction force between m 1 and m 2 is exceeded, i.e., jf f j > F th, m 2 starts to slide on top of m 1. This new mode is indicated by discrete ariable Sw 2 = 1 in the graph. Whether jf f j exceeds F th depends on the initial elocity ofthe combined mass system. If the initial elocity is sufficiently low, m 1 and m 2 will come to rest together without exceeding the breakaway force, F th. Otherwise, after a ery short period of initial deceleration, m 2 starts to slide on top of m 1 with a constant friction force, F th, acting between the two. Sw 1 Sw 2 2 m 2 m -1 1 1-2 F f -3.2.4.6.8 1 time Figure 5: A body that starts to slide. In many situations, when analyzing complex models of much larger systems, one would like to aoid such detailed analysis of phenomena and the corresponding computational complexity in behaior generation. In such cases, it may suffice to model the transition that occurs when Sw 1 = 1 by an instantaneous change where m 1 's elocity goes to zero, and m 2 continues to moe with a finite elocity. In effect, what this aoids is generating behaior that captures the details of the quick build-up of the frictional force. This is referred to as a parameter abstraction. Definition 1 (Parameter Abstraction) Parameter abstractions remoe small and large, often parasitic, dissipation and storage parameters from the system model causing discontinuous changes in system behaior. Another situation where abstraction of fast continuous transient behaior may be applied is the example of two colliding bodies shown in Fig. 6. Upon collision, represented by the discrete change Sw 1 = 1, small elasticity effects in m 1 and m 2 become actie and store the kinetic energy of m 1 as elastic (potential) energy. Spring-like or elastic effects cause the 1

stored energy to be returned as kinetic energy in a ery small time interal. The exchange of momentum as a continuous transient was illustrated for equal masses earlier. m 1 m 2.8 1.6 1 Sw 1.4.2 2.2.4.6.8 1 time Figure 6: A collision between two bodies with equal mass. This example again illustrates that complex phenomena oer small time interals (a collision in this case) can be replaced by a more abstract model where the exchange of momentum caused by elasticity effects is modeled as an instantaneous change. In this case, the effects of the elasticity parameters are not abstracted away. Their end effect is explicitly modeled as a discontinuous change in the elocities at the point of collision. This is referred to as a time scale abstraction. Definition 2 (Time Scale Abstraction) Time scale abstractions compress behaiors that occur on a small time scale relatie to the primary behaior(s) of interest to explicit discontinuous changes at a point in time. 3.3 The Different Semantics Both parameter and time scale abstractions proide mechanisms for reducing model complexity by eliminating higher order deriaties and nonlinear effects that cause fast transients in the ODE formulation of the system model. Howeer, applying these abstractions cause discontinuous changes in the system ariables at points in time. Systematic incorporation of the abstractions into the modeling mechanism requires careful analysis of the underlying physical nature of these continuous transients to ensure that the behaiors generated by the simplified hybrid models correspond to the real system behaior. The analysis reeals the need for different semantic specifications for parameter and time scale abstractions. This section demonstrates how these semantics translate to the formal specifications for defining hybrid system behaior. 3.3.1 Parameter Abstraction Consider the two bodies on top of one another in Fig. 5 that slide towards a rough surface as discussed in Section 3.2. If the detailed continuous transients on contact with the rough surface are abstracted away, the resultant hybrid system model is made up of three modes as 11

illustrated in Fig. 7. In the initial mode, ff, the combined masses m 1 and m 2 slide toward the rough surface. m 2 F f,2 m 1 m + 1 α x 1 x th F f,2 > F F th x th α 1 f,1 x th α 11 x th m 2 Figure 7: The top body may continue to slide. When m 1 makes contact with the rough surface at x 1 x th, the model switches mode to ff 1. In this mode, it has to be determined if m 2 comes to rest with m 1, or whether the resultant forceonm 2 is large enough to cause it to slide on m 1. This requires computation of the force F f;2. Since the impact is idealized, it occurs at a point in time causing the elocity of the masses to change discontinuously. The resultant force on m 2 is an impulse [4], P f;2, which is represented mathematically as a Dirac function (ffi) that occurs at the time point of impact. Its area is determined by the elocities immediately prior to ( 2 = ) and after ( + 2 impact, i.e., + 2 2. =)the P f;2 being an impulse, its alue cannot be directly compared against a threshold force to determine whether m 2 slides or not. 3 the resultant force from the change in elocity. Instead, a linear approximation is applied to compute This requires us to go back to the more detailed model which includes the small elasticity (modeled as spring capacitance, C) and friction parameters (modeled as damper resistance, R) to compute a more realistic alue of the maximum force generated. This results in the system of equations " _p1 _q # = " R m 1 +m 2 m 1 C(m 1 +m 2 ) 1 m 1 #" p1 q From this, the detailed behaior of the force F f;2 can be computed as # : (9) Rm 2 F f;2 = m 1 (m 1 + m 2 ) p m 1 1 ( C(m 1 + m 2 ) 1 )q (1) C where p 1 is the momentum of mass m 1 and q the displacement associated with the small spring effect. In case of complex eigenalues, 1;2 = r ± i i, soling for p 1 and q yields (q() = ) and p 1 = p 1 ()e rt (cos( i t)+ r R m 1 +m 2 i sin( i t)) (11) q(t) =p 1 ()e rt 1 i m 1 sin( i t) (12) 3 Since an impulsie force has infinite magnitude, a direct comparison would imply that P f;2 always exceeds the threshold frictional force, implying the mass m 2 will start sliding. 12

Substitution in Eq. (1) yields an expression for F f;2 that can be approximated by a Taylor series expansion [41]. For example, in the reduced order model the f f;2 = m 2 _ 2 equation can be replaced by a linear approximation F f;2 = K d 1 (), where m 1 1 () = p 1 () and K d embodies the parameters R, C, m 1, and m 2. This alue of F f;2 can then be compared against the breakaway force alue, F th. If the detailed temporal behaior is such that the breakaway alue is exceeded, the ff 11 mode of the hybrid model is actiated. In this continuous mode, m 2 slides with initial elocity that equals the final elocity when ff was departed and a constant frictional force acting on it. Therefore, the elocity in the intermediate mode does not affect the elocity ofm 2 in ff 11, the sliding mode. In such a case, this mode, ff 1,iscalledamythical mode [32, 5]. Definition 3 (Mythical Mode) When parameters affecting the fast behaiors of a system are abstracted away and replaced by discrete transitions, they may result in a behaior trajectory that goes through discrete modes of behaior that hae no existence on the real time line. These modes are called mythical. Principle 1 (Inariance of State) Mythical modes hae no effect on the system state ector. This follows from the inariance of state lemma presented in [43]. The proof is presented in [35]. Formally, the consecutie mode switchtoff 11 has to occur before the state ector is updated to its a posteriori alues, x = x +. Mathematically this can be represented as 8 >< >: x + = g ff 1 (x) x = x + _x = f ff1 (x; t) z } ff 1 fl ff 2 ff 1 (x;x + )! 8 >< >: x + = g ff 2 (x) z } ff 2 fl ff 3 ff 2 (x;x + )! 8 >< >: x + = g ff 3 (x) x = x + _x = f ff3 (x; t) z } ff 3 ; (13) where ff 2 is a mythical mode. In this example, it is clear that determining whether a switch occurs has to be based on x + rather than x, as shown in Fig. 7. 3.3.2 Time Scale Abstraction Consider the elastic collision of two bodies shown in Fig. 8. The mass m 1 moes with initial elocity towards the mass m 2, that is at rest. As discussed earlier, a detailed analysis of the collision indicates that elasticity effects store the initial kinetic energy as potential (elastic) energy, and then return this energy as kinetic energy oer a ery small time interal. Often, the time scale of this phenomenon is ery small compared to the behaior of interest, so it 13

can be modeled as an instantaneous change at a point in time goerned by two equations: (i) Newton's collision rule [4] + 1 + 2 = ffl( 1 2 ); (14) where the coefficient of restitution, ffl, determines the amount of energy dissipated upon collision, and (ii) the conseration of momentum principle (discussed in Section 3.1): m 1 + 1 + m 2 + 2 = m 1 1 + m 2 2 ; (15) If the collision is perfectly elastic, ffl =1,and with m 1 = m 2 this yields ( + 1 = 2 + 2 = 1 (16) which results in + 1 =and + 2 =. As soon as the new elocities are computed, the bodies disconnect. In this case, the new configuration is reached after the state ector is updated. Otherwise, m 1 would still hae elocity, andm 2 would be at rest, and the collision process would repeat. Note that the switching specifications hae to ensure that the collide mode is departed immediately after the state ector, x, is updated to its a posteriori alues, x +, x = x +. This is implemented by the 2 > 1 constraint. Otherwise, the collision effect in Eq. (16) would be executed again, causing the elocities of m 1 and m 2 to reert to their alues immediately before collision, and the process would repeat ad infinitum. Mathematically this is represented as 8 >< >: x + = g ff 1 (x) x = x + _x = f ff1 (x; t) z } ff 1 where ff 2 is a pinnacle. fl ff 2 ff 1 (x;x + )! 8 >< >: x + = g ff 2 (x) x = x + z } ff 2 fl ff 3 ff 2 (x;x + )! 8 >< >: x + = g ff 3 (x) x = x + _x = f ff3 (x; t) z } ff 3 Definition 4 (Pinnacle) An explicitly defined point on the time line that is not part of a continuous behaior interal, V ff, but embodies a change in the continuous system state ector is called a pinnacle, P ff. Fig. 8 illustrates that switching specifications hae to be in terms of a priori state ariable alues. 3.3.3 Summary The two types of abstraction hae a distinctly different effect on how to formulate switching specifications and introduce the fundamentally different behaior between mythical modes and pinnacles. As illustrated, time scale abstraction collapses behaior during small interals into 14 (17)

m1 m F 1 F 2 2 m 1 x 1 x 2 > 2 1 m 2 Figure 8: A collision between two bodies. points, and the switching model uses a priori state alues. In contrast, parameter abstraction abstracts away complex nonlinear behaiors, that are modeled by switching conditions based on a posteriori state alues computed by g fi ff. The mythical modes that result from these conditions are modeling artifacts that hae no real representation, and, therefore, do not affect the state ector, x. This is called the principle of inariance of state [35, 43]. Since mythical modes hae no effect on system state, they may be replaced by direct transitions to the final real mode (either a pinnacle, P ff, or a continuous mode, F ff ) in a simulation or behaior generation algorithm. Howeer, deriing these direct transitions before hand may require considerable computational effort, and because they describe a global phenomena, they will hae to be pre-compiled for eery possible local change deried from the model. The complexity of precomputing transitions past mythical modes is further compounded by the fact that a mode may be labeled mythical for certain state ector alues, and not for others. Therefore, replacing mythical modes by direct transitions requires the inclusion of ranges of state ector alues. A more pragmatic approach is to incorporate systematic techniques in a compositional modeling formalism to deal with these artifacts. Furthermore, translating a system model into a model where only a priori state ariable alues are used complicates the model erification task considerably. If a posteriori alues are used, inariance of state can be coneniently applied for model erification purposes [32, 33, 43]. 3.4 A Formal Representation We now deelop a mathematical model that embodies the physical abstraction semantics discussed aboe. At the core of this specification is the establishment of the switching function, fl fi ff, that depends on the state ector alues x ff, prior to the discontinuous change, and the state ector alues x + ff immediately after the discontinuous change. The semantics ofamode transition (ff k to ff i ) are specified by the recursie relation between fl ff i ff k and the function that specifies the change in the state ector across mode transitions, g ff i ff k, ( x + ffk = g ff i ff k (x ffk ) fl ff i+1 ff i (x ffk ;x + ff k )» (18) Note the ff k subscript in g ff i ff k and its argument x ffk. In physical systems, the new continuous 15

state only depends on its preious continuous state and the present mode, but not on the preious mode. Therefore, the ff k dependency of g ff i ff k the resulting sequence of mode transitions is gien by: 8 >< >: x + = g ff 1 (x) x = x + _x = f ff1 (x; t) z } ff 1 fl ff 2 ff 1 (x;x + )! 8 >< >: x + = g ff 2 (x) x = x + _x = f ff2 (x; t) z } ff 2 fl ff 3 ff 2 (x;x + ) can be remoed. The general form of ff m 1 (x;x+ )! ::: flffm! 8 >< >: x + = g ffm (x) x = x + _x = f ffm (x; t) z } ff m When comparing with the general sequence in Eq. (3), one notes that the g fi ff operation can be linked either to the transition or the new operational mode. (19) This is equialent to the difference between Moore and Mealy state machines, and does not result in differences as far as behaior generation is concerned [45]. We choose to follow the Moore-type specification and associate g fi ff with modes for two reasons: (i) a change in the state ector alues implies an energy redistribution in the system, therefore, it should correspond to a physical mode of operation, and (ii) for mythical mode transitions, the state ector x remains unchanged, therefore, it makes it easier to translate these specifications into a simulation algorithm if g fi ff is associated with a mode rather than a transition. In the sequence in Eq. (19), a mode ff may be departed when any of the three assignments or updates are executed: 1. computing x + from x, and 2. updating the state ector, x, across the discrete transition, 3. eoling the state ector, x, in the continuous mode. The difference between the general form of Eq. (3) and Eq. (19) can be attributed to the application of parameter and time scale abstractions to physical system models where (x; x + ) becomes the argument to fl fi ff, and this can be justified by physical system principles. The computational model corresponding to the use of (x; x + ) is illustrated in Fig. 9. When compared to the model in Fig. 3 (corresponding to Eq. (3)), there is additional feedback, x + into fl, which introduces a loop between g and fl. In other words, updating the state ector from x to x + may trigger another mode transition resulting in a new mode ff, and a new state ector, x +, and this sequence can repeat. Oerall, three transition specifications follow from the mathematical model in Fig. 9 corresponding to the mode departures listed aboe and illustrated in Fig.1 [36]. (a) Mythical mode: This occurs when x + = g ff i (x) leads to fl ff i+1 ff i (x; x + )». The immediate transition to mode ff i+1, caused by x + by-passes the integrator ( R ) and the state ector, x, is unchanged through the transition. 16

γ α x + g f α x + x x Figure 9: A mathematical model based on physical semantics. (b) Pinnacle: This occurs when the assignment of x = x + is made, and the update of x by the integrator causes an immediate mode transition because fl ff i+1 ff i (x; x + )». Therefore, mode ff i only exists at a point intime. (c) Continuous mode: In this mode update of the state ector using _x = f(x; t) results in fl ff i+1 ff i (x; x + ) >. System behaior eoles continuously till a point in time when (x; x + )», indicating the mode is departed. fl ff i+1 ff i Pinnacles and continuous modes are real modes because the state ector, x, that defines system behaior on the real time line, is directly affected within that mode of operation. γ γ γ α x + g α + + x x g α g f α x + f + + x x x x α x x α x x (a) (b) (c) f Figure 1: Classes of mode transitions. 4 Behaior Analysis Anumber of important issues arise in analyzing hybrid system models that impact the alidity of system behaior in terms of physical principles. The two primary principles discussed in this section are: (i) diergence of time, to ensure the eolution of physical system behaior 17

across discrete mode transitions on the time line, and (ii) temporal eolution of state to ensure systematic update of the state ector about the point of discontinuity requiring state ariable alues to be continuous in left-closed interals. 4.1 Diergence of Time Mode transitions defined by Eq. (18) may generate a trajectory that goes through a sequence of mythical modes before a new real mode is reached where system behaior resumes continuous eolution on the time line. In generating this sequence, if a mode can be reached more than once, the implication is that the trajectory can end up in a loop of discrete changes. Therefore, this behaior trajectory may not progress to a real mode, which implies that the system behaior eolution stops in time. This conflicts with physical system principles because their behaiors always eole or dierge in time. Principle 2 (Diergence of Time) Physical system behaior must eole in time. Therefore, hybrid models of physical systems cannot include loops of discrete changes. Corollary Discrete mode changes in a hybrid system model hae to terminate in a real system mode where behaior eoles in real time. To illustrate the principle of diergence of time, consider the elastic collision between the two bodies in Fig. 6 where m 1 with initial elocity, 1 = moes towards m 2, that is at rest. The collision eent for the point masses is defined as fl ff 1 ff : x 2 x 1» ) ff collide : (2) As discussed earlier, if m 1 = m 2 this eent results in instantaneous transfer of all of m 1 's momentum to m 2. Combining Newton's collision rule in Eq. (14) and the physical conseration of momentum constraint in Eq. (15), and making the assumption m 1 updating the state ector: g ff 1 : " + 1 + 2 # = " 2 1 # = m 2, we obtain the g function for As a result, m 1 's momentum is transferred to m 2, 1 = and 2 =. Since, 2 > 1 the bodies disconnect because the eent becomes true. fl ff ff 1 : 1 2 < ) ff disconnect : (21) The transition function in Eq. (2) specifies that the two bodies collide when x 1 x 2. The collision rule is then applied at the ensuing pinnacle to compute the new elocities 1 and 2, 18

and this moes the system back into its free mode because 2 > 1 as specified by Eq. (21). But, since no time has elapsed and x 1 x 2 still holds, the system switches to the collide mode again. 4 This mode is departed immediately because 2 > 1 still holds (the a priori alues hae not been updated yet), which implies that it is mythical. At this point both of the transition functions that generate ff collide and ff disconnect are true and g ff only changes the a posteriori alues. This results in a loop of instantaneous mode changes between ff and ff 1, and the diergence of time principle is iolated. Diergence of time can be enforced in one of two ways: ffl adding more detail to model so that discontinuous phenomena are modeled as continuous effects, and ffl modifying the switching conditions to ensure there is only one possible mode associated with a gien alue of a state ector. Adding more continuous detail is undesirable because it is likely to cause a significant increase in the computational complexity of the model. Modification of switching specifications requires reisiting the assumptions under which the discontinuous approximations were made. In case of the elastic collision, the coefficient of restitution is normally a function of the impact elocities [4]. For collisions at low elocities, the collision phenomenon discussed aboe does not occur, and the coefficient of restitution is a poor discrete approximation of the underlying continuous behaior. Therefore, the transition conditions for the collision may be modified by adding the constraint 1 2 th. In the limit, as th! the original transition condition 1 > 2 is attained. If the transition condition to collide adds on this constraint, one notes that the behaior trajectory does not switch back from the free mode to the collide mode, and diergence of time is enforced for the collision model. In preious work, we hae shown how analysis of multiple piecewise phase spaces can be applied to establish a necessary condition for diergence of time [32]. The necessary condition is established by mapping each mode of system behaior into a k dimensional phase space representation for a state ector of size k. This requires all discrete switching functions fl to be expressed in terms of the state ariables, x. Typically this includes algebraic substitutions, but it may require special computations if Dirac functions are inoled. A pairwise region checking algorithm is used to check for oerlap between behaior regions for the indiidual modes. The necessary condition for diergence of time to be satisfied is that there be no oerlap between the behaior regions of the indiidual modes. Sufficient conditions are much harder to establish, because it requires taking into account the mode switching function fl. We are looking into a 4 This also occurs if the state change due to the collision is modeled as a transition action rather than a separate state [45]. 19

more systematic computational methodology based on constraint satisfaction techniques [53] in the continuous domain to sole the general n dimensional phase space problem. A detailed application of the diergence of time algorithm to the falling rod example appears in Section 7.1. Note the difference between diergence of time and Zenoness [6, 19]. Behaior that is non- Zeno does not progress beyond a point in time. Howeer, such behaior may still dierge by taking increasingly smaller steps in time (e.g., a model of a bouncing ball can be constructed so that the ball neer comes to rest). 4.2 Temporal eolution of state When discontinuous state changes occur at a time point t s on a trajectory that goes from an interal to a pinnacle (x(t s )tox(t s )) or a pinnacle to an interal (x(t s )tox(t + s )) (see Fig. 11), discontinuous changes in system ariables may result in the generation of Dirac pulses, iz., ffi 1 (t t s ) and ffi 2 (t t s ), respectiely. This occurs in the two mass problem discussed in Section 3.3. Dirac pulses hae finite area and occur at a point in time. Since both pulses occur at t s, the total pulse can be defined as the aggregate ffi c (t t s )=ffi 1 (t t s )+ffi 2 (t t s ). Howeer, ffi 2 (t t s ) is not known at t s. It can only be determined when time is adanced. Therefore, ffi c (t t s ) is unknown. The ariable alues in the switching conditions that depend on ffi c and goern the configuration change from t s to t s are also unknown. Correct physical models are enforced by determining the actual ffi c based on an interal to interal change. To preent ill-defined noncausal models, execution semantics in the form of temporal eolution of state is imposed on hybrid models so that discontinuous state changes only occur from t s to t s (i.e., ffi 2 =)[43]. The ariable that is inoled has to be continuous on the left-closed interal, [t s ;!> in time. Principle 3 (Temporal Eolution of State) Continuous state ariable alues hae to be continuous in left-closed interals in time. The proof of this lemma is presented in [43]. The requirement that state ariable alues eole through left closed interals in time, implies that discontinuous changes in the state ector can only occur when the system transfers from an interal to a point. This does not prohibit configuration changes occurring from a point to interal transition, proided no discontinuous changes in state ariables occur. Further, to ensure ffi pulses only occur on left closed interal switching, the transition conditions that result in discontinuous changes in state ariable alues hae to be of the form or». For example, the transition condition from free to collision mode for the colliding bodies is represented as x 1 x 2. Discontinuous changes in the state ector occur when its size 2

x δ 1 P α 2 δ 2 F α 1 t s t F α 3 Figure 11: Switching around a point may require two jumps. changes and can be deried by inspection of a hybrid bond graph model or by systematic analysis [3, 37]. 5 A Complex Example We describe a more complex example to illustrate the physical principles that are employed in constructing and analyzing hybrid system models. Consider a thin rigid rod falling towards a floor (Fig. 12). The system can be modeled to operate in one of three modes: (i) free, there is no contact between the rod and the floor, (ii) stuck, the rod is in contact with the floor at point A, and this point is fixed while the rod rotates, and (iii) slide, therodisincontact with the floor at point A, and this point slides along the floor while the rod rotates. In other work [27, 52], the sliding and rotating behaior of the rod when in contact with the floor has been analyzed using complementarity principles. These studies hae shown that for certain alues of the parameters (friction coefficient, μ, rod length, l, and angle, ) there are regions in the phase space (i.e., the space spanned by the linear rod elocities, x and y, and the rotational elocity,!) where the rod model exhibits multiple behaior trajectories and some regions where no behaiors exist. The parameter alues that correspond to these situations are rather extreme, and we do not deal with these particular regions in our analysis of the rod behaior in this paper. Instead, we focus on modeling and analyzing the behaior of the rod upon collision with the floor. We derie physically consistent alues of the linear and angular momenta and perform analyses to determine the new mode of operation. In addition, we ensure that the conditional specifications for the slide and stuck modes are mutually exclusie. We also formulate switching conditions to ensure the consistency of Dirac pulses generated during mode transitions. When collision occurs, small deformation effects force the ertical elocity of the rod-tip, A, to quickly become. Since the time scale for the collision process is much faster than the time scale for the oerall behaior, we assume that the collision phenomenon can be reduced to occur 21

-a g l A l M B θ y1 y lω -lωsinθ l ω M -l A x1 lωcosθ B θ x Figure 12: A collision between a thin rod and a floor. at a point in time. The rod's ertical elocity y at its center of mass M changes quickly, so that the resultant angular elocity,!, satisfies the equation A;y = y + l!cos =. Further, if the breakaway force is not exceeded by the force along the surface, i.e., jf A;x j < μf N, the rod is stuck, and the horizontal elocity of the rod tip becomes zero, i.e., A;x =. The resultant change in the center of mass elocity in the horizontal direction, x, satisfies A;x = x l!sin =. 1 } 1.5 Sw 1 Sw 2 Sw 1 Sw 2.5 y A x x -.5-1 y ω -.5-1 y ω.5.1.15.2 time.145.15.155.16 time Figure 13: Simulation of a collision scenario. If the breakaway force is exceeded during the quick continuous transient at collision the rod starts to slide in the next continuous mode, and the A;x = constraint is not included in the set of equations for the actie model. Since this happens at initial contact, there is minimal change in the alue of x through the collision process. The collision process at 22

y A = is illustrated in Fig. 13 at two different time scales for normalized parameters of mass m x = 1 and m y = 1, moment of inertia J = 1, F g = 1, frictional coefficient μ = :5, and spring C =1and damper R = 75 parameters to proide a first-order approximation of the detailed behaior. The continuous transient behaior generated from a detailed model of the collision process, occurs in the time interal [:14; :16]. It is illustrated in the behaior plot on the right. The gross behaior just before and after the collision is shown on the left. At the point of collision, Sw 1 =1,the breakaway force is exceeded, therefore, Sw 2 =1,and the rod starts to slide. The amount of change in x depends on the friction coefficient μ. In the extreme case, μ =, the breakaway force is immediately exceeded, and x remains, since no horizontal force is actie inthenew mode. The existence of Coulomb friction [27] between the rod and floor may cause the rod to stick and rotate around the point of initial contact (mode ff 1 in Fig. 14). Alternately, as discussed aboe, if the rod-tip exerts a force in the horizontal direction that is larger than the product of the normal force and friction coefficient (breakaway force), i.e., jf A;x j >μf n, the rod starts to slide (mode ff 11 in Fig. 14). To ealuate which scenario occurs, the force alues need to be calculated at the time of collision. Since the impact is idealized, the forces occur as impulses [4], and take on the form of Dirac functions (ffi). These impulses occur at the time of impact, and their areas are determined by the state ectors immediately prior to and after the impact, x and x +, respectiely. free l -a g A B l θ M α y A,x stuck ω x F A,x y α 1 F A,y + F > µ F A,x n slide A,x F f ω x y α 11 Figure 14: The rod may start to slide and rotate around the point of contact. On contact, i.e., in the mode ff 1, the linear elocities of the center of mass, x and y, are completely determined by the angular elocity,!, and the algebraic relations ( + x = l! + sin = l! + cos : + y (22) This is illustrated in Fig. 12. Conseration of momentum inoling! +, x +, and y + produces one more equation that can be used to sole for the new state ector x + [34]. These a posteriori alues may be such that the corresponding impulses result in jp A;x j > μp n and the rod starts to slide (mode ff 11 ). In this mode, x + is not algebraically dependent 23