How Newmod III is checked
A fitting program is only useful if its answers can be trusted. Newmod III is tested in three ways: its calculations are checked against the original NEWMOD, its fits are checked against patterns whose true structure is known, and its results are compared with a published study. It also tells you when your own data cannot decide an answer.
1. The same calculation as NEWMOD
Newmod III contains two independent ways of calculating a pattern: the Reynolds engine (NEWMOD's own method, with Bethke and Reynolds' ordering equations) and a transfer-matrix engine (Kakinoki–Komura, as used by Drits and Tchoubar). They share no calculation code, so agreement between them is a real check.
- On 50 reference cases (two and three layer types, R0 to R3, with and without layer-thickness fluctuation) the two engines agree to about 10−14 of the strongest peak — the limit of computer arithmetic.
- In 1,300 randomly generated models (random layer types, proportions, ordering, crystal sizes and cations) the engines never disagreed.
- With the third layer type switched off, the three-component code reproduces NEWMOD's two-component patterns: R0 and R0.5 to 10−11, and R1 to R3 to within 0.3%, the small difference coming from how “maximum ordering” is rounded.
- Every stacking model is checked for consistency: probabilities between 0 and 1, the long-run proportions equal to those you set, and each Reichweite level reducing exactly to the one below it.
2. Fits recover known answers
A pattern is calculated from a known structure, realistic counting noise is added, and the fit is started from wrong values. A trustworthy fit should return the true values within its own stated uncertainty (± one standard deviation). Some of the tests, which are run again whenever the program is changed:
| Test | Parameter | True | Fitted |
|---|---|---|---|
| Illite-smectite, R2-type ordering partly developed | Reichweite 2 strength | 0.60 | 0.592 ± 0.013 |
| Illite-smectite with segregated layers | Reichweite A-B PA | −0.55 0.700 | −0.549 ± 0.002 0.699 ± 0.001 |
| Glycolated I/S, non-standard glycol spacing | 2GLY spacing | 16.75 Å | 16.751 ± 0.001 Å |
| Glycolated I/S, reduced glycol content | Interlayer amount | 0.80 | 0.802 ± 0.004 |
| Heated I/S, collapsed spacing | Heated spacing | 9.55 Å | 9.552 ± 0.004 Å |
| Two-phase clay, air-dried and glycolated fitted together, the same amounts in both | I/S share of the clay | 69.0% | 69.0 ± 0.1% |
In every test the fitted value lies within about two of its stated standard deviations of the truth, which is what correct uncertainties should give. The uncertainties in the Fit Report can be taken at face value when the model fits the data.
3. A published study reproduced
Lanson, Sakharov, Claret and Drits (2009, American Journal of Science 309) modelled air-dried and glycolated patterns of Gulf Coast shales with the multispecimen method, using their own program. Working from the patterns and phase compositions published in the paper:
- Newmod III, given their published phase compositions, calculates the same phase patterns as their program: peak positions, widths and low-angle shape agree, and the kaolinite 002/001 ratio is 0.63–0.67 against their 0.63.
- Fitting the air-dried and glycolated patterns of their sample from 3660 m together, Newmod III found 61–62% illite in the illite-smectite with random (R0) stacking, against their 62% R0; a crystal thickness of 13 layers against their 12; and 5% discrete smectite against their 5%.
These comparisons used patterns digitized from the paper's figures, so the fits are less precise than they would be with the original measured counts.
4. It tells you when the data cannot decide
A fit can look good and still be unsafe: a size or shape parameter can run to the end of its range to absorb a misfit, or two answers can trade against each other so that the data never really fix either. Newmod III looks for this after every fit.
- Fit health: every Fit Report gives a verdict — Good, Caution or Unreliable — with the reason for each warning.
- Correlations: the Fit Report lists which parameters trade off against each other, and how strongly.
- Check Sensitivity: before fitting, shows which parameters your pattern can determine and which it cannot.
- Profile Parameter: holds one parameter at a series of values and refits everything else each time. A sharp valley means the data decide it; a flat floor means they do not, and the honest answer is a range.
