资源简介
交直流迭代法广泛应用于现代交直流系统中,传统的牛顿法适合交流系统,在此基础上,加上直流部分的程序,能更快速直接解决交直流潮流问题。
代码片段和文件信息
function [Bbus Bf Pbusinj Pfinj] = makeBdc(baseMVA bus branch)
%MAKEBDC Builds the B matrices and phase shift injections for DC power flow.
% [BBUS BF PBUSINJ PFINJ] = MAKEBDC(MPC)
% [BBUS BF PBUSINJ PFINJ] = MAKEBDC(baseMVA BUS BRANCH)
%
% Returns the B matrices and phase shift injection vectors needed for
% a DC power flow. The bus real power injections are related to bus
% voltage angles by
% P = BBUS * Va + PBUSINJ
% The real power flows at the from end the lines are related to the bus
% voltage angles by
% Pf = BF * Va + PFINJ
% Does appropriate conversions to p.u.
% Bus numbers must be consecutive beginning at 1 (i.e. internal ordering).
%
% Example:
% [Bbus Bf Pbusinj Pfinj] = makeBdc(baseMVA bus branch);
%
% See also DCPF.
% MATPOWER
% Copyright (c) 1996-2016 Power Systems Engineering Research Center (PSERC)
% by Carlos E. Murillo-Sanchez PSERC Cornell & Universidad Nacional de Colombia
% and Ray Zimmerman PSERC Cornell
%
% This file is part of MATPOWER.
% Covered by the 3-clause BSD License (see LICENSE file for details).
% See http://www.pserc.cornell.edu/matpower/ for more info.
%% extract from MPC if necessary
if nargin < 3
mpc = baseMVA;
baseMVA = mpc.baseMVA;
bus = mpc.bus;
branch = mpc.branch;
end
%% constants
nb = size(bus 1); %% number of buses
nl = size(branch 1); %% number of lines
%% define named indices into bus branch matrices
[PQ PV REF NONE BUS_I BUS_TYPE PD QD GS BS BUS_AREA VM ...
VA base_KV ZONE VMAX VMIN LAM_P LAM_Q MU_VMAX MU_VMIN] = idx_bus;
[F_BUS T_BUS BR_R BR_X BR_B RATE_A RATE_B RATE_C ...
TAP SHIFT BR_STATUS PF QF ~ QT MU_SF MU_ST ...
ANGMIN ANGMAX MU_ANGMIN MU_ANGMAX]
- 上一篇:CreasePlus
- 下一篇:一键正图渲染.mse
相关资源
- MATLAB第四版课后部分程序
- DCT变换交互式原理与应用 matlab
- down_sample下采样
- matlab和HFSS联合仿真偶极子天线
- matlab和hfss联合仿真输出增益
- 西瓜数据集的C4.5算法的matlab实现
- 使用bp神经网络进行分布式光伏出力预
- 数字图像处理——图像的分割实验
- 自相关法基频计算matlab.rar
- 结构动力学使用中心差分法计算单自
- MATLAB实现利用形态学方法去噪腐蚀和
- MATLAB实现种子生长法进行图像分割
- PGSA主代码
- 小波变换可用例程
- 高斯-勒让德积分Gauss-legendre积分matl
- 一种基于MATLAB的机械臂工作空间简单
- Kalman滤波在船舶GPS导航定位系统中的
- rddata.m -- MIT-BIH ECG 信号的数据读取M
- 线性递减权重粒子群算法MATLAB代码
- matlab排序程序
- Lorenz系统和Chua系统MATLAB仿真
- 电力系统状态估计-最小二乘法-matla
- 雷达系统设计MATLAB仿真.zip
- matlab粒子群工具箱
- 太阳能电池板MATLAB模型
- 蝙蝠算法优化源代码
- 电力电子AC-DC整流MATLAB仿真.rar
- Matlab基本初等函数.doc
- 单个点经纬度转换坐标
- surf图像匹配
评论
共有 条评论