[TRNSYS-users] Parametric runs

Diego A. Arias daarias at wisc.edu
Fri Aug 10 07:31:01 PDT 2007


Dear Mohit,

You can run a parametric table in TRNEDit.  You would have to make the 
following modifications to your file:

1. Add a constant definition:

CONSTANTS 1
LU_TMY2 = 35

2. Duplicate the statement 'Assign' for all the locations that you want 
to study.  For example,
ASSIGN ".\Weather\US-TMY2\US-WI-Madison-14837.tm2" 35
ASSIGN ".\Weather\US-TMY2\US-AK-Anchorage-26451.tm2" 36
ASSIGN ".\Weather\US-TMY2\US-AK-Annette-25308.tm2" 37

3. In your data reader, look for the parameter that sets the 'logical 
unit number' of the weather data file.  Replace the number with the 
constant LU_TMY2. For example, if you are using Type109, it would be the 
second parameter.


4. In TRNEdit., go to menu 'Parametrics' --> 'New table'.  You will see 
that the constant LU_TMY2 is among the list of possible parameters to 
change.  You have enter the values that you assigned in the statements 
ASSIGN; in the above example, you should enter 35, 36 and 37.

5. Run the table.


I am attaching a file based on the example 'Begin'. Please let me know 
if you have problems implementing this solution.
Best regards,

Diego

Mohit Singh wrote:
> Hi all,
> I have created a SDHW deck file (.dck). I was wondering if there was a
> way i could run that file for all possible locations TMY2 at once and
> not have to run the file for each location individually.
>
> Thanks alot,
>   


-- 
Diego A. Arias
TRNSYS Coordinator
Solar Energy Laboratory
University of Wisconsin - Madison
1500 Engineering Drive
Madison, WI 53706
-------------- next part --------------
VERSION 16.1
*******************************************************************************
*** TRNSYS input file (deck) generated by TrnsysStudio
*** on Friday, August 10, 2007 at 09:19
*** from TrnsysStudio project: C:\Program Files\Trnsys16_01_0002\Examples\Begin\begin.tpf
*** 
*** If you edit this file, use the File/Import TRNSYS Input File function in 
*** TrnsysStudio to update the project. 
*** 
*** If you have problems, questions or suggestions please contact your local 
*** TRNSYS distributor or mailto:software at cstb.fr 
*** 
*******************************************************************************


*******************************************************************************
*** Units 
*******************************************************************************

*******************************************************************************
*** Control cards
*******************************************************************************
* START, STOP and STEP
CONSTANTS 3
START=0
STOP=1000
STEP=1
* User defined CONSTANTS 

SIMULATION 	 START	 STOP	 STEP	! Start time	End time	Time step
TOLERANCES 0.001 0.001			! Integration	 Convergence
LIMITS 30 30 30				! Max iterations	Max warnings	Trace limit
DFQ 1					! TRNSYS numerical integration solver method
WIDTH 80				! TRNSYS output file width, number of characters
LIST 					! NOLIST statement
					! MAP statement
SOLVER 0 1 1				! Solver statement	Minimum relaxation factor	Maximum relaxation factor
NAN_CHECK 0				! Nan DEBUG statement
OVERWRITE_CHECK 0			! Overwrite DEBUG statement
TIME_REPORT 0			! disable time report
EQSOLVER 0				! EQUATION SOLVER statement

* Model "Type109-TMY2" (Type 109)
* 




UNIT 2 TYPE 109	 Type109-TMY2
PARAMETERS 4
2		! 1 Data Reader Mode
LU_TMY2		! 2 Logical unit
4		! 3 Sky model for diffuse radiation
1		! 4 Tracking mode
INPUTS 3
0,0		! [unconnected] Ground reflectance
0,0		! [unconnected] Slope of surface
0,0		! [unconnected] Azimuth of surface
*** INITIAL INPUT VALUES
0.2 45 0 
*** External files
ASSIGN ".\Weather\US-TMY2\US-WI-Madison-14837.tm2" 35
ASSIGN ".\Weather\US-TMY2\US-AK-Anchorage-26451.tm2" 36
ASSIGN ".\Weather\US-TMY2\US-AK-Annette-25308.tm2" 37

CONSTANTS 1
LU_TMY2 = 37


*|? Weather data file |1000
*------------------------------------------------------------------------------

* Model "Type3b" (Type 3)
* 

UNIT 3 TYPE 3	 Type3b
*$UNIT_NAME Type3b
*$MODEL .\Hydronics\Pumps\Single Speed\Type3b.tmf
*$POSITION 56 192
*$LAYER Water Loop # 
PARAMETERS 5
50		! 1 Maximum flow rate
4.19		! 2 Fluid specific heat
60		! 3 Maximum power
0.05		! 4 Conversion coefficient
0.5		! 5 Power coefficient
INPUTS 3
0,0		! [unconnected] Inlet fluid temperature
0,0		! [unconnected] Inlet mass flow rate
9,1 		! Type14h:Average value of function ->Control signal
*** INITIAL INPUT VALUES
20 40 1 
*------------------------------------------------------------------------------

* Model "Type1b" (Type 1)
* 

