/[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 2598 - (show annotations) (download) (as text)
Tue Apr 17 21:00:29 2012 UTC (12 years, 3 months ago) by jpye
File MIME type: text/x-ascend
File size: 836 byte(s)
Rename to StudyReporter in studyreporter.py (seems to be duplication from solverreporter.py?).
Fixed some unit conversions in tmy3.c, test file seems correct now (to float precision at least).
Suppressed some debug output to try to speed up Study feature, not there yet.
1 REQUIRE "ivpsystem.a4l";
2 REQUIRE "atoms.a4l";
3 REQUIRE "johnpye/nrel/julian_day.a4c";
4
5 IMPORT "johnpye/datareader/datareader";
6
7 MODEL drconf;
8 filename IS_A symbol_constant;
9 format IS_A symbol_constant;
10 format :== 'TMY3';
11 parameters IS_A symbol_constant;
12 parameters :== '1,2,3,4,5,6,7';
13 END drconf;
14
15 MODEL testtmy3;
16 t IS_A time;
17 T IS_A temperature;
18 p IS_A pressure;
19 rh IS_A fraction;
20 DNI IS_A power_per_area;
21 GHI IS_A power_per_area;
22 v_wind IS_A speed;
23 d_wind IS_A angle;
24
25 tmydata IS_A drconf;
26 tmydata.filename :== 'johnpye/datareader/723815TY.csv';
27
28 filereader:datareader(
29 t : INPUT;
30 T,p,rh,DNI,GHI,v_wind,d_wind :OUTPUT;
31 tmydata : DATA
32 );
33
34 METHODS
35 METHOD on_load;
36 RUN default_self; RUN specify; RUN values;
37 END on_load;
38 METHOD specify;
39 FIX t;
40 END specify;
41 METHOD values;
42 t := 8 {h};
43 END values;
44 END testtmy3;

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