MassFlowIndexer#

class MassFlowIndexer(phases=None, units=None, chemicals=None, **phase_data)#

Create a MassFlowIndexer 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