Lite / Independent Engineering Research / Week 9
Convergence and sensitivity studies
Your simulated frequency is 1.0007 rad/s. Is the 7 from the physics, the step size or a parameter you guessed?
Why should I care?
Two questions every computational result must answer: is the number converged (numerical error small), and how much would it change if the inputs were slightly different (sensitivity)? Without both, the result cannot be trusted or compared.
- Run a step-refinement convergence study on the two-mass simulation and report the observed order.
- Run a sensitivity study: how much do ω₁, ω₂ and the beat period change with each parameter?
- Separate numerical error from parameter uncertainty in a result.
Predict
For two equal masses, ω₂ = √((k + 2k_c)/m). If the coupling stiffness k_c is 10% uncertain and k_c is small compared with k, how uncertain is ω₂?
- About 10%
- Much less than 10%
- About 20%
Guess first, then reveal
∂ω₂/∂k_c = 1/(m ω₂). With k_c ≪ k, a 10% change in k_c changes k + 2k_c only slightly, so ω₂ moves by much less than 10%. The beat period 2π/(ω₂ − ω₁), however, depends strongly on k_c.
Discover
Open the Code Lab. Simulate the two-mass system with RK4 at h = 0.4, 0.2, 0.1, 0.05 s. Measure the beat period (time between energy-transfer peaks) and compare with 2π/(ω₂ − ω₁). Then vary k_c by ±10% and record how the beat period moves.
What the interactive shows (text version)
This activity is code-based: simulate the two-mass system at four step sizes, measure the beat period and compare with the analytic value, then repeat with the coupling stiffness changed by plus and minus 10 percent and tabulate the results.
Understand
Convergence first
Run the simulation at several steps and compute the metric each time. Check that the differences shrink by about 2ᵖ per halving. Choose a step where the numerical error is at least ten times smaller than any effect you want to report. Record that choice and the evidence in the report.
Then sensitivity
Change one parameter at a time by a stated amount (for example ±10%) and record the change in each output: a one-at-a-time study. Report relative sensitivities (percentage change in output per percentage change in input). Compare with analytic derivatives where you have them, as in the derivation above.
Separating error sources
A result has numerical error (step size, round-off), parameter uncertainty (k_c known to ±10%) and model error (are springs really linear?). Convergence studies bound the first, sensitivity studies the second; only experiments address the third. Say clearly which you have quantified.
Explain it another way
Intuitive
Before saying 'the bridge sways at 1.0 Hz', check the answer does not move when you sharpen the pencil (convergence) or when the steel is a bit stiffer (sensitivity).
Technical
Local sensitivity is the derivative of an output with respect to an input; global methods (Monte Carlo sampling of inputs) capture interactions and nonlinearity, previewed next term.
Applied
Structural engineers report natural frequencies with sensitivity to mass and stiffness, because real masses and joint stiffnesses are uncertain.
Derivation: Sensitivity of the frequencies to the coupling spring
Equal masses m, outer springs k, coupling k_c: ω₁ = √(k/m), ω₂ = √((k + 2k_c)/m).
∂ω₁/∂k_c = 0: the in-phase mode never stretches the coupling spring.
∂ω₂/∂k_c = (1/2)(k + 2k_c)^{−1/2} · 2/√m = 1/(m ω₂).
Relative sensitivity: (k_c/ω₂)(∂ω₂/∂k_c) = k_c/(m ω₂²) = k_c/(k + 2k_c), which is small when k_c ≪ k.
Beat period T_b = 2π/(ω₂ − ω₁). For small k_c, ω₂ − ω₁ ≈ k_c/(m ω₁), so T_b ≈ 2π m ω₁ / k_c: a 10% change in k_c gives about a 10% change in T_b.
Worked example 1
m = 1 kg, k = 1 N/m, k_c = 0.1 N/m. Compute ω₁, ω₂ and T_b, then T_b with k_c = 0.11.
ω₁ = 1, ω₂ = √1.2 ≈ 1.0954, T_b = 2π/0.0954 ≈ 65.8 s. With k_c = 0.11: ω₂ = √1.22 ≈ 1.1045, T_b ≈ 2π/0.1045 ≈ 60.1 s: about 9% shorter for a 10% stiffer coupling, while ω₂ changed by only 0.8%.
Common mix-ups
A converged simulation is a validated one.
✓ Converged means the equations are solved accurately; validation asks whether they are the right equations.Sensitivities can be read straight from the formula's exponents.
✓ Only for simple power laws; derived quantities like the beat period can be far more sensitive than the frequencies themselves.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
For your project parameters, produce (1) a convergence table for the beat period with both integrators and (2) a one-at-a-time sensitivity table for ±10% in m₂, k₂ and k₁. Highlight which parameter dominates the uncertainty.
Reflect
Which surprised you more: how sensitive the beat period was, or how insensitive ω₂ was?
Write your answer on paper or in your own notes. Lite never stores what you write.