MATLAB Examples

Contents

Load in Industrial Batch data file

as
function [batchFile,color_number,V_sf,PAA_c,N_conc_paa,alpha_kla] = Ind_Batch_data(Batch_no)
% Calls historical batch data including key batch characteristics

Batch 1

if  Batch_no == 1
    batchFile = 'ind-data/Batch_1.xls';
    color_number =1;
    V_sf = 1; % Volume smoothing factor
    PAA_c = 555000; % Concentration of PAA in F_{PAA} [mg/L]
    N_conc_paa = 122500;%  Concentration of N in F_{PAA} [mg/L]
    alpha_kla = 60; % kla coefficient

end
Error using Ind_Batch_data (line 6)
Not enough input arguments.

Batch 2

if Batch_no ==2;
    batchFile = 'ind-data/Batch_2.xls';
    color_number =2;
    V_sf = 200;       % Volume smoothing factor
    PAA_c = 538000;    % Concentration of PAA in F_{PAA} [mg/L]
    N_conc_paa = 95000;% Concentration of N in F_{PAA} [mg/L]
    alpha_kla = 85; % kla coefficient
end

Batch 3

if Batch_no ==3;
    batchFile = 'ind-data/Batch_3.xls';  % 21st Feb 1998
    color_number = 3 ;
    V_sf = 1; % Volume smoothing factor
    PAA_c = 479500; % Concentration of PAA in F_{PAA} [mg/L]
    N_conc_paa = 75000;% Concentration of N in F_{PAA} [mg/L]
    alpha_kla = 65; % kla coefficient
end

Batch 4

if Batch_no ==4;
    batchFile = 'ind-data/Batch_4.xls';
    color_number = 4;
    V_sf = 7; % Volume smoothing factor
    PAA_c = 520000; % Concentration of PAA in F_{PAA} [mg/L]
    N_conc_paa = 75000;% Concentration of N in F_{PAA} [mg/L]
    alpha_kla = 88; % kla coefficient
end

Batch 5

Batch 5

if Batch_no ==5;
    batchFile = 'ind-data/Batch_5.xls';
    color_number = 5;
    V_sf = 1; % Volume smoothing factor
    PAA_c = 540000;% Concentration of PAA in F_{PAA} [mg/L]
    N_conc_paa =  90000;%Concentration of N in F_{PAA} [mg/L]
    alpha_kla = 95; % kla coefficient
end

Batch 6

if Batch_no==6
    batchFile = 'ind-data/Batch_6.xls';
    color_number =6;
    V_sf = 1; % Volume smoothing factor
    PAA_c = 445000; % Concentration of PAA in F_{PAA} [mg/L]
    N_conc_paa =  75000;%Concentration of N in F_{PAA} [mg/L]
    alpha_kla = 95; % kla coefficient
end

Batch 7

if Batch_no ==7
    batchFile = 'ind-data/Batch_7.xls'; % perfect
    color_number = 7;
    V_sf = 9; % Volume smoothing factor
    PAA_c =  513000; % Concentration of PAA in F_{PAA} [mg/L]
    N_conc_paa = 18750;% Concentration of N in F_{PAA} [mg/L]
    alpha_kla = 80; % kla coefficient
end

Batch 8

if Batch_no ==8
    batchFile = 'ind-data/Batch_8.xls'; %
    color_number = 8;
    V_sf = 9; % Volume smoothing factor
    PAA_c =  500000; % Concentration of PAA in F_{PAA} [mg/L]
    N_conc_paa = 1.5*75000;%Concentration of N in F_{PAA} [mg/L]
    alpha_kla = 90; % kla coefficient
end

Batch 9

if Batch_no==9;
    batchFile = 'ind-data/Batch_9.xls';   % B-H fault and V is very off
    color_number = 9;
    V_sf = 1; % Volume smoothing factor
    PAA_c = 507500; % Concentration of PAA in F_{PAA} [mg/L]
    N_conc_paa =  105250;% Concentration of N in F_{PAA} [mg/L]
    alpha_kla = 95; % C
end

Batch 10

if Batch_no==10
    batchFile = 'ind-data/Batch_10.xlsx';  % 27 Jan 2001 6000 litres added Ignore as volume is too different
    color_number = 10;
    V_sf = 1; % Volume smoothing factor
    PAA_c = 450000; % Concentration of PAA in F_{PAA} [mg/L]
    N_conc_paa =  56250;% Concentration of N in F_{PAA} [mg/L]
    alpha_kla =  110; % kla coefficient
end

Copyright

Stephen Goldrick, September, 2014 Newcastle University/Manchester University/ Perceptive Engineering

All rights reserved. Copyright (c) Newcastle University, Manchester University and Perceptive Engineering.