Start a fresh conversation. Replace the highlighted placeholders.
Use convergence-study to analyze [grid or timestep sizes] and [QoI values] against [expected order], producing observed order, Richardson error estimates, GCI, and any convergence anomalies; provide at least three refinement levels for GCI.
Required inputs
[grid or timestep sizes]
[QoI values]
[expected order]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: convergence-studydescription: Spatial and temporal convergence analysis with Richardson extrapolation and Grid Convergence Index (GCI) for solution verificationallowed-tools: - Bash - Read
Convergence Study
Goal
Provide script-driven convergence analysis for verifying that numerical solutions converge at the expected rate as the mesh or timestep is refined.
Requirements
Python 3.8+
NumPy (not required; scripts use only math stdlib)
Run grid/timestep refinement study with at least 3 levels
Compute observed convergence order with h_refinement.py or dt_refinement.py
Compare observed order to expected order of the scheme
Estimate discretization error via Richardson extrapolation
Report GCI for formal solution verification using gci_calculator.py
Document convergence results and any anomalies
Decision Guidance
Do you have 3+ refinement levels?
+-- YES --> Run h_refinement.py or dt_refinement.py
| +-- Observed order matches expected? --> Solution verified
| +-- Order too low? --> Check: pre-asymptotic, coding error, insufficient resolution
| +-- Order too high? --> Check: superconvergence or cancellation effects
+-- NO (only 2 levels) --> Use richardson_extrapolation.py with assumed order
(less reliable without order verification)