📄 gycall.m
字号:
function Gycall(p)
global Bus DAE
if ~p.n, return, end
a = find(DAE.V(p.bus) < p.con(:,7) & p.con(:,8));
b = find(DAE.V(p.bus) > p.con(:,6) & p.con(:,8));
if ~isempty(a)
h = p.bus(a);
DAE.J12(h,h)= DAE.J12(h,h) + ...
diag(2*p.con(a,4).*DAE.V(h)./p.con(a,7)./p.con(a,7));
DAE.J22(h,h)= DAE.J22(h,h) + ...
diag(2*p.con(a,5).*DAE.V(h)./p.con(a,7)./p.con(a,7));
end
if ~isempty(b)
h = p.bus(b);
DAE.J12(h,h)= DAE.J12(h,h) + ...
diag(2*p.con(b,4).*DAE.V(h)./p.con(b,6)./p.con(b,6));
DAE.J22(h,h)= DAE.J22(h,h) + ...
diag(2*p.con(b,5).*DAE.V(h)./p.con(b,6)./p.con(b,6));
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -