⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pnseqcal.h

📁 PQDIF软件包(SDK,Software Development Kit),它能转换、生成并且显示PQDIF文件.对于开发电力系统的数据输出非常有用。
💻 H
字号:
/*
**  Class PQNodeSequenceCalc
**      This class caluclates and holds a number of steady state quantities
**      from spectrum information.  This object can take a voltage and
**      current pair and calculate power information.
**
*/

#ifndef PNSEQCAL_INC
#define PNSEQCAL_INC

class PQNodeSequenceCalc
    {
    private:
        int iNumVal;
        float *pfZero;
        float *pfZeroAng;
        float *pfPos;
        float *pfPosAng;
        float *pfNeg;
        float *pfNegAng;

    protected:

        void CalcSequenceComponents(int iNumPnt,
                                    float *pMag1,float *pAng1,
                                    float *pMag2,float *pAng2,
                                    float *pMag3,float *pAng3);

    public:

        PQNodeSequenceCalc()
            {
            pfZero = NULL;
            pfZeroAng = NULL;
            pfPos = NULL;
            pfPosAng = NULL;
            pfNeg = NULL;
            pfNegAng = NULL;
            }

        /*
        ** Main form of the constructor usually called by one of the 
        ** disturbance decoder modules.  Not normally called by an app
        ** directly since app doesn't have direct access to some of the info.
        */
        PQNodeSequenceCalc(int iNumPnt,
                           float *pMag1,float *pAng1,
                           float *pMag2,float *pAng2,
                           float *pMag3,float *pAng3);

        ~PQNodeSequenceCalc();

        float GetZero(int iHarm = 1) {return pfZero[iHarm];}
        float GetZeroAng(int iHarm = 1) {return pfZeroAng[iHarm];}
        float GetPos(int iHarm = 1) {return pfPos[iHarm];}
        float GetPosAng(int iHarm = 1) {return pfPosAng[iHarm];}
        float GetNeg(int iHarm = 1) {return pfNeg[iHarm];}
        float GetNegAng(int iHarm = 1) {return pfNegAng[iHarm];}
        float GetDataSize() { return (float)iNumVal; }

    };

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -