Notes
1P2 Structures · Topic 15

Virtual work

Lecture 11 · Fri 20 Nov

11 Virtual work

  • Displacement diagrams (Displacement diagram) show clearly how a truss deforms, but they become impractical for complex structures.
  • Virtual work is a second way to get from internal forces to displacements. It also gives single forces (reactions, bar forces) without solving the whole structure.
  • It is introduced here, as in the rest of the course, for pin-jointed plane trusses.

11.1 Real work

The wire experiment from lecture 9 is repeated. A weight hangs on a wire of original length . The weight is applied slowly (e.g. sand poured steadily into a bucket), so the load rises from to with no kinetic energy. The wire is in static equilibrium at every instant.

  • If the weight were released suddenly, it would oscillate (simple harmonic motion, exchanging potential, strain and kinetic energy) until damping settled it at . That is a dynamics problem, which this course does not cover.
  • Under slow loading the only energy exchange is from the work done by the load into energy stored in the wire.
F1 L0 T e1 = d1 F d F1 d1 external work = ½F1d1 T e T1 e1 internal energy = ½T1e1

The load rises linearly with time and so does the descent; plotted against each other, – and – are straight lines. The work and the stored energy are the shaded triangles.

Figure Fig 11.1: wire extension under a slowly applied load
Result Conservation of energy for slow loading (11.1) memorise
Where it comes from

This is Conservation of energy for a closed system. Slow (quasi-static) loading keeps the kinetic energy zero. Elastic behaviour means nothing is dissipated as heat. The only remaining terms are the work done by the external forces and the strain energy stored in the members.

Equation Real work for the wire (11.2)–(11.4) memorise

is the wire stiffness (), the final load, its descent, and the final tension and extension.

Show derivation
  1. The wire is linear elastic: with (Extension of an axially loaded bar (9.4)).
  2. Under slow loading the load is proportional to its displacement: .
  3. External work: .
  4. Energy stored: , as for a spring (Potential energy of a linear spring).
  5. Equating these by Conservation of energy for slow loading (11.1) gives (11.3). Substituting gives , which is (11.4).

Real work for a truss

Each external force acts at a node that displaces by . Each straight bar carries axial force and extends by . Summing (11.4) over the whole truss:

Equation Real work for a pin-jointed truss (11.5) memorise

, are vectors (dot product). , are scalars along the bar, both with the same sign convention: tension and lengthening positive (Sign convention for bar forces). The appears on both sides and can be cancelled.

Show derivation
  1. Apply all loads slowly and in proportion, with rising from 0 to 1.
  2. The truss is linear elastic, so every displacement, tension and extension also scales with : , , .
  3. Work done by load : .
  4. Energy stored in bar : .
  5. Reactions are external forces too, but each acts only in a direction in which its support cannot move, so for every reaction.
  6. Summing over all loads and all bars and applying Conservation of energy for slow loading (11.1) gives (11.5).

Check on the roof truss (Fig. 10.7: a roof truss; the handout’s caption says “Fig. 10.6” but means this truss, see Fig. 10.8: displacement diagram for the roof truss using symmetry (units WL/AE)):

  • The reactions act in directions in which the supports are constrained, so they do no work.
  • For real loading and always have the same sign (), so every bar stores positive energy.
W A B C D 45° L L

A pinned, C on a roller, load at D. All bars have .

Figure Fig 11.2: real work for the roof truss
Bar () ()
BD
AB
BC
AD
DC
internal
Node along () ()
A (reaction)
D (measured from Fig. 10.8)
C (reaction)
external

External and internal work are the same. Equivalently, , so , matching the displacement diagram.

Watch out

Real work gives a displacement only when there is a single applied load and you want the displacement of its point in its direction. With two or more loads, one equation holds several unknown displacements.

Explanation The roller at C does move. Why is its work zero?

C slides horizontally by , but the roller’s reaction is vertical. Work is , and the dot product of a vertical force with a horizontal displacement is zero. So the “” column in the node table means the displacement component along the force.

  • Load applied slowly: no kinetic energy, so external work = strain energy stored.
  • Linear elastic: work is a triangle, forcedisplacement. Truss: .
  • Reactions do no work; and always have the same sign for real loads.
  • Use real work only for one load: it gives the displacement of the loaded point along the load.

11.2 Derivation of the virtual work method for pin-jointed frames

Two load sets on the wire

The wire is loaded three ways (Fig 11.2½):

  • a) first load set alone: ;
  • b) a second set alone: ;
  • c) applied first, then added (superposition, Principle of superposition).

