# How to know whether a vertical truss displacement is upwards or downwards (using virtual work)?

Say I want to determine the vertical displacement of the truss at Node B

How do I tell whether the vertical displacement is upwards or downwards just by looking the real forces? Where do I draw the virtual unit load? Upwards or downwards?

In the image below, the left side shows the applied (horizontal) load and the reaction forces. The right side shows the virtual load in the direction of the displacement to be determined. The principal of virtual work states, that the deflection can be calculated as follows: $$w=\sum \frac{N_i \cdot \bar{N_i}}{EA}L$$ The direction of the virtual load ist not really relevant. If the calculated deflection is positive, the deflection is in the direction of the virtual load. For a negative results it's the other way around.
Now, from looking at the system on the right, one can see that the only member forces are in the leftmost column (bold), i.e. those are the only two members with a non-zero virtual force. As they are in compression (virtual), while the real part (left) are in tension, you will get a negative value for $$w$$, which means the deflection will be upwards (opposite direction of the virtual load).
• @CountDOOKU: It is only in the system on the right, where all member forces, except in the leftmost column are zero. This is not true for the system on the left. However, to determine $w$ you need to multiply every real member force $N$ with its virtual counterpart $\bar{N}$. Thus, only non-zero forces (be it real or virtual) contribute to the result of $w$. Commented Apr 21, 2022 at 6:01