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

📄 pnwvssca.h

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

#ifndef PNWVSSCA_INC
#define PNWVSSCA_INC


class PQNodeWaveSSCalcs
    {
    private:
        int idConnect;
        BOOL bVolt;
        int iVChannel;
        float fMinV;
        float fMaxV;
        float fPeakV;
        float fRMSV;
        BOOL bCurr;
        int iIChannel;
        float fMinI;
        float fMaxI;
        float fPeakI;
        float fRMSI;

        BOOL bPair;
        float fPower;
        float fApp;
        float fPF;
        float fkVAr;
        void CalcPowerStuff(float *pfVData,int iNumVPoints,
                            float *pfIData,int iNumIPoints,
                            float fVoltGain,float fTDGain);
    protected:


    public:

        /*
        ** 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.
        */
        PQNodeWaveSSCalcs(int iVChan,int iNumVPnt, float *pVData,
                          int iIChan,int iNumiPnt, float *pIData,
                          int iConn, float fVoltGain,float fTDGain);

        ~PQNodeWaveSSCalcs();

        /*
        ** Methods to report the channel numbers used to create this 
        ** object.  Standard channel numbering.
        */
        int GetVChannel() {return iVChannel;}
        int GetIChannel() {return iIChannel;}

        /*
        ** Methods to indicate if the voltage, current or power data
        ** in the object are valid.  The validity is based on what data is
        ** supplied at construction and the connection type.
        */
        BOOL IsVoltageValid() {return bVolt;}
        BOOL IsCurrentValid() {return bCurr;}
        BOOL IsPowerValid() {return bPair;}

        /*
        ** Methods to return the minimum, maximum, RMS and peak values 
        ** of the voltage waveform.  The voltages will be in the units 
        ** specified by the VoltPref parameter to the constructor.
        */
        float GetVMin() {return fMinV;}
        float GetVMax() {return fMaxV;}
        float GetVRMS() {return fRMSV;}
        float GetVPeak() {return fPeakV;}

        /*
        ** Methods to return the minimum, maximum, RMS and peak values 
        ** of the current waveform.  Always in amps.
        */
        float GetIMin() {return fMinI;}
        float GetIMax() {return fMaxI;}
        float GetIRMS() {return fRMSI;}
        float GetIPeak() {return fPeakI;}

        /*
        ** Methods to retun power, apparent power, real pf and kvar.
        */
        float GetPower() {return fPower;}
        float GetAppPower() {return fApp;}
        float GetRealPF() {return fPF;}
        float GetkVAr() {return fkVAr;}

    };

#endif

⌨️ 快捷键说明

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