.Buildings.Fluid.Utilities.extendedPolynomial

Polynomial that is linearly extended at user specified values

Information

For x between the bounds xmin < x < xmax, this function defines a polynomial

y = ∑i=1n ci xi-1

where n > 1 and xmin, xmax are parameters. For x < xmin and x > xmax, the polynomial is replaced by a linear function in such a way that the first derivative is continuous everywhere.

Interface

function extendedPolynomial
  extends Modelica.Icons.Function;
  input Real x "x value";
  input Real[:] c "Polynomial coefficients";
  input Real xMin "Minimum x value for polynomial";
  input Real xMax "Maximum x value for polynomial";
  output Real y "y value";
end extendedPolynomial;

Revisions


Generated at 2025-03-14T19:24:29Z by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos