Home › Analytical mechanics › Principle of virtual work and d'Alembert
Principle of virtual work and d'Alembert
The principle of virtual work for the equilibrium of systems with ideal constraints, generalized forces, d'Alembert's principle and the general equation of dynamics.
trolley mass M = 200 kg; load mass m = 1000 kg; rope length l = 4 m;
the trolley runs along a horizontal girder without friction; the rope is inextensible and massless.
1. Principle of virtual work
A system with ideal constraints is in equilibrium if and only if the total work of the active forces in every virtual displacement is zero (Johann Bernoulli, 1717; Lagrange):
$$\delta W = \sum \vec F_i\cdot\delta\vec r_i = 0$$The reactions of ideal constraints do no virtual work, so they do not enter the equation. For a system with one degree of freedom the principle immediately gives one equilibrium equation, without taking the mechanism apart.
2. Generalized forces
When the virtual displacements are expressed through the generalized coordinates, δri = Σ (∂ri/∂qj) δqj, the virtual work becomes
$$\delta W = \sum_j Q_j\,\delta q_j, \qquad Q_j = \sum_i \vec F_i\cdot\frac{\partial\vec r_i}{\partial q_j}$$Qj is the generalized force corresponding to the coordinate qj. If qj is a length, Qj is a force; if it is an angle, Qj is a moment. Since the δqj are independent, the equilibrium conditions are Qj = 0 for every j. For conservative forces Qj = −∂Ep/∂qj, so equilibrium is at a stationary point of the potential energy, and stable equilibrium at a minimum (Lagrange–Dirichlet).
3. Example: slider-crank mechanism
With a gas force F on the piston and a resisting moment M on the crank, the virtual work is F δx − M δφ = 0, and δx = (dx/dφ) δφ, so
$$M = F\,\frac{dx}{d\varphi} = F\,\frac{v_B}{\omega}$$4. D'Alembert's principle
If inertia forces −miai are added to the active forces, a dynamic system is treated as if it were in equilibrium. The principle of virtual work then gives the general equation of dynamics (d'Alembert–Lagrange):
$$\sum_i \left(\vec F_i - m_i\,\ddot{\vec r}_i\right)\cdot\delta\vec r_i = 0$$This is the starting point for Lagrange's equations.
5. Example: trolley acceleration
Practice problems
Problem 1. ●○○ easy Wind acts on the 1000 kg load with a horizontal force F = 500 N, and the trolley is braked. At what angle does the load rest, and what force does the brake hold?
What is happening: In equilibrium the work of active forces on every admissible displacement is zero. The rope force does no work, so it does not appear.
Show answer and solution
Solution idea: One virtual displacement per coordinate.
Given: \(m = 1000\ \text{kg}\), \(F = 500\ \text{N}\), \(l = 4\ \text{m}\)
Find: \(\theta,\ H = ?\)
Symbols:
- \(m\) – load mass, kg
- \(F\) – horizontal wind force on the load / force at the rope end, N
- \(l\) – rope length, m
- \(\theta\) – rope angle from vertical (generalized coordinate), °, rad
- \(H\) – force with which the brake holds the trolley, N
- \(\delta W\) – virtual work, J
- \(\delta\theta\) – virtual change of angle, rad
- \(g\) – gravitational acceleration, 9.81 m/s²
- \(\delta x\) – virtual trolley displacement, m
- \(x\) – trolley position (generalized coordinate), m
- Virtual displacement δθ (trolley fixed): work of wind and weight:$$\begin{aligned}\delta W &= F\, l\cos\theta\,\delta\theta - m g\, l\sin\theta\,\delta\theta \\ &= 0\ \Rightarrow\ \operatorname{tg}\theta \\ &= \frac{F}{m g} \\ &= 0.051,\ \ \theta \\ &= 2.9^\circ\end{aligned}$$
- Virtual displacement δx of the whole system (brake released and replaced by force H):$$\begin{aligned}\delta W &= (F - H)\,\delta x \\ &= 0\end{aligned}$$$$\begin{aligned}\Rightarrow\ H &= F \\ &= 500\ \text{N}\end{aligned}$$
Answer: θ = 2.9°; H = 500 N
Sanity check: The load moves only 4·0.051 = 0.2 m sideways. The same angle results from a 0.5 m/s² trolley acceleration (Dynamics area) – 500 N of wind on 1000 kg is equivalent to 0.5 m/s².
Problem 2. ●●○ medium The trolley with load accelerates steadily at a = 0.5 m/s², with the load at relative rest. Using d'Alembert's principle, find the rope angle and the required force on the trolley.
What is happening: d'Alembert: adding inertial forces −m a turns the dynamic problem into a static one, so the virtual-work principle applies.
Show answer and solution
Solution idea: Inertial forces, then virtual work for δθ and δx.
Given: \(M = 200\ \text{kg}\), \(m = 1000\ \text{kg}\), \(a = 0.5\ \text{m/s}^2\)
Find: \(\theta,\ P = ?\)
Symbols:
- \(M\) – trolley mass, kg
- \(m\) – load mass, kg
- \(a\) – trolley acceleration, m/s²
- \(\theta\) – rope angle from vertical (generalized coordinate), °, rad
- \(P\) – pulling force on the trolley, N
- \(l\) – rope length, m
- \(g\) – gravitational acceleration, 9.81 m/s²
- The inertial force −ma on the load acts like wind; δθ:$$-m a\, l\cos\theta - m g\, l\sin\theta = 0$$$$\begin{aligned}\Rightarrow\ \operatorname{tg}\theta &= -\frac{a}{g},\ \ |\theta| \\ &= 2.9^\circ\end{aligned}$$
- δx of the whole system, inertial forces on both masses:$$P - (M + m)\, a = 0$$$$\begin{aligned}\Rightarrow\ P &= 1200\cdot 0.5 \\ &= 600\ \text{N}\end{aligned}$$
Answer: θ = 2.9° backward; P = 600 N
Sanity check: The minus sign means the rope lags – it leans backward. The result equals the Dynamics one, but without computing the rope force.
Problem 3. ●○○ easy A 1000 kg load is held by a pulley block with 4 load-bearing rope falls. Using virtual work, find the force at the free rope end (neglect friction).
What is happening: The virtual-work principle relates forces through the ratio of displacements – without finding the forces in individual falls and axles.
Show answer and solution
Solution idea: Displacement ratio, then δW = 0.
Given: \(m = 1000\ \text{kg}\), \(n = 4\)
Find: \(F = ?\)
Symbols:
- \(m\) – load mass, kg
- \(n\) – number of rope falls
- \(F\) – horizontal wind force on the load / force at the rope end, N
- \(\delta W\) – virtual work, J
- \(\delta s\) – virtual displacement of the rope end, m
- \(g\) – gravitational acceleration, 9.81 m/s²
- When the free end moves δs, the load rises δs/4 (all four falls shorten equally):$$\begin{aligned}\delta W &= F\,\delta s - m g\,\frac{\delta s}{4} \\ &= 0\end{aligned}$$
- Force:$$\begin{aligned}F &= \frac{m g}{4} \\ &= \frac{9810}{4} \\ &= 2.45\ \text{kN}\end{aligned}$$
Answer: F = 2.45 kN
Sanity check: The force is 4 times smaller but the travel 4 times longer – the work is the same. With a block efficiency of ~0.9 the real force would be about 2.7 kN.