📄 fm_abcd.m
字号:
function fm_abcd% FM_ABCD sets up matrices A, B, C and D for linear analysis% The matrices are stored in the structure LA. %% Synthax:%% FM_ABCD%%Author: Federico Milano%Date: 29-Mar-2008%Version: 1.0.0%%E-mail: Federico.Milano@uclm.es%Web-site: http://www.uclm.es/area/gsee/Web/Federico%% Copyright (C) 2002-2008 Federico Milanoglobal LA DAE Exc Tg Lineglobal Svc Tcsc Statcom Sssc Upfc Hvdcfm_disp% Check for dynamic componentsif ~DAE.n fm_disp('No dynamic component is loaded.') fm_disp('Computation of linear dynamic matrices aborted.') returnendfm_disp('Computation of input/output matrices A,B,C,D:')fm_dispfm_disp('[Delta dx/dt] = [A] [Delta x] + [B] [Delta u]')fm_disp(' [Delta y] = [C] [Delta x] + [D] [Delta u]')fm_dispfm_disp('These matrices are stored in structure LA.')n = DAE.n+DAE.m;% -------------------------------------------------------------------% B & D matrices% -------------------------------------------------------------------LA.d_y = 0;bdmatrix(Exc); % define LA.b_avr LA.d_avrbdmatrix(Tg); % define LA.b_tg LA.d_tgbdmatrix(Svc); % define LA.b_svc LA.d_svcbdmatrix(Tcsc); % define LA.b_tcsc LA.d_tcsc bdmatrix(Statcom); % define LA.b_statcom LA.d_statcombdmatrix(Sssc); % define LA.b_sssc LA.d_ssscbdmatrix(Upfc); % define LA.b_upfc LA.d_upfcbdmatrix(Hvdc); % define LA.b_hvdc LA.d_hvdc% -------------------------------------------------------------------% C matrices % -------------------------------------------------------------------LA.c_y = -full(DAE.Gy\DAE.Gx); % define LA.c_y (algebraic variables as output)% -------------------------------------------------------------------% H matrices % -------------------------------------------------------------------hmatrix(Line); % define LA.h_ps LA.h_qs LA.h_is % LA.h_pr LA.h_qr LA.h_ir% -------------------------------------------------------------------% A matrix% -------------------------------------------------------------------LA.a = full(DAE.Fx + DAE.Fy*LA.c_y);fm_disp('Computation of input/output matrices completed.')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -