powerflow/load.h

00001 // $Id: node.h,v 1.18 2008/02/05 17:26:22 natet Exp $
00002 
00003 #ifndef _LOAD_H
00004 #define _LOAD_H
00005 
00006 #include "node.h"
00007 
00008 class load : public node
00009 {
00010 public:
00011     static CLASS *oclass;
00012     static load *defaults;
00013     static CLASS *pclass;
00014 public:
00015     complex phaseA_VA;     // power
00016     complex phaseB_VA;
00017     complex phaseC_VA;
00018     complex phaseA_Z;      // impedance
00019     complex phaseB_Z;
00020     complex phaseC_Z;
00021     complex phaseA_I;      // current
00022     complex phaseB_I;
00023     complex phaseC_I;
00024     enum {LC_UNKNOWN=0, LC_RESIDENTIAL, LC_COMMERCIAL, LC_INDUSTRIAL, LC_AGRICULTURAL} load_class;
00025 
00026     int create(void);
00027 
00028     load(MODULE *mod);
00029 //  TIMESTAMP presync(TIMESTAMP t0);
00030     TIMESTAMP sync(TIMESTAMP t0);
00031     TIMESTAMP postsync(TIMESTAMP t0);
00032     int isa(char *classname);
00033 };
00034 
00035 #endif // _LOAD_H
00036 

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