[TRNSYS-users] Trnsed Distributable

Kent Beason kbeason at schlitterbahn.com
Mon Nov 23 06:18:20 PST 2009


David, 

 

I've tried your suggestion below with no success.  I then tried 9953,
9954, and 9955 as well, with no success.  I've attached this portion of
the .trd file.  As you can see, I've commented out some of the lines.

 

A curious note: The .trd file runs in Trnedit in the original directory
just fine.  I tried running the same file (in Trnedit this time, not
stand-alone!) after copying it over to the Distributable directory, and
the same error described below happens.  Below, "I don't get any errors
when I run the simulation within Trnedit", was in context of running the
file in Trnedit in the original directory, not the Distributable
directory as I've just done.

 

This deepens the intrigue, but suggests that I've overlooked something
more fundamental in the Distributable-creation process.  I've copied all
files I believe and made all reference paths relative to the
Distributable directory.  Let me know if there is anything else that
comes to mind which I should do to get this Distributable working.

 

Thanks for your (and others'!) help.

 

Kent Beason

Schlitterbahn Development Group

830-609-8904 m

 

________________________________

From: David Bradley [mailto:bradley at tess-inc.com] 
Sent: Friday, November 20, 2009 12:21 AM
To: Kent Beason
Cc: trnsys-users at engr.wisc.edu
Subject: Re: [TRNSYS-users] Trnsed Distributable

 

Kent,
 Try setting the logical unit parameters referenced by Type96 (and the
logical units in the corresponding ASSIGN statements) to some other
numbers (953, 954, 955 for example). There are some spots in the Trnsys
kernel where a logical unit number is internally assigned to a temporary
file that needs to be opened up. The kernel tries to pick a logical unit
that isn't otherwise needed but it doesn't always succeed. 
Best,
 David


Kent Beason wrote: 

I've created a Distributable file and copied all files that I need into
the same directory.  I am getting a fatal error when running the
Distributable by itself.  I don't get any errors when I run the
simulation within Trnedit.  The error reads as follows:

 

*** Fatal Error at time   :         0.000000

    Generated by Unit     :    33

    Generated by Type     :    96

    TRNSYS Message     71 : An ASSIGNED logical unit number is already
in use, either by the TRNSYS kernal or by a Type

    Reported information  : Not available

 

Attached is the section within the .trd file for Type 96 as used in my
simulation.  I've scoured it without finding obvious problems.  I
haven't found the logical unit numbers duplicated elsewhere in the list
file either.

 

Any deeper insights on what may be the problem, or other things to
check, would be most appreciated.

 

Kent Beason

Schlitterbahn Development Group

830-609-8904 m

830-608-8040 f

 

 
 
 



________________________________



 
 
 
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users





-- 
***********************************************************************
Thermal Energy System Specialists (TESS), LLC 
David BRADLEY                      22 N. Carroll Street - Suite 370 
Partner                            Madison, WI 53703 
                                   USA
P: +1.608.274.2577 
F: +1.608.278.1475
E-mail: bradley at tess-inc.com 
Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com
 
***********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20091123/28bcb414/attachment-0005.htm>
-------------- next part --------------
* Model "Type96" (Type 96)
* 
*
**|*
**|* *** Model Type96 (Type 96, Unit 33)
**|*
CONSTANTS 3
**|*PARAMETERS																							VALUES			UNITS
SWITCHTO= 1.0000000000000E+00
**|Switch to observe off-peak weekend rates |-|-|0|1|0|1.000|1000
SWITCHT1= 1.0000000000000E+00
**|Switch to observe off-peak holiday rates |-|-|0|1|0|1.000|1000
MAXIMUME= 1.0000000000000E+04
**|Maximum excess power                    |W|W|0|1|-1000000.00000|1000000.00000|1000
CONSTANTS 1
**|*INPUTS																							VALUES			UNITS
PARALLEL= 0.0000000000000E+00
**|Parallel generation                     |W|W|0|1|-1000000.00000|1000000.00000|1000
*
UNIT 33 TYPE 96	 Type96
*$UNIT_NAME Type96
*$MODEL .\Utility\Utility Rate Schedule Processors\Type96.tmf
*$POSITION 1089 240
*$LAYER Main # 
PARAMETERS 6
9953		! 1 Logical unit number for rate schedule input file
9954		! 2 Logical unit number for text output
9955		! 3 Logical unit number for spreadsheet output
SWITCHTO		! 4 Switch to observe off-peak weekend rates
SWITCHT1		! 5 Switch to observe off-peak holiday rates
MAXIMUME		! 6 Maximum excess power
INPUTS 8
31,1 		! Type95a:Hour of day ->Hour of the day
31,2 		! Type95a:Hour of year ->Hour of the year
31,5 		! Type95a:Month ->Month
31,7 		! Type95a:Year2 ->Year
Building_Latent		! Equa:Building_Latent ->Building load
31,8 		! Type95a:Weekend Flag ->Flag indicating weekend
31,9 		! Type95a:Holiday flag ->Flag indicating holiday
0,0		! [unconnected] Parallel generation
*** INITIAL INPUT VALUES
1 1 1 1999 0 0 0 PARALLEL 
*** External files
ASSIGN "Type96-UtilityRateScheduler.dat" 9953
**|? Where is the utility rate schedule input file located? |1000
ASSIGN "UtilityBill.txt" 9954
**|? Where should the text based utility bill output file be created? |1000
ASSIGN "UtilityBill.dat" 9955
**|? Where should the spreadsheet utility bill output file be created? |1000


More information about the TRNSYS-users mailing list