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:
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
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,:] | c | coefficient matrix | |
| Real | a | variable 1 | |
| Real | b | variable 2 |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | result |