.AixLib.Fluid.Movers.PumpsPolynomialBased.BaseClasses.polynomial2D

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.

Interface

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;

Generated at 2024-12-04T19:25:49Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos