xdart · Phase Analysis · physics and fitting guide
How a crystal structure becomes a pattern, and how Phase Analysis fits it
A crystal's lattice fixes where its peaks fall and its atoms fix how strong they are. Phase Analysis computes each phase's whole pattern from its structure and fits all of them to the data at once: the lattice, how much each phase scatters, how broad its peaks are and how its crystallites are oriented. This guide starts with that physics, then shows how each number Phase Analysis reports follows from it.
Up to 8 phasesCIF files, lattice parameters or the phase library, with built-in
calibrants listed apart as reference lines
11 profilespseudo-Voigt, Gaussian, Lorentzian, Voigt, Pearson VII and six more
3 width modelsCaglioti (the instrument), Scherrer (size and strain), or one fixed
width
Batches and notebooksSequential batches seed each fit from the last; supported
file-backed fits export to Jupyter and marimo
The physics
From structure to pattern
Peak widths: the instrument, size and strain
Caglioti, U = 4·10⁻⁶, V = 0 Å⁻¹, W = 2.5·10⁻⁵ Å⁻²
Scherrer, D = 30 nm, ε = 0.15 %
Texture: when crystallites line up
Mixtures: one scale per phase
CsCl, scale 1NaCl, scale 0.6
their sum, what is fitted (drawn above)
From fit to physics
| Fitted value | What it measures | Read it as |
|---|---|---|
| a, b, c | the unit cell | strain or thermal expansion against a reference; in a solid solution, composition through Vegard's law |
| Fraction | each phase's scale over the sum of scales | compare only with comparable profiles, reflection windows and texture constraints. Free per-peak heights can trade against scale; a growing share alone does not establish phase growth |
q_shift | one shift of every reflection | a sample-height or calibration offset; pinned at its bound, the bound is too tight or the calibration is off |
| D and ε | Scherrer's crystallite size and microstrain | small D: nanocrystals; large ε: defects or local strain fields |
| U, V, W | Caglioti's width curve | the instrument's resolution, when fitted on a standard |
| March-Dollase r | preferred orientation along the texture axis | near 1: little texture; far from 1: strong texture |
| substrate amplitude | the measured substrate pattern's scale | how much substrate scattering the sample shows |
| amorphous peak | a broad hump's centre and width | non-crystalline material, such as a glass near 1.55 Å⁻¹ |
How Phase Analysis fits
What a fit computes
The phase list
- One list serves the reference overlays and the fit: a checked phase is drawn and fitted, an unchecked one is neither. Built-in calibrants are listed below it, under Reference lines (not fitted): a checked calibrant is drawn but never fitted.
- Add CIF… keeps the file's bytes in the phase library; Add lattice… predicts positions only; Add from library… lists kept entries; Add calibrant… lists the built-in calibrants, which join the reference lines. Remove takes the selected row of either list.
- The minimum intensity drops a CIF phase's reflections weaker than that percent of its strongest one; Same minimum for all phases applies one value to every CIF phase.
Background: what is not crystalline
- Pre-fit background (SNIP or Chebyshev) is subtracted before the fit and has no free parameters.
- Fitted background (a polynomial or Chebyshev of the degree in the box beside the choice, polynomial 1 a straight line, or a spline of the knots in that box) is refined with the phases.
- Substrate: a measured substrate pattern, captured with Use displayed as substrate or read with Choose file…, scaled by one free amplitude, alone or plus a polynomial or Chebyshev correction. It must be in q, or convert to it (nm⁻¹ does, 2θ does not); beyond its range its value is held flat.
- Amorphous peak: one broad peak with a starting centre and σ in Å⁻¹, for glass or other non-crystalline material.
Constraints and the solver
- Lattice ±% bounds each cell length around its start; cell angles are not refined, and axes that start equal, as symmetry makes them in a cubic or tetragonal cell, stay tied.
- q-shift bound limits one global shift of every reflection; Cross-phase lock keeps the same axis letter ordered across phases.
- Full, on by default, fits the whole trace; turn it off to type a fit range, or drag it on the plot: only those points enter the fit, while the whole trace is drawn.
- In Advanced, Max iterations caps the solver. Use uncertainties divides each residual by its measured σ, so its least-squares contribution is residual²/σ²; available only when the trace carries measured uncertainties.
Batches, settings and notebooks
- Batch fits the selected results, or all of them, with the same settings and plots the trend against the result order or a scan column.
- Sequential starts each fit from the previous one's values; a fit whose reflections differ starts fresh. Turn it off across a phase change.
- Save settings… and Load settings… keep every option, the phase list and the substrate's file. CIF-based fits export to Jupyter and marimo notebooks that repeat them; manual lattice phases cannot export in the current CIF notebook format. A substrate template must have a reproducible file source whose identity a fit has recorded; an unnamed capture cannot be saved or exported.