In case c the area under each graph from to (or to ) consists of the triangle from (b) plus a strip. The triangles are already known to be equal from (a) and (b), so the strips must be equal too:

Equation Virtual work for the wire memorise

The force and tension come from load set 1; the displacement and extension come from load set 2.

Show derivation
  1. Apply slowly. By Real work for the wire (11.2)–(11.4), .
  2. Now add slowly while stays on. By superposition the extra displacement is and the extra tension and extension are and , exactly as if acted alone.
  3. External work in this second stage:
    • is already at full value while its point moves , so it does (no );
    • grows from zero and does .
  4. Energy stored in this second stage: the tension rises linearly from to while the extension grows by , so the energy is .
  5. Apply Conservation of energy for slow loading (11.1) to the whole process: .
  6. Subtract (a) and (b): .

The surprise is that this links quantities that are not related to each other:

  • , from set 1 only need to be in equilibrium;
  • , from set 2 only need to be compatible.

This is the principle of virtual work.

Interactive figure

is applied first, then , on a spring with . Blue: , the work of alone. Green: , the work does at full value while is added; this is the virtual-work term. Red: . Orange: , the cross term you would get if were applied first. Move both sliders: green and orange always have equal area, both . This is reciprocity.

Figure Figs 11.2½c and 11.2¾: superposing two load sets on a linear spring
Explanation Why is there a ½ in real work but not in virtual work?

In real work a force grows from zero while its own displacement grows, which gives a triangle and so a . In the virtual-work term the force of one set is already at its full value while the displacement of the other set happens, which gives a rectangle and no .

Generalising to a plane truss

The methods so far give four features of a loaded truss:

  • the external and reaction forces ;
  • the bar tensions produced by those forces;
  • the nodal deflections ;
  • the bar extensions produced by the tensions.
Definition Equilibrium set and compatible set
  • Equilibrium set : the external forces, including reactions, are in equilibrium with the bar tensions at every joint (Equilibrium of a pin-joint).
  • Compatible set : the nodal displacements fit together with the bar extensions (Compatibility) and with the supports.

In virtual work one set is real (what the question asks for) and the other is virtual (invented to pick out the answer).

The lecture’s derivation. Remove the loads and apply a completely different set . It produces tensions , extensions and compatible displacements . Real work (11.5) holds for each set separately:

Now start again and apply both sets together. Equating internal and external work:

Multiplying out:

By (11.6) the first and fourth terms on each side cancel:

The two terms on the left are equal, and so are the two on the right, by reciprocity (Fig 11.2¾, widget above). Each pair therefore collapses to a single term, which gives (11.9) below.

Result Principle of reciprocity (Fig 11.2¾) memorise

For a linear elastic spring or bar:

The two rectangles in Fig 11.2¾ always have equal area if the graph is linear, which is guaranteed for linear elastic structures.

Show derivation
  1. Spring: and , so .
  2. Bar: by Extension of an axially loaded bar (9.4), and , so .
  3. For a whole truss, the external version follows from Principle of virtual work for plane trusses (11.9), (11.11) in both forms: . (This is the Maxwell–Betti reciprocal theorem.)
Result Principle of virtual work for plane trusses (11.9), (11.11) databook p.13

Conditions:

  • and are in equilibrium;
  • and are compatible and consistent with the supports;
  • superposition applies (small displacements).

The left side is the external virtual work and the right side the internal virtual work. They are “virtual” because there is no causal link between and . The second form, (11.11), follows by applying the two sets in the reverse order.

Show derivation
  1. Apply the set slowly. By Real work for a pin-jointed truss (11.5), .
  2. Keep it on and add slowly. By superposition each node moves a further and each bar gains and .
  3. External work in this second stage:
    • each is constant while its node moves , so it does ;
    • each grows from zero and does .
  4. Energy stored in this second stage: in each bar the tension rises linearly from to over the extension , giving .
  5. Equate the two by Conservation of energy for slow loading (11.1). The and terms cancel by real work for the starred set alone, leaving .
  6. Applying first and then gives the second form in the same way.
Explanation Does virtual work really need linear elasticity? (a direct proof)

No. It only needs equilibrium of one set and compatibility of the other (with small displacements). Proof:

  1. At every joint , including supports, where includes the reaction, equilibrium gives . Here is the unit vector along bar pointing away from joint .
  2. Dot this with and sum over all joints. A bar joining and appears twice, giving .
  3. Compatibility for small displacements (Extension and rotation of a bar from its end displacements (small displacements)) is , so that term equals .
  4. Hence .

No material law was used. That is why the compatible set may come from anything: given bar errors or thermal strains (the first example below), or a rigid-body motion (section 11.4). It does not have to come from loads at all.

