From grimoire
Applies Buckingham Pi theorem to derive dimensionless groups, check dimensional consistency, and scale physical relationships without solving governing equations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grimoire:apply-dimensional-analysisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use the Buckingham Pi theorem to derive dimensionless groups, check dimensional consistency, and scale physical relationships without solving governing equations.
Use the Buckingham Pi theorem to derive dimensionless groups, check dimensional consistency, and scale physical relationships without solving governing equations.
Adopted by: Fluid mechanics (Reynolds number, Mach number, Froude number), heat transfer (Nusselt, Prandtl, Rayleigh numbers), structural engineering (geometric similarity), NASA aerodynamic model testing, chemical engineering (Damköhler number).
Impact: Dimensional analysis reduced experimental effort in the Wright Brothers' wind tunnel tests by ~70% by identifying similarity parameters; Kolmogorov's dimensional analysis of turbulence (1941) produced the -5/3 energy cascade law without solving the Navier-Stokes equations.
Why best: Dimensional analysis is model-independent — it constrains the form of physical laws using only the principle that physical equations must be dimensionally homogeneous. It reveals scaling laws and collapses data from different experimental conditions onto universal curves.
Sources: Buckingham Phys Rev 4:345–376 (1914); Bridgman (1922); Barenblatt (1996) ch. 1–3; White "Fluid Mechanics" 8th ed. (2016) ch. 5.
List all relevant physical variables — identify every variable that could affect the phenomenon: n variables total (e.g., for drag: force F, velocity v, density ρ, viscosity μ, length L → n=5).
Write dimensions for each variable — use fundamental dimensions: M (mass), L (length), T (time), θ (temperature), I (electric current). Express each variable as M^a L^b T^c ... (e.g., dynamic viscosity μ: M L⁻¹ T⁻¹).
Count independent dimensions — determine k = number of independent fundamental dimensions appearing (usually k = 3 for mechanical problems: M, L, T).
Apply Buckingham Pi theorem — the number of independent dimensionless groups is p = n − k. These groups (π₁, π₂, ..., πₚ) completely describe the phenomenon.
Choose k repeating variables — select k variables that together contain all fundamental dimensions and are not dimensionless themselves. These will appear in every π group. Good choices: ρ, v, L for fluid mechanics.
Form each π group — for each remaining variable, combine it with the k repeating variables raised to unknown powers and solve the exponent system to make the product dimensionless.
Simplify and name — check if each π group matches a named dimensionless number (Re, Fr, Nu, etc.); if so, use the standard name and definition to ensure comparability with literature.
Write the functional relationship — express: π₁ = f(π₂, π₃, ..., πₚ). For p=1, the result is π₁ = constant (a complete similarity law). For p=2, π₁ = f(π₂) — a curve to be determined experimentally.
Apply to scaling — if two systems have equal values of all π groups, they are dynamically similar and will exhibit the same behavior (a model can predict the full-scale system).
Verify dimensional consistency — check your final equation/relationship: every additive term must have identical dimensions; this is a necessary (not sufficient) condition for a correct equation.
npx claudepluginhub jeffreytse/grimoire --plugin grimoireAnnotates codebases with dimensional analysis comments documenting units, dimensions, and decimal scaling. Audits DeFi protocols and arithmetic code for mismatches and bugs.
Annotates codebases with dimensional analysis comments on units, dimensions, and decimal scaling. Prevents mismatches and catches arithmetic bugs in DeFi protocols, offchain code, and numeric computations.
Annotates codebases with dimensional analysis comments on units, dimensions, and decimal scaling. Prevents mismatches and catches arithmetic bugs in DeFi protocols, offchain code, and numeric computations.