Skip to content

Add support for handling input variable polynomials (Taylor series terms) #6

@ghorwin

Description

@ghorwin

Add support for input/output variable polynomials (i.e. for FMUs that implement Taylor-series reconstruction method).

When getting variables from one FMU that supports polynomials, collect and store the derivatives as well. Similarly, when setting FMU input variables, also set stored polynomial coefficients.

MASTERSIM itself does not need to do any reconstruction on the variables.

  • read capability flag canInterpolateInputs and maxOutputDerivativeOrder in all connected FMUs
  • determine maximum output derivative order for each input-output-variable connection; FMUs without this capability have MaxOutputDerivativeOrder = 1 by default
  • check impact on input-output variable transformation equations
  • for each variable connection, create a cache for the derivatives
  • extend getting/setting FMU state to pull and push the derivatives as well (modified by the optional transformation rules); i.e. implement fmi2SetRealInputDerivatives() and fmi2GetRealOutputDerivatives()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions