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

RE (2): Reading external data from a file.



[Visscher, K.]  If you mean reading a parameter file instead of time
dependent values by "read data from an external text file", then you can
view the source code of the type 9 data reader (type9.for) to see how it is
done there.


> -----Oorspronkelijk bericht-----
> Van:	Visscher, K. [SMTP:visscher@ecn.nl]
> Verzonden:	maandag 20 december 1999 14:47
> Aan:	'trnsys@relay.doit.wisc.edu'
> Onderwerp:	RE: Reading external data from a file.
> 
> Use the type 9 data reader in mode 2 (standard data reader). 
> Use "formatted reading" (FRMT>0), followed by a Fortran Format statement
> (only the piece between parentheses)
> The output of type 9 then is input to your newly defined type.
> 
> If your new type would read data all by itself, this would create a
> "hidden
> input" in TRNSYS.
> I think that this is not how TRNSYS is meant to work.
> Klaas Visscher.
> 
> ===========================================================
> dr.ir. K. Visscher
> Netherlands Energy Research Foundation ECN 
> 
> E-Mail : 		visscher@ecn.nl
> Department: 	Solar & Wind Energy
> Group: 		Renewable Energy in the Built Environment 
> ===========================================================
> 
> 
> 
> 
> > -----Oorspronkelijk bericht-----
> > Van:	310006064349-0001@t-online.de
> [SMTP:310006064349-0001@t-online.de]
> > Verzonden:	maandag 20 december 1999 0:00
> > Aan:	trnsys@relay.doit.wisc.edu
> > Onderwerp:	Reading external data from a file.
> > 
> > Hello everybody,
> > for my "Diplomarbeit" I write a new Type which has to read data from an
> > external text-file.
> > Can anybody tell me, how to do this.  Somehow, it doesn't work with the
> > normal Fortran programming lines: open(*,file'sldk') read(*,*) close(*).
> > 
> > Thanks
> > Fabian Brdnnstrvm