gpd-numerical-convergence

Validates numerical physics computations through systematic convergence testing and error estimation.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/MichaelsEngineering/sentinel-multiscale-field-dynamics --skill gpd-numerical-convergence-michaelsengineering
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gpd-numerical-convergence
Source: https://github.com/MichaelsEngineering/sentinel-multiscale-field-dynamics/tree/main/.agents/skills/gpd-numerical-convergence
Command: npx skills add https://github.com/MichaelsEngineering/sentinel-multiscale-field-dynamics --skill gpd-numerical-convergence-michaelsengineering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy.

What problem does it solve? Numerical physics results are meaningless without demonstrated convergence and error bars. This Skill systematically tests whether computed values are independent of discretization artifacts like grid size, time step, basis truncation, and Monte Carlo statistics, preventing uncontrolled approximations from masquerading as answers. ## Core Features & Use Cases - Benchmark Validation: Reproduces known analytical results (harmonic oscillator, Ising 2D, hydrogen atom) before trusting new computations. - Systematic Convergence Testing: Runs geometric refinement sequences, estimates convergence orders, and applies Richardson extrapolation to produce honest error bars. - Conservation & Stability Checks: Verifies energy, momentum, and probability conservation, plus perturbation, floating-point precision, and CFL stability analysis. - Use Case: After computing a ground-state energy on a finite grid, run this Skill to vary grid resolution across five refinement levels, measure the convergence order, extrapolate to the continuum limit, and generate a NUMERICAL-VALIDATION.md report with a complete error budget. ## Quick Start Ask the AI to run a convergence validation on phase 3 or on a specific computation file, for example: test numerical convergence for all results in phase 3 and generate the validation report.

Frequently Asked Questions about gpd-numerical-convergence

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test numerical convergence of a physics computation?▼

Run the computation across a geometric refinement sequence (e.g., doubling grid resolution over 3-5 levels), compute successive differences, and estimate the convergence order from Richardson ratios. The Skill automates this sweep, grading, and extrapolation for each identified parameter.

What is Richardson extrapolation and when should I use it?▼

Richardson extrapolation combines results at two refinement levels to estimate the continuum limit when convergence follows a known power law O(h^p). Use it after confirming a consistent convergence order to obtain an extrapolated value with an error estimate.

How do I verify conservation laws in numerical simulations?▼

Track conserved quantities like energy, momentum, or probability along the computed trajectory and quantify maximum and average drift. Bounded drift indicates a good symplectic integrator, while exponential drift signals numerical instability.

Why does my convergence test show oscillating or non-monotonic errors?▼

Oscillating errors typically indicate oscillatory integrands, catastrophic cancellation, or numerical instability rather than true convergence. The Skill detects these pitfalls explicitly and prescribes fixes such as Filon quadrature, higher precision arithmetic, or implicit integrators.

Can this handle stiff ODEs and Monte Carlo thermalization issues?▼

Yes. It compares explicit versus implicit integrators to detect stiffness and computes autocorrelation times to verify Monte Carlo sampling is decorrelated. It flags critical slowing down near phase transitions and recommends cluster algorithms or implicit methods.

What are the limitations of standard convergence testing?▼

Standard refinement comparisons fail for adaptive meshes, near critical phenomena with diverging correlation lengths, and when catastrophic cancellation amplifies relative error. These cases require finite-size scaling, tolerance-level studies, or reformulation to avoid subtracting large numbers.