把网架信息输出到文件

Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
dmy@lab
2015-01-20 15:56:30 +08:00
parent a208823264
commit 5b9625f708
9 changed files with 104 additions and 61 deletions

View File

@@ -23,4 +23,5 @@ void Line::extract()
this->g2=g0*length;
this->b1=b0*length;
this->b2=b0*length;
this->length=length;
}

View File

@@ -8,6 +8,7 @@ class Line:public Branch
{
public:
Line(const QPair<QString, QString> &fromTo, ACLineSegment* ac,QObject* parent=0);
double length;
protected:
virtual void extract();
private:

View File

@@ -11,7 +11,8 @@ Transformer::Transformer(const QPair<QString,QString>& fromTo, PowerTransformer*
void Transformer::extract()
{
// PowerTransformer *tf=this->tf;
PowerTransformer *tf=this->tf;
this->capacityMVA=tf->getMVA();
double length=10;
//单位阻抗
double r0=0.01;
@@ -24,7 +25,7 @@ void Transformer::extract()
this->g2=g0*length;
this->b1=b0*length;
this->b2=b0*length;
//解析负荷
}

View File

@@ -10,6 +10,7 @@ class Transformer:public Branch
public:
Transformer(const QPair<QString, QString> &fromTo, PowerTransformer *tf,QObject *parent=0);
PowerTransformer *getTF();
double capacityMVA;
protected:
virtual void extract();
private: