Leen, Unless I am misunderstanding what you want to do, the solution is quite easy as long as you are able and willing to write a new Type; TRNSYS has a built-in kernel subroutine called InterpolateData (formerly called DynamicData) that performs exactly the function that you are looking for. The subroutine is called from a Type with the values of as many as 6 independent variables. The subroutine looks through an external file, finds and returns the values of as many as 10 dependent variables that correspond to the input values. The subroutine interpolates linearly between values but cannot extrapolate beyond the range of values that is given in the data file. Before you go too far down the path of writing a new heat pump model, I would recommend that you look through the TESS HVAC Library documentation on existing heat pump models and also take a look at the code of some of those models. Most of them stay away from energy rate control (in which a precalculated load is imposed on the heat pump) and stick with temperature level control (in which case heat pump capacity and fraction of full load power are computed based on inlet and ambient conditions.) Those models may be what you are looking for or could be modified with little effort to better suit your needs. Best, David On 1/8/2013 06:35, leen peeters wrote:
-- *************************** David BRADLEY Principal Thermal Energy Systems Specialists, LLC 22 North Carroll Street - suite 370 Madison, WI 53703 USA P:+1.608.274.2577 F:+1.608.278.1475 d.bradley@tess-inc.com http://www.tess-inc.com http://www.trnsys.com |