Skip to main content

reconstruct-grains

Reconstruct a 2D grain map from a micrograph or raw square-grid EBSD, inspect ambiguity, and initialize diffuse grain fields before simulation.

Source facts

Repository
HeshamFS/consilith
Last source activity
October 21, 2026 at 23:28
Detected SKILL.md language
English
Stars
2
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
reconstruct-grains
description
Reconstruct a 2D grain map from a micrograph or raw square-grid EBSD, inspect ambiguity, and initialize diffuse grain fields before simulation.
1. Read the scope resource and identify whether the input is an image or raw EBSD. 2. Preserve source bytes. Ask for explicit crop/calibration when labels or scale bars are present. 3. Use microstructure.segment_image for visible boundaries; use microstructure.segment_ebsd for measured orientations. Never infer orientations from IPF screenshot colors. 4. Compare global, adaptive and ridge methods with explicit bright/dark boundary polarity. Use guided markers for reviewed corrections; preserve pore/unknown masks. Do not claim method agreement or a processed reference mask is independent grain ground truth. 5. Show the candidate map and its unknown/phase/size diagnostics. Request review or correction. 6. Use microstructure.initialize_fields with recorded interface width. Inspect label recovery, diffuse area changes and unresolved grains. Never hide small-grain loss or replace the map with a synthetic tessellation. 7. Simulation requires accepted reconstruction, supported single-phase data and sourced or explicitly hypothetical gamma/mobility. Report dimensionless time when uncalibrated. 8. Use microstructure.trajectory to show the complete sampled evolution: stable grain IDs, diffuse interfaces, time, grain areas, disappearance and energy. Call it a hypothetical scenario when mobility/energy are not calibrated. Unknown/pore masks and mixed phases must not be evolved by silently filling or relabeling them. 9. Distinguish a successful computation, numerical verification and experimental validation.
View on GitHub