Limits and compatibility
MAT is a composition and matter calculator, not a general-purpose chemistry engine. The following assumptions define the supported model; the reference data and calculation details remain below.
Compiled reference data
devtools/build_periodic_table.py imports the NIST Atomic Weights and
Isotopic Compositions table and NIST Atomic Spectra Database (ASD) ionization
energies. It uses only Python’s standard library. Generated headers are
checked in, so building and using MAT requires no network access.
The isotope table retains absolute mass uncertainties, abundance uncertainties,
and extrapolation flags. find_ionization_energy(Z, q) from
snt/mat/ionization.h returns the ground-state energy needed to remove one
electron from the ion initially at charge q. It preserves the reported
uncertainty, significant digits, bibliography identifiers, and NIST’s evaluated,
theoretical, or semiempirical classification. A missing stage returns
nullptr; an unknown energy or uncertainty remains std::nullopt.
cumulative_ionization_energy(Z, q) sums the stages from neutral to charge
q and returns std::nullopt if any required energy is unknown or absent.
MAT automatically applies complete sums to positive atomic ion masses. These
reference energies are not a complete set of isotope-resolved binding energies
or electron affinities; the limits described below still apply.
element_data_sources.json records retrieval time, exact source queries,
response SHA-256 hashes, coverage counts, and the ASD version. Regenerate with:
python3 devtools/build_periodic_table.py --snapshot-dir /tmp/nist-mat
For offline regeneration, pass --isotopes-html, --ionization-csv, and
--ionization-info-html pointing at those snapshots. --output-dir can
select a temporary directory for review. The importer validates all responses
before replacing the generated files and rejects incomplete downloads.
Model limits
Isotope masses are relative neutral-atom masses from the MAT periodic table. For positive charge \(q\), MAT calculates \(m_q = m_0 - q m_e + \sum_{i=0}^{q-1} I_i/c^2\) using NIST reference-element ground-state ionization energies. The energy term has a positive sign: removing bound electrons requires energy. Energy-to-mass conversion uses the CODATA 2022 value \(1\,u\,c^2 = 931494103.72\,\mathrm{eV}\).
If any required stage is absent or unknown, MAT applies no partial energy correction. Negative ions also lack a correction because electron affinities are not yet imported. These cases use electron rest-mass subtraction/addition and set
ion_mass_approximation. Complete NIST sums instead setion_mass_correction; mixed compositions can set both flags. Element records also exposeapplied_ionization_energy_eV. CLI output labels the applied model, and composition and density calculations use the resulting masses.Applying a correction does not guarantee precision ion masses. NIST stages can be evaluated, theoretical, or semiempirical and have reported or unknown uncertainties. Reference-element energies are reused for explicit isotopes and natural averages without isotope shifts. Source and conversion-factor uncertainties are not propagated into MAT’s nominal mass outputs. The number of printed digits is not an accuracy claim; precision work needs isotope-specific reference data and a complete uncertainty budget. The isotope table, ASD energies, and CODATA particle masses also originate from separate evaluations, so an ion constructed from a neutral isotope mass need not exactly equal the independently tabulated free-particle mass.
Formula masses are per formula unit in atomic mass units. The numerical relation to g/mol is useful for composition work but MAT does not label the result as a molar mass.
Natural mode uses positive natural abundances normalized by their sum. Elements without a positive natural abundance raise an error.
Default-isotope mode selects the most abundant isotope. When no isotope has a positive natural abundance, it selects the NIST representative isotope reported in square brackets (for example Tc-98, Rn-222, and Pu-244). NIST does not specify representative isotopes for Z >= 95, so those elements use the first isotope in the table deterministically.
Proton, neutron, and electron expressions use their CODATA 2022 free-particle rest masses. A sum such as
[p]2[n]2[e]2is not a helium-4 atom: it omits the nuclear and electronic binding energy. MAT does not calculate nuclear binding energy.MAT models stoichiometric substances and mechanical mixtures. It does not model chemical bonding, reactions, phase equilibria, activity, or thermodynamic state.
The DIPL shorthand adapter remains deferred. It depends on DIPL support for
explicit function arguments and call context, and will be delivered as a
separate optional snt-mat-dip target rather than coupling snt-mat to
DIPL.