UNIT 4 TYPE 1	 Type1b
*$UNIT_NAME Type1b
*$MODEL .\Solar Thermal Collectors\Quadratic Efficiency Collector\2nd-Order Incidence Angle Modifiers\Type1b.tmf
*$POSITION 205 192
*$LAYER Main # 
PARAMETERS 11
1		! 1 Number in series
2		! 2 Collector area
4.190		! 3 Fluid specific heat
1		! 4 Efficiency mode
40.0		! 5 Tested flow rate
0.80		! 6 Intercept efficiency
13.0		! 7 Efficiency slope
0.05		! 8 Efficiency curvature
2		! 9 Optical mode 2
0.2		! 10 1st-order IAM
0.0		! 11 2nd-order IAM
INPUTS 9
3,1 		! Type3b:Outlet fluid temperature ->Inlet temperature
3,2 		! Type3b:Outlet flow rate ->Inlet flowrate
2,1 		! Type109-TMY2:Ambient temperature ->Ambient temperature
2,18 		! Type109-TMY2:total radiation on tilted surface ->Incident radiation
2,12 		! Type109-TMY2:total radiation on horizontal ->Total horizontal radiation
2,14 		! Type109-TMY2:sky diffuse radiation on horizontal ->Horizontal diffuse radiation
0,0		! [unconnected] Ground reflectance
2,22 		! Type109-TMY2:angle of incidence for tilted surface  ->Incidence angle
2,23 		! Type109-TMY2:slope of tilted surface ->Collector slope
*** INITIAL INPUT VALUES
20.0 100.0 10.0 0. 0.0 0.0 0.2 45.0 0. 
*------------------------------------------------------------------------------

* Model "Type6" (Type 6)
* 

UNIT 5 TYPE 6	 Type6
*$UNIT_NAME Type6
*$MODEL .\HVAC\Auxiliary Heaters\Type6.tmf
*$POSITION 341 192
*$LAYER Water Loop # 
PARAMETERS 4
5000		! 1 Maximum heating rate
4.19		! 2 Specific heat of fluid
0		! 3 Overall loss coefficient for heater during operation
1		! 4 Efficiency of auxiliary heater
INPUTS 5
4,1 		! Type1b:Outlet temperature ->Inlet fluid temperature
4,2 		! Type1b:Outlet flowrate ->Fluid mass flow rate
0,0		! [unconnected] Control Function
0,0		! [unconnected] Set point temperature
0,0		! [unconnected] Temperature of surroundings
*** INITIAL INPUT VALUES
20 100 1 60 20 
*------------------------------------------------------------------------------

* Model "TYPE24" (Type 24)
* 

UNIT 6 TYPE 24	 TYPE24
*$UNIT_NAME TYPE24
*$MODEL .\Utility\Integrators\Quantity Integrator\TYPE24.tmf
*$POSITION 503 212
*$LAYER Main # 
PARAMETERS 2
STOP		! 1 Integration period
0		! 2 Relative or absolute start time
INPUTS 2
4,3 		! Type1b:Useful energy gain ->Input to be integrated-1
5,3 		! Type6:Required heating rate ->Input to be integrated-2
*** INITIAL INPUT VALUES
0.0 0.0 
*------------------------------------------------------------------------------

* Model "Type25a" (Type 25)
* 

UNIT 7 TYPE 25	 Type25a
*$UNIT_NAME Type25a
*$MODEL .\Output\Printer\TRNSYS-Supplied Units\Type25a.tmf
*$POSITION 643 212
*$LAYER Outputs # 
PARAMETERS 10
STEP		! 1 Printing interval
START		! 2 Start time
STOP		! 3 Stop time
32		! 4 Logical unit
2		! 5 Units printing mode
0		! 6 Relative or absolute start time
-1		! 7 Overwrite or Append
-1		! 8 Print header
0		! 9 Delimiter
1		! 10 Print labels
INPUTS 2
6,1 		! TYPE24:Result of integration-1 ->Input to be printed-1
6,2 		! TYPE24:Result of integration-2 ->Input to be printed-2
*** INITIAL INPUT VALUES
QColl QAux 
*** External files
ASSIGN "***.out" 32
*|? Output File for printed results |1000
*------------------------------------------------------------------------------

* Model "Type65d" (Type 65)
* 

UNIT 8 TYPE 65	 Type65d
*$UNIT_NAME Type65d
*$MODEL .\Output\Online Plotter\Online Plotter Without File\Type65d.tmf
*$POSITION 506 85
*$LAYER Main # 
PARAMETERS 12
3		! 1 Nb. of left-axis variables
2		! 2 Nb. of right-axis variables
-100		! 3 Left axis minimum
100		! 4 Left axis maximum
0.0		! 5 Right axis minimum
10000		! 6 Right axis maximum
1		! 7 Number of plots per simulation
12		! 8 X-axis gridpoints
0		! 9 Shut off Online w/o removing
-1		! 10 Logical unit for output file
0		! 11 Output file units
0		! 12 Output file delimiter
INPUTS 5
3,1 		! Type3b:Outlet fluid temperature ->Left axis variable-1
4,1 		! Type1b:Outlet temperature ->Left axis variable-2
5,1 		! Type6:Outlet fluid temperature ->Left axis variable-3
4,3 		! Type1b:Useful energy gain ->Right axis variable-1
5,3 		! Type6:Required heating rate ->Right axis variable-2
*** INITIAL INPUT VALUES
ToPump ToColl ToAux QColl QAux 
LABELS  3
"Temperatures"
"Heat transfer rates"
"Graph 1"
*------------------------------------------------------------------------------

* Model "Type14h" (Type 14)
* 

UNIT 9 TYPE 14	 Type14h
*$UNIT_NAME Type14h
*$MODEL .\Utility\Forcing Functions\General\Type14h.tmf
*$POSITION 54 288
*$LAYER Main # 
PARAMETERS 12
0		! 1 Initial value of time
0		! 2 Initial value of function
8		! 3 Time at point-1
0		! 4 Value at point -1
8		! 5 Time at point-2
1		! 6 Value at point -2
18		! 7 Time at point-3
1		! 8 Value at point -3
18		! 9 Time at point-4
0		! 10 Value at point -4
24		! 11 Time at point-5
0		! 12 Value at point -5
*------------------------------------------------------------------------------

END


More information about the TRNSYS-users mailing list