代码搜索结果

找到约 10,000 项符合 0 的代码

setx0.m

function a = setx0(a) global DAE Settings if ~a.n, return, end x = DAE.x(a.x); w = DAE.x(a.w); theta = DAE.y(a.bus); Tf = a.con(:,2); Tw = a.con(:,3); theta0 = a.dat(:,1); k = a.dat(:,2); %check t

setx0.m

function a = setx0(a) global DAE PQ Bus if ~a.n, return, end % parameter initialization % dat: % col #1: P0 % col #2: Q0 % col #3: V0 a.dat(:,3) = DAE.y(a.vbus); for i = 1:a.n idx = findbus

setx0.m

function a = setx0(a) global DAE PQ Bus if ~a.n, return, end V = DAE.y(a.vbus); for i = 1:a.n idx = findbus(PQ,a.bus(i)); if isempty(idx) fm_disp(['No PQ load found for initializing freque

setx0.m

function a = setx0(a) global Bus DAE Settings Wind if ~a.n, return, end check = 1; Wn = 2*pi*Settings.freq; V = DAE.y(a.vbus); rho = getrho(Wind,a.wind); % Constants % x0 a.dat(:,1) = a.con(:,7)

setx0.m

function a = setx0(a) global DAE Syn if ~a.n, return, end for i = 1:a.n idx = a.syn{i}; DAE.y(a.delta(i)) = sum(a.M(idx).*DAE.x(a.dgen(idx)))/a.Mtot(i); end DAE.y(a.omega) = 1; fm_disp('Initia

setx0.m

function setx0(a) global DAE if ~a.n, return, end delta = a.u.*DAE.x(a.delta); omega = a.u.*DAE.x(a.omega); Tm = a.u.*DAE.y(a.pm); K12 = a.con(:,14); K23 = a.con(:,15); K34 = a.con(:,16); DAE.x(a

setx0.m

function a = setx0(a) global Line DAE Settings if ~a.n, return, end % reset transmission line reactance and admittance matrix Line = mulxl(Line,a.line,1./(1-a.u.*a.Cp)); if sum(a.u), Line = build_y

setx0.m

function a = setx0(a) global Bus DAE if ~a.n, return, end V = DAE.y(a.vbus); theta = DAE.y(a.bus); xd = a.con(:,5); xq = a.con(:,6); ra = a.con(:,7); xad = a.con(:,8); r = a.con(:,9); xl = a