📄 cola_lv_lin.m
字号:
function [f,g]=cola_lin_lv(X,u)%% cola_lin_lv - This function designed for use with 'cola_linearize.m' to% create a linear model of a LV-distillation column.%% x - states (liquid composition and liquid hold up)% u - inputs and disturbances (reflux, boilup, feedrate and feed% composition)% g - outputs (distillate and bottoms compostition)%% NOTE: Everything here is row vectors rather than columnn vectors%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%NT=41;% Splitting the statesx=X(1:NT); % Liquid compositionM=X(NT+1:2*NT); % Liquid hold up% Inputs and disturbancesLT=u(1); % RefluxVB=u(2); % BoilupF= u(3); % FeedratezF=u(4); % Feed compositionqF=1.0; % Feed liquid fraction % Use qF=u(5) if qF is to be included in linear model% P-Controllers for control of reboiler and condenser hold up.KcB=10; KcD=10; % controller gainsMDs=0.5; MBs=0.5; % Nominal holdups - these are rather small Ds=0.5; Bs=0.5; % Nominal flowsMB=X(NT+1); MD=X(2*NT); % Actual reboiler and condenser holdupD=Ds+(MD-MDs)*KcD; % Distillate flowB=Bs+(MB-MBs)*KcB; % Bottoms flow % Store all inputs and disturbancesU(1)=LT; U(2)=VB; U(3)=D; U(4)=B; U(5)=F; U(6)=zF; U(7)=qF;% This variable is not usedt=0;xprime=colamod(t,X',U');% Outputf=xprime';g=[x(NT),x(1)];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -