Salta al contenuto
Note per Studenti Continuous-Time Modeling of Dynamic Systems Report

Continuous-Time Modeling of Dynamic Systems

In questa pagina 4

This note opens the modeling part of the course (a review of the Automatic Control prerequisites, see also System ModelingA mathematical model (parameters, variables, relations) describes a system quantitatively; models are classified as static or dynamic, causal, linear, time-invariant, SISO or MIMO, and the course focuses on SISO continuous-time causal dynamic LTI systems described by a constant-coefficient input-output ODE.System Modeling →). The physical laws of mechanical and electrical elements are in Mathematical Models of Mechanical SystemsThe lumped elements of mechanical systems (mass, spring, damper and their rotational versions, force and displacement sources, lever and gearbox) and the procedure that turns a free-body diagram into a linear ODE, worked on the mass-spring-damper system.Mathematical Models of Mechanical Systems → and Mathematical Models of Electrical SystemsThe lumped elements of electrical circuits (resistor, capacitor, inductor, ideal sources, ideal transformer), Kirchhoff's laws and the derivation of the second-order ODE of a series RLC circuit.Mathematical Models of Electrical Systems →; the solution of the resulting ODEs with the Laplace transform is in Solving Linear ODEs with the Laplace TransformHow the Laplace transform turns a linear ODE with constant coefficients into an algebraic equation, with its definition, properties and table, the split into natural and forced response, the transfer function, poles and zeros, the impulse response, partial fractions, and the first-order step response.Solving Linear ODEs with the Laplace Transform →.

The closed-loop control system

 Reference r                 Command u      +--------------------------+   Output y
 -----------> [ Controller ] ------------>  | [ Actuator ] -> [Process]| ----+-------->
              [    (C)     ]                |                 ^        |     |
                   ^                        |            Disturbances d|     |
                   |                        +--------- Plant (P) ------+     |
        Measured   |                                                         |
        output y_m +------------------ [ Sensor (H) ] <-----------------------+
                                            ^
                                  Measurement noise (errors) n

The controller CC must be designed to:

  • keep the closed-loop system stable;
  • make yy track rr with good transient and steady-state performance;
  • make the system robust against disturbances and model uncertainties.

(See The Feedback Control Scheme and RequirementsThe basic control scheme feeds the plant G(s) with the output of a controller C(s) acting on the tracking error e = r - y, giving the closed-loop transfer function W(s) = C(s)G(s) / (1 + C(s)G(s)); the requirement y close to r splits into steady-state conditions (small error for some references, disturbances, model uncertainty) and transient conditions on rise time, settling time and overshoot, which become a region of the complex plane where the poles of W(s) must lie.The Feedback Control Scheme and Requirements →.)

Classical continuous-time framework

In a basic Automatic Control course:

  • plant and controller are both modeled in continuous time (r(t)r(t), e(t)e(t), u(t)u(t), y(t)y(t), with an analog controller);
  • systems are described by ordinary differential equations (ODEs);
  • the analysis is performed with the Laplace transform.

Modern control systems are "hybrid"

