Search code examples
interpolationsplinemodelicadymola

Interpolation in Dymola/Modelica?


I need to perform an interpolation of some tabulated data in Dymola Modelica, but I can only find a function that does linear interopolation (Modelica.Math.Vectors.interpolate). I really need some sort of higher order interpolation like polynomial or preferably spline. Has anyone written a function to do this?


Solution

  • Oddly enough, I found a polynomial fitting function here: Modelica.Media.Incompressible.TableBased.Polynomials_Temp.fitting

    There are also functions for evaluating polynomials in the same place.