1. What this solves
Estimate the mass fractions of known crystalline phases when their diffraction lines can be measured and their calibrated scattering strengths are available. Reference intensity ratios (RIRs) put the peak intensities on a common basis without refining full crystal structures. The unspiked calculation uses closure over the included phases. A weighed internal standard supplies a mass scale and leaves room for an unassigned fraction.
2. When to use
- Each phase has an isolated or independently resolved line. Measure its background-subtracted peak area or height using the convention of the RIR and relative-intensity calibration.
- All RIRs use the same reference phase and a compatible radiation, instrument correction and intensity convention. Use a calibrated relative intensity for each selected line.
- The powder is representative, reasonably random, and measured under conditions compatible with the calibration. For the spiked calculation, the spike phase was added in a known mass fraction and is absent from the original sample. Its RIR must be known on the same reference basis as the analyte ratios.
3. When not to use (and what to use instead)
| Situation | Use instead |
|---|---|
| Phase identities are unknown | Identify them by reference or full-pattern search–match before using their RIRs. |
| Suitable RIRs or isolated lines are unavailable, and structural models are known | Use Rietveld quantitative phase analysis with an established refinement package. |
| Absolute fractions are needed and some material may be missing from the phase list | Use a calibrated internal-standard measurement. Use other evidence to decide what the unassigned mass represents. |
| Strong preferred orientation, microabsorption or unresolved overlaps dominate the intensities | Change specimen preparation or fit a calibrated whole-pattern model that handles the relevant physics. |
4. Algorithm
For each phase take the net peak intensity , its phase RIR , and the selected line's relative intensity as a fraction of that phase's calibration line intensity. Use for the line defining the RIR. Convert a relative-intensity scale of 0–100 to 0–1 before input. Define the reference-equivalent signal
Unspiked sample. With a common measurement scale, report in input order. The reported fractions describe the included phases. They describe the whole sample when all material is crystalline and represented in the list. This is Chung's adiabatic form, as summarized in Davis (1992), Eq. (2).
Spiked sample. Weigh and mix a spike phase with the sample before measurement. Let be the mass added divided by total spiked mass. Measure the spike's isolated peak intensity and supply its relative intensity . The tabulated analyte ratios and the spike ratio must use the same reference phase . If the spike is itself the reference phase, . Otherwise Hubbard and Snyder (1988), Eq. (9), gives the change of reference . For example, with published corundum-based analyte ratios and a silicon spike, also obtain silicon's calibrated ratio against corundum.
The interface takes the ratios on their original common basis and divides the spike signal by its own RIR. Use
Equivalently, convert the analyte ratios to the spike basis first and use a spike RIR of 1. Use one conversion path.
The function returns the analytes' spiked-sample fractions in input order. For the original sample, divide each by . The mass left unassigned in the spiked sample is . The original-sample remainder is , equivalently 1 minus the sum of the original-sample analyte fractions. If the computed analyte sum exceeds , retain the result and report a warning about over-closure. Investigate calibration, overlap and weighing before interpreting it. Matrix flushing and the unassigned-material test correspond to Davis (1992), Eqs. (1) and (7). Hubbard and Snyder (1988), Eq. (6), gives the relative-intensity correction, and Eq. (4) gives the conversion to the original-sample basis.
Reject unequal list lengths, empty phase lists, nonfinite values, negative peak intensities, nonpositive RIRs, and relative intensities outside . Require at least one positive peak intensity for unspiked closure. The spiked calculation requires and and accepts zero analyte intensities.
5. Parameters
| Quantity | How to choose it |
|---|---|
| Selected line | Use a clean peak away from neighboring phases, or a separately resolved area validated on standards. |
| RIR and relative intensity | Use a calibration for the same phase composition, reference material, radiation and intensity definition. Use peak-height ratios with heights and integrated-area ratios with areas. |
| Added standard fraction | Use the accurately weighed fraction of the final specimen and verify that its chosen line is resolved with adequate counts. |
7. Verification
Expose phase_fractions(areas, rirs, relative_intensities) and spiked_fractions(areas, rirs, relative_intensities, standard_area, standard_relative, standard_fraction, standard_rir=1.0) in port_adapter.py. Keep checks/cases.json beside checks/check_port.py. Run the checker from your adapter's directory and report the result. The adapter retains the argument names areas and standard_area. Supply either net areas throughout or net heights calibrated on the same basis. The cases distinguish calibration division, relative-intensity correction, change of spike reference, closure, and the measured spiked basis.
Check your own result against a weighed known mixture. Verify that multiplying every intensity in one specimen by the same factor preserves the result. For an unspiked sample, assess coverage separately from the closure to 100%. The published check reproduces the ZnO and calcite estimates and unassigned silica-gel fraction on the spiked basis in Davis (1992), Table 2. The estimated ZnO and calcite fractions (0.3641 and 0.2620) differ from the corresponding weighed fractions (0.3443 and 0.2800).
8. Failure signatures
| Symptom | Likely cause |
|---|---|
| Fractions sum to 100% while unexplained peaks or amorphous scattering remain | Unspiked closure reassigns missing mass among included phases. |
| Different lines of one phase imply inconsistent fractions | Wrong relative-area calibration, overlap, preferred orientation, or sample mismatch. |
| A spiked sample has a negative unassigned fraction | Check peak separation, calibration compatibility, spike mass and specimen effects. |
| Repeat preparations disagree | Check grinding, mixing, particle statistics and microabsorption. |
9. Files and commands
reference/rir.pyimplements the two calculations in standard-library Python.python examples/spiked_mixture.pyprints the rounded published example.python verify/check_method.pychecks published and synthetic mixtures.python verify/check_cases.pychecks that fixtures regenerate and that incorrect ports are rejected.
10. Sources
- F. H. Chung (1974), matrix flushing and the adiabatic form. Part I and Part II.
- C. R. Hubbard and R. L. Snyder (1988), calibration and relative intensity corrections. Paper.
- B. L. Davis (1992), equations and Table 2 reproduction. NIST Special Publication 846, pp. 9–11.