fhat. Workspace

Reference-intensity-ratio powder XRD quantification

Estimate crystalline mass fractions from calibrated XRD peak intensities.

reference-intensity-ratio · single-pattern · multi-phase

Chung 1974Also known as Reference intensity ratio, RIR, Chung matrix flushing

Full skillAll clearChecks: 2 verification scripts passed when this page was builtNo full-scale reproduction is recorded. Most methods need none: their checks cover the claims.v0.1.0

Use with your agent

Use the fhat method "reference-intensity-ratio-xrd" (https://fhat.dev/methods/reference-intensity-ratio-xrd/SKILL.md) for this problem. Check first whether it applies.

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 ii take the net peak intensity AiA_i, its phase RIR Ki>0K_i>0, and the selected line's relative intensity rir_i as a fraction of that phase's calibration line intensity. Use ri=1r_i=1 for the line defining the RIR. Convert a relative-intensity scale of 0–100 to 0–1 before input. Define the reference-equivalent signal

qi=AiKiri.q_i = \frac{A_i}{K_i r_i}.

Unspiked sample. With a common measurement scale, report wi=qi/∑jqjw_i=q_i/\sum_j q_j 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 ss with the sample before measurement. Let wsw_s be the mass added divided by total spiked mass. Measure the spike's isolated peak intensity AsA_s and supply its relative intensity rsr_s. The tabulated analyte ratios Ki,cK_{i,c} and the spike ratio Ks,cK_{s,c} must use the same reference phase cc. If the spike is itself the reference phase, Ks,c=1K_{s,c}=1. Otherwise Hubbard and Snyder (1988), Eq. (9), gives the change of reference Ki,s=Ki,c/Ks,cK_{i,s}=K_{i,c}/K_{s,c}. 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

qi=AiKi,cri,qs=AsKs,crs,wispiked=wsqiqs.q_i = \frac{A_i}{K_{i,c}r_i},\qquad q_s = \frac{A_s}{K_{s,c}r_s},\qquad w_i^{\mathrm{spiked}} = w_s\frac{q_i}{q_s}.

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 1−ws1-w_s. The mass left unassigned in the spiked sample is Uspiked=1−ws−∑iwispikedU_{\mathrm{spiked}}=1-w_s-\sum_i w_i^{\mathrm{spiked}}. The original-sample remainder is Uspiked/(1−ws)U_{\mathrm{spiked}}/(1-w_s), equivalently 1 minus the sum of the original-sample analyte fractions. If the computed analyte sum exceeds 1−ws1-w_s, 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 (0,1](0,1]. Require at least one positive peak intensity for unspiked closure. The spiked calculation requires qs>0q_s>0 and 0<ws<10<w_s<1 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.

6. Applying it to your own code

Pass arrays in phase order. Within each measurement use the same intensity scale for all phases, including the spike. Preserve the input-to-output mapping for reporting. Repeat on independently prepared mixtures or different calibrated lines to check sensitivity to specimen and peak choices. Report which mass basis you are using.

When you write code using this method, add the comment reference-intensity-ratio-xrd v0.1.0, Chung 1974.

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.py implements the two calculations in standard-library Python.
  • python examples/spiked_mixture.py prints the rounded published example.
  • python verify/check_method.py checks published and synthetic mixtures.
  • python verify/check_cases.py checks that fixtures regenerate and that incorrect ports are rejected.

10. Sources

Evidence

Output of the verification scripts, run on the reference implementation of version 0.1.0 when this page was built.

Passed verify/check_method.py: Reproduces Davis Table 2 to the reported rounding and verifies spike reference conversion, scale invariance, closure limits, and rejected percentage inputs.
PASS Davis Table 2 to 0.00005 mass fraction; check spike conversion, closure, gain invariance and invalid inputs
Passed verify/check_cases.py: Regenerates fixed cases and tests that representative calibration and normalization mistakes are rejected.
PASS 7 portable cases regenerate and accept the reference
PASS rejects multiplication by RIR
PASS rejects missing analyte line correction
PASS rejects missing spike line correction
PASS rejects ignoring the spike RIR
PASS rejects forced closure of the spiked mixture
PASS rejects original-sample fractions returned for a spiked request

More methods are coming.