In the original pump model the functions for pump pressure head, speed and electrical power consumption have been integrated directly as functions with hard coded coefficients. They were computed from volume flow rate, speed or pressure head. For example:
In the process of collecting all pump specific data into a single record the functions aproach has been discontinued. This generic function can now be used to compute the polynomial using two variables a and b and a matrix of coefficients c.
function polynomial2D extends Modelica.Icons.Function; import pow = AixLib.Fluid.Movers.PumpsPolynomialBased.BaseClasses.powerInt; input Real c[:, :] "coefficient matrix"; input Real a "variable 1"; input Real b "variable 2"; output Real y "result"; end polynomial2D;