Explanation How does this match the databook?

The structures databook (p13) writes it as : are external forces, the displacements along them, the bar forces and the extensions. It is the same equation as (11.9).

Picking out a single unknown

With (11.9) you can find one feature of a structure without solving everything.

Equation One bar force from a unit virtual extension (11.10) memorise

Choose virtual extensions that are zero in every bar except bar , where . Find nodal displacements compatible with this, and (11.10) gives the real tension in bar from the known external forces.

Show derivation

Use the first form of Principle of virtual work for plane trusses (11.9), (11.11) with real and in equilibrium. Choose for and , with a compatible . Every term on the right is zero except .

Equation One displacement from a unit virtual force (11.12) memorise
  1. Find all the real extensions from the real loading.
  2. Apply a virtual unit force at node in the direction of interest, together with the reactions that balance it.
  3. Find the virtual tensions in equilibrium with it.

is the real displacement component of node along the unit force.

Show derivation

Use the second form of Principle of virtual work for plane trusses (11.9), (11.11) with as the equilibrium set and the real as the compatible set. consists of a unit vector at node plus reactions. At the supports the real displacement is zero in the direction of each reaction, so the reactions do no virtual work. The left side reduces to .

To show which quantities are linked, (11.9) is often written with braces (11.13): the top brace joins the equilibrium pair, the bottom brace joins the compatible pair.

equilibrium Σi Fi · di = Σj Tj ej compatible

Write this as the first line of every solution, and label one brace “real” and the other “virtual”. The real one is whatever the question asks for.

Figure (11.13): which terms belong together
Watch out

Signs: , , , are all positive for tension or lengthening. is a dot product, so it is negative when the node moves against the force. A negative answer for means the node moves opposite to the unit virtual force.

  • Equilibrium set and compatible set : one real, one virtual, otherwise unrelated.
  • No in virtual work: one set’s force is already at full value while the other set’s displacement happens.
  • Unit virtual extension of one bar gives that bar’s real force (11.10). Unit virtual force at a node gives that node’s real displacement component (11.12).
  • Conditions: equilibrium, compatibility including the supports, small displacements.
  • Databook p13: .

11.3 Using virtual work to find extensions or displacements

If the aim is to find extensions or displacements, these are real, so the forces and tensions must be virtual:

Equation Virtual work for displacements (11.14) databook p.13

With a unit virtual force at the node of interest, the left side is the displacement component wanted (One displacement from a unit virtual force (11.12)).

Show derivation

This is the second form of Principle of virtual work for plane trusses (11.9), (11.11), with the virtual starred set as the equilibrium set and the real deformation as the compatible set.

Example: four-bar truss with given extensions (Fig 11.3)

Example Vertical displacement of A (same problem as Fig. 10.5)

In the four-bar truss, BD extends by , BC shortens by , AC shortens by and AB is unchanged. Find the vertical displacement of node A. (This was solved by displacement diagram in Figs. 10.4 and 10.5: displacement diagram of the four-bar truss, step by step.)

Real set: the given extensions and the (unknown) compatible joint displacements, including the vertical displacement of A.

Virtual set: a unit force downwards at A. The bar forces and the reactions at C and D are in equilibrium with it.

Virtual bar forces by the method of joints:

  • Joint A, vertical: , so . Horizontal: .
  • Joint B, vertical: , so . Horizontal: .
Bar Real extension Virtual bar force
BD
BC
AC
AB

Virtual work (11.15):

This confirms the displacement diagram of Fig. 10.5, which gave .

Interactive figure

The bars are labelled with their real extensions; the red arrow is the real displacement of A (scaled). Turn the unit virtual force through angle . The virtual bar forces change, and is always the projection of onto the force direction (the blue dot). At it gives the lecture’s . At it answers the handout’s extension question: horizontal displacement , i.e. towards the wall.

Figure Fig 11.3: a unit virtual force picks out one component of the displacement of A
Explanation The handout’s extension: horizontal displacement of A

Put the unit virtual force horizontally at A. Joint A then gives and , and joint B gives . So , i.e. towards the wall.

Check: C is fixed and AC is horizontal, so A must move horizontally by exactly the change in length of AC.

Explanation These extensions were not caused by any load. Is that allowed?

Yes. The real set here is just a compatible deformation, such as bars made the wrong length or heated. Virtual work needs only that the virtual forces are in equilibrium and the real deformation is compatible (see the direct proof above). This is how EP3 Q7-type questions work.

Example: horizontal truss with a vertical load at E (Fig 11.3½)

