[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Reading external data from a file.
- Date: Mon, 20 Dec 1999 14:46:32 +0100
- From: "Visscher, K." <visscher@xxxxxx>
- Subject: 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