NREL / OpenStudio

OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
https://www.openstudio.net/
Other
501 stars 191 forks source link

Consider checking TableLookup number of independent variables when setting a Curve where the reference is <Uni/Bi/.../Quint>VariateFunctions #4982

Open jmarrec opened 1 year ago

jmarrec commented 1 year ago

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.