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.
Concepts and model — elements, substances, materials, and accepted formula syntax.
Getting started — the smallest native composition example and CMake linkage.
Workflows — mixtures, matter inputs, typed records, and the application facade.
Matter and normalization — component weights, derived matter quantities, and result semantics.
Limits and compatibility — reference data, ion-mass corrections, and model scope.
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.matfacade.C ABI — owned records for elements, substances, and materials.
Rust — typed MAT results through the
matmodule.WebAssembly and JavaScript — browser-side MAT records with
loadMAT.Command line — evaluate and select fields with
snt mat.