Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Physical System Modeling

Why modeling matters

Every control problem begins with a model, whether that model is explicit or implicit. Even when a controller is tuned experimentally, the engineer still carries an internal mental model of what the system does. In CCD, the model plays an even larger role: it is the bridge between plant design variables and control design variables.

A good model should be:

There is no perfect model. There are only models that are more or less useful for a given decision. The art of dynamic modeling lies in retaining the right physics while excluding details that do not materially affect the design question.

A modeling workflow that moves from a physical system through assumptions and governing physics to differential equations, a state-space model, analysis, simulation, and design.

A typical modeling workflow for dynamic systems used in CCD and control analysis. The process begins with the physical system and ends with a dynamic model that can be analyzed, simulated, and used for design.

A common modeling pipeline begins with a physical system and its governing physics. We then make assumptions: rigid body or flexible body? Linear or nonlinear? Lumped parameters or distributed parameters? Small motions or large motions? These assumptions lead to differential equations. Finally, we define states, inputs, outputs, and disturbances and express the model in a convenient form such as state space.

Levels of model fidelity

Dynamic models are often built at different levels of fidelity:

  1. Conceptual models capture the dominant energy-storage and dissipation mechanisms. They are excellent for teaching, intuition, and early optimization.

  2. Intermediate models add realism such as actuator dynamics, sensor dynamics, multiple degrees of freedom, or saturation.

  3. High-fidelity models incorporate flexible modes, nonlinearities, aerodynamic or hydrodynamic effects, contact, constraints, and implementation details.

Conceptual and intermediate models build the understanding needed to use high-fidelity models responsibly.

Coupling across energy domains: multidisciplinary analysis

Many CCD-relevant systems are not built from a single set of governing equations. A robotic system, for instance, couples mechanical dynamics with electrical actuator dynamics; a marine energy device couples hydrodynamics with the electrical or hydraulic dynamics of its power take-off. If each energy domain were modeled independently, the interaction between domains would be lost — an electric motor’s rotor state could appear to change instantaneously, when in fact the mechanical load it drives constrains how fast it can actually respond.

Suppose two energy domains, labeled α\alpha and β\beta, each have their own state trajectory, ξα(t)\boldsymbol\xi_\alpha(t) and ξβ(t)\boldsymbol\xi_\beta(t), governed by their own derivative functions:

ξ˙α(t)=fα(ξα(t),ξβ(t),uα(t),t),\dot{\boldsymbol\xi}_\alpha(t)=\mathbf{f}_\alpha\bigl(\boldsymbol\xi_\alpha(t),\boldsymbol\xi_\beta(t),\mathbf{u}_\alpha(t),t\bigr),
ξ˙β(t)=fβ(ξα(t),ξβ(t),uβ(t),t).\dot{\boldsymbol\xi}_\beta(t)=\mathbf{f}_\beta\bigl(\boldsymbol\xi_\alpha(t),\boldsymbol\xi_\beta(t),\mathbf{u}_\beta(t),t\bigr).

The two domains are coupled because ξ˙α\dot{\boldsymbol\xi}_\alpha depends on ξβ\boldsymbol\xi_\beta and ξ˙β\dot{\boldsymbol\xi}_\beta depends on ξα\boldsymbol\xi_\alpha. Building and solving this kind of coupled model — capturing how each energy domain affects the dynamics of the others — is called multidisciplinary analysis (MDA). Once both domains are captured, the stacked state ξ=[ξαT ξβT]T\boldsymbol\xi=[\boldsymbol\xi_\alpha^T\ \boldsymbol\xi_\beta^T]^T and stacked input u=[uαT uβT]T\mathbf{u}=[\mathbf{u}_\alpha^T\ \mathbf{u}_\beta^T]^T recombine the two coupled equations into a single first-order model ξ˙(t)=f(ξ(t),u(t),t)\dot{\boldsymbol\xi}(t)=\mathbf{f}(\boldsymbol\xi(t),\mathbf{u}(t),t) of the same form used throughout this chapter. The DC motor of Activity 2.1 is exactly this construction: its electrical current equation and mechanical speed equation are coupled through the back-EMF term KeωK_e\omega and the torque term KtiK_ti, and stacking (θ,ω,i)(\theta,\omega,i) into one state vector is an MDA step performed almost automatically.

When the model is not a clean ODE: differential-algebraic equations

Combining domains, or imposing a physical or design requirement as an equality among the states, is not always reducible to ξ˙=f(ξ,u,t)\dot{\boldsymbol\xi}=\mathbf{f}(\boldsymbol\xi,\mathbf{u},t) without extra work. Sometimes a modeling assumption, a rigid physical constraint, or a path constraint that has become active removes a degree of freedom from the system and introduces an algebraic — not differential — relationship among the variables. The resulting model, in semi-explicit form, is

ξ˙(t)=f(ξ(t),γ(t),u(t),t),0=fa(ξ(t),γ(t),u(t),t),\dot{\boldsymbol\xi}(t)=\mathbf{f}\bigl(\boldsymbol\xi(t),\boldsymbol\gamma(t),\mathbf{u}(t),t\bigr), \qquad \mathbf{0}=\mathbf{f}_a\bigl(\boldsymbol\xi(t),\boldsymbol\gamma(t),\mathbf{u}(t),t\bigr),

where γ(t)\boldsymbol\gamma(t) is an algebraic variable: unlike a state, its own time derivative never appears in the model, and its value at time tt is instead pinned down by the algebraic equation fa()=0\mathbf{f}_a(\cdot)=\mathbf{0}. A system of this form is called a differential-algebraic equation (DAE). If the algebraic equation can, at least locally, be solved for γ(t)\boldsymbol\gamma(t) — equivalently, if the Jacobian of fa\mathbf f_a with respect to γ\boldsymbol\gamma is nonsingular — the DAE is called index-1, where the index counts how many times the algebraic equation must be differentiated with respect to time before the whole system reduces to an ordinary differential equation. An index-1 DAE can, in principle, always be converted to the explicit state-space form used elsewhere in this chapter; the conversion is simply not free, and some solution methods work directly with the DAE instead of performing it.

This situation is common, not exotic. A rigid mechanical constraint between two bodies, an incompressible fluid, or an inequality constraint (on stress, temperature, position, or actuator force) that has just become active can each remove a degree of freedom this way. In every one of these cases, some variable that used to be a free state must become an algebraic variable, satisfying a constraint rather than its own dynamics. In actively controlled systems, control inputs are normally treated as independent quantities, while the algebraic variables introduced by active constraints must still satisfy the underlying physics.

A first example: mass–spring–damper system

The mass–spring–damper system contains nearly every idea we need: inertia, restoring force, damping, actuation, disturbance response, and measurable output.

A mass connected to a wall by a spring and damper, with displacement x, control force u, and disturbance force d.

A single-degree-of-freedom mass–spring–damper system with a control input and a disturbance.

Applying Newton’s second law gives

mx¨(t)+cx˙(t)+kx(t)=u(t)+d(t),m\ddot{x}(t)+c\dot{x}(t)+kx(t)=u(t)+d(t),

where mm is mass, cc is the damping coefficient, kk is spring stiffness, x(t)x(t) is displacement, u(t)u(t) is the control force, and d(t)d(t) is an external disturbance force.

Activity 2.1: Full and Reduced Models of a DC Motor