MAT — Materials

The MAT (Materials) module provides a standalone C++ calculator for chemical elements, stoichiometric substances, material mixtures, and their matter properties. It builds on PUQ for dimensional quantities and on the internal expression-solver layer for formula parsing.

MAT has no DIPL dependency. A host program can parse formulas and mixtures, inspect typed composition records, and calculate mass, volume, and number densities using only the public MAT headers. DIPL shorthand integration is a separate later deliverable; it will consume this API rather than duplicate its physics.

Interfaces

The C++ API above is the native implementation. Applications can use MAT through any of the following interfaces:

  • Python — native objects and the command-oriented scinumtools3.api.mat facade.

  • C ABI — owned records for elements, substances, and materials.

  • Rust — typed MAT results through the mat module.

  • WebAssembly and JavaScript — browser-side MAT records with loadMAT.

  • Command line — evaluate and select fields with snt mat.