Alain, I am not sure how familiar you are with the deck syntax but you can do this by making some edits in the *.dck file using TRNEdit. When a Type references an external file, it does so using an integer that is a parameter for the component (Type9 in this case) and is also found in an ASSIGN statement that associates that integer with a file and path. It looks like: ASSIGN c:\Trnsys17\MyProjects\DataFiles\File1.txt 30 1. Open your *.dck in TRNEdit and add an ASSIGN statement like the one above for each data file that you want to run. ASSIGN "c:\Trnsys17\MyProjects\DataFiles\File1.txt" 30 ASSIGN "c:\Trnsys17\MyProjects\DataFiles\File3.txt" 31 ASSIGN "c:\Trnsys17\MyProjects\DataFiles\File4.txt" 32 2. Change the Type9 logical unit parameter to a string called "LU" UNIT 2 TYPE 9 Type9g *$UNIT_NAME Type9g *$MODEL .\Utility\Data Readers\Generic Data Files\Expert Mode\Specified Format\Type9g.tmf *$POSITION 335 212 *$LAYER Main # PARAMETERS 10 2 ! 1 Mode 0 ! 2 Header Lines to Skip 1 ! 3 No. of values to read 1.0 ! 4 Time interval of data 1 ! 5 Interpolate or not 1.0 ! 6 Multiplication factor 0 ! 7 Addition factor 1 ! 8 Average or instantaneous value LU ! 9 Logical unit for input file ... etcetera 3. Write the lines: CONSTANTS 1 LU = 30 in your input file 4. Create a parametric table with as many runs as you have data files and the variable "LU" in the table. 5. set the value of LU to the integers that you assigned to each of your data files. Best, David On 10/22/2010 14:03, moreau.alain@lte.ireq.ca 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 |