代码搜索结果
找到约 10,000 项符合
CAN Bus 的代码
fm_mn.m
function fm_mn(flag)
% FM_MN defines Monomial Loads
%
% FM_MN(FLAG)
% FLAG = 0 initialization
% FLAG = 1 algebraic equations
% FLAG = 2 algebraic Jacobians
%
%Author: Federico Mil
fm_hvdc.m
function fm_hvdc(flag)
% FM_HVDC define HVDC transmission system
%
% FM_HVDC(FLAG)
% FLAG = 0 initialization
% FLAG = 1 algebraic equations
% FLAG = 2 algebraic Jacobians
% FL
pvlim.m
function [qmax,qmin] = pvlim(a,q)
global Bus
if ~a.n
qmax = [];
qmin = [];
return
end
qmax = find(Bus.Qg(a.bus) > a.con(:,6));
qmin = find(Bus.Qg(a.bus) < a.con(:,7));
fm_phs.m
function fm_phs(flag)
%FM_PHS defines Phase Shifting Transformer
%
%Data Format Phs.con:
% col #1: Bus 1 number
% col #2: Bus 2 number
% col #3: Power rate [MVA]
%
fm_exload.m
function fm_exload(flag)
% FM_EXLOAD defines exponential recovery load
%
% FM_EXLOAD(FLAG)
% FLAG = 0 -> initialization
% FLAG = 1 -> algebraic equations
% FLAG = 2 -> algebraic Jac
pqshunt.m
function y = pqshunt(a,idx)
global DAE Shunt Bus
g = a.con(idx,4)./(DAE.V(a.bus(idx)).^2);
b = -a.con(idx,5)./(DAE.V(a.bus(idx)).^2);
Shunt.g(a.bus(idx)) = Shunt.g(a.bus(idx)) + g;
Shunt.b(a.bus(idx
glcall.m
function Glcall(p)
global DAE Bus
if ~p.n, return, end
DAE.Gl(p.bus) = DAE.Gl(p.bus) + p.con(:,4);
DAE.Gl(Bus.n+p.bus) = DAE.Gl(Bus.n+p.bus) + p.con(:,5);
fm_fl.m
function fm_fl(flag)
% FM_FL define General Exponential Voltage Frequency Dependent Loads
%
%FM_FL(FLAG)
% FLAG = 0 initialization
% FLAG = 1 algebraic equations
% FLAG = 2 algebraic
swlim.m
function [qmax,qmin] = swlim(a,q)
global Bus
if ~a.n
qmax = [];
qmin = [];
return
end
qmax = find(Bus.Qg(a.bus) > a.con(:,6));
qmin = find(Bus.Qg(a.bus) < a.con(:,7));
fm_mixed.m
function fm_mixed(flag)
% FM_MIXED defines Mixed Loads
%
% FM_MIXED(FLAG)
% FLAG = 0 initialization
% FLAG = 1 algebraic equations
% FLAG = 2 algebraic Jacobians
% FLAG = 3 di