Solid mechanics, machines & thermal cycles.
Eight working benches in the IIT Virtual Labs format. Pick an experiment, read its aim, theory and procedure, then drive the live simulation — every slider re-solves the underlying engineering mathematics — and test yourself with the self-assessment.
Shear force & bending moment diagrams
Loaded beam
Shear force diagram · V(x) [kN]
Bending moment diagram · M(x) [kN·m]
Elastic curve · deflection (mm)
To determine the support reactions of a simply-supported or cantilever beam under a point load and a uniformly distributed load (UDL), and to construct the shear force diagram (SFD) and bending moment diagram (BMD) along the span, identifying the location and magnitude of the maximum bending moment.
For a beam in static equilibrium the sum of vertical forces and the sum of moments about any point are both zero. Reactions follow directly from these two equations for a statically-determinate beam. The shear force V(x) at a section equals the algebraic sum of transverse forces to one side; the bending moment M(x) is the sum of their moments about that section. Key relations between distributed load w, shear and moment hold along the span.
Simply supported, point load P at a: R_B = (P·a + w·L·L/2) / L
dV/dx = -w(x) · dM/dx = V(x)
M is maximum where V = 0
The maximum bending stress on the section is sigma = M·c / I, where c is the distance from the neutral axis to the extreme fibre and I the second moment of area.
- Select the support type (simply supported or cantilever).
- Set the span L, point load P and its position a, and the UDL intensity w.
- Read the computed support reactions R_A and R_B from the results panel.
- Observe the shear force diagram; note that the moment peaks where V crosses zero.
- Read the maximum bending moment and its location, then the resulting bending stress.
- Vary the load position a and watch how the diagrams and the peak moment shift.
- R. C. Hibbeler, Mechanics of Materials, 10th ed., Pearson, Ch. 6 (Bending).
- S. P. Timoshenko, Strength of Materials, Part I, Van Nostrand.
- IIT Virtual Labs — Strength of Materials, vlabs.ac.in.
Beam deflection & elastic curve
Bending moment M(x) [kN·m]
Elastic curve · deflection (mm), magnified
To compute the slope and deflection of a loaded beam by twice integrating the bending-moment / flexural-rigidity relation EI·y'' = M(x), and to locate the point of maximum deflection and check it against the span/deflection serviceability ratio.
The curvature of a beam is proportional to the bending moment: the governing differential equation of the elastic curve is EI·d2y/dx2 = M(x). Integrating once gives the slope theta(x) = dy/dx; integrating again gives the deflection y(x). Two constants of integration are fixed by the boundary conditions. For a simply-supported beam the deflection is zero at both supports; for a cantilever the deflection and slope are both zero at the fixed end.
theta(x) = (1/EI) ∫ M dx (+ C1)
y(x) = ∫ theta dx (+ C2)
SS centre point load: y_max = P·L^3 / (48·EI)
Cantilever tip point load: y_max = P·L^3 / (3·EI)
Here the integration is performed numerically (trapezoidal rule) over 240 stations, which reproduces the closed-form results for standard load cases.
- Choose the support type and set the loads as in Experiment 1.
- Set the flexural rigidity by choosing the Young's modulus E and second moment of area I.
- The bending-moment diagram is integrated twice; read the maximum deflection and its location.
- Increase I (a stiffer section) and confirm the deflection falls in proportion to 1/I.
- Compare the deflection/span ratio with a typical serviceability limit of L/360.
- R. C. Hibbeler, Mechanics of Materials, 10th ed., Pearson, Ch. 12 (Deflection of Beams).
- E. P. Popov, Engineering Mechanics of Solids, Prentice Hall.
- IIT Virtual Labs — Strength of Materials, vlabs.ac.in.
Stress-strain & material properties
Engineering stress-strain curve
To study the engineering stress-strain behaviour of common structural metals under uniaxial tension — identifying the elastic region, yield point, ultimate tensile strength (UTS) and fracture — and to evaluate the factor of safety for a chosen working stress.
In the elastic region stress is proportional to strain (Hooke's law) and the slope of the line is the Young's modulus E. At the yield point the material begins to deform permanently. Beyond yield the metal strain-hardens, the stress rising to a maximum — the ultimate tensile strength — after which a neck forms, the engineering stress drops, and the specimen fractures. The factor of safety relates a strength limit to the actual working stress.
sigma = F/A0 · epsilon = dL/L0 (engineering)
Factor of safety: FoS = sigma_UTS / sigma_working
Ductile metals (mild steel) show a large plastic plateau before fracture; aluminium and high-strength steels are stronger but less ductile.
- Select a material from the dropdown; note its tabulated E, yield, UTS and fracture strain.
- Increase the applied strain slider and watch the marker climb the curve.
- Identify the strain at which the response leaves the straight elastic line (yield).
- Continue past the UTS into the necking region and observe the load drop.
- Set a working stress and read the factor of safety; aim for FoS of 2 or more.
- W. D. Callister, Materials Science and Engineering: An Introduction, Wiley.
- G. E. Dieter, Mechanical Metallurgy, McGraw-Hill.
- IIT Virtual Labs — Strength of Materials (Tension test), vlabs.ac.in.
Truss analysis by method of joints
Statically-determinate truss (members coloured by force sign)
To determine the axial force in every member of a simple, statically-determinate planar truss using the method of joints, and to classify each member as being in tension or compression.
A pin-jointed truss carries load only as axial forces in its members. At every joint the forces are concurrent, so two equilibrium equations apply: the sum of horizontal forces and the sum of vertical forces are each zero. Starting at a joint with no more than two unknown members, these equations are solved for the member forces, then the solver moves to the next joint. A positive result (assuming members pull on the joint) means the member is in tension; a negative result means compression.
At each joint: Sum Fx = 0, Sum Fy = 0
Member force > 0 = tension · < 0 = compression
Rafter inclination: theta = atan(2H / span)
Here a symmetric king-post truss is solved: reactions split the apex load equally, then joints A and B give the rafter, chord and vertical-tie forces directly.
- Set the span and height; the apex point D moves to keep the truss symmetric.
- Apply a downward point load at the apex joint D.
- The support reactions at the pin (A) and roller (C) are computed from global equilibrium.
- Each member force is solved by the method of joints and shown with its sign.
- Note which members carry tension (chords) and which carry compression (rafters).
- Raise the height and observe the rafter forces fall as the truss becomes deeper.
- R. C. Hibbeler, Structural Analysis, 10th ed., Pearson, Ch. 3 (Trusses).
- F. P. Beer & E. R. Johnston, Vector Mechanics for Engineers: Statics, McGraw-Hill.
- IIT Virtual Labs — Engineering Mechanics, vlabs.ac.in.
Mohr's circle for plane stress
Mohr's circle (sigma horizontal, tau vertical)
To construct Mohr's circle for a given plane-stress state (sigma_x, sigma_y, tau_xy), and from it to determine the principal stresses, the maximum in-plane shear stress, the orientation of the principal planes, and the stress components on any rotated plane.
Under plane stress the normal and shear stress on a plane inclined at theta vary as the plane rotates. Plotting normal stress sigma horizontally and shear stress tau vertically, every plane orientation maps to a point on a circle — Mohr's circle. Its centre lies on the sigma axis at the average normal stress; its radius equals the maximum in-plane shear. The two points where the circle crosses the sigma axis are the principal stresses, where shear vanishes. A rotation of theta on the element corresponds to a rotation of 2θ on the circle.
R = sqrt( ((sigma_x - sigma_y)/2)^2 + tau_xy^2 ) (radius)
sigma_1,2 = C ± R · tau_max = R
tan(2θ_p) = 2·tau_xy / (sigma_x - sigma_y)
sigma_x' = C + ((sigma_x-sigma_y)/2)cos2θ + tau_xy·sin2θ
- Enter the in-plane stress components sigma_x, sigma_y and the shear tau_xy.
- Read the circle centre and radius, plotted directly on the sigma-tau axes.
- Identify the principal stresses sigma_1 and sigma_2 where the circle meets the sigma axis.
- Read tau_max (the top of the circle) and the principal-plane angle theta_p.
- Sweep the plane angle theta and watch the X-face point travel 2θ around the circle.
- R. C. Hibbeler, Mechanics of Materials, 10th ed., Pearson, Ch. 9 (Stress Transformation).
- J. M. Gere & B. J. Goodno, Mechanics of Materials, Cengage.
- IIT Virtual Labs — Strength of Materials, vlabs.ac.in.
Gear trains & ratios
Meshing gear train
To analyse the kinematics of simple and compound gear trains — computing the overall velocity ratio, the output speed, the multiplied output torque and the direction of rotation — and to observe live meshing of the gears.
Two meshing gears have the same pitch-line velocity, so their speeds are inversely proportional to their numbers of teeth. For a compound train the overall ratio is the product of the individual stage ratios. Each external mesh reverses the direction of rotation, so an even number of meshes returns the output to the input direction. Neglecting losses, power is conserved, so the torque is multiplied by the same ratio that the speed is divided by; a small efficiency factor accounts for friction at each mesh.
Compound train: i = (Z2/Z1)×(Z4/Z3)
n_out = n_in / i · T_out = T_in × i × eta
Each external mesh reverses direction
- Choose a single-stage or two-stage (compound) train.
- Set the tooth counts; a larger driven gear gives a speed reduction and torque gain.
- Set the input speed and torque and read the multiplied output values.
- Check the output direction: one mesh reverses it, two meshes restore it.
- Watch the gears mesh; smaller gears spin proportionally faster.
- R. L. Norton, Design of Machinery, McGraw-Hill, Ch. 9 (Gear Trains).
- J. E. Shigley, Theory of Machines and Mechanisms, Oxford.
- IIT Virtual Labs — Theory of Machines, vlabs.ac.in.
Thermodynamic cycles: Otto & Carnot
P-V diagram
To plot the P-V diagram of the air-standard Otto cycle and the Carnot cycle, and to compute the thermal efficiency, heat input and rejection, net work and mean effective pressure, comparing the Otto efficiency with the Carnot upper bound for the same temperature limits.
The air-standard Otto cycle (the ideal spark-ignition engine) consists of isentropic compression, constant-volume heat addition, isentropic expansion and constant-volume heat rejection. Its efficiency depends only on the compression ratio and the specific-heat ratio gamma. The Carnot cycle, two isotherms joined by two adiabats, sets the maximum possible efficiency for any cycle operating between the same hot and cold temperatures. The net work equals the area enclosed by the cycle on the P-V plane.
Carnot: eta = 1 − T_c / T_h
w_net = q_in − q_out = enclosed P-V area
MEP = w_net / (V_max − V_min)
For the same temperature limits the Otto efficiency is always below the Carnot limit, since heat is added and rejected across finite temperature differences.
- Select the Otto or Carnot cycle.
- Set the compression ratio and the ratio of specific heats gamma.
- Set the cold (intake) and hot (peak) temperatures.
- Read the thermal efficiency and compare it with the Carnot limit shown alongside.
- Increase the compression ratio and watch the Otto efficiency rise toward, but never reach, the Carnot value.
- Y. A. Cengel & M. A. Boles, Thermodynamics: An Engineering Approach, McGraw-Hill.
- M. J. Moran et al., Fundamentals of Engineering Thermodynamics, Wiley.
- IIT Virtual Labs — Thermodynamics, vlabs.ac.in.
Mass-spring-damper vibrations
Displacement response x(t) [mm]
Frequency response · amplitude vs forcing ratio
To study the free and forced vibration of a single-degree-of-freedom mass-spring-damper system: to find its natural frequency and damping ratio, to classify the damping regime (under-, critically- or over-damped), and to observe resonance as the forcing frequency approaches the natural frequency.
A single mass on a spring and damper obeys the second-order equation of motion m·x'' + c·x' + k·x = F(t). Its undamped natural frequency is set by the stiffness-to-mass ratio. The damping ratio zeta compares the actual damping to the critical value: below 1 the system oscillates with a decaying envelope (under-damped); at 1 it returns to rest as fast as possible without overshoot (critical); above 1 it crawls back slowly (over-damped). Under harmonic forcing the steady-state amplitude is largest when the forcing frequency nears the natural frequency — resonance.
omega_n = sqrt(k/m) · f_n = omega_n / (2π)
c_c = 2·sqrt(k·m) · zeta = c / c_c
omega_d = omega_n·sqrt(1 − zeta^2) (under-damped)
Magnification M = 1 / sqrt((1−r^2)^2 + (2·zeta·r)^2)
- Choose free vibration (an initial 20 mm displacement) or harmonic forcing.
- Set the mass, stiffness and damping; read the natural frequency and damping ratio.
- Note the regime: under-damped oscillates and decays, over-damped does not oscillate.
- For forced vibration, sweep the forcing frequency toward the natural frequency and watch the amplitude grow at resonance.
- Increase the damping and confirm the resonant peak shrinks and broadens.
- S. S. Rao, Mechanical Vibrations, 6th ed., Pearson.
- D. J. Inman, Engineering Vibration, Pearson.
- IIT Virtual Labs — Dynamics of Machines, vlabs.ac.in.
2D finite-element stress analysis (CST)
Deformed mesh · von Mises contour
To discretise a 2D cantilever plate into constant-strain triangular (CST) finite elements, assemble the global stiffness matrix, apply a clamped support and a tip shear load, solve the equilibrium system K·U = F with a hand-written Gauss-elimination solver, recover the element stresses, and visualise the von Mises stress field over the deformed shape.
The finite-element method replaces a continuous body by an assembly of simple elements. For a constant-strain triangle the displacement varies linearly, so strain (and therefore stress) is constant within each element. The strain-displacement matrix B is built from the nodal coordinates; the constitutive matrix D is the plane-stress elasticity matrix. The element stiffness is the volume integral of B-transpose D B, which for a CST reduces to a closed form because B and D are constant. Elements are summed into a global stiffness matrix K; constrained degrees of freedom are removed, and the remaining linear system is solved for the nodal displacements.
CST area: 2A = x21·y31 - x31·y21
B rows from b_i = y_j - y_k, c_i = x_k - x_j (cyclic)
Element stiffness: k_e = t·A·B^T·D·B (6×6)
Assemble: K·U = F, then sigma = D·B·u_e
von Mises: sigma_v = sqrt(sx^2 - sx·sy + sy^2 + 3·txy^2)
The computed tip deflection is compared with the Euler-Bernoulli beam estimate P·L^3/(3·E·I); the two converge as the mesh is refined.
- Set the plate length, height and thickness, and the mesh density (elements along each side).
- Each rectangular cell is split into two CST elements; nodes are numbered automatically.
- Choose the material modulus E and Poisson ratio nu; the plane-stress D matrix is formed.
- Apply the downward tip shear load P; the left edge is fully clamped.
- The global stiffness matrix is assembled and K·U = F is solved by Gauss elimination.
- Read the tip deflection and the maximum von Mises stress; compare with beam theory.
- Refine the mesh and watch the FE tip deflection approach the beam-theory value.
- O. C. Zienkiewicz & R. L. Taylor, The Finite Element Method, Vol. 1, Butterworth-Heinemann.
- T. R. Chandrupatla & A. D. Belegundu, Introduction to Finite Elements in Engineering, Pearson.
- R. D. Cook et al., Concepts and Applications of Finite Element Analysis, Wiley.
Euler column buckling
Euler curve · critical stress vs slenderness
Buckled mode shape
To compute the Euler critical buckling load of a slender column for different end conditions, to relate the critical stress to the slenderness ratio K·L/r through the Euler curve, to locate the operating point and the transition to material yielding, and to draw the fundamental buckled mode shape for the chosen supports.
A perfectly straight, axially loaded column remains straight until the load reaches a critical value; beyond it the straight configuration becomes unstable and the column buckles sideways. Euler showed the critical load depends on the flexural rigidity EI, the length, and how the ends are restrained, captured by an effective-length factor K. Dividing by the cross-sectional area gives the critical stress, which falls off as the square of the slenderness ratio. Very stocky columns fail instead by material yielding, so the usable curve is the lower of the Euler stress and the yield stress.
Pinned-pinned K=1, Fixed-free K=2, Fixed-fixed K=0.5
Radius of gyration: r = sqrt(I / A)
Slenderness: lambda = K·L / r
sigma_cr = pi^2·E / lambda^2
Transition slenderness: lambda_t = pi·sqrt(E / sigma_y)
For a solid circular section I = pi·d^4/64 and A = pi·d^2/4, so the radius of gyration is simply d/4.
- Choose the end conditions; the effective-length factor K updates accordingly.
- Set the column length, modulus, diameter and the material yield stress.
- Read the slenderness ratio and the Euler critical load P_cr.
- Locate the operating point on the Euler curve and note whether it lies above or below the yield cut-off.
- Apply a working load P and read the factor of safety against buckling.
- Observe the buckled mode shape change with the end conditions (number of half-waves and inflection points).
- S. P. Timoshenko & J. M. Gere, Theory of Elastic Stability, McGraw-Hill.
- R. C. Hibbeler, Mechanics of Materials, 10th ed., Pearson, Ch. 13 (Buckling of Columns).
- IIT Virtual Labs — Strength of Materials, vlabs.ac.in.
Fatigue analysis: S-N & Goodman
Constant-life diagram · mean vs alternating stress
S-N curve (Basquin, log-log) · cycles to failure
To construct the S-N (stress-life) curve for a chosen metal using the Basquin relation, to plot the Goodman, Soderberg and Gerber mean-stress failure lines on a constant-life (Haigh) diagram, to evaluate the fatigue factor of safety for a given mean and alternating stress, and to estimate the cycles to failure from the equivalent fully-reversed stress.
Components subjected to fluctuating loads can fail at stresses well below the static strength — fatigue. A cyclic stress is described by its mean and alternating components. The endurance limit Se is the fully-reversed stress amplitude the material can sustain for a very large number of cycles. A non-zero mean stress is detrimental: the Goodman, Soderberg and Gerber criteria each draw a failure boundary on the mean-versus-alternating stress plane, the safe region lying below the line. The Soderberg line (to yield) is the most conservative, Goodman (to ultimate) is widely used, and the Gerber parabola best fits ductile test data. Below the infinite-life region, the finite life follows the Basquin power law fitted between the low-cycle and endurance anchor points.
Goodman: sigma_a/Se + sigma_m/Sut = 1/n
Soderberg: sigma_a/Se + sigma_m/Sy = 1/n
Gerber: n·sigma_a/Se + (n·sigma_m/Sut)^2 = 1
Equiv. reversed: sigma_ar = sigma_a / (1 - sigma_m/Sut)
Basquin: sigma_ar = a·N^b, N = (sigma_ar/a)^(1/b)
The endurance limit is estimated as Se = 0.5·Sut for steels (capped near 700 MPa), the standard first approximation before Marin surface, size and reliability factors are applied.
- Select a material; its ultimate, yield and endurance strengths are tabulated.
- Set the mean stress sigma_m and alternating stress sigma_a of the service load.
- Read the load point plotted on the Haigh (constant-life) diagram against the three failure lines.
- Compare the Goodman, Soderberg and Gerber factors of safety.
- Read the equivalent fully-reversed stress sigma_ar and the estimated cycles to failure from the S-N curve.
- Increase the mean stress and observe the factor of safety fall even though the amplitude is unchanged.
- R. G. Budynas & J. K. Nisbett, Shigley's Mechanical Engineering Design, McGraw-Hill, Ch. 6 (Fatigue Failure).
- N. E. Dowling, Mechanical Behavior of Materials, Pearson.
- R. L. Norton, Machine Design: An Integrated Approach, Pearson.