Return to Snippet

Revision: 44311
at April 9, 2011 19:41 by bfrank


Initial Code
% 10.10 Project
% Spring 2011
% Jackie Simpson and Ben Frank
%==========================================================================
%   Program Entry                                                        ||
%==========================================================================
function Project_OLED_Dyes
% This is the top-level routine of the program. This is also the program 
% entry-point. 
%
% Tasks accomplished by this method:
% 
% 1. Sets global parameters for all parts of process by means of calling 
% functions that define numerical parameters for materials, reactions, processing
% units, and various economic parameters
%
% 2. After user input, determines whether program flow will proceed to
% carry out simple simulation for given values of the optimization
% variables, or automatic optimization
%
% 3. Calls optimizer or directs simple simulation
%
% 4. Displays the results of the simulation of optimization
%
% INPUTS - none (top-level routine)
% 
% OUPUTS - This routine in itself has no outputs but it directs the
% necessary subroutines to produce all output from the program
%
global FigureNumber
global ReactorHeater ReactionHeatingPeriod AmountSolvent_S2
% These are the 3 global optimization variables
%
%::::::::::::::::::::::::::::::::
% Step 1 - Set the parameters  ::
%::::::::::::::::::::::::::::::::------------------------------------------
%
FigureNumber = 0;
Set_Parameters;
% This function will set all the necessary parameters to their appropriate
% starting values

%::::::::::::::::::::::::::::::::::::::::::::::::::
% Step 2 - set the type of problem to be solved  ::
%::::::::::::::::::::::::::::::::::::::::::::::::::------------------------
%
% invoke the graphical user interface
mygui;
% At this point, program control shifts to the user to define the type of
% problem to be solved. The user will do this by selecting one of two
% buttons. Then, the function mygui will call the necessary methods to
% solve the problem, passing whatever variables are necessary to the simulator 
% and optimizer methods as inputted by the user. 
end

Initial URL


Initial Description


Initial Title
Project_OLED_Dyes

Initial Tags


Initial Language
MatLab