Tension & compression
About this app
Bar under tension/compression: normal stress σ=F/A, strain ε=σ/E and elongation ΔL=F·L/(E·A); sliders for F, A, L and E, the bar deforms visibly.
The basics
When a straight bar is loaded axially, the force spreads evenly over the cross-section. This gives the normal stress σ = F/A. In the elastic range Hooke’s law σ = E·ε applies, so the strain is ε = σ/E. With ε = ΔL/L the change in length is ΔL = F·L/(E·A). The product E·A is called the axial stiffness. In tension the bar gets longer, in compression shorter; the formulas hold in both cases with a change of sign. Slender bars in compression must also be checked for buckling.
What the app shows
A bar is clamped on the left and loaded with a force F on the right. Small arrows across the section show the uniform distribution of normal stress. The bar deforms visibly while its original length stays drawn as a reference. A values panel lists the normal stress σ, strain ε, elongation ΔL and the new length. A toggle switches between tension and compression.
Things to try
Double the cross-section A and watch stress and elongation halve. Then change Young’s modulus from a soft material to steel at about 210 GPa: for the same force the bar deforms much less, while the stress stays the same. A longer bar has the same stress but stretches more. In compression the bar shortens by the same amount it would lengthen in tension.
Frequently asked questions
- How do you calculate the normal stress in a bar?
- Normal stress is force per cross-sectional area: σ = F/A. With F in newtons and A in mm², σ comes out in N/mm², which equals MPa. Tensile stresses are usually positive and compressive stresses negative.
- How much does a bar elongate under tension?
- In the elastic range ΔL = F·L/(E·A). The elongation grows with force and length and decreases with Young’s modulus and cross-section. The formula follows from σ = F/A, σ = E·ε and ε = ΔL/L.
- Does the stress depend on the material?
- No, the normal stress σ = F/A depends only on force and cross-section. The material determines, through Young’s modulus, how much the bar stretches, and through its strength values, how much stress it can withstand.
- What can I set in the tension and compression app?
- You choose tension or compression and set force F, cross-section A, length L and Young’s modulus with sliders. The app shows how the bar deforms and computes normal stress, strain, elongation and the new length.
Subject: Engineering mechanics
More from Engineering mechanics
- Bending stress & moment of inertia
- Düsenjet bis v_max (3D)
- Energy & oscillation
- Truss analysis (method of joints)
- Equilibrium & support reactions
- Kinematics
- Kinetics & Newton's second law
- Forces & vector addition
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps