heshamfs/materials-simulation-skills/post-processing
Claude Code and agent skill by heshamfs/materials-simulation-skills
- community
Checking that the SKILL.md file is still in the repository.
Extract, analyze, and summarize simulation output data — pull spatial fields at specific timesteps, compute time-series trends and detect steady state, extract line profiles through the domain, generate statistical summaries and distributions, calculate derived quantities (gradients, fluxes, volume fractions, interface area), compare results against analytical solutions or experimental data, and produce automated analysis reports. Use when interpreting finished simulation results, checking mass or energy conservation, comparing two runs or meshes, extracting interface profiles from phase-field output, or preparing publication-quality analysis, even if the user only says "what do my results look like" or "did my simulation reach steady state."
Install
npx vskill@latest install heshamfs/materials-simulation-skills/post-processingSKILL.md
Post-Processing Skill
Analyze and extract meaningful information from simulation output data.
Goal
Transform raw simulation output into actionable insights through field extraction, statistical analysis, derived quantities, visualizations, and comparison with reference data.
Inputs to Gather
Before running post-processing scripts, collect:
- Output Data Location
- Path to simulation output files (JSON, CSV, HDF5, VTK)
- Time step/snapshot indices of interest
- Field names to extract
> Read field names from the file, never assume them. Before extracting, > open the output file (or run field_extractor.py --input <file> --list > --json) and use only the field names that actually appear under fields. > Do not invent fields such as temperature if they are not present, and do > not assume a grid size — read the real shape/count from the data.
- Analysis Type
- Field extraction (spatial data at specific times)
- Time series (temporal evolution of quantities)
- Line profiles (1D cuts through domain)
- Statistical summary (mean, std, distributions)
- Derived quantities (gradients, integrals, fluxes)
- Comparison to reference data
- Output Requirements
- Output format (JSON, CSV, tabular)
- Visualization needs
- Report format
Scripts
| Script | Purpose | Key Inputs | |
|---|---|---|---|
field_extractor.py | Extract field data from output files | --input, --field, --timestep | |
time_series_analyzer.py | Analyze temporal evolution | --input, --quantity, --window | |
profile_extractor.py | Extract line profiles | --input, --field, --start, --end | |
statistical_analyzer.py | Compute field statistics | --input, --field, --region | |
derived_quantities.py | Calculate derived quantities | --input, --quantity, --params | |
comparison_tool.py | Compare to reference data | --simulation, --reference, --metric | |
report_generator.py | Generate summary reports | --input, --template, --output |
Workflow
1. Data Inventory
First, understand what data is available:
2. Field Extraction
Extract spatial field data at specific timesteps:
3. Time Series Analysis
Analyze temporal evolution of quantities:
4. Line Profile Extraction
Extract 1D profiles through the domain:
5. Statistical Analysis
Compute statistics over field data:
6. Derived Quantities
Calculate physical quantities from raw data:
7. Comparison with Reference
Compare simulation results to reference data:
8. Report Generation
Generate automated reports:
Typical Post-Processing Pipeline
For a complete simulation analysis:
Interpretation Guidelines
Time Series Analysis
Interpret convergence differently depending on the quantity type, because the two signals the analyzer reports (convergence.{rate,type} and steady_state.reached) answer different questions and can legitimately disagree.
Residual / error quantities (e.g. residual, error):
- Judge convergence by absolute magnitude vs a tolerance: a residual at or
below the target tolerance (e.g. 1e-6) is converged. Use --absolute-threshold <tol> to get the convergence_threshold block, which is the physically correct test for residuals.
- The relative
--detect-steady-statetest answers "has the residual stopped
changing?", not "has it converged?". For a still-decreasing residual, steady_state.reached = false is expected and not a failure.
- A plateau of a residual means a stalled solver
(convergence.type = "stalled"), not steady state.
- Reconcile the signals: if
convergence.typeisfast/linearand the
final residual is small (or convergence_threshold.reached = true), report the run as converged even when steady_state.reached = false.
Physical quantities (e.g. energy, volume_fraction, mass, interface_area):
- Monotonic decrease in energy: system approaching equilibrium.
- Plateau (
steady_state.reached = true): steady state reached. - Oscillations: may indicate the time step is too large.
- Sudden jumps: possible numerical instability.
Statistical Analysis
- Bimodal distribution of order parameter: Two-phase mixture
- High variance: Heterogeneous microstructure
- Skewed distribution: Asymmetric phase fractions
Comparison Metrics
| Metric | Interpretation | |
|---|---|---|
| L2 error < 1% | Excellent agreement | |
| L2 error 1-5% | Good agreement | |
| L2 error 5-10% | Moderate agreement | |
| L2 error > 10% | Poor agreement, investigate |
Output Format
All scripts support the --json flag for machine-readable output. Most scripts emit a flat top-level object whose keys depend on the script. For example, field_extractor.py --include-data on a single field emits:
Notes on envelope shapes (they are not uniform across scripts):
field_extractor.py,statistical_analyzer.py,time_series_analyzer.py,
profile_extractor.py, and comparison_tool.py emit a flat object with a source_file key plus script-specific result keys.
derived_quantities.pywraps its payload in an `{ "inputs": {...},
"results": {...} }` envelope.
report_generator.pyemits top-levelreport_versionandgenerator
keys plus the requested report sections.
No script emits top-level script, version, or input_file keys, and field statistics (min/max/mean/count) appear at the top level, not nested under a data object.
Verification checklist
Before trusting or reporting a post-processing result, produce and record the concrete evidence below (tied to this skill's scripts and output keys):
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/simulation-workflow/post-processing/SKILL.md
Popularity
- Repository stars
- 40
- Repository forks
- 3
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/heshamfs/materials-simulation-skills/post-processing)