Sie sind auf Seite 1von 2

QUESTION 2 (C)

Tjs=150;
Tjis=200;
Ts=125;
pCp=61.3;
pjCpj=61.3;
v=10;
vj=2.5;
UA=183.9;
Fjs=1.5;

%non-linear model
dTdt=@(t,T)[(Fs/v)*(Tis-T(1))+(UA/(v*pCp))*(T(2)-T(1));(1.002*Fjs/vj)*(Tjis-
T(2))-(UA/(vj*pjCpj))*(T(2)-T(1))];
tspan=[0 60];
options=odeset('RelTol',1e-6,'AbsTol',1e-8);
[t,T]=ode45(dTdt,tspan,[Ts;Tjs],options);

A=[-0.4 0.3;1.2 -1.8];


B=[0 7.5 0.1 0;20 0 0 0.6];
x0=[0;0];
u=[0.002*Fjs;0;0;0];

%linear model
dxdt=@(tl,x)A*x+B*u;
tspan=[0 60];
options=odeset('RelTol',1e-6,'AbsTol',1e-8);
[tl,x]=ode45(dxdt,tspan,x0,options);
x=[x(:,1)+125 x(:,2)+150];
plot(t,T(:,1),'r',tl,x(:,1),'b')
xlabel('t=min')
ylabel('T=degree celcius')
legend('T=non-linear','x=linear')
QUESTION 2(D)

Fs=1;
Tis=50;
Tjs=150;
Tjis=200;
Ts=125;
pCp=61.3;
pjCpj=61.3;
v=10;
vj=2.5;
UA=183.9;
Fjs=1.5;

%non-linear model
dTdt=@(t,T)[(Fs/v)*(Tis-T(1))+(UA/(v*pCp))*(T(2)-T(1));(1.1*Fjs/vj)*(Tjis-
T(2))-(UA/(vj*pjCpj))*(T(2)-T(1))];
tspan=[0 60];
options=odeset('RelTol',1e-6,'AbsTol',1e-8);
[t,T]=ode45(dTdt,tspan,[Ts;Tjs],options);

A=[-0.4 0.3;1.2 -1.8];


B=[0 7.5 0.1 0;20 0 0 0.6];
x0=[0;0];
u=[0.1*Fjs;0;0;0];

%linear model
dxdt=@(tl,x)A*x+B*u;
tspan=[0 60];
options=odeset('RelTol',1e-6,'AbsTol',1e-8);
[tl,x]=ode45(dxdt,tspan,x0,options);
x=[x(:,1)+125 x(:,2)+150];
plot(t,T(:,1),'r',tl,x(:,1),'b')
xlabel('t=min')
ylabel('T=degree celcius')
legend('T=non-linear','x=linear')

Das könnte Ihnen auch gefallen