[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Type 25 : Outputs precision



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

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