In a digital loop the plant (a physical entity) is a continuous-time system, while the controller (an algorithm) is a discrete-time system. The loop contains: the digital processing unit, with the error e[k]=r[k]−y[k]e[k]=r[k]-y[k], the digital controller producing u[k]u[k], an analog-to-digital conversion of y(t)y(t) into y[k]y[k] (quantised to a few bits in the slide's sketch), and a digital-to-analog conversion that turns u[k]u[k] into the staircase signal u(t)u(t) applied to the plant.

Consequence: tools for modeling and analysis in both domains are required (continuous time here, discrete time in Discrete-Time Modeling and Difference Equationsreview of discrete-time models based on linear difference equations with constant coefficients (MA, AR and ARMA), their solution with the Z-transform, and the definitions of transfer function and impulse response.Discrete-Time Modeling and Difference Equations → and Digital Control SystemsA digital control system replaces the analog controller with a processing unit interfaced to the plant through an A/D converter (sampling plus quantization) and a D/A converter (zero-order hold), and neglecting quantization it becomes a sampled-data system that can be designed by emulation or directly in discrete time.Digital Control Systems →).

System modeling approaches

Analytical (white-box) modeling

  • based on first (physical) principles;
  • physical insight is required;
  • the parameters have a physical meaning.

Experimental (black-box) modeling

  • based on measured data;
  • the internal structure is not explicitly modeled;
  • the focus is on the input-output behavior;
  • system identification is the process of estimating a model from experimental data.

Model selection and modeling for control

For a given physical system, many mathematical models can be derived, each describing the system with a different level of accuracy and complexity. The choice depends on the intended use:

  • behavioral description;
  • prediction and simulation;
  • control design;
  • fault diagnosis;
  • performance analysis.

In control applications simplicity is often preferred over maximum accuracy. A highly complex model is of limited value if:

  • its parameters are only approximately known;
  • it is difficult to analyse;
  • it is impractical for controller design.

Effective control design requires a model that is sufficiently accurate, yet simple enough to be usable.

Modeling assumptions

The models considered are mainly:

  • dynamic;
  • single-input single-output (SISO);
  • continuous-time;
  • linear;
  • time-invariant;
  • causal;
  • lumped-parameter;

described by linear ordinary differential equations (ODEs) with constant coefficients.

Linear ODE with constant coefficients

∑n=0Nandny(t)dtn=∑m=0Mbmdmu(t)dtm\sum_{n=0}^{N} a_n \frac{d^n y(t)}{dt^n} = \sum_{m=0}^{M} b_m \frac{d^m u(t)}{dt^m}

  • an,bma_n, b_m are the model parameters;
  • NN is the model order;
  • M≤NM \le N (a necessary condition for causality, i.e. the physical realizability of the system);
  • u(t)u(t) is the input signal;
  • y(t)y(t) is the output signal.

Lumped-parameter physical systems

Many simple physical systems (mechanical, electrical, thermal, ...) can be described as the interconnection of a finite number of energy-storing and energy-dissipating elements: these are the lumped-parameter systems. By applying the physical laws that describe

  • the behavior of each basic element,
  • their interactions (energy exchange),

a mathematical model can be derived in the form of a linear ODE with constant coefficients.

Two examples are drawn on the slide:

  • a lumped-element mechanical system: a mass m1m_1 attached to a fixed wall through a spring k1k_1 and driven by an external force FF; a damper b1b_1 connecting m1m_1 to a second mass m2m_2; the mass m2m_2 attached to a second wall through a spring k2k_2 in parallel with a damper b2b_2; displacements x1x_1 and x2x_2;
  • a lumped-element electrical circuit: a voltage source ee between nodes A and D; capacitor C1C_1 between A and C; resistor R1R_1 between A and B; resistor R2R_2 between B and C; capacitor C2C_2 between B and D; resistor R3R_3 between C and D; output voltage vv across R3R_3.

Lumped elements: passive and active

A lumped element model is:

  • passive if it cannot supply unlimited energy to its environment (it cannot deliver more energy than it has previously stored). The environment includes the other lumped elements of the system as well as the external surroundings. A passive element may store energy, dissipate energy or convert energy between different physical domains;
  • active if it can supply unlimited energy to its environment.

Types of passive lumped elements

  • Dissipative: never returns energy to the environment; the absorbed energy is irreversibly removed from the system (e.g. dissipated as heat).
  • Accumulator (energy-storing): all the stored energy can, in principle, be returned to the environment (no internal dissipation).
  • Lossless: neither dissipates nor accumulates energy (it only transfers energy between different parts or domains).

Examples in the next notes: mass, spring, rotor are accumulators; damper, resistor are dissipative; lever, gearbox, ideal transformer are lossless; force, displacement, voltage and current sources are active.

Versione ripasso

Closed loop: reference rr -> controller CC -> command uu -> plant PP (actuator + process, disturbance dd) -> output yy; sensor HH (noise nn) gives ymy_m. Goals for CC: stability, tracking with good transient and steady state, robustness to disturbances and uncertainty (The Feedback Control Scheme and RequirementsThe basic control scheme feeds the plant G(s) with the output of a controller C(s) acting on the tracking error e = r - y, giving the closed-loop transfer function W(s) = C(s)G(s) / (1 + C(s)G(s)); the requirement y close to r splits into steady-state conditions (small error for some references, disturbances, model uncertainty) and transient conditions on rise time, settling time and overshoot, which become a region of the complex plane where the poles of W(s) must lie.The Feedback Control Scheme and Requirements →).

Hybrid loops: plant continuous-time, controller discrete-time (ADC and DAC in the loop), so both domains must be modeled.

Approaches: white-box (physical laws, parameters have meaning) vs black-box (from data, identification). Model choice depends on use; for control prefer a model accurate enough but simple.

Assumptions: dynamic, SISO, continuous-time, linear, time-invariant, causal, lumped; model is ∑n=0Nany(n)(t)=∑m=0Mbmu(m)(t),M≤N (causality)\sum_{n=0}^{N} a_n y^{(n)}(t) = \sum_{m=0}^{M} b_m u^{(m)}(t),\qquad M\le N\ \text{(causality)} NN = order.

Lumped systems: finite interconnection of storing and dissipating elements; laws of each element plus interconnection laws give a linear constant-coefficient ODE.

Elements: passive (cannot supply unlimited energy) vs active (can). Passive types: dissipative (never returns energy), accumulator (returns all stored energy), lossless (only transfers).

Typical mistake: asking for the highest-accuracy model when a simpler one suffices for control design.

Ordine e causalità: NN è l'ordine (la derivata più alta); uu è l'ingresso, yy l'uscita; M≤NM \le N è necessario perché il sistema sia causale (fisicamente realizzabile).

Un modello è adatto al controllo se: i suoi parametri sono noti con sufficiente precisione, è analizzabile e si può usare per progettare il regolatore. Un modello più complesso non è migliore se non soddisfa questi punti.

Passi per ottenere l'ODE di un sistema lumped:

  1. Riconoscere gli elementi che accumulano e quelli che dissipano energia.
  2. Applicare la legge di ogni elemento e quella delle interazioni (energia scambiata), ottenendo un'ODE lineare a coefficienti costanti.

Errori tipici:

  • Confondere passivo con dissipativo: un elemento passivo può anche accumulare o convertire energia.
  • Classificare un generatore ideale come passivo.
  • Scrivere un modello con M>NM > N: non è causale.

Teoria collegata