[TRNSYS-users] InterpolateData

2 posts / 0 new
Last post

Dear David / TRNSYS-users,
?
thank you for the hint for using DynamicData. That worked and in the mean time I?have upgraded to?version 17.
?
I have another question about using what is now called InterpolateData. Essentially, I was wondering if it is possible to extract directly the mimimum and maximum values of the independant variables from the data file being interpolated. Obviously, values outside of these ranges are not extrapolated.?Thus, it would be sometimes be useful to use those limits?automatically as constraints in the logic of the component.
?
As a first try, I have modified "InterpolateData" to return an array containing all these limits - something like:
?xMinMax(1,1) = X1dd(1,ILUdd)
xMinMax(1,2) = X1dd(NX1dd,ILUdd)
.
.
.
xMinMax(6,1) = X6dd(1,ILUdd)
xMinMax(6,2) = X6dd(NX6dd,ILUdd)
?
Is there is?a more straight forward?way in which I don't have to modify "InterpolateData"? Or am I missing something?
?
?
Thanks,
?
Erik

Erik Boschek's picture
Offline
Joined: 2016-04-05
Reputation: 0