network/transformer.h

00001 // transformer.h
00002 
00003 #ifndef _TRANSFORMER_H
00004 #define _TRANSFORMER_H
00005 
00006 #include "link.h"
00007 
00008 class transformer : public link {
00009 public:
00010     enum {TT_YY=0, TT_YD=1, TT_DY=2, TT_DD=3} Type;
00011     double Sbase;
00012     double Vbase;
00013     double Zpu;
00014     double Vprimary;
00015     double Vsecondary;
00016 private:
00017     complex Z[3];
00018     complex a[3];
00019     complex b[3];
00020     complex d[3];
00021     double TurnsRatio;
00022     double TransformerRatio;
00023 public:
00024     static CLASS *oclass;
00025     static transformer *defaults;
00026     static CLASS *pclass;
00027 public:
00028     transformer(MODULE *mod);
00029     int create();
00030     TIMESTAMP sync(TIMESTAMP t0);
00031 };
00032 
00033 GLOBAL CLASS *transformer_class INIT(NULL);
00034 
00035 #endif

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