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

Diff of /trunk/models/johnpye/datareader/energyplus.a4c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2504 by jpye, Sat Oct 1 06:18:31 2011 UTC revision 2505 by jpye, Sat Oct 1 10:31:24 2011 UTC
# Line 10  MODEL drconf; Line 10  MODEL drconf;
10  END drconf;  END drconf;
11    
12  MODEL energyplus;  MODEL energyplus;
     col1,col2,col3,col4,col5 IS_A solver_var;  
     total, average IS_A solver_var;  
   
13      eedata IS_A drconf;      eedata IS_A drconf;
14      eedata.format :== 'EE';      eedata.format :== 'EE';
15      eedata.filename :== 'johnpye/datareader/AUS_NSW.Moree.Aero.955270_RMY.epw';      eedata.filename :== 'johnpye/datareader/AUS_NSW.Moree.Aero.955270_RMY.epw';
16      eedata.parameters :== '1,2,3,4';      eedata.parameters :== '1,2,3,4,5,6,7';
17    
18        t IS_A time;
19        T IS_A temperature;
20        p IS_A pressure;
21        rh "relative humidity" IS_A fraction;
22        Gn IS_A power_per_area;
23        Gd IS_A power_per_area;
24        d_wind IS_A angle;
25        v_wind IS_A speed;  
26    
27      filereader:datareader(      filereader:datareader(
28          col1 : INPUT;          t : INPUT;
29          col2,col3,col4,col5 :OUTPUT;          T,p,rh,Gn,Gd,d_wind,v_wind :OUTPUT;
30          eedata : DATA          eedata : DATA
31      );      );
32            
     t IS_A time;  
     t = col1 * 1{h};  
     Gh IS_A power_per_area;  
     Gh = col2 * 1{kJ/m^2} / 1{h};  
     Ghb IS_A power_per_area;  
     Ghb = col3 * 1{kJ/m^2} / 1{h};  
     T IS_A temperature;  
     T = col4 * 1{K} + 237.15 {K};  
     v_wind IS_A speed;  
     v_wind = col5 * 1{m/s};  
       
33  METHODS  METHODS
 (*  
34  METHOD default_self;  METHOD default_self;
35        (* nothing here *)
36  END default_self;  END default_self;
 *)  
37  METHOD on_load;  METHOD on_load;
38      RUN default_self; RUN specify; RUN values;      RUN default_self; RUN specify; RUN values;
39      (*RUN ode_init;*)      (*RUN ode_init;*)
# Line 61  METHOD specify; Line 55  METHOD specify;
55  END specify;  END specify;
56    
57  METHOD values;  METHOD values;
58      t := 1 {s};      t := 0 {s};
59  END values;  END values;
60    
61  END energyplus;  END energyplus;

Legend:
Removed from v.2504  
changed lines
  Added in v.2505

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