用类处理变压器阻抗数据。

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com
2014-12-27 21:45:46 +08:00
parent 57dc9e9728
commit 84d5330628
9 changed files with 78 additions and 8 deletions

View File

@@ -0,0 +1,26 @@
#include "transformer.h"
Transformer::Transformer(const QPair<QString,QString>& fromTo, PowerTransformer* tf):Branch(fromTo.first,fromTo.second)
{
this->ratio=1;
this->tf=tf;
}
void Transformer::extract()
{
// PowerTransformer *tf=this->tf;
double length=10;
//单位阻抗
double r0=0.01;
double x0=0.01;
double g0=0;
double b0=0;
this->r=r0*length;
this->x=x0*length;
this->g1=g0*length;
this->g2=g0*length;
this->b1=b0*length;
this->b2=b0*length;
}