📄 fxcall.m
字号:
function Fxcall(a)
global DAE Bus Pod
if ~a.n, return, end
V = DAE.V(a.bus);
ist = DAE.x(a.ist);
Kr = a.con(:,5);
Tr = a.con(:,6);
ist_max = a.con(:,7);
ist_min = a.con(:,8);
DAE.Fx = DAE.Fx + sparse(a.ist,a.ist,-1./Tr,DAE.n,DAE.n);
u = (ist <= ist_max & ist >= ist_min);
DAE.Gx = DAE.Gx - sparse(Bus.n+a.bus,a.ist,u.*V,2*Bus.n,DAE.n);
DAE.Fy = DAE.Fy - sparse(a.ist,Bus.n+a.bus,u.*Kr./Tr, ...
DAE.n,2*Bus.n);
if a.pod
DAE.Fx(a.ist(a.pod),Pod.Vs(Pod.statcom)) = ...
Pod.u(Pod.statcom).*u(a.pod).*Kr(a.pod)./Tr(a.pod);
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -