代码搜索结果
找到约 10,000 项符合
CAN Bus 的代码
makeptdf.m
function H = makePTDF(baseMVA, bus, branch, slack)
%MAKEPTDFDC Builds the DC PTDF matrix for a given choice of slack.
% H = makePTDF(baseMVA, bus, branch, slack) returns the DC PTDF
% matrix for
gcall.m
function a = gcall(a)
global Bus DAE
if ~a.n, return, end
V1 = DAE.V(a.bus1);
V2 = DAE.V(a.bus2);
a1 = DAE.a(a.bus1);
a2 = DAE.a(a.bus2);
vp = DAE.x(a.vp);
vq = DAE.x(a.vq);
iq = DAE.
fm_ncomp.m
function fm_ncomp
% FM_NCOMP search components used in the current data
% file and initializes fields used for power
% flow computations.
%
% CHECK = FM_NCOMP
%
%see also FM_S
fxcall.m
function Fxcall(a)
global DAE Bus
if ~a.n, return, end
iTf = 1./a.con(:,5);
Kv = a.con(:,12);
DAE.Fx = DAE.Fx + sparse(a.x,a.x,-iTf,DAE.n,DAE.n);
DAE.Fy = DAE.Fy + sparse(a.x,a.bus+Bus.n
gycall.m
function Gycall(a)
global Bus DAE
if ~a.n, return, end
V1 = DAE.V(a.bus);
Tf = a.con(:,5);
Plz = a.con(:,6);
Pli = a.con(:,7);
Qlz = a.con(:,9);
Qli = a.con(:,10);
Kv = a.con(:,12);
V1
fm_pl.m
function fm_pl(flag)
% FM_PL define Polinomial Loads
%
% FM_PL(FLAG)
% FLAG -> 0 initialization
% FLAG -> 1 algebraic equations
% FLAG -> 2 algebraic Jacobians
%
%Author:
fex_nrloop.m
function fex_nrloop(tol,itermax)
% FEX_NRLOOP -> called by FEX_ABCD
% Perform Newton Raphson for non linear algebraic equation
% solution
%
% Author: Alberto Del Rosso
% Date: June 2004
%
gcall.m
function gcall(a)
global Bus DAE
if ~a.n, return, end
DAE.gq = DAE.gq - sparse(a.bus,1,DAE.x(a.ist).* DAE.V(a.bus),Bus.n,1);
gycall.m
function Gycall(a)
global Bus DAE
if ~a.n, return, end
DAE.J22 = DAE.J22 - sparse(a.bus,a.bus,DAE.x(a.ist),Bus.n,Bus.n);
gcall.m
function gcall(a)
global Bus DAE
if ~a.n, return, end
V = DAE.V(a.bus);
B = bsvc(a);
DAE.gq = DAE.gq + sparse(a.bus,1,-B.*V.*V,Bus.n,1);