Scroll back to top

    Virtual Work

    In general, a force does work when it produces a displacement along its line of action. When we talk about virtual work, we're imagining those displacements becoming infinitesimally small.

    Work is defined as positive when the force and the displacement are in the same direction, and negative when the force and displacement are in opposite directions.

    Virtual work (\( dU \)) is the work produced by a force (\( F \)) over an infinitesimally small displacement (\( dr \)).
    Virtual work.
    $$ dU = \vec{F}\cdot d\vec{r}\ $$

    Virtual Displacements

    A virtual displacement is an infinitesimally small translation (\( dr \)) and/or rotation (\( d\theta \)) that is possible in the system.


    Note: virtual displacements are assumed to be possible, but don't actually exist.

    Couple Moments

    Couple moments can also do work! When a body's rotation and the moment vector are oriented in the same direction, the couple moment does work. For 2D problems, this is when both the moment and the rotation are oriented in the \( \hat{k} \) direction using the right hand rule.

    Couple moment virtual work (\( dU \)) is the work produced by a couple moment (\( M \)) over an infinitesimally small angular displacement (\( d\theta \)).

    Virtual work of a couple moment. #cpl-mmt
    $$ dU = \vec{M} \cdot d\theta \hat{k} $$

    Principle of Virtual Work

    If a body is in equilibrium, the sum of the virtual work done by all the forces and couple moments acting on the body is zero. We can use this principle to solve for the forces on systems.
    Virtual work equilibrium.
    $$ \sum{dU} = \sum{\vec{F} \cdot d\vec{r}} + \sum{\vec{M} \cdot d\theta}\hat{k} = 0 $$

    Virtual Work Analysis

    Steps for completing an analysis of a system using virtual work:

    1. Draw a free body diagram of the system, including a coordinate system.
    2. Sketch the "deflected" position of the system.
    3. Define the position coordinates (measured from a fixed point).
    4. Identify the components of the forces or moments that are parallel to the virtual displacements (the parallel line of action components).
    5. Remove all the forces that do not complete any work.
    6. Differentiate the position coordinates to obtain virtual displacement.
    7. Write the virtual work equation, expressing the virtual work of every force and moment.
    8. Factor out the common virtual displacement term (\( dr \) and/or \( dr \)) and solve.

    We can use virtual work to solve for the forces in a system without needing to solve for all of the support reactions.

    For example, if a truss is completely pinned on one end, it doesn't move, which means there is no virtual work completed on that pin because there are no virtual displacements (\( dr = 0 \)). This means that we can ignore it in our virtual work equation and don't need to solve for the reaction forces at the truss pin.

    Example Problem: Virtual work analysis of a linkage system. #pin-trs

    Determine the force \( P \) needed to maintain equilibrium of the linkage at angle \( \theta_P \). The spring is unstretched at \( \theta_S \).

    1. Draw the free body diagram of the structure. In this case, we have the support reactions at points A and G and the force P and spring force.
    2. Sketch the deflected position.
    3. Define the position coordinates from a fixed point.
    4. For this problem, we are defining the coordinates of points B and D from the fixed point A.
      $$ \vec{r_B} = l sin\theta \hat{i} + l cos\theta\hat{j} $$
      $$ \vec{r_D} = 3l sin\theta \hat{i} + l cos\theta\hat{j} $$
    5. Identify forces that have components parallel to the virtual displacements. For this problem, this would be the force of the spring \( F_S \) and the applied load \( P \).
    6. Remove forces that do no work.
    7. \( A_x \), \( A_y \), and \( G_x \) do not do any work (\( dU = 0 \)), so they can be removed.
    8. Differentiate the position coordinates.
    9. $$ \vec{dr_B} = l cos\theta \text{ } d\theta \hat{i} - l sin\theta \text{ } d\theta \hat{j} $$
      $$ \vec{dr_D} = 3l cos\theta \text{ } d\theta \hat{i} - l sin\theta \text{ } d\theta \hat{j} $$
    10. Apply the Principle of Virtual Work.
    11. $$ \Sigma dU = dU_P + dU_{F_S} = 0 $$
    12. Factor out the common virtual displacement term and solve (in this case, we will factor out \( d\theta \))
    13. $$ \Sigma dU = \vec{P} \cdot d\vec{r_D} + \vec{F_S} \cdot d\vec{r_B} = 0 $$
      $$ \Sigma dU = (P \hat{i}) \cdot (3l cos\theta \text{ } d\theta \hat{i} - l sin\theta \text{ } d\theta \hat{j}) + (-F_s \hat{i}) \cdot (l cos\theta \text{ } d\theta \hat{i} - l sin\theta \text{ } d\theta \hat{j}) = 0 $$
      Remember that the dot product of any \( \hat{i} \) terms with any \( \hat{j} \) terms is equal to zero because the vectors are perpendicular, which leaves us with:
      $$ \Sigma dU = 3lP cos\theta \text{ } d\theta -F_Sl cos\theta \text{ } d\theta = 0 $$
      Factor out the common \( l cos\theta \text{ } d\theta \) term:
      $$ \Sigma dU = (3P - F_S) l cos\theta \text{ } d\theta = 0 $$
      Solve for \( P \):
      $$ 3P - F_S = 0 $$
      $$ P = \frac{1}{3} F_S $$
      Now that we have \( P \), we need to solve for the force in the spring.
      $$ F_S = k \Delta x $$
      $$ F_S = k (l-l_0) $$
      $$ F_S = k (l sin\theta_P - l sin \theta_S) $$
      Plug into our equation for \( P \) to get our final answer:
      $$ P = \frac{1}{3} kl (sin\theta_P - sin \theta_S) $$

    Warning: Virtual work can be an easier method of solving for some problems. #vrt-wrk

    For simple problems, virtual work is about the same amount of work as the equilibrium equations.