[TRNSYS-users] run many times with different tmy2 files question

David BRADLEY d.bradley at tess-inc.com
Tue May 22 15:34:40 PDT 2012


Camilo,
   Yes, you can do this; you will need to make some edits in the input 
file using TRNEdit.

   Before you start, make sure that your printing device (Type25 or 
Type46 ideally) has an output file that is called ***.out. The extension 
is not important but the *** is.

   Launch TRNEdit and open your input file . You should see a line that 
looks like the following:

ASSIGN "c:\TrnsysXX\Weather\MyWeatherFile.tm2"   35

ASSIGN is a keyword that links the path and filename of the weather file 
to an arbitrary number called a "logical unit"

You should also be able to find the entry for your weather file reader 
(Type15 or Type109 probably) in the input file; if you look at its list 
of parameters, you'll find one that has the value 35. It might look 
something like the following:

UNIT 26 TYPE 15     Type15-6
PARAMETERS 9
6        ! 1 File Type
35        ! 2 Logical unit
3        ! 3 Tilted Surface Radiation Mode

First, what you need to do is to make one ASSIGN statement for each of 
your weather files, assigning a DIFFERENT logical unit number to each 
one. For example:

ASSIGN "c:\TrnsysXX\Weather\weatherFile(location1).tm2"   501
ASSIGN "c:\TrnsysXX\Weather\weatherFile(location2).tm2"   502
ASSIGN "c:\TrnsysXX\Weather\weatherFile(location3).tm2"   503
ASSIGN "c:\TrnsysXX\Weather\weatherFile(location4).tm2"   504

The value you assign is somewhat arbitrary but it must be greater than 
30 and it cannot be used as the logical unit for anything else in your 
simulation. The range 501-550 is probably safe.

Second, you need to add the following lines to your input file.

CONSTANTS 1
LU_METEO = 501

Third, you need to change the entry of your weather reading component so 
that it contains a variable name instead of a numerical value for the 
logical unit. Taking the example from above, you would change it to read

UNIT 26 TYPE 15     Type15-6
PARAMETERS 9
6        ! 1 File Type
LU_METEO        ! 2 Logical unit
3        ! 3 Tilted Surface Radiation Mode

Lastly, make a parametric table (this is why you need to use TRNEdit). 
Select "Create New Table" from the parametrics menu item. Make 50 runs 
and choose the variable "LU_METEO" from the list on the left. Enter each 
of the values that you chose as the logical unit for your 50 weather 
files (501, 502, 503, etc.)

Run the table. You should get 50 output files, one for each run.

If you want all of the outputs in one file, then use Type25 as your 
output printer device, change the output file name from ***.out to 
Results.out (something with a hardcoded name) and change the 7th 
parameter (overwrite or append) from -1 to 1.

Best,
  David




On 5/22/2012 15:15, Camilo Arias wrote:
> Hi everyone, I work now in the construction of vectorial maps for 
> define the potential of EAHE, the problem is that I must run 50 
> diferent weather files. Is posible run this 50 files without charge 
> each one each time, and obtain the 50 .txt file in one run?.
>
> Thanks
>
> Camilo Arias
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://mailman.cae.wisc.edu/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/20120522/a82a3fff/attachment-0005.htm>


More information about the TRNSYS-users mailing list