[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TRNSYS-users] dynamicdata function
Amandine,
  This is a common error. The format of the data file read by
DynamicData is:
Values of X3
Values of X2
Values of X1
Data
what you used is:
Values of X1
Values of X2
Values of X3
Data
I think you need to rearrange your call to DynamicData so that it reads
(changes are noted in bold):
        X(1) =
THW_IN
        X(2) =
TCW_IN
        X(3) =
TCHW_T1
        CALL
DYNAMICDATA(LU_S1,NX,NVAL,NY,X,Y,INFO,*10)
        CALL
LINKCK('TYPE807','DYNAMICDATA',1,807)
10      IF (ErrorFound()) RETURN
1
        
FNCAP=Y(1)
        
FNCOP=Y(2)
Kind regards,
 David
At 08:26 6/13/2006, Amandine LE DENN wrote:
Dear
users,
 
a DynamicData procedure is included in Type107
code and it seems a bit different that what's described in Trnsys
Programmers guide. In a handmade Type, I try to read my own file but
DynamicData always give me the wrong solution.
 
the code is the following:
C  GET THE PERFORMANCE DATA FROM THE S1 DATA FILE: FRACTION OF
DESIGN CHILLED WATER CAPACITY 
C  AND FRACTION OF DESIGN COP ARE FUNCTION OF INLET HOT WATER
TEMPERATURE, INLET COOLING 
C  WATER TEMPERATURE AND OUTLET CHILLED WATER TEMPERATURE
LEVEL
  NVAL=3
  NY=2
  NX(1)=5
  NX(2)=3
  NX(3)=5
  X(1)=TCHW_T1
  X(2)=TCW_IN
  X(3)=THW_IN
  CALL DYNAMICDATA(LU_S1,NX,NVAL,NY,X,Y,INFO,*10)
  CALL LINKCK('TYPE807','DYNAMICDATA',1,807)
10   IF (ErrorFound()) RETURN 1
  FNCAP=Y(1)
  FNCOP=Y(2)
 
and data file is (separation = tab):
 
5.5 6 7 8 9 !Chilled Water Temperature output
at previous timestep    
24 29.5 31   !Entering Cooling Water
Temperature    
75 80 85 88 95 !Inlet Hot Water Temperature    
0.87671 0.88571  ! Fraction of design capacity and design COP
at    5.5 24 75
0.98630 0.88571  ! Fraction of design capacity and design COP
at    5.5 24 80
y1  y2    ! Fraction of design capacity and design
COP at    5.5 24 85
etc...
 
 
Can someone detect the problem..?
 
thank you for your help,
 
Amandine LE DENN
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@engr.wisc.edu
https://www.cae.wisc.edu/mailman/listinfo/trnsys-users
****************************************************************************************
Thermal Energy System Specialists (TESS), LLC 
David
BRADLEY                          
2916 Marketplace Drive - Suite 104 
Partner                                       
Madison, WI 53719 
Phone: (608) 274-2577 USA 
Fax: (608) 278-1475 
E-mail: bradley@tess-inc.com 
Web Pages: 
http://www.tess-inc.com    
and     
http://www.trnsys.com
"Providing software solutions for today's energy engineering
projects" 
****************************************************************************************