680 likes | 790 Views
Tier. 2. Use of computer as a simulation tool. Statement of intent. Use of computer as simulation tool. It contain a series of closed problems with their solution. It is explained the assumption made, and the methods apply to solve them.
E N D
Tier 2 Use of computer as a simulation tool
Statement of intent Use of computer as simulation tool It contain a series of closed problems with their solution. It is explained the assumption made, and the methods apply to solve them. • To review the process to create a simulation flowsheet. • To give the student some tips to simulate. • To run some simulations in a computer.
Contents Table of content • Solving closed problem. • Resolution of problems with a spreadsheet (excel). • Using advance mathematic software (matlab). • Separation NH4 – H20 using specialize software (aspen tech). • Using tools as sensitivity analysis and optimization.
Closed problems Closed Problems Closed problems are the type with only one right answer. These are the same types of problems that are usually found at the end of chapters in text books, and they reinforce concepts learned in the corresponding chapters.
Closed problems Algorithm • Write out the problem statement. • Draw and label a sketch. • List assumptions and approximations involved in solving the problem.
Closed problems Algorithm • Check to see if the problem is either under – specified or over – specified. • Relate problem to a similar problem or experience. • Develop, derive, integrate or manipulate an equation from which the desired variable can be determined.
Closed problems Algorithm • Substitute numerical values and calculate the desired variable. • Examine and evaluate the answer to see it makes sense.
Closed problems Some advice when running a simulation • Are you designing trays? Pressure drop is important and surface tension plays a key role in pressure drop calculation. • Do you have azeotropes? Do you suspect they may exist? Check them out before proposing a modification that will violate the second law of thermodynamics. • Trace components should not be brushed aside.
Closed problems Some advice when running a simulation • Check your pure component and mixture densities. • Check your pure-component and mixture enthalpies and heat capacities if you are going to do any calculations related to energy balance. • Are you going to design heat exchangers? It is good idea to check your transport properties.
Closed problems Some Advice when running a simulation • Talk with people.(chemist, vendor, other engineers doing the same). • Beware of using estimated parameters and interaction parameters when screening process alternatives. • Go see the plant. Plant personnel are usually helpful. Their insight and your knowledge of modeling can form a strong bond for problem solving.
Closed problems Some Advice when running a simulation Simulation is a means, not an end, no matter how much effort you put into the model. Once, after finishing a large simulation model with several hundreds of unit operations, one of us had to spend many hours fixing the model, because air leakage into equipment was not taken into account.
Closed problems Commercial Simulation Software Packages There are many of them, some of them are: • Excel (spreadsheet) • Matlab (matrix laboratory) • Fortran (programming language) • Aspen tech • WinGEMS • CADSIM plus PAPDYN • G2 (Gensym) • IDEAS (Simons)
Using spreadsheets Excel spreadsheet Used to calculate small mass or energy balances from the conservation equations Pinch Analysis Add new streams Add new streams
Advance mathematic software Matlab Is a mathematic specialized software, which allows one to make use of complicate equations, with rigorous iterative convergence methods in an easier way.
Advance mathematic software Reaction profile of the pulp digester
Advance mathematic software Mathematical Model • The main equations in the model: 0 0 0
Advance mathematic software Source Code is a series of instructions with a specific sequence, to solve the mathematical equation.
Advance mathematic software Behavior Expected Solving the model with the corresponding assumptions, and the mathematics calculation, the graphic output of the simulation is shown.
Using specialized software What do more advanced simulation package offer? The use of specialized software, allows one to solve complicated problems, using relationships such as mass and energy balances, phase and chemical equilibrium, and reaction kinetics, with thermodynamic data, and rigorous equipment models.
Using specialized software Advantage of specialized software • Interactive interface. • Different forms to enter data. • Verification of incoming data against ranges. • Check degrees of freedom. • Sensitivity analysis. • Optimization capabilities. • Easy way to display results.
Solution of some problems using specialized software • NH4 – H2O separation. • Sensitivity analysis of C2H5Cl manufacture. • Optimization of C2H5Cl manufacture.
NH4 – H2O separation Problem statement Determine what will be the liquid composition and the vapor composition after the separation.
NH4 – H2O separation Drawing the diagram • Crating a process flowsheet.
NH4 – H2O separation Giving name, and selecting units to use
NH4 – H2O separation Components and Method • Insert the components to use. • Chose the base method to solve the equations.
NH4 – H2O separation RK-Soave Use this method for non-polar, mildly polar mixtures. This property method is particularly suitable in the high temperature and high pressure regions. It is recommended for gas – processing, refinery, and petrochemical applications.
NH4 – H2O separation Specify feed stream • Specify the assumption made, and the characteristics in the feed.
NH4 – H2O separation Specifying the process • Give the specification to the condenser. • Specify the valve assumptions.
NH4 – H2O separation Specifying the process • Specify the separator conditions. • Run the simulation.
NH4 – H2O separation Checking results • The flow in “vap” stream is mainly ammonia, so we can appreciate the separation.
NH4 – H2O separation What can be done with simulation • Steady state simulation is useful to predict the behave of a process in the plant. • What if, situations can be check with simulation. • Sensitivity analysis and optimization problems.
Sensitivity analysis C2H5Cl Sensitivity Analysis Is a useful tool to know the respond of the output variable when the input is varied in a range. With this information one can appreciate which variable cause the biggest change in the process. Is easier to make a decision in the parameter we obtain best results.
Sensitivity analysis C2H5Cl Ethyl chloride manufacture One of the routes to produce ethyl chloride is by the gas phase reaction of HCl with ethylene over a copper chloride catalyst: Objective: Observe the effect in “recycle” stream, “recycle” composition and “product” stream when the flow in “w” stream vary from 5 to 13 kmol/h.
P=1 Atm. 10 kmol/h 90% conversion C2H4 DP=0 T=25 C P=1 Atm. P=1 Atm. T=25 C 50% mol HCl 48% mol C2H4 2% mol N2 P=1 Atm. C2H5Cl Pure Sensitivity analysis C2H5Cl Diagram
Sensitivity analysis C2H5Cl Input to run Simulation • Give a name, and select the specific units to the process. • Select the compounds in the process.
Sensitivity analysis C2H5Cl Input to run Simulation • Select the base method used to calculate the thermodynamic and transport properties.
Sensitivity analysis C2H5Cl Peng – Robison Method It is recommended for hydrocarbon processing application such as gas processing, refinery, and petrochemical process. D.-Y. Peng and D. B. Robinson, "A New Two-Constant Equation-of-state," Ind. Eng. Chem. Fundam., Vol. 15, (1976), pp. 59–64.
Sensitivity analysis C2H5Cl Input to run simulation • For feed stream, give the input data specified.
Sensitivity analysis C2H5Cl Input to run simulation • For the mixer block give the next specifications.
Sensitivity analysis C2H5Cl Input to run simulation • For the reaction block: Specifications Reaction
Sensitivity analysis C2H5Cl Input to run simulation • For the “sep” block, enter the next input data
Sensitivity analysis C2H5Cl Input to run simulation • For the “split” block, enter the next input data Now, it is possible to run the simulation. In order to create a sensitivity analysis, the next steps need to be added.
Sensitivity analysis C2H5Cl Input to Sensitivity analysis • Chose model analysis tools from data menu, and then sensitivity.
Sensitivity analysis C2H5Cl Input to Sensitivity analysis • Create a new sensitivity analysis case “weffect” Create the next three variables in the case.
Sensitivity analysis C2H5Cl Input to Sensitivity analysis • In the vary tab, input the next data which is the variable range.