[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Interpolation



Dear TRNSYS Users, 
I'm experiencing a quite odd situation. For reasons that do not need to be
mentioned, I wrote a very simple Deck that has only one function. It reads
meteorogical data from a file and prints the dry bulb temperature as an
output. This occurs at a specific time every day. What I observed is that
for different hours I became the same temperature. For example: 6h, 6,25 and
6,5. The file has hourly values and they are different between 6 and 7, so
that different values should be expected. 
Once I reduce the time intervall at wich printing is to occur and
investigate the temperatures between 6h and 7h TRNSYS interpolates normally.
My TRNSHELL version is 1.993 and the Deck is attached below. 
I hope someone out there can help me out. 
Best Regards, 
Juan Salazar 
*===========================================================================
===*
ASSIGN Temperature.LST 6
ASSIGN Temperature.ou1 29
*===========================================================================
===
CONST 12
JAN = 0.0
FEB = 744.0
MAR = 1416.0
APR = 2160.0
MAY = 2880.0
JUN = 3624.0
JUL = 4344.0
AUG = 5088.0
SEP = 5832.0
OCT = 6552.0
NOV = 7296.0
DEC = 8016.0
*===========================================================================
===
CONST 11
STARTMONTH = JAN
S_MONTHDAY = 1
STARTDAY = STARTMONTH/24.0+S_MONTHDAY
STARTHOUR = 6
DURATION = 8736
*===========================================================================
===
TimeStep = .05
START = (STARTDAY-1.0)*24.0+STARTHOUR
StatTime = START
EndTime = START+DURATION
PrStart = START
*===========================================================================
===
SIMULATION StatTime EndTime TimeStep
TOLERANCES 0.005 0.005
LIMITS 75 100 60
WIDTH 72
DFQ 2
*===========================================================================
===
EQUATIONS 1
T = [1,3]
ASSIGN C:\trnwin\weather\wuerzb.try 13
UNIT 1 TYPE 9 Data Reader for TRY
PARAMS 20
* Mode #of_values time_interval
-2 5 1
* Int Mul Add Int Mul Add Int Mul Add Int Mul Add Int Mul Add LU Format
* 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
-1 1 0 -2 1 0 3 1 0 4 1 0 5 1 0 13 1
(6X,F7.2,F7.2,F5.1,F6.1,F3.0)
* Outputs [1,#]: # Value
* 1 Ib: Beam Radiation in kJ/(hr*m2)
* 2 Id: Diffuse Radiation in kJ/(hr*m2)
* 3 Tdb: Dry Bulb Temperature in °C
* 4 Ws: Wind Speed in km/h
* 5 RHR: Ambient Relative Humidity Ratio in %
* 19 td1: Time corresponding to values on previous line
* 20 td2: Time corresponding to values on next line
*=========================================================================
UNIT 7 TYPE 25 Printer for each time step
PARAMETERS 5
* time_intervall starttime stoptime LU# User_Units=1
24 PrStart ENDTIME 29 1
INPUTS 1
T
* input labels
T
* input units
C
*---------------------------------------------------------------------------
----
END