• 大小: 10.18M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-23
  • 语言: 其他
  • 标签: 其他  

资源简介

PVCurve.rar

资源截图

代码片段和文件信息

% 得到导纳矩阵 Y = G + j*B ;
% 考虑 TCSC 接入的影响;
% 输入: baseMVA BusData BranchData GeneratorData TCSC ;
% 返回: Y G B Yfrom Yto busNumber lineNumber generatorNumber ;
function[Y G B Y0 busNumber lineNumber generatorNumber] = Admittance(baseMVA BusData BranchData GeneratorData)
    busNumber = size(BusData 1);                                          % 节点数量;
    lineNumber = size(BranchData 1);                                      % 线路数量;
    generatorNumber = size(GeneratorData 1);                              % 发电机数量;
    Y = zeros(busNumber busNumber);                                       % 定义导纳矩阵;
    Y0 = zeros(busNumber busNumber);                                              % 线路/变压器的支路对地导纳,注:对角元为 0 ;
%% 自己编写    
    % 求取导纳矩阵的非对角元;
    % 这样即使相同两个节点之间追加了支路,也可以直接在原文件中添加,而不需要修正程序;
    for m = 1:1:lineNumber
        if BranchData(m 8) == 1                                           % 该线路处于运行状态;
            if BranchData(m 6) == 0                                       % Ratio = 0 ,求普通线路的导纳;
                temp = -1./(BranchData(m 3) + 1i *  BranchData(m 4));
                Y(BranchData(m 1) BranchData(m 2)) = Y(BranchData(m 1) BranchData(m 2)) + temp;
                Y(BranchData(m 2) BranchData(m 1)) = Y(BranchData(m 2) BranchData(m 1)) + temp;
                
                Y0(BranchData(m 1) BranchData(m 2)) =  1i *  BranchData(m 5); % 线路 ij 的首端对地导纳 yi0;
                Y0(BranchData(m 2) BranchData(m 1)) =  1i *  BranchData(m 5); % 线路 ij 的末端对地导纳 yj0;
            else                                                           % Ratio = K ,求变压器支路的导纳;
                K = BranchData(m 6);
                temp = -1./(BranchData(m 3) + 1i *  BranchData(m 4))/K;
                Y(BranchData(m 1) BranchData(m 2)) = Y(BranchData(m 1) BranchData(m 2)) + temp;
                Y(BranchData(m 2) BranchData(m 1)) = Y(BranchData(m 2) BranchData(m 1)) + temp;
                
                Y0(BranchData(m 1) BranchData(m 2)) = (1 - K) / (K * K) * 1 ./ (BranchData(m 3) + 1i * BranchData(m 4)); % 变压器支路 ij 的首端对地导纳 yi0;
                Y0(BranchData(m 2) BranchData(m 1)) = (K - 1) / (K) * 1 ./ (BranchData(m 3) + 1i * BranchData(m 4));     % 变压器支路 ij 的末端对地导纳 yj0;
            end
        end
    end
    
    % 求取导纳矩阵的对角元;
    for m = 1:1:lineNumber
       if BranchData(m 8) == 1                                            % 该线路处于运行状态;
           if BranchData(m 6) == 0                                        % Ratio = 0 ,求普通线路的两端点的自导纳;
               % 对普通线路首端点;
               Y(BranchData(m 1) BranchData(m 1)) = Y(BranchData(m 1) BranchData(m 1)) + ...
                                                       1./(BranchData(m 3) + 1i *  BranchData(m 4)) + ...
                                                       1i *  BranchData(m 5);
                                                                           % 考虑线路自身充电电容;
               
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5001  2019-03-18 16:07  PVCurve\Admittance.m

     文件       1284  2019-03-18 16:47  PVCurve\ChooseCase.m

     文件        746  2018-07-23 15:46  PVCurve\IEEE_14_Matpower\Branch.txt

     文件        536  2018-07-22 10:27  PVCurve\IEEE_14_Matpower\Bus.txt

     文件        183  2018-07-21 22:04  PVCurve\IEEE_14_Matpower\Gen.txt

     文件         37  2018-07-23 16:34  PVCurve\IEEE_14_Matpower\Readme.txt

     文件        267  2018-08-02 10:44  PVCurve\IEEE_9_Primary\Branch.txt

     文件        290  2018-08-02 21:46  PVCurve\IEEE_9_Primary\Bus.txt

     文件        114  2018-08-02 10:45  PVCurve\IEEE_9_Primary\Gen.txt

     文件         61  2018-08-02 21:48  PVCurve\IEEE_9_Primary\Readme.txt

     文件        216  2018-07-23 16:49  PVCurve\IEEE_9_Primary\新建文本文档.txt

     文件       1963  2019-03-18 16:07  PVCurve\Jacobian.m

     文件        673  2018-07-21 18:30  PVCurve\JudgeConvergence.m

     文件        634  2019-03-18 17:38  PVCurve\Main.m

     文件       1625  2019-03-18 16:07  PVCurve\Mismatch.m

     文件       1531  2018-07-24 17:29  PVCurve\NewEngland_39_Matpower\Branch.txt

     文件       1429  2018-07-24 17:29  PVCurve\NewEngland_39_Matpower\Bus.txt

     文件        374  2018-07-24 17:29  PVCurve\NewEngland_39_Matpower\Gen.txt

     文件         40  2018-08-04 17:09  PVCurve\NewEngland_39_Matpower\ReadMe.txt

     文件       3365  2019-03-18 16:10  PVCurve\PowerFlow_Newton.m

     文件       9660  2019-03-18 17:12  PVCurve\PVCurve.m

     文件       2486  2019-01-21 15:39  PVCurve\ReadData.m

     文件       1295  2019-03-10 19:18  PVCurve\RenewV.m

     文件       5302  2019-03-01 20:27  PVCurve\Results.m

     文件       1035  2019-03-18 16:08  PVCurve\VoltageStable.m

     文件    9223184  2019-03-08 17:35  PVCurve\参考文献\Computational techniques for voltage stability assessment and control.pdf

     文件   19981074  2019-03-10 11:47  PVCurve\参考文献\kupdf.net_crow-mariesal-computational-methods-for-electric-power-systems-second-editionpdf.pdf

     目录          0  2019-03-18 16:02  PVCurve\IEEE_14_Matpower

     目录          0  2019-03-18 16:02  PVCurve\IEEE_9_Primary

     目录          0  2019-03-18 16:02  PVCurve\NewEngland_39_Matpower

............此处省略5个文件信息

评论

共有 条评论