The question wants a real displacement, so displacements and extensions are real and forces and tensions are virtual. The truss is that of Fig. 10.6: a horizontal truss with a vertical load at E, with all bars having area and modulus .

F F* = 1 A B C D E 45° L L

Pinned at A and B on the wall. The real load acts down at E; the virtual unit force acts horizontally at E. The bars carrying virtual force (AC, CE) are shown in blue.

Figure Fig 11.3½: real load F and virtual unit force at E
Example Horizontal displacement of E

Real tensions come from the analysis of Fig. 10.6. Extensions follow from (Extension of an axially loaded bar (9.4)).

Virtual tensions for a unit horizontal force at E (pointing away from the wall):

  • Joint E: vertical gives ; horizontal gives .
  • Joint D: with , .
  • Joint C: vertical gives ; horizontal gives .

Virtual work calculation (always use a table like this):

Bar Real tension () Length () Real extension () Virtual tension Real ext. virtual tension ()
AC
BC
BD
DC
CE
DE

E moves towards the wall, opposite to the unit force. This agrees with Displacement diagram for the truss of Fig. 10.6 (units FL/AE), since AC and CE are horizontal and both shorten.

Explanation Why build the whole table when most T* are zero?

In the exam you must show the method. A full table with columns , , , , makes every number checkable and catches sign slips. Bars with contribute nothing, so you could skip their real extensions. Many examiners’ answers include them anyway, as a check on the real analysis.

Example: bridge with a stiffer top chord (Fig 11.4)

The bridge has bar BD with cross-sectional area and all other bars with area ; all bars have modulus . A vertical force acts at C. Find the vertical displacement of C and the horizontal displacement of D.

The question asks for real displacements, so first find the real extensions:

  1. reactions ( up at A and at F, by symmetry);
  2. bar forces by the method of joints;
  3. using each bar’s own length and area.
Example Real extensions and the vertical displacement of C (11.16)
Bar Length Area () ()
AB
DF
BC
CD
AC
CF
BD

(Joint A: , so , and . Joint B: and . The right half follows by symmetry.)

C is the only unrestrained node loaded by an external force, and the reactions do no work. So real work (11.5) gives the answer directly:

For the horizontal displacement of D, discard the real tensions: they have done their job by giving the real extensions. Apply a virtual unit force horizontally at D (Fig 11.5) and find the virtual tensions in equilibrium with it.

Example Horizontal displacement of D (11.17)

Virtual reactions:

  • Moments about A: , so upwards.
  • At A: downwards and horizontally (opposing the unit force).

Virtual tensions by joints:

  • Joint F: , .
  • Joint A: , .
  • Joint B: , .
  • Joint C: .
Bar () ()
AB
DF
BC
CD
AC
CF
BD

The left side is , the horizontal displacement of D. It is positive, so the horizontal displacement of D is in the direction of the unit force, i.e. away from A.

Interactive figure

The red truss is the real displaced shape under at C, exaggerated by the slider (dashed: unloaded; thick bar: BD with area ). Choose where the unit virtual force goes. “C vertical” gives and “D horizontal” gives , as in the lecture. “F horizontal” gives , the stretch of AC plus CF. Every arrow you pick reads off one component of the same displaced shape.

Figure Figs 11.4 and 11.5: the bridge’s real displaced shape, and what each unit virtual force picks out
Explanation Why could real work give d_C but not the movement of D?

Real work contains only for the actual loads. The only load that moves is at C, so that equation holds just one unknown, . The movement of D never appears in it. To reach any other displacement you must place a force there yourself, and that is the virtual unit force.

Try now
  • Displacement wanted: and real, and virtual (11.14).
  • Recipe: real loads → real (joints) → (use each bar’s own and ) → discard real → unit force at the node in the direction wanted → (joints, including virtual reactions) → .
  • Always tabulate: bar, , , , , .
  • Negative result: the node moves opposite to the unit force.
  • Shortcut: a single load and its own displacement → real work, .

11.4 Using virtual work to find forces or bar tensions

If the aim is to find forces or bar tensions, these are real, so the nodal displacements and bar extensions must be virtual:

Equation Virtual work for forces (11.18) databook p.13

Design a compatible virtual motion so that only the unknown you want does work.

Show derivation

This is the first form of Principle of virtual work for plane trusses (11.9), (11.11), with the real loads, reactions and tensions as the equilibrium set and an invented compatible motion as the virtual set.

Example: reaction of a roof truss (Fig 11.6)

W RA RB A B 3L 4L 4Lθ 3Lθ A B rigid rotation θ about B

