System Dynamics · Module 5 of 10
Energy Methods, Generalized Variables, and Analogies
Every domain has an effort that drives and a flow that responds, and their product is power. Naming them makes the analogies exact, so a mechanical system and its electrical twin share one set of equations.
Readiness check
This module unifies the four domains. Tick only what you can do closed-notes.
- Recall that power is energy per unit time.
- Write the energy stored in a spring, ½kx2, and a mass, ½mv2.
- Recall the energy in a capacitor and an inductor.
- Map mass, damper, spring to inductance, resistance, capacitance.
- Recall ωn = √(k/m) and 1/√(LC).
The core idea
Each domain has an effort variable and a flow variable whose product is power. Inertia stores energy in flow, compliance stores it in effort, and resistance dissipates. Because the forms match, one model serves every domain.
power = effort × flowinertia: ½ I f2; compliance: ½ C e2force↔voltage, velocity↔currentEnergy methods give system dynamics a single language. In every domain one variable is an effort that drives, force, voltage, pressure, temperature, and another is a flow that responds, velocity, current, volume rate, entropy rate. Their product is power, which is what crosses between elements. Each element plays one of three roles: an inertia stores energy in its flow (½ I f2, like a mass or an inductor), a compliance stores energy in its effort (½ C e2, like a spring or a capacitor), and a resistance dissipates power. Because these roles and their energy expressions are identical across domains, a mechanical system has an exact electrical analog with the same equations and the same ωn and ζ. This is the basis of the bond-graph view that unifies mechatronic modeling.
The skills, taught in order
Five skills build the generalized variables, the energy in each element, and the analogies they create.
5.1 Effort and flow variables
In each domain, one variable is the effort and one the flow, and their product is power. Mechanical: force and velocity. Electrical: voltage and current. Fluid: pressure and volume rate. Thermal: temperature and entropy rate. Choosing them correctly is the first step of energy-based modeling.
5.2 Generalized inertia and compliance
An inertia element relates effort to the rate of flow (e = I ḟ) and stores ½ I f2: a mass or an inductor. A compliance relates flow to the rate of effort (f = C ė) and stores ½ C e2: a spring or a capacitor. These two store energy; a resistance only dissipates.
| Mechanical | Electrical | Role | Stored energy |
|---|---|---|---|
| mass m | inductance L | inertia | ½ m v2 = ½ L i2 |
| compliance 1/k | capacitance C | compliance | ½ k x2 = ½ C v2 |
| damper c | resistance R | dissipation | none |
The force-voltage analogy element by element. A mass pairs with an inductance, a spring with a capacitance, a damper with a resistance.
5.3 Stored energy and dissipation
The energy in an inertia depends on its flow squared; in a compliance, on its effort squared. A resistance converts power irreversibly to heat. Tracking where energy is stored and where it leaves is a powerful check on any model.
5.4 The cross-domain analogies
The force-voltage analogy maps mass to inductance, compliance to capacitance, and damper to resistance, so a mechanical and an electrical system with matched parameters have identical dynamics, the same ωn and ζ. The same mapping reaches the fluid and thermal domains.
5.5 Energy-based modeling
Working in effort and flow lets one method, the bond-graph approach of the source text, model a mechatronic system spanning several domains in one diagram. It guarantees that power is conserved at every junction and makes the state equations fall out systematically.
Engineering connection: a loudspeaker, a motor, and a hydraulic actuator are all multi-domain devices whose models are cleanest in the effort-flow language.
Worked example 1: stored energy and the inertia analogy
A spring of stiffness 400 N/m is stretched 0.05 m; find its stored energy. Separately, a 4 kg mass moves at 3 m/s; find its kinetic energy and confirm the energy of an analogous inductor with L = 4 H carrying 3 A.
- ProblemFind the spring energy, the mass kinetic energy, and the analogous inductor energy in Figure 1.
- Given / findk = 400 N/m, x = 0.05 m; m = 4 kg, v = 3 m/s; L = 4 H, i = 3 A. Find each energy.
- AssumptionsLinear elements; the force-voltage analogy maps mass to inductance.
- ModelSpring stores ½kx2 (effort-type); mass stores ½mv2; inductor stores ½Li2 (both flow-type).
- EquationsEspring = ½ k x2Emass = ½ m v2EL = ½ L i2
- SolveEspring = ½ × 400 × 0.052 = ½ × 400 × 0.0025 = 0.5 J. Emass = ½ × 4 × 32 = ½ × 4 × 9 = 18 J. EL = ½ × 4 × 32 = 18 J.
- CheckThe mass and the inductor store identical energy because both use ½(inertia)(flow)2 with the same numbers, confirming the mass-inductance analogy.
- ConclusionA spring stores energy through its effort and a mass through its flow; the mass and inductor match term for term, which is why the analogy preserves dynamics.
Worked example 2: a mechanical system and its electrical twin
A mass-spring-damper has m = 2 kg, c = 8 N·s/m, and k = 50 N/m. Build its force-voltage electrical analog and confirm both have the same natural frequency.
- ProblemBuild the electrical analog of the mechanical system in Figure 2 and compare natural frequencies.
- Given / findm = 2 kg, c = 8 N·s/m, k = 50 N/m. Find L, R, C and both ωn values.
- AssumptionsForce-voltage analogy: mass to L, damper to R, compliance 1/k to C.
- ModelMap L = m, R = c, C = 1/k; then ωn,mech = √(k/m) and ωn,elec = 1/√(LC).
- EquationsL = m, R = c, C = 1/kωn,mech = √(k/m)ωn,elec = 1/√(LC)
- SolveL = 2 H, R = 8 Ω, C = 1/50 = 0.02 F. ωn,mech = √(50/2) = √25 = 5 rad/s. ωn,elec = 1/√(2 × 0.02) = 1/√0.04 = 1/0.2 = 5 rad/s.
- CheckBoth natural frequencies are 5 rad/s. The damping ratios also match: ζ = c/(2√(km)) = 8/(2√100) = 0.4, and (R/2)√(C/L) = 4 × √(0.01) = 0.4.
- ConclusionThe electrical twin reproduces the mechanical dynamics exactly. One analysis, or one simulation, can stand in for the other.
Misconceptions and diagnostics
| Mistake | Symptom | Diagnostic question | Correction |
|---|---|---|---|
| Effort and flow swapped | Power product has wrong units | "Which variable drives, which responds?" | Effort drives (force, voltage); flow responds (velocity, current). |
| Mass matched to capacitor | Analogy gives wrong dynamics | "Does this element store in flow or effort?" | Mass stores in flow, so it maps to an inductor. |
| Stiffness mapped to C, not 1/k | Natural frequencies disagree | "Is compliance 1/k or k?" | Compliance is 1/k, mapping to capacitance. |
| Counting a resistor as a store | Model order too high | "Does this element store energy?" | Resistance and damping dissipate, never store. |
Practice ladder
A 3 kg mass moves at 2 m/s. Find its kinetic energy.
Show answer
E = ½mv2 = ½ × 3 × 4 = 6 J.
Give the force-voltage electrical analog of a system with m = 5 kg, c = 20 N·s/m, k = 80 N/m.
Show answer
L = 5 H, R = 20 Ω, C = 1/80 = 0.0125 F.
For that analog, find ωn both mechanically and electrically and confirm they agree.
Show answer
ωn,mech = √(80/5) = √16 = 4 rad/s. ωn,elec = 1/√(5 × 0.0125) = 1/√0.0625 = 1/0.25 = 4 rad/s. They agree.
Explain why an engineer might simulate a mechanical suspension as an electrical circuit, and what the effort and flow variables would be.
What good work looks like
Because the analog has identical dynamics and circuit tools are fast and well developed, with force as the effort (voltage) and velocity as the flow (current). The simulation predicts the mechanical response exactly.
Working with AI, and proving it yourself
Use AI as an examiner, not a solver
Portfolio task
Take a real system in one domain, build its analog in another, and confirm both share a natural frequency and damping ratio, identifying the effort and flow throughout.
Retrieval and spaced review
Closed notes. Answer out loud, then reveal.
1. What is power in generalized variables?
The product of effort and flow.
2. What does an inertia store, and a compliance?
Inertia stores ½ I f2 in flow; compliance stores ½ C e2 in effort.
3. Map mass, damper, spring to electrical elements.
Mass to inductance, damper to resistance, compliance 1/k to capacitance.
4. Why do analogous systems share ωn?
Their energy expressions and equations are identical in form.
5. Name the mechanical and electrical effort variables.
Force and voltage.
Textbook mapping
This module follows Karnopp, Margolis, and Rosenberg, System Dynamics: Modeling, Simulation, and Control of Mechatronic Systems, 5th edition, whose energy-based and bond-graph approach this module reflects.
| Topic in this module | Where to read more |
|---|---|
| Effort and flow variables | Karnopp, Margolis & Rosenberg, Chapter 2 |
| Generalized inertia, compliance, and energy | Karnopp, Margolis & Rosenberg, Chapter 3 |
| Cross-domain analogies and bond graphs | Karnopp, Margolis & Rosenberg, Chapters 3 to 5 |
Chapter numbers refer to the 5th edition, whose unifying effort-flow framework is the heart of this course.