[TRNSYS-users] Automatic calculation for several clients

David BRADLEY d.bradley at tess-inc.com
Mon Oct 25 07:58:29 PDT 2010


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 at lte.ireq.ca wrote:
> Hello,
>
> I have several hundred files of hot water consumption of several 
> different clients and I want to do simulations for each of 
> these customers. The data files will be read with TYPE 9. Using 
> TRNSYS, is it possible to loop automatically the calculations for all 
> clients ?
> Alain Moreau, ing., M.Sc.A.
> chercheur, chargé de projet
> Laboratoire des technologies de l'énergie d'Hydro-Québec
> 600, avenue de la Montagne
> Shawinigan, Qc.
> G9N 7N5
> tél: 819-539-1400 (1421)
> Fax: 819-539-1409
> http://www.hydroquebec.com
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>    

-- 
***************************
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 at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20101025/f5eb0601/attachment-0005.htm>


More information about the TRNSYS-users mailing list