network/meter.h

00001 // meter.h
00002 
00003 #ifndef _METER_H
00004 #define _METER_H
00005 
00006 #include "node.h"
00007 
00008 class meter : public node {
00009 private:
00010 public:
00011     enum {MT_ONEPHASE=0, MT_THREEPHASE=1} type;
00012     complex meterkWh; //kWh
00013     complex demand;  //kW
00014 
00015     // constant current loads
00016     complex line1_current; //A
00017     complex line2_current;
00018     complex line3_current;
00019 
00020     // constant admittance loads
00021     complex line1_admittance; //Y
00022     complex line2_admittance;
00023     complex line3_admittance;
00024 
00025     // constant power loads
00026     complex line1_power; //S
00027     complex line2_power;
00028     complex line3_power;
00029 public:
00030     static CLASS *oclass;
00031     static meter *defaults;
00032     static CLASS *pclass;
00033 public:
00034     meter(MODULE *mod);
00035     int create();
00036     int init(OBJECT *parent);
00037     TIMESTAMP sync(TIMESTAMP t0, TIMESTAMP t1);
00038 
00039 };
00040 
00041 GLOBAL CLASS *meter_class INIT(NULL);
00042 
00043 #endif

GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy