elphick.geomet.flowsheet.operation.Operation

class elphick.geomet.flowsheet.operation.Operation(name)[source]
__init__(name)[source]

Methods

__init__(name)

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

check_balance()[source]

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

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:

Optional[TypeVar(MC, bound= MassComposition)]