Loading...
Loading...
Plan verification and validation campaigns for simulation codes using manufactured solutions, canonical benchmark problems, grid/time refinement, uncertainty propagation, and pass/fail acceptance criteria. Use when an agent needs to prove a solver, model, or result is trustworthy rather than only plausible.
npx skill4agent add heshamfs/materials-simulation-skills benchmark-and-mms-planner| Input | Description | Example |
|---|---|---|
| PDE or model class | Governing family | |
| Quantity of interest | Metric to validate | |
| Dimension | 1, 2, or 3 | |
| Expected order | Formal discretization order | |
| Reference availability | Analytic, benchmark, or none | |
| Risk level | Cost or consequence of wrong result | |
scripts/benchmark_mms_planner.pyinputsresultsverification_strategyeffective_modelgeneralmms_planbenchmark_casesrefinement_protocoldimensionlevelsspacing_ratioexpected_orderaccept_observed_order_mininclude_time_refinementuncertainty_planpropagate_inputsreport_error_barsseparate_discretization_and_model_erroracceptance_criteriawarningsaccept_observed_order_minexpected_order1.0references/vv_patterns.mdbenchmark_mms_planner.py --jsonpython3 skills/verification-validation/benchmark-and-mms-planner/scripts/benchmark_mms_planner.py \
--model diffusion \
--quantity "L2 error in temperature" \
--dimension 2 \
--expected-order 2 \
--reference analytic \
--risk high \
--jsonbenchmark_mms_planner.py --jsoninputsdimensionexpected_orderreferenceriskeffective_model: general--modelrefinement_protocollevelsspacing_ratioaccept_observed_order_mininclude_time_refinementtruemms_plan.manufacture_solutiontrueacceptance_criteriabenchmark_caseswarningsreferencenoneexperimental| Tempting shortcut | Why it's wrong / what to do |
|---|---|
| "The planner ran and printed a plan, so the result is verified." | The script only plans V&V; it never runs the solver. Verification comes from executing the |
| "Two grids converged, so the observed order is fine." | |
"Observed order beats | That threshold is an engineering screening heuristic (formal order minus a 10%/20% relative tolerance, floored at 1.0), not a certified bound. For rigorous order verification run a Richardson/GCI study. |
"Steady-looking model, so I can skip | If the planner set |
| "We matched a benchmark, so the code is validated." | Matching |
" | With |
"Unknown model name, so I'll ignore the | An unrecognized |
argparseplan_vv2dimension123expected_orderrisklowmediumhighargparseplan_vvreferenceanalyticbenchmarkexperimentalnoneargparseplan_vvmodelquantityMAX_FIELD_LENmodelquantityquantitymodelgeneralmodelquantityallowed-tools: Read, Bash, Write, Grep, GlobBashscripts/benchmark_mms_planner.pypython3 ... --jsonReadGrepGlobreferences/vv_patterns.mdWriteevalexecpicklejson.dumpsreferences/vv_patterns.mdrefinement_protocolmms_planacceptance_criteriawarningsreference nonegeneralscript_checksverification_strategyaccept_observed_order_minlevelsinclude_time_refinementuncertainty_plangeneraleffective_modeluncertainty_planeffective_model