OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
Consider checking Curve, but mostly TableLookup object dimensions when setting a Curve where the reference is <Uni/Bi/.../Quint>VariateFunctions
Note: The individual Curve objects, except TableLookup, are already checked for via the references, because for eg OS:Curve:Biquadratic has \reference BivariateFunctions and \reference AllCurves
Add setCurve(const Curve& curve) method that checks the IDD choice references and enforces that the Curve object being passed has the right amount of variables.
Enhancement Request
Consider checking Curve, but mostly TableLookup object dimensions when setting a Curve where the reference is <Uni/Bi/.../Quint>VariateFunctions
Note: The individual Curve objects, except TableLookup, are already checked for via the references, because for eg
OS:Curve:Biquadratic
has\reference BivariateFunctions
and\reference AllCurves
Detailed Description
See details on https://github.com/NREL/OpenStudio/pull/4950#discussion_r1309817457
Possible Implementation
Add setCurve(const Curve& curve) method that checks the IDD choice references and enforces that the Curve object being passed has the right amount of variables.