[TRNSYS-users] Type 25 : Outputs precision

David BRADLEY d.bradley at tess-inc.com
Mon Feb 20 20:14:58 PST 2012


Vincent,
   Sorry for the delay in reponding and my apologies also if someone 
else already gave you a solution. The easiest way to do this is to 
choose one of the "formatted" versions of Type25. Getting the FORMAT 
statement syntax can be a bit tricky at first but your output files will 
be quite a lot more readable. The FORMAT statement uses old FORTRAN 
conventions. A number is specified by the code "F" followed by the total 
number of columns to be used, followed by a period, followed by the 
number of decimals. Thus an 8 character number with two decimals would 
be written as F8.2. To make spaces between the columns, specify the 
number of spaces, followed by an "X"

  The format statement for printing three things to the output file, all 
separated by a single space would be:

(F8.2,1X,F8.2,1X,F8.2)

don't forget the parenthesis!
Best,
  David


On 2/14/2012 07:41, Vincent MORELLE wrote:
>
> Dear TRNSYS Users,
>
> I would like to know if it is possible to decrease outputs precision 
> in TRNSYS in order to print temperatures results with only two digits 
> after the decimal coma (to get lighter files).
>
> I know how to do it in Excel, but it would be faster if I could do it 
> directly in TRNSYS (by editing Type 25 ?...)
>
> Thanks in advance
>
> Best regards
>
> Vincent
>
>
>
> _______________________________________________
> 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/20120220/be17b2ff/attachment-0005.htm>


More information about the TRNSYS-users mailing list