function xprime=input_rectifier(t,X) 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% Program written by Stathis Skouras, August 2003 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Number of stages in the rectifying section: 
Nr=51;
% Total number of 'stages'  
NT=Nr+2;

% Inputs
VB=5;                                  % Boilup (kmol/hr)
L0=VB;                                 % Nominal liquid flows in both sections of the column (kmol/hr)

% T-controller for the reflux of the organic phase
Kc1=0.155;                             % Controller gain  
Tsp1=85.2;                             % Temperature set-point (in the middle of the rectifying section) 

% Precaution for the decanter so as the organic phase does not dissapear
Hmin=0.035;                            % Minimum organic phase holdup in the decanter (kmol)   

% Store all inputs and disturbances
U(1)=VB; U(2)=L0; U(3)=Kc1; U(4)=Tsp1; U(5)=Hmin; 
xprime=rectifier(t,X,U);
t