functionpolynomial2D

computes the polynomial in two variables a and b: sum_ij( c[i, j] * a^i * b^j ) where c is the coefficient matrix.

Extends from Modelica.Icons.Function.

Information

History

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:

H = f(Q, n)=sum(c(i,j)*Q^i*n^j)

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.

Inputs

TypeNameDefaultDescription
Real[:,:]ccoefficient matrix
Realavariable 1
Realbvariable 2

Outputs

TypeNameDefaultDescription
Realyresult