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