{"id":4752,"date":"2024-10-06T13:55:39","date_gmt":"2024-10-06T13:55:39","guid":{"rendered":"https:\/\/workhouse.sweetdishy.com\/?p=4752"},"modified":"2024-10-06T13:55:40","modified_gmt":"2024-10-06T13:55:40","slug":"main-concepts-2","status":"publish","type":"post","link":"https:\/\/workhouse.sweetdishy.com\/index.php\/2024\/10\/06\/main-concepts-2\/","title":{"rendered":"Main Concepts"},"content":{"rendered":"\n<p>As explained in\u00a0Chapter 6, a plant\u00a0<strong>flowsheet<\/strong>\u00a0such as the simple diagram in\u00a0Figure 14.1\u00a0mirrors the stream network and equipment arrangement in a process. Once the process flowsheet is specified, or during its formulation, the solution of the appropriate process material and energy balances is referred to as\u00a0<strong>process simulation<\/strong>\u00a0or\u00a0<strong>flowsheeting,<\/strong>\u00a0and the computer code used in the solution is known as a\u00a0<strong>process simulator<\/strong>\u00a0or\u00a0<strong>flowsheeting code.<\/strong>\u00a0Codes for both steady-state and dynamic processes exist. The essential problem in flowsheeting is to solve (satisfy) a large set of linear and nonlinear equations and constraints to an acceptable degree of precision. Such a program can also, at the same time, determine the size of equipment and piping, evaluate costs, and optimize performance.\u00a0Figure 14.2\u00a0shows the information flow that occurs in a process simulator.<\/p>\n\n\n\n<p>The software must facilitate the transfer of information between equipment and streams, have access to a reliable database, and be flexible enough to accommodate equipment specifications provided by the user to supplement the library of programs that come with the code. Fundamental to all flowsheeting codes is the calculation of mass and energy balances for the entire process. Valid inputs to the material and energy balance phase of the calculations for the flowsheet must be defined in sufficient detail to determine all of the intermediate and product streams and the unit performance variables for all units.<\/p>\n\n\n\n<figure class=\"wp-block-image\" id=\"ch14fig01\"><img decoding=\"async\" src=\"https:\/\/learning.oreilly.com\/api\/v2\/epubs\/urn:orm:book:9780137327164\/files\/graphics\/14fig01.jpg\" alt=\"A diagram represents the flowsheet for a process with a reaction.\"\/><\/figure>\n\n\n\n<p>Frequently, process plants contain recycle streams and control loops, and the solution for the stream properties requires iterative calculations. Thus, efficient numerical methods must be used. In addition, appropriate physical properties and thermodynamic data have to be retrieved from a database. Finally, a master program must exist that links all of the building blocks, physical property data, thermodynamic calculations, subroutines,&nbsp;and numerical subroutines, and that also supervises the information flow. You will find that optimization and economic analysis are often the ultimate goals in the use of flowsheeting codes.<\/p>\n\n\n\n<figure class=\"wp-block-image\" id=\"ch14fig02\"><img decoding=\"async\" src=\"https:\/\/learning.oreilly.com\/api\/v2\/epubs\/urn:orm:book:9780137327164\/files\/graphics\/14fig02.jpg\" alt=\"A diagram represents the information flow in a flow sheeting code.\"\/><\/figure>\n\n\n\n<p>Other specific applications include<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Steady- and unsteady-state simulation to help improve and verify the design of a process and examine complicated or dangerous designs<\/li>\n\n\n\n<li>Training of operators<\/li>\n\n\n\n<li>Data acquisition and reconciliation<\/li>\n\n\n\n<li>Process control, monitoring, diagnostics, and troubleshooting<\/li>\n\n\n\n<li>Optimization of process performance<\/li>\n\n\n\n<li>Management of information<\/li>\n\n\n\n<li>Safety analysis<\/li>\n<\/ol>\n\n\n\n<p>Typical unit process models found in process simulators for both steady-state and unsteady-state operations include<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Reactors of various kinds<\/li>\n\n\n\n<li>Phase separation equipment<\/li>\n\n\n\n<li>Ion exchange and absorption<\/li>\n\n\n\n<li>Drying<\/li>\n\n\n\n<li>Evaporation<\/li>\n\n\n\n<li>Pumps, compressors, blowers<\/li>\n\n\n\n<li>Mixers, splitters<\/li>\n\n\n\n<li>Heat exchangers<\/li>\n\n\n\n<li>Solid-liquid separators<\/li>\n\n\n\n<li>Solid-gas separators<\/li>\n\n\n\n<li>Storage tanks<\/li>\n<\/ol>\n\n\n\n<p>Features that you will find in a general process simulator include<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Unit and equipment models representing operations and procedures<\/li>\n\n\n\n<li>Software to solve material and energy balances<\/li>\n\n\n\n<li>An extensive database of physical properties<\/li>\n\n\n\n<li>Equipment sizing and costing functions<\/li>\n\n\n\n<li>Scheduling of batch operations<\/li>\n\n\n\n<li>Environmental impact assessment<\/li>\n\n\n\n<li>Compatibility with auxiliary graphics, spreadsheets, and word-processing functions<\/li>\n\n\n\n<li>Ability to import and export data<\/li>\n<\/ol>\n\n\n\n<p>Table 14.1\u00a0lists some commercial process simulators.<\/p>\n\n\n\n<p>From the viewpoint of a user of a process simulator code you should realize:<\/p>\n\n\n\n<p><strong>Table 14.1 Vendors of Commercial Process Simulators<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>Name of Program<\/strong><\/th><th><strong>Source<\/strong><\/th><\/tr><\/thead><tbody><tr><td>ABACUSS II<\/td><td>MIT, Cambridge, MA<\/td><\/tr><tr><td>Aspen Engineering Suite (AES)<\/td><td>Aspen Technology, Cambridge, MA<\/td><\/tr><tr><td>CHEMCAD<\/td><td>Chemstations, Houston, TX<\/td><\/tr><tr><td>DESIGN II<\/td><td>WinSim, Houston, TX<\/td><\/tr><tr><td>D-SPICE<\/td><td>Fantoft Process Technologies, Houston, TX<\/td><\/tr><tr><td>HYSIM, HYSYS<\/td><td>Hyprotech, Calgary, Alberta<\/td><\/tr><tr><td>PRO\/II, PROTISS<\/td><td>Simulation Sciences, Fullerton, CA<\/td><\/tr><tr><td>ProSim<\/td><td>Bryan Research and Engineering, Bryan, TX<\/td><\/tr><tr><td>SPEEDUP<\/td><td>Aspen Technology Corp., Cambridge, MA<\/td><\/tr><tr><td>SuperPro Designer<\/td><td>Intelligen, Scotch Plains, NJ<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Several levels of analysis can be carried out beyond just solving material balances, including solving material plus energy balances, determining equipment sizing, profitability analysis, and much more. Crude, approximate flowsheets are usually studied before fully detailed flowsheets.<\/li>\n\n\n\n<li>The results obtained by simulation rest heavily on the type and validity of the choices you make in the selection of the physical property package to be used.<\/li>\n\n\n\n<li>You have to realize that the basic function of the process simulator is to solve equations. In spite of the progress made in equation solvers in the last 50 years, the information structure you introduce into the code may yield erroneous or no results. Check essential results by hand. Limits introduced on the range of variables must be valid.<\/li>\n\n\n\n<li>A learning curve exists in using a process simulator so that initially a simple problem may take hours to solve, whereas as your familiarity with the simulator increases, it may take only minutes to solve the same problem.<\/li>\n\n\n\n<li>GIGO (Garbage In Garbage Out). You have to take care to put appropriate data and connections between units into the data files for the code. Some diagnostics are provided, but they cannot troubleshoot all of your blunders.<\/li>\n<\/ol>\n\n\n\n<p>Two extremes exist in process simulator software. At one extreme, the entire set of equations (and inequalities) representing the process is written down, including the material and energy balances, the stream connections, and the relations representing the equipment functions. This representation is known as the&nbsp;<strong>equation-oriented method<\/strong>&nbsp;of flowsheeting. The equations can be solved in a sequential fashion analogous to the modular representation described below, or simultaneously by Newton\u2019s method (or the equivalent), or by employing sparse matrix techniques to reduce the extent of matrix manipulations; you can find specific details in the references at the end of this chapter.<\/p>\n\n\n\n<p>At the other extreme, the process can be represented by a collection of modules (<strong>the modular method of flowsheeting<\/strong>) in which the equations (and other information) representing each subsystem or piece of equipment are collected together and coded so that the module may be used in isolation from the rest of the flowsheet and hence is portable from one flowsheet to another, or can be used repeatedly in a given flowsheet. A module is a model of an individual element in a flowsheet (such as a reactor) that can be coded, analyzed, debugged, and interpreted by itself. In its usual formulation it is an input-output model; that is, given the input values, the module calculates the output values, but the reverse calculation is not feasible. Units represented solely by equations sometimes can yield inputs given the outputs. Some modular-based software codes such as Aspen Plus integrate equations with modules to speed up the calculations.<\/p>\n\n\n\n<p>Another classification of flowsheeting codes focuses on how the equations or modules are solved. One treatment is to solve the equations or&nbsp;modules sequentially, and the other is to solve them simultaneously. Either the program and\/or the user must select the decision variables for recycle and provide estimates of certain stream values to make sure that convergence of the calculations occurs, especially in a process with many recycle streams.<\/p>\n\n\n\n<p>A third classification of flowsheeting codes is whether they solve steady-state or dynamic problems. We consider only the former here.<\/p>\n\n\n\n<p>We will review equation-based process simulators first, although historically modular-based codes were developed first, because they are much closer to the techniques described up to this point in this book, and then turn to consideration of modular-based flowsheeting.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"ch14lev2sec1\">14.1.1 Equation-Based Process Simulation<\/h4>\n\n\n\n<p>Sets of linear and\/or nonlinear equations can be solved simultaneously using an appropriate computer code. Equation-based flowsheeting codes have some advantages in that the physical property data needed to obtain values for the coefficients in the equations are transparently transmitted from a database at the proper time in the sequence of calculations.\u00a0Figure 14.3\u00a0shows the information flow corresponding to the flowsheet in\u00a0Figure 14.1.<\/p>\n\n\n\n<p>Figure 14.4\u00a0is a set of equations that represents the basic operation of a flash drum.<\/p>\n\n\n\n<p>The interconnections between the unit modules may represent information flow as well as material and energy flow. In the mathematical representation of\u00a0the plant, the interconnection equations are the material and energy balance flows between model subsystems. Equations for models such as mixing, reaction, heat exchange, and so on must also be listed so that they can be entered into the computer code used to solve the equation.\u00a0Figure 14.5\u00a0(and\u00a0Table 14.2) lists the common types of equations that might be used for a single subsystem.<\/p>\n\n\n\n<figure class=\"wp-block-image\" id=\"ch14fig03\"><a href=\"https:\/\/learning.oreilly.com\/library\/view\/basic-principles-and\/9780137327164\/ch14.xhtml#ch14fig01\"><img decoding=\"async\" src=\"https:\/\/learning.oreilly.com\/api\/v2\/epubs\/urn:orm:book:9780137327164\/files\/graphics\/14fig03.jpg\" alt=\"A figure illustrates the information flowsheet for a hypothetical process.\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\" id=\"ch14fig04\"><img decoding=\"async\" src=\"https:\/\/learning.oreilly.com\/api\/v2\/epubs\/urn:orm:book:9780137327164\/files\/graphics\/14fig04.jpg\" alt=\"A diagram represents a system with a flash drum.\"\/><\/figure>\n\n\n\n<p>In general, similar process units repeatedly occur in a plant and can be represented by the same set of equations that differ only in the names of variables, the number of terms in the summations, and the values of any coefficients in the equations.<\/p>\n\n\n\n<figure class=\"wp-block-image\" id=\"ch14fig05\"><img decoding=\"async\" src=\"https:\/\/learning.oreilly.com\/api\/v2\/epubs\/urn:orm:book:9780137327164\/files\/graphics\/14fig05.jpg\" alt=\"A system diagram and few equations are shown.\"\/><\/figure>\n\n\n\n<p><strong>Table 14.2 Notation for\u00a0Figure 14.5<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><em>a<\/em><sub>j,k<\/sub><\/td><td>Number of atoms of the&nbsp;<em>k<\/em>th chemical element in the&nbsp;<em>j<\/em>th component<\/td><\/tr><tr><td><em>F<\/em><sub>i<\/sub><\/td><td>Total flow rate of the&nbsp;<em>i<\/em>th stream<\/td><\/tr><tr><td><em>H<\/em><sub>i<\/sub><\/td><td>Relative enthalpy of the&nbsp;<em>i<\/em>th stream<\/td><\/tr><tr><td><em>K<\/em><sub>j<\/sub><\/td><td>Vaporation coefficient of the&nbsp;<em>j<\/em>th component<\/td><\/tr><tr><td>NC<\/td><td>Number of chemical components (compounds)<\/td><\/tr><tr><td>NE<\/td><td>Number of chemical elements<\/td><\/tr><tr><td>NI<\/td><td>Number of incoming material streams<\/td><\/tr><tr><td>NR<\/td><td>Number of chemical reactions<\/td><\/tr><tr><td>NT<\/td><td>Total number of material streams<\/td><\/tr><tr><td><em>p<\/em><sub>i<\/sub><\/td><td>Pressure of the&nbsp;<em>i<\/em>th stream<\/td><\/tr><tr><td><em>Q<\/em><sub>n<\/sub><\/td><td>Heat transfer for the&nbsp;<em>n<\/em>th process unit<\/td><\/tr><tr><td><em>R<\/em><sub>l<\/sub><\/td><td>Reaction expression for the&nbsp;<em>l<\/em>th chemical reaction<\/td><\/tr><tr><td><em>T<\/em><sub>i<\/sub><\/td><td>Temperature of the&nbsp;<em>i<\/em>th stream<\/td><\/tr><tr><td><em>V<\/em><sub>j,l<\/sub><\/td><td>Stoichiometric coefficient of the&nbsp;<em>j<\/em>th component in the&nbsp;<em>l<\/em>th chemical reaction<\/td><\/tr><tr><td><em>w<\/em><sub>i,j<\/sub><\/td><td>Fractional composition (mass of mole) of the&nbsp;<em>j<\/em>th component in the&nbsp;<em>i<\/em>th stream<\/td><\/tr><tr><td>W\u00afi<\/td><td>Average composition in the&nbsp;<em>i<\/em>th stream<\/td><\/tr><tr><td><em>W<\/em><sub>s,n<\/sub><\/td><td>Work for the&nbsp;<em>n<\/em>th process unit<\/td><\/tr><tr><td><em>x<\/em><sub>j<\/sub><\/td><td>Mole fraction of component&nbsp;<em>j<\/em>&nbsp;in the liquid<\/td><\/tr><tr><td><em>y<\/em><sub>j<\/sub><\/td><td>Mole fraction of component&nbsp;<em>j<\/em>&nbsp;in the vapor<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Equation-based codes can be formulated to include inequality constraints along with the equations. Such constraints might be of the form&nbsp;<em>a<\/em><sub>1<\/sub><em>x<\/em><sub>1<\/sub>&nbsp;+&nbsp;<em>a<\/em><sub>2<\/sub><em>x<\/em><sub>2<\/sub>&nbsp;+ . . . \u2264&nbsp;<em>b<\/em>&nbsp;and might arise from such factors as<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Conditions imposed in linearizing any nonlinear equations<\/li>\n\n\n\n<li>Process limits for temperature, pressure, concentration<\/li>\n\n\n\n<li>Requirements that variables be in a certain order<\/li>\n\n\n\n<li>Requirements that variables be positive or integer<\/li>\n<\/ol>\n\n\n\n<p>As you can see from\u00a0Figures 14.4\u00a0and\u00a014.5, if all of the equations for the material and energy balances plus the phase and chemical equilibrium relationships plus the thermodynamic and kinetic relations are combined, they form a huge, sparse (few variables in any equation) array. The set of equations can be partitioned into subsets of equations that cannot further be decomposed and have to be solved simultaneously. Two important aspects of solving the sets of nonlinear equations in flowsheeting codes, both equation-based and modular, are (1) the procedure for establishing the precedence order in solving the equations, and (2) the treatment of recycle (feedback) of information, material, and\/or energy. Details of how to accommodate these important issues efficiently can be found in the references at the end of this chapter.<\/p>\n\n\n\n<p>Whatever the process simulator used to solve material and energy balance problems, you must provide certain input information to the code in an acceptable format. All flowsheeting codes require that you convert the information in the flowsheet (see\u00a0Figure 14.1) and the information flowsheet as illustrated in\u00a0Figure 14.3, or something equivalent. In the information flowsheet, you use the name of the mathematical model (or the subroutine in modular-based flowsheeting) that will be used for the calculations instead of the name of the process unit.<\/p>\n\n\n\n<p>Once the information flowsheet is set up, the determination of the process topology is easy; that is, you can immediately write down the stream interconnections between the modules (or subroutines) that have to be included in the input data set. For\u00a0Figure 14.3\u00a0the matrix of stream connections (the\u00a0<strong>process matrix<\/strong>) is (a negative sign designates an exit stream):<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>Unit<\/strong><\/th><th colspan=\"5\"><strong>Associated Streams<\/strong><\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>1<\/td><td>\u22122<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>2<\/td><td>2<\/td><td>\u22123<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>3<\/td><td>3<\/td><td>8<\/td><td>\u22124<\/td><td>\u221213<\/td><\/tr><tr><td>4<\/td><td>4<\/td><td>7<\/td><td>11<\/td><td>\u22129<\/td><td>\u22125<\/td><\/tr><tr><td>5<\/td><td>5<\/td><td>\u22126<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>6<\/td><td>6<\/td><td>\u22128<\/td><td>\u22127<\/td><td><\/td><td><\/td><\/tr><tr><td>7<\/td><td>10<\/td><td>\u221211<\/td><td>\u221212<\/td><td><\/td><td><\/td><\/tr><tr><td>8<\/td><td>9<\/td><td>\u221210<\/td><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>As explained in\u00a0Chapter 6, a plant\u00a0flowsheet\u00a0such as the simple diagram in\u00a0Figure 14.1\u00a0mirrors the stream network and equipment arrangement in a process. Once the process flowsheet is specified, or during its formulation, the solution of the appropriate process material and energy balances is referred to as\u00a0process simulation\u00a0or\u00a0flowsheeting,\u00a0and the computer code used in the solution is known [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4750,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[578],"tags":[],"class_list":["post-4752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solving-material-and-energy-balances-using-process-simulators-flowsheeting-codes"],"jetpack_featured_media_url":"https:\/\/workhouse.sweetdishy.com\/wp-content\/uploads\/2024\/10\/processing-1.png","_links":{"self":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/comments?post=4752"}],"version-history":[{"count":1,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4752\/revisions"}],"predecessor-version":[{"id":4753,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4752\/revisions\/4753"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media\/4750"}],"wp:attachment":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media?parent=4752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/categories?post=4752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/tags?post=4752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}