.. _mat-model: Concepts and model ================== MAT models chemical composition and the physical quantities that can be derived from it. The model is deliberately smaller than a general chemistry system: it represents elements, stoichiometric substances, mechanical mixtures, and their matter properties. Model ----- ``Element`` One atom species, optionally repeated. It holds an explicit isotope, a natural-abundance average, or a deterministic default isotope, together with proton, neutron, electron, charge, and mass data. ``Substance`` A chemical formula made from elements, such as ``H2O`` or ``Mg(NO3)2``. Its composition is expressed per formula unit. ``Material`` A mechanical mixture of substances, such as ``0.2 0.8 ``. The components retain their substance identity. ``Matter`` Optional mass, volume, mass-density, reference-number-density, and derived total species density information shared by elements, substances, and materials. ``Set`` and ``Part`` The reusable composition foundation used by substances and materials. ``Set`` stores members and normalization data; ``Part`` stores a component expression, proportion, and component mass. Formula syntax -------------- Element expressions accept ordinary symbols, isotope state, and charge state: .. code-block:: text H He C{13} B{11} C{13+2} H{-} D T [p] [n] [e] An expression inside braces is ``{isotope[+/-charge]}``. The signed number is the conventional electric charge in units of the elementary charge: ``C{13+2}`` is a carbon-13 cation with four electrons, while ``C{13-2}`` is an anion with eight electrons. ``H{1+1}`` is a proton and ``H{1-1}`` is a hydride anion. A positive charge removes electrons from the neutral atom; a negative charge adds them. Substance expressions support implicit stoichiometric counts, parentheses, duplicate elements, isotope labels, and the proton, neutron, and electron tokens: .. code-block:: text H2O Mg(NO3)2 B{11}N{14}H{1}6 [p]3[n]2[e] Material expressions group substances with angle brackets. An optional dimensionless amount may precede a group; adjacent groups add implicitly: .. code-block:: text 0.2 0.8 0.7808 0.2095 0.0093 0.0004