dimensional-analysis-unitslisted
Install: claude install-skill rustcircle/c101
# Dimensional analysis and units
Physics answers fail on dimensions, on regime (a formula used outside its validity), on unit or
constant slips, and on factors that dimensional analysis cannot see (2π, √2, ½). This skill puts
a check against each in front of every derivation, estimate and conversion. APIs were run in
October 2026 with pint 0.26, astropy 8.0, SciPy 1.18 and SymPy 1.14; the Julia APIs come from
the Unitful, UnitfulEquivalences and PhysicalConstants documentation.
Deep material: constants and conversions |
dimensionless numbers |
magnitude anchors
## 1. Buckingham pi
n variables built from k independent base dimensions give n − k independent dimensionless groups;
the law is a relation among them, π₁ = Φ(π₂, …).
1. List every relevant variable, including dimensional constants (g, ħ, c, k_B, G, γ).
2. Build the dimension matrix: rows M, L, T, Θ, I; columns variables; entries exponents.
3. k = rank of the matrix (it can be smaller than the number of base dimensions).
4. Pick k repeating variables that span the dimensions, usually the controls.
5. Form the n − k groups; recombine them into conventional ones (Re, C_D) before reporting.
6. Write π₁ = Φ(π₂, …). Φ comes from theory, a limit or data, never from the analysis itself.
Pendulum: T [T], L [L], g [L T⁻²], m [M], θ₀ [1]; n = 5, k = 3, two groups T·sqrt(g/L) and θ₀.
The mass cannot appear (nothing else carries M), so T = sqrt(L/g)·Φ(θ₀) with Φ(0) = 2π. Large
amplitude: T = 2π sqrt(L/g)(1 + θ₀²/16 + 11θ₀⁴/3