MaterialIndexer#

class MaterialIndexer(phases=None, units=None, chemicals=None, **phase_data)[source]#

Create a MaterialIndexer that can index a multi-phase, 2d-array given the phase and chemical IDs.

Parameters:
  • phases (tuple['s', 'l', 'g', 'S', 'L', 'G']) – Phases of data rows.

  • units (str) – Units of measure of input data.

  • chemicals (Chemicals) – Required to define the chemicals that are present.

  • **phase_data (tuple[str, float]) – phase-(ID, value) pairs

Notes

A MaterialIndexer does not have any units defined. To use units of measure, use the MolarIndexer, MassIndexer, or VolumetricIndexer.

iter_composition()[source]#

Iterate over phase-composition pairs.

show(N=None)#

Print all specifications.

Parameters:

N (int, optional) – Number of compounds to display.