/[ascend]/trunk/models/johnpye/datareader/testtmy3.a4c
ViewVC logotype

Contents of /trunk/models/johnpye/datareader/testtmy3.a4c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2596 - (show annotations) (download) (as text)
Sat Apr 14 06:06:41 2012 UTC (10 years, 2 months ago) by jpye
File MIME type: text/x-ascend
File size: 802 byte(s)
testing TMY3 reader.
1 REQUIRE "ivpsystem.a4l";
2 REQUIRE "atoms.a4l";
3
4 IMPORT "johnpye/datareader/datareader";
5
6 MODEL drconf;
7 filename IS_A symbol_constant;
8 format IS_A symbol_constant;
9 format :== 'TMY3';
10 parameters IS_A symbol_constant;
11 parameters :== '1,2,3,4,5,6,7';
12 END drconf;
13
14 MODEL testtmy3;
15 t IS_A time;
16 T IS_A temperature;
17 p IS_A pressure;
18 rh IS_A fraction;
19 DNI IS_A power_per_area;
20 GHI IS_A power_per_area;
21 v_wind IS_A solver_var;
22 d_wind IS_A angle;
23
24 tmydata IS_A drconf;
25 tmydata.filename :== 'johnpye/datareader/723815TY.csv';
26
27 filereader:datareader(
28 t : INPUT;
29 T,p,rh,DNI,GHI,v_wind,d_wind :OUTPUT;
30 tmydata : DATA
31 );
32
33 METHODS
34 METHOD on_load;
35 RUN default_self; RUN specify; RUN values;
36 END on_load;
37 METHOD specify;
38 FIX t;
39 END specify;
40 METHOD values;
41 t := 8 {h};
42 END values;
43 END testtmy3;

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22