elphick.geomet.flowsheet.operation.PartitionOperation

class elphick.geomet.flowsheet.operation.PartitionOperation(name, partition=None)[source]

An operation that partitions the input stream into multiple output streams based on a partition function

The partition input is the mean of the fractions or the geomean if the fractions are in the size dimension The partition function is typically a partial function so that the partition is defined for all arguments other than the input mean fraction values in one or two dimensions. The argument names must match the index names in the IntervalSample.

__init__(name, partition=None)[source]

Methods

__init__(name[, partition])

apply_partition()

check_balance()

Checks if the mass and chemistry of the input and output are balanced

from_dict(config)

get_input_mass()

get_output_mass()

solve()

Solves the operation

Attributes

has_empty_input

has_empty_output

inputs

is_balanced

node_type

outputs

unbalanced_records

solve()[source]

Solves the operation

Missing data is represented by None in the input and output streams. Solve will replace None with an object that balances the mass and chemistry of the input and output streams. Returns The back-calculated mc object

Return type:

[~MC, ~MC]