@@ -11,6 +11,15 @@ DG::~DG()
|
||||
|
||||
}
|
||||
|
||||
double DG::getPG(double pf)//有功出力,满发情况
|
||||
{
|
||||
return pf*(this->capacity);
|
||||
}
|
||||
double DG::getQG(double pf)//无功出力,满发情况
|
||||
{
|
||||
return std::sqrt(1-pf*pf)*this->capacity;
|
||||
}
|
||||
|
||||
void DG::extract()
|
||||
{
|
||||
//单位阻抗
|
||||
|
||||
@@ -3,12 +3,15 @@
|
||||
|
||||
#include <QPair>
|
||||
#include <QString>
|
||||
#include <cmath>
|
||||
#include "branch.h"
|
||||
class DG:public Branch
|
||||
{
|
||||
public:
|
||||
DG(const QPair<QString, QString> &fromTo, double DGCapacity, const QString &id, QObject *parent=0);
|
||||
DG();
|
||||
double getPG(double pf);//有功出力
|
||||
double getQG(double pf);//无功出力
|
||||
~DG();
|
||||
QString id;
|
||||
double capacity;
|
||||
|
||||
Reference in New Issue
Block a user