sunpeek.core_methods.virtuals.calculations.StrategyMassFlowFromVolumeFlow#

class sunpeek.core_methods.virtuals.calculations.StrategyMassFlowFromVolumeFlow(component)#

Bases: VirtualSensorStrategy

For Plants and Arrays, calculate mass flow from fluid, thermal power and inlet & outlet temperatures.

Methods

__init__(component)

check_output(output)

Specific checks for the output of virtual sensor calculations.

execute()

Try to calculate strategy, sanitize check output dict and return if ok.

get_feedback(check_mode)

check_output(output)#

Specific checks for the output of virtual sensor calculations.

execute()#

Try to calculate strategy, sanitize check output dict and return if ok.

Returns:

  • elapsed_time (float, elapsed time in algorithm in seconds)

  • output (dict, strategy output, values are asserted to be unit-aware (pint-pandas) Series.)

Raises:

AlgorithmError