Left: the real set, with load at from B and reactions , . Right: the virtual set, a small rigid rotation about B (drawn exaggerated). A rises and the loaded joint rises .

Figure Fig 11.6: real external forces (left) and a virtual rigid-body rotation about B (right)
Example Reaction at A by virtual work (11.19)

Real set: the applied load and the reactions , , in equilibrium with the bar forces. The bar forces are not needed here.

Virtual set: a rigid-body rotation about B by a small angle (Small rigid-body rotation). The nodal displacements are easy to compute, and they are compatible with zero extension in every bar.

  • does negative virtual work because its joint moves up, against the load.
  • does none because B does not move.

This is rather trivial, since all virtual extensions are zero: the same result comes from taking moments about B. In fact virtual work with a rigid-body motion is a moment (or force) equation in disguise.

Explanation A is pinned. How can the virtual motion lift it?

The virtual motion is imaginary, so it may break a support, and here it must. To make appear in the equation, release the support whose reaction you want and let that point move along the reaction. Keep every other support fixed, so their unknown reactions do no work and drop out. The horizontal reaction at A does no work either, because for a small rotation about B, A moves vertically.

Example: one bar force in the 14-bar tower (Fig 11.7)

The tower is the one analysed by sections in Fig. 6.12: method of sections for the 14-bar tower (diagonals at 45°). Find caused by the horizontal load at A.

Example T_DF by virtual work (11.20)

Real set: the applied load , the support reactions and the internal bar forces, all in equilibrium.

Virtual set: a small rigid-body rotation of the upper part (A, B, C, D) about E, anticlockwise.

  • E and everything below it stay put. The only bar joining the moving part to the fixed part other than at E is DF, so DF is the only bar that extends: (D rises ).
  • All other bars keep their length; these are the compatible displacements for a unit extension of DF (One bar force from a unit virtual extension (11.10)).
  • A is above E, so it moves horizontally by , in the direction of .

Check by sections (Method of sections (axial force in one specific bar)): cut DF, EF and EG, and take moments about E for the upper part. , which agrees.

Interactive figure

The shaded upper part rotates rigidly about E. Only DF (red) changes length; every other bar is unchanged. Reduce : the ratio of A’s sideways movement to DF’s stretch tends to exactly 2, giving . Virtual displacements must be small; at large the ratio drifts from 2.

Figure Fig 11.7: rotating the top of the tower about E stretches only DF
Explanation Is a ‘unit’ virtual extension really length 1?

No. Everything is linear in the virtual set, so any small works and cancels, as it does here. “Unit” just means a convenient scale. What matters is that the virtual displacements are small, so first-order geometry (Small rigid-body rotation) applies.

Try now
  • Force wanted: and real, and virtual (11.18).
  • Reaction: release that support only; a rigid-body motion gives all , so (it is a moment equation in disguise).
  • One bar force: let only that bar extend (rigid motion of part of the truss); then .
  • Loads moving against their direction do negative virtual work.

General approach to solving problems with the method of virtual work

Result Solving a virtual work problem memorise
  1. Write down (11.13), , and mark which pair (equilibrium or compatible) is real and which virtual. The real one is whatever the question asks for.
  2. Look for symmetry and simplifications: bar forces or displacements that are known or zero.
  3. Forces and tensions real: design a compatible virtual set of nodal displacements and extensions that “picks out” the required answer (release one support, or extend one bar).
  4. Displacements and extensions real:
    • first use the real loads to find the real tensions, and from them the real extensions;
    • if the displacement is wanted at the point of a single external load, in its direction, real work may solve it directly;
    • otherwise discard the real forces and tensions and design a virtual set that picks out the required displacement, usually a unit force at the node of interest in the specified direction.
  • First line of every answer: with “real” and “virtual” labels.
  • Question asks for a displacement → virtual unit force. Question asks for a force → virtual compatible motion.
  • Real work only when there is one load and its own displacement is wanted.

Displacement diagrams or virtual work?

Result Choosing between displacement diagrams and virtual work memorise
  • Displacement diagrams (Drawing a displacement diagram (pin-jointed truss)) are easier to check, and usually quicker when the displacements of many joints are needed. For some trusses they become quite complex.
  • Virtual work is often easier when seeking the displacement of a single joint, but only if the geometry is simple (so the virtual bar forces are easy to find by joints).
Explanation Can I use one to check the other?

Yes, and the lecture does exactly that: for the four-bar truss, for the roof truss and for the horizontal truss all match the earlier displacement diagrams. In an examples question that asks for one method, a rough second method is a cheap check on sign and size.

  • Many joints wanted → displacement diagram. One joint in a simple geometry → virtual work.