代码搜索结果
找到约 10,000 项符合
0 的代码
setx0.m
function a = setx0(a)
global DAE Syn
if ~a.n, return, end
xd = a.con(:,4);
xq = a.con(:,5);
idx = find(a.con(:,3));
xd(idx) = Syn.con(a.syn(idx),8);
xq(idx) = Syn.con(a.syn(idx),13);
a.con(idx,4
setx0.m
function a = setx0(a)
global DAE PQ
if ~a.n, return, end
V1 = DAE.y(a.vbus);
t1 = DAE.y(a.bus);
for k = 1:a.n
idx = findbus(PQ,a.bus(k));
if isempty(idx)
warn(a,idx,'No PQ load found for
setx0.m
function a = setx0(a)
global DAE Bus Settings jay
if ~a.n, return, end
% machine dynamic orders
ord = a.con(:,5);
% indexes of machine orders
is2 = find(ord == 2);
is3 = find(ord == 3);
is4 = find
setx0.m
function a = setx0(a)
global DAE Syn
if ~a.n, return, end
% AVR types
type = a.con(:,2);
ty1 = find(type == 1);
ty2 = find(type == 2);
ty3 = find(type == 3);
% bus voltages, field voltages & commo
setx0.m
function a = setx0(a)
global DAE
if ~a.n, return, end
Kw = a.con(:,7);
Tw = a.con(:,8);
T2 = a.con(:,10);
T4 = a.con(:,12);
Tr = a.con(:,13);
idx = find(Tw == 0);
if idx,
a.con(idx,7) = 1;
war
setx0.m
function a = setx0(a)
global DAE PQ
if ~a.n, return, end
V = DAE.y(a.vbus);
T1 = a.con(:,6);
Ta = a.con(:,7);
Tref = a.con(:,8);
K1 = a.con(:,10);
KL = a.con(:,11);
Pl = zeros(a.n,1);
% get power
setx0.m
function a = setx0(a)
global DAE
if ~a.n, return, end
% variable initialization
DAE.x(a.q1) = 1;
DAE.y(a.q) = 1;
% pilot bus voltage reference
a.con(:,5) = DAE.y(a.vbus);
fm_disp('Initialization
setx0.m
function a = setx0(a)
if ~a.n, return, end
global PQ DAE Bus
V = DAE.y(a.vbus);
i = find(a.con(:,11));
for j = 1:length(i)
k = i(j);
idx = findbus(PQ,a.bus(k));
if isempty(idx)
fm_disp([
setx0.m
function a = setx0(a)
global Syn DAE
if ~a.n, return, end
Porder = Syn.pm0(a.syn);
if a.ty1
Porder1 = Porder(a.ty1);
gain = 1./a.con(a.ty1,4);
tmax = a.con(a.ty1,5);
tmin = a.con(a.ty1,