科研 Skill
衍射结构表征
diffraction
Covers diffraction-based structure characterization (XRD, neutron, SAED): space group determination, Rietveld refinement, phase identification. Use for any diffraction-pattern analysis technique.
SKILL.md
Diffraction
Overview
Diffraction techniques determine atomic structure by measuring how a sample scatters X-rays, neutrons, or electrons. All three share the underlying crystallography (Bragg's law, space groups, structure factors) but differ in what they're sensitive to (X-rays: electron density; neutrons: nuclear positions, strong for light elements like H/Li; electrons: strong scattering, useful for nanocrystals and local/SAED work) and in practical acquisition constraints. This skill covers what's shared — space groups, Rietveld refinement, CIF format — and routes to type-specific references.
When to use this skill
Activate when the request involves:
- XRD, X-ray diffraction, powder diffraction, neutron diffraction, SAED, electron diffraction
- Terms: Bragg's law, space group, Rietveld refinement, structure factor, d-spacing, CIF
- File formats:
.cif,.xrdml,.raw(diffractometer formats),.gsas - "Index this diffraction pattern," "refine this crystal structure," "identify this phase"
Which reference to read
| You have... | Read |
|---|---|
| Powder or single-crystal X-ray diffraction | references/xrd.md |
| Neutron diffraction | references/neutron-diffraction.md |
| Electron diffraction (SAED, in a TEM) | references/electron-diffraction.md — also see microscopy/references/tem.md |
Core usage — shared crystallography
Reading and writing structures (CIF format)
from pymatgen.core import Structure
structure = Structure.from_file("material.cif")
print(structure.get_space_group_info()) # (symbol, number)
structure.to(filename="material_out.cif")
Structure/composition object handling is covered in depth in materials-structure-analysis — this
skill focuses on the diffraction-specific measurement and refinement workflow.
Rietveld refinement (GSAS-II, scripted)
import GSASIIscriptable as G2sc
gpx = G2sc.G2Project(newgpx="refinement.gpx")
hist = gpx.add_powder_histogram("pattern.xrdml", "instrument.prm")
phase = gpx.add_phase("material.cif", histograms=[hist])
hist.set_refinements({"Background": {"no. coeffs": 6, "refine": True}})
hist.set_refinements({"Cell": True}) # refine lattice parameters
gpx.do_refinements([{}]) # execute the refinement steps queued above
gpx.save()
r_wp = hist.get_wR() # weighted-profile R-factor — goodness of fit, see pitfalls
Validation & Pitfalls
Canonical reference: Toby & Von Dreele (2013), "GSAS-II: the genesis of a modern open-source all purpose crystallography software package," Journal of Applied Crystallography, for Rietveld methodology and tooling; Young (ed.), The Rietveld Method (1993), for the foundational method.
- A low R-factor (Rwp) does not by itself mean the refined structure is correct. Rwp measures fit quality against the data, but an over-parameterized model (too many refined variables for the data quality) can achieve a low Rwp while being physically implausible. Check the goodness-of-fit (GOF/chi-squared) and refine parameters in a stable, physically motivated order (scale → background → lattice → peak shape → atomic positions → thermal parameters), not all at once.
- Preferred orientation (non-random crystallite orientation in a powder sample) systematically distorts relative peak intensities and, if not modeled, biases refined atomic positions and site occupancies. Check for it (peak intensity ratios inconsistent with the structure model) before trusting a refinement, especially for plate- or needle-shaped crystallites.
- Phase identification from peak positions alone is ambiguous when multiple candidate phases share
similar unit cells — always cross-check against a reference database (ICDD PDF, or a structure
database — see
materials-databases) rather than accepting the closest peak-position match without verifying peak intensity ratios too. - Instrument contribution to peak broadening must be characterized (e.g. via a standard reference material) before extracting sample-intrinsic broadening (crystallite size, microstrain) — treating raw peak width as purely sample-intrinsic overestimates strain/underestimates crystallite size.
示例提示词
我有一组XRD谱图,需要做Rietveld精修确定相组成和空间群。
所属插件
安装该插件会一并获得同领域的 42 个 Skill / MCP。
同插件的其他科研 Skill
- 贝叶斯优化材料发现Covers Bayesian optimization for materials and chemistry design: surrogate models, acquisition functions, batch/constrained BO. Use when planning sample-efficient experiments or simulations.
- CALPHAD热力学计算工作流Covers CALPHAD computational thermodynamics: database selection, equilibrium/metastable calculations, binary/ternary phase diagrams. Use when predicting phase stability or solidification paths.
- 材料第一性原理与分子动力学模拟Routes first-principles and classical materials simulation (DFT, MD, ML potentials) to the right specialized workflow. Use as an entry point for any simulation-based materials task.
- 蠕变力学建模与验证Selects, calibrates, and validates creep deformation and rupture models under sustained thermomechanical load, covering rate prediction. Use when assessing long-term high-temperature components.
- 晶体塑性有限元建模Covers crystal plasticity and CPFE modeling of metals: slip systems for FCC/BCC/HCP, Schmid factors. Use when simulating texture- and orientation-dependent plastic deformation.
- EBSD织构分析Analyzes EBSD orientation maps for grain size, misorientation, phase, and texture, with pole figures and twin-boundary identification. Use for electron backscatter diffraction workflows.
- 电化学性能测试分析Covers electrochemical characterization: cyclic voltammetry, battery cycling analysis, EIS. Use for electrochemistry-specific data analysis distinct from general materials characterization.
- 金属疲劳寿命评估Builds, calibrates, and validates fatigue assessments for metals and components: stress-life, strain-life, multiaxial critical-plane. Use when predicting fatigue life or crack growth.
- 多物理场有限元建模Covers finite element modeling for coupled materials, mechanics, and transport problems: weak-form construction, boundary conditions, mesh choice. Use for multiphysics FEM simulations.
- 连续尺度有限元力学建模Covers continuum-scale mechanical, thermal, and multiphysics simulation with Abaqus/COMSOL conventions, mesh generation. Use for macroscale FEM consuming measured or computed material properties.
- 断裂力学评估与建模Selects, constructs, and validates fracture-mechanics assessments: LEFM checks, elastic-plastic fracture mechanics. Use when assessing cracked materials or components.
- 高斯过程材料回归建模Covers Gaussian process regression for materials and chemistry datasets: descriptor selection, kernel design. Use when a probabilistic surrogate model with uncertainty is needed.
- 自驱动实验室闭环材料发现Covers combinatorial synthesis, robotic experimentation. Use for autonomous or robotics-driven experimental campaigns, a less standardized domain.
- 材料数据库可复现访问Covers reproducible API access to materials databases (Materials Project, AFLOW, OQMD, NOMAD, COD, ICSD-style sources): authentication. Use when programmatically querying these databases.
- 材料数据库跨库查询Covers querying public materials databases beyond Materials Project: AFLOW, OQMD, NOMAD, JARVIS. Use when pulling or comparing data from these live, API-integrated resources.
- 材料数据标准与互操作Covers data interoperability standards for materials science: CIF crystal files, the OPTIMADE query API. Use when structuring or exchanging materials data between tools.
- 材料结构特征化Covers converting structures, compositions, and trajectories into ML feature vectors: Magpie-style elemental statistics. Use when building inputs for materials ML models.
- 材料科学图表绘制规范Covers publication-quality figure conventions for materials science plots: phase diagrams, pole figures, stress-strain curves. Use when the deliverable is a figure, not just an analysis result.
- 材料信息学性质预测Covers ML for materials property prediction and generative design: descriptor-based models, crystal GNNs (CGCNN/MEGNet-class). Use for materials informatics distinct from interatomic potentials.
- 材料生命周期评估Covers life-cycle assessment for materials and manufacturing routes: goal/scope definition, functional units, inventory construction. Use for environmental-impact studies of materials.
- 材料科学文献检索Covers formulating literature search queries for materials science questions and synthesizing/citing results responsibly. Requires a web search tool; it cannot substitute for one.
- 工程材料选型设计Selects engineering materials via material indices and Ashby charts, ranking candidates by performance per cost or mass. Use when picking a material class for a design constraint.
- 材料统计方法与实验设计Covers statistics shared across materials characterization and simulation: design of experiments. Use for cross-cutting statistical treatment of materials data.
- 材料结构与成分核心分析Covers core structure and composition analysis: reading/writing crystal structures, composition handling, symmetry analysis, phase diagrams. Use as a general-purpose structure-analysis toolkit.
常见问题
衍射结构表征能做什么?
Covers diffraction-based structure characterization (XRD, neutron, SAED): space group determination, Rietveld refinement, phase identification. Use for any diffraction-pattern analysis technique。
如何安装衍射结构表征?
在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「衍射结构表征」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。
衍射结构表征需要哪些权限?
该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。
衍射结构表征经过官方审核吗?
是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。