Introduction to Chemical Engineering Processes/Print Version
|This is the print version of Introduction to Chemical Engineering Processes
You won't see this message or any elements not part of the book's content when you print or preview this page.
Chapter 1: Prerequisites
Consistency of units
Most values that you'll run across as an engineer will consist of a number and a unit. Some do not have a unit because they are a pure number (like pi, π) or a ratio. In order to solve a problem effectively, all the types of units should be consistent with each other, or should be in the same system. A system of units defines each of the basic unit types with respect to some measurement that can be easily duplicated, so that, for example, 5 ft. is the same length in Australia as it is in the United States. There are five commonly-used base unit types or dimensions that one might encounter (shown with their abbreviated forms for the purpose of dimensional analysis):
- Length (L), or the physical distance between two positions with respect to some standard distance
- Time (t), or how long something takes with respect to how long some natural phenomenon takes to occur
- Mass (M), a measure of the inertia of a material relative to that of a standard
- Temperature (T), a measure of the average kinetic energy of the molecules in a material relative to a standard
- Electric Current (E), a measure of the total charge that moves in a certain amount of time
Note: It would make more commonsense to have Electric Charge as a base unit, since current is charge per time, and you may find it convenient to think of charge as the fundamental unit. However, current proved easier to measure very accurately and reproducibly, so the physicists decided it would be their reference.
There are several different consistent systems of units. In most of the world (apart from the US and to some extent the UK) the SI system is standard. It is also used in refereed scientific and engineering journals in these two countries. In practice, it is essential for a chemical engineer to be proficient in the SI system, but to be able to use data in units of other systems and to be able to specify designs in the preferred unit system for the job.
Units of Common Physical Properties
Every system of units has a large number of derived units which are, as the name implies, derived from the base units. These new units are based on the physical definitions of other quantities and involve the combination of different variables. Below is a list of several common derived system properties and the corresponding dimensions ( denotes unit equivalence). If you don't know what one of these properties is, you will learn it eventually:
|Specific Heat Capacity||Specific Enthalpy|
|Specific Gibbs Energy||Specific Energy|
SI (kg-m-s) System
This is the most commonly-used system of units in the world, and is based heavily on factors of 10. It was originally based on the properties of water, though currently there are more precise standards in place. The major dimensions are:
|Dimension name||SI unit||SI abbreviation|
|Amount of substance||mole||mol|
Note that the kilogram, not the gram, is a base unit.
The close relationship to water is that one m3 of water weighs (approximately) 1000 kg.
A base unit that can be difficult to understand is the mole. A mole represents 6.022*1023 particles of any substance. (The number is known as Avogadro's Number, or the Avogadro constant.) This usually means the number of atoms or molecules of an element or compound. Chemical engineers commonly use kilomoles. The relative molecular mass (= molecular weight) of water H2O is about 18, being made up of 2 H atoms (atomic mass = 1) and one O atom (atomic mass = 16). Thus 18 kilograms of water constitute 1 kilomole of H2O and contain 2 kilomoles of H atoms and 1 kilomole of O atoms.
Each of these base units can be made smaller or larger in units of ten by adding the appropriate metric prefixes. The specific meanings are (from the SI page on Wikipedia):
If you see a length of 1 km, according to the chart, the prefix "k" means there are 103 of something, and the following "m" means that it is meters. So 1 km = 103 meters. There should always be a space between the number and the unit and between different units which are multiplied together. There must not be a space between the multiplier and the unit. Thus 13 mA means 13 milliamps, but 13 m A means 13 meter-amps.
As noted above, the kilogram is a base unit, but the multipliers are added to the gram. 1000 kg = 1 Mg; 0.001 kg = 1 g.
In chemical engineering practice, we tend not to use the very large or small ends of the table, but you should know at least as large as mega (M), and as small as nano (n). The relationship between different sizes of metric units was deliberately made simple because you will have to do it all of the time. You may feel uncomfortable with it at first if you're from the U.S. but trust me, after working with the English system you'll learn to appreciate the simplicity of the Metric system.
Derived units in the SI system
Imagine if every time you calculated a pressure, you would have to write the units in kg/(m s2). This would become cumbersome quickly, so the SI people set up derived units to use as shorthand for such combinations as these. Note that units named after a person do not start with a capital letter, but the abbreviation does! For example "a force of one newton" and " a force of 1.0 N". The most common ones used by chemical engineers are as follows:
|Property name||Long SI Units||SI Name||SI Abbreviation||Equivalencies|
|Force||newton||N||Mass * acceleration|
Allowed units in the SI system
Some units are not simply derived from the base units or regular multiples, but are in common use and are therefore permitted. Thus, though periods of time can be expressed in kiloseconds or megaseconds, we are allowed to use minutes, hours and days. The term 'liter' (US) or 'litre' (European) is understood to be the same as 1 x 10-3 m3, and the term tonne (not ton) is understood to be the same as 1000 kg. The bar is a unit of pressure meaning 100 kPa, which is very close to the chemists' standard atmosphere (which is 101.325 kPa). The Celsius scale of temperature is understood to be the number of kelvin above 273.15 K. Thus we are allowed to write "the chemical reactor has a throughput of 4.3 tonnes per day at 5 bar and 200 °C" and we will be understood. However, it may be necessary to change to base or derived units in order to carry out calculations.
cgs (cm-g-s) system
This was the first metric system and may be found old publications (before 1960). There is no reason why a chemical engineer should work in it today, but you may have to convert data from old books. The base units of length and mass were the centimeter and gram. The unit of force was a dyne; the unit of energy was an erg. The value of g, the standard acceleration due to gravity was 981 cm/s/s. The viscosity units poise (especially centipoise, cP) and stokes (especially centistokes cSt) are a hangover from this system and may be found in relatively recent publications. You should convert them to SI.
Note that chemists often work with grams and cubic centimeters, but these are part of SI. Just because you work with cm, g, and s, does not mean you are using the cgs system. See w:cgs if you really want to know.
British, Imperial or American (gravitational) system
This system was established with the authority of the British Empire. It is known in Britain as the Imperial system, in America as the British (sometimes English) system, and in much of the world as the American system, since the USA is the only major market for chemical engineering which uses it. The engineering version uses a subset of this traditional or customary measure plus the pound force and the ampere.
Its peculiarity lies in the relationship between force and mass. According to Isaac Newton for a fixed mass accelerating under the influence of a force:
force = mass x acceleration or f = m a
In the SI system a force of 1 newton acting on a mass of 1 kilogram produces an acceleration of 1 meter per second. Simple!
In the Imperial system a force of 1 pound-force acting on a mass of 1 pound produces an acceleration of 32 feet per second per second. This is because this is the natural acceleration under gravity. Older American books often include a g in the formula which do not appear in European versions of the same equation. The g represents the relationship between force and mass in the unit system (which is 1 in SI): here it is 32. For a while, American (mainly) engineers used a version of the metric system including the kilogram-force and thus g, which had the value 9.81. Physicists call these both gravitational systems.
The common units are based on traditional measures which were practical in agriculture and shipping, and do not go in steps of 10, 100, 1000 etc. Instead of using prefixes you use names for larger units, and can use combinations of units for the same dimension, e.g. 6 yards 2 feet and 8 and a quarter inches ( 6 yd 2 ft 8¼ in) However, engineers tend to use one unit and a decimal, e.g. 20.7 ft, e.g. 13.47 in. The foot can also be denoted by a single mark and the inch by a double mark, e.g. 4 feet 7 inches was 4' 7". Note that the US gallon is smaller than the Imperial gallon (5/6 in fact), when you are doing conversions to SI.
The temperature scale is that of Fahrenheit, in which the melting point of ice is 32 °F. Absolute zero is -459.67 °F. For thermodynamic temperatures, the number of degrees Fahrenheit above absolute zero is the Rankine scale. Thus the melting point of ice is 459.67 °R.
The following are common units in this system.
|Dimension name||Imperial unit||Imperial abbreviation|
|Length||foot, inch||ft, in|
|Time||second, minute, or hour||sec, min, and hr, respectively|
A common derived unit is the pound(-force) per square inch, or psi. Note that psig or psi(g) means psi above atmospheric pressure. Energy is measured in British Thermal Units, generally BTU, sometimes B.Th U. Power is horsepower, hp.
The "parts-per" notation is a unit that deals with very small traces of species within a mixture of gases or liquids. Parts-per million (ppm) and parts-per billion (ppb), as well as parts-per trillion (ppt) (American definition of trillion 1012), refer to mass or mole ratios and communicate how many parts of the species are present-per million, billion, or trillion parts of the mixture. Generally mass ratios are used when dealing with liquids and mole ratios are used when dealing with gases, though either kind of ratio can be used for whichever phase a chemical is in (ratios are discussed in a later chapter).
A Word About Conversions
It is generally safe to convert all data into SI then work your calculations out in that system, converting back if necessary at the end. If you are skilled enough in the American system, you may be able to carry some calculations within that system. It is best to consult a conversion table or program for the necessary changes and especially important to keep good track of the units.
However, do not make the mistake of just writing down the numbers you get from the calculator or program.
For example, if you have a pressure drop in a pipe of 16 psi, and the conversion factor 1 psi = 6.895 kPa, your calculator will give 16 x 6.895 = 110.32. However, your answer should be 110 kPa because your starting value was only given to a precision of two figures. The conversion factor cannot add accuracy!
If every value is written in terms of the same base units, and the equation that is used is correct, then the units of the answer will be consistent and in terms of the same base units.
How to convert between units
The first thing you need in order to convert between units is the equivalence between the units you want and the units you have. To do this use a conversion table. See w:Conversion of units for a fairly extensive (but not exhaustive) list of common units and their equivalences.
Conversions within the metric system usually are not listed, because it is assumed that one can use the prefixes and the fact that to convert anything that is desired.
Conversions within the English system and especially between the English and metric system are sometimes (but not on Wikipedia) written in the form:
For example, you might recall the following conversion from chemistry class:
The table on Wikipedia takes a slightly different approach: the column on the far left side is the unit we have 1 of, the middle is the definition of the unit on the left, and on the far right-hand column we have the metric equivalent. One listing is the conversion from feet to meters:
Both methods are common and one should be able to use either to look up conversions.
Using the equivalences
Once the equivalences are determined, use the general form:
The fraction on the right comes directly from the conversion tables.
Setting these up takes practice, there will be some examples at the end of the section on this. It's a very important skill for any engineer.
One way to keep from avoiding "doing it backwards" is to write everything out and make sure your units cancel out as they should! If you try to do it backwards you'll end up with something like this:
If you write everything (even conversions within the metric system!) out, and make sure that everything cancels, you'll help mitigate unit-changing errors. About 30-40% of all mistakes I've seen have been unit-related, which is why there is such a long section in here about it. Remember them well.
Dimensional analysis as a check on equations
Since we know what the units of velocity, pressure, energy, force, and so on should be in terms of the base units L, M, t, T, and E, we can use this knowledge to check the feasibility of equations that involve these quantities.
You may well be forced to do dimensional analysis in chemical engineering classes or if you do research. For much of the rest of the time, you will probably find it easier to check the units, particularly if you are using the SI system. In the above example, you think:
- Pressure = force / area
- Force = mass x acceleration
- Pressure = mass x acceleration / area
So 1 pascal (unit of pressure) = 1 kg x (m s-2) / (m2) = 1 kg m-1 s-2
- Now g is 9.81 m s-2 and h is in meters
- So gh is in units m2 s-2
To make gh match pressure we need to multiply by something having the units kg m-3, which we recognise as density.
Note dimensional analysis (or unit checking) does not tell you about numerical values that you might have to insert, such as 9.81 or π. Nor does it tell you if you should use the radius or the diameter of a pipe in fluid mechanics!
Importance of Significant Figures
Significant figures (also called significant digits) are an important part of scientific and mathematical calculations, and deals with the accuracy and precision of numbers. It is important to estimate uncertainty in the final result, and this is where significant figures become very important.
Precision and Accuracy
Before discussing how to deal with significant figures one should discuss what precision and accuracy in relation to chemical experiments and engineering. Precision refers to the reproducibility of results and measurements in an experiment, while accuracy refers to how close the value is to the actual or true value. Results can be both precise and accurate, neither precise nor accurate, precise and not accurate, or vice versa. The validity of the results increases as they are more accurate and precise.
An useful analogy that helps distinguish the difference between accuracy and precision is the use of a target. The bullseye of the target represents the true value, while the holes made by each shot (each trial) represents the validity.
As the above images show, the first has a lot of holes (black spots) covering a small area. The small area represents a precise experiment, yet it seems that there is a faultiness within the experiment, most likely due to systematic error, rather than random error. The second image represents an accurate though imprecise experiment. The holes are near the bullseye, even "touching" or within, though the problem is that they are spread out. This could be due to random error, systematic error, or not being careful in measuring.
Counting Significant Figures
There are three preliminary rules to counting significant. They deal with non-zero numbers, zeros, and exact numbers.
1) Non-zero numbers - all non-zero numbers are considered significant figures
2) Zeros - there are three different types of zeros
- leading zeros - zeros that precede digits - do not count as significant figures (example: .0002 has one significant figure)
- captive zeros - zeros that are "caught" between two digits - do count as significant figures (example: 101.205 has six significant figures)
- trailing zeros - zeros that are at the end of a string of numbers and zeros - only count if there is a decimal place (example: 100 has one significant figure, while 1.00 has three, as well as 100.)
3) Exact numbers - these are numbers not obtained by measurements, and are determined by counting. An example of this is if one counted the number of millimetres in a centimetre (10 - it is the definition of a millimetre), but another example would would be if you have 3 apples.
The Parable of the Cement Block
People new to the field often question the importance of significant figures, but they have great practical importance, for they are a quick way to tell how accurate a number is. Including too many can not only make your numbers harder to read, it can also have serious negative consequences.
As an anecdote, consider two engineers who work for a construction company. They need to order cement bricks for a certain project. They have to build a wall that is 10 feet wide, and plan to lay the base with 30 bricks. The first engineer does not consider the importance of significant figures and calculates that the bricks need to be 0.3333 feet wide and the second does and reports the number as 0.33, figuring that a precision of (0.1 inches) would be precise enough for the work she was doing.
Now, when the cement company received the orders from the first engineer, they had a great deal of trouble. Their machines were precise but not so precise that they could consistently cut to within 0.0001 feet. However, after a good deal of trial and error and testing, and some waste from products that did not meet the specification, they finally machined all of the bricks that were needed. The other engineer's orders were much easier, and generated minimal waste.
When the engineers received the bills, they compared the bill for the services, and the first one was shocked at how expensive hers was. When they consulted with the company, the company explained the situation: they needed such a high precision for the first order that they required significant extra labor to meet the specification, as well as some extra material. Therefore it was much more costly to produce.
What is the point of this story? Significant figures matter. It is important to have a reasonable gauge of how accurate a number is so that you know not only what the number is but how much you can trust it and how limited it is. The engineer will have to make decisions about how precisely he or she needs to specify design specifications, and how precise measurement instruments (and control systems!) have to be. If you do not need 99.9999% purity then you probably don't need an expensive assay to detect generic impurities at a 0.0001% level (though the lab technicians will probably have to still test for heavy metals and such), and likewise you will not have to design nearly as large of a distillation column to achieve the separations necessary for such a high purity.
Mathematical Operations and Significant Figures
Most likely at one point, the numbers obtained in one's measurements will be used within mathematical operations. What does one do if each number has a different amount of significant figures? If one adds 2.0 litres of liquid with 1.000252 litres, how much does one have afterwards? What would 2.45 times 223.5 get?
For addition and subtraction, the result has the same number of decimal places as the least precise measurement use in the calculation. This means that 112.420020 + 5.2105231 + 1.4 would have have a single decimal place but there can be any amount of numbers to the left of the decimal point (in this case the answer is 119.0).
For multiplication and division, the number that is the least precise measurement, or the number of digits. This means that 2.499 is more precise than 2.7, since the former has four digits while the latter has two. This means that 5.000 divided by 2.5 (both being measurements of some kind) would lead to an answer of 2.0.
So now you know how to pick which numbers to drop if there is a question about significant figures, but one also has to take into account rounding. Once one has decided which digit should be the last digit kept, one must decide whether to round up or down.
- If the number is greater than five (6 to 9), one rounds up - 1.36 becomes 1.4
- If the number is less than five (1 to 4), one rounds down - 1.34 becomes 1.3
What does one do when there is a five? There is a special case that deals with the number five, since, if you have not noticed, it is in the middle (between 1 and 9). Often in primary school one learns to just round up, but engineers tend to do something different, called unbiased rounding.
- If the number before the five is even, then one rounds down - 1.45 becomes 1.4
- If the number before the five is odd, then one rounds up - 1.55 becomes 1.6
- Another case is this: 1.4501, where the numbers after five are greater than zero, so one would round to 1.5
Note: Remember that rounding is generally done at the end of calculations, not before the calculations are made.
Why is this done? Engineers make many calculations that often matter, since time, money, etc. are being taken into account, it is best to make sure that the final results are not synthetic or untrue to what the actual value should be. This relates back to accuracy and precision.
|This is just a proposed layout and content. To discuss, go to the discussion page or edit it yourself.|
Key Elements and Molecules
Structure and Formula
Ideal Gas Law
P = Pressure; V = Volume; n = moles; R = Ideal gas constant; T = Temperature
Branches of Chemistry
- Inorganic Chemistry - The study of the synthesis and behavior of inorganic and organometallic compounds. This field covers all chemical compounds except the myriad organic compounds.
- Organic Chemistry - The study of the structure, properties, and reactions of organic compounds and organic materials, i.e., matter in its various forms that contain carbon atoms.
- Physical Chemistry - The study of macroscopic, atomic, subatomic, and particulate phenomena in chemical systems in terms of laws and concepts of physics. It applies the principles, practices and concepts of physics such as motion, energy, force, time, thermodynamics, quantum chemistry, statistical mechanics and dynamics, equilibrium.
- Analytical Chemistry -
- Biochemistry -
- Organometallic chemistry -
Chapter 1 Practice Problems
Problem 8. A bio-fuel plant converts the sugars (glucose) in corn into ethanol and carbon dioxide in a process called fermentation. The plant produces 100 gpm (gallons per minute) of ethanol and can produce of 2.5 gallons of ethanol per bushel of corn. Jimmy farms a total of 2000 acres, 75% of which are corn. He sells 80% of his corn supply to the bio-fuel plant for $4.00/bushel. (Hint: 120 bushels = 1 acre)
a) How long can the plant run with the supply of corn from Jimmy? (hours)
b) How much money did Jimmy make for his corn?
Chapter 2: Elementary mass balances
The "Black Box" approach to problem-solving
In this book, all the problems you'll solve will be "black-box" problems. This means that we take a look at a unit operation from the outside, looking at what goes into the system and what leaves, and extrapolating data about the properties of the entrance and exit streams from this. This type of analysis is important because it does not depend on the specific type of unit operation that is performed. When doing a black-box analysis, we don't care about how the unit operation is designed, only what the net result is. Let's look at an example:
The formal mathematical way of describing the black-box approach is with conservation equations which explicitly state that what goes into the system must either come out of the system somewhere else, get used up or generated by the system, or remain in the system and accumulate. The relationship between these is simple:
- The streams entering the system cause an increase of the substance (mass, energy, momentum, etc.) in the system.
- The streams leaving the system decrease the amount of the substance in the system.
- Generating or consuming mechanisms (such as chemical reactions) can either increase or decrease the stuff in the system.
- What's left over is the amount of stuff in the system
With these four statements we can state the following very important general principle:
Its so important, in fact, that you'll see it a million times or so, including a few in this book, and it is used to derive a variety of forms of conservation equations.
Common assumptions on the conservation equation
The conservation equation is very general and applies to any property a system can have. However, it can also lead to complicated equations, and so in order to simplify calculations when appropriate, it is useful to apply assumptions to the problem.
- Closed system: A closed system is one which does not have flows in or out of the substance. Almost always, when one refers to a closed system, it is implied that the system is closed to mass flow but not to other flows such as energy or momentum. The equation for a closed system is:
- The opposite of a closed system is an open system in which the substance is allowed to enter and/or leave the system. The funnel in the example was an open system because mass flowed in and out of it.
- No generation: Certain quantities are always conserved in the strict sense that they are never created or destroyed. These are the most useful quantities to do balances on because then the model does not need to include a generation term:
- The most commonly-used conserved quantities in this class are mass and energy (other conserved quantities include momentum and electric charge). However, it is important to note that though the total mass and total energy in a system are conserved, the mass of a single species is not (since it may be changed into something else in a reaction). Neither is the "heat" in a system if a so-called "heat-balance" is performed (since it may be transformed into other forms of energy. Therefore, one must be careful when deciding whether to discard the generation term).
- Steady State: A system which does not accumulate a substance is said to be at steady-state. Often times, this allows the engineer to avoid having to solve differential equations and instead use algebra.
- All problems in this text assume steady state but it is not always a valid assumption. It is mostly valid after a process has been running in a controlled manner for long enough that all the flow rates, temperatures, pressures, and other system parameters have reached reasonably constant values. It is not valid when a process is first warming up (or an operating condition is changed) and the system properties change significantly over time. How they change, and how long it takes to become close enough to steady state, is a subject for another course.
Conservation of mass
TOTAL mass is a conserved quantity (except in nuclear reactions, let's not go there), as is the mass of any individual species if there is no chemical reaction occurring in the system. Let us write the conservation equation at steady state for such a case (with no reaction):
Now, there are two major ways in which mass can enter or leave a system: diffusion and convection. However, if the velocity entering the unit operations is fairly large and the concentration gradient is fairly small, diffusion can be neglected and the only mass entering or leaving the system is due to convective flow:
A similar equation apply for the mass out.
In this book, we generally use the symbol to signify a convective mass flow rate, in units of . Since the total flow in is the sum of individual flows, and the same with the flow out, the following steady state mass balance is obtained for the overall mass in the system:
If it is a batch system, or if we're looking at how much has entered and left in a given period of time (rather than instantaneously), we can apply the same mass balance without the time component. In this book, a value without the dot signifies a value without a time component:
This is a fairly trivial example, but it gets the concepts of "in", "out", and "accumulation" on a physical basis, which is important for setting up problems. In the next section, it will be shown how to apply the mass balance to solve more complex problems with only one component.
Converting Information into Mass Flows - Introduction
In any system there will be certain parameters that are easier (often considerably) to measure and/or control than others. When you are solving any problem and trying to use a mass balance or any other equation, it is important to recognize what pieces of information can be interconverted. The purpose of this section is to show some of the more common alternative ways that mass flow rates are expressed, mostly because it is easier to, for example, measure a velocity than it is to measure a mass flow rate directly.
Volumetric Flow rates
A volumetric flow rate is a relation of how much volume of a gas or liquid solution passes through a fixed point in a system (typically the entrance or exit point of a process) in a given amount of time. It is denoted as:
Volume in the metric system is typically expressed either in L (dm^3), mL (cm^3), or m^3. Note that a cubic meter is very large; a cubic meter of water weighs about 1000kg (2200 pounds) at room temperature!
Why they're useful
Volumetric flow rates can be measured directly using flow meters. They are especially useful for gases since the volume of a gas is one of the four properties that are needed in order to use an equation of state (discussed later in the book) to calculate the molar flow rate. Of the other three, two (pressure, and temperature) can be specified by the reactor design and control systems, while one (compressibility) is strictly a function of temperature and pressure for any gas or gaseous mixture.
Volumetric Flowrates are Not Conserved. We can write a balance on volume like anything else, but the "volume generation" term would be a complex function of system properties. Therefore if we are given a volumetric flow rate we should change it into a mass (or mole) flow rate before applying the balance equations.
Volumetric flowrates also do not lend themselves to splitting into components, since when we speak of volumes in practical terms we generally think of the total solution volume, not the partial volume of each component (the latter is a useful tool for thermodynamics, but that's another course entirely). There are some things that are measured in volume fractions, but this is relatively uncommon.
How to convert volumetric flow rates to mass flow rates
Volumetric flowrates are related to mass flow rates by a relatively easy-to-measure physical property. Since and , we need a property with units of in order to convert them. The density serves this purpose nicely!
The "i" indicates that we're talking about one particular flow stream here, since each flow may have a different density, mass flow rate, or volumetric flow rate.
The velocity of a bulk fluid is how much lateral distance along the system (usually a pipe) it passes per unit time. The velocity of a bulk fluid, like any other, has units of:
By definition, the bulk velocity of a fluid is related to the volumetric flow rate by:
This distinguishes it from the velocity of the fluid at a certain point (since fluids flow faster in the center of a pipe). The bulk velocity is about the same as the instantaneous velocity for relatively fast flow, or especially for flow of gasses.
For purposes of this class, all velocities given will be bulk velocities, not instantaneous velocities.
Why they're useful
(Bulk) Velocities are useful because, like volumetric flow rates, they are relatively easy to measure. They are especially useful for liquids since they have constant density (and therefore a constant pressure drop at steady state) as they pass through the orifice or other similar instruments. This is a necessary prerequisite to use the design equations for these instruments.
Like volumetric flowrates, velocity is not conserved. Like volumetric flowrate, velocity changes with temperature and pressure of a gas, though for a liquid velocity is generally constant along the length of a pipe.
Also, velocities can't be split into the flows of individual components, since all of the components will generally flow at the same speed. They need to be converted into something that can be split (mass flow rate, molar flow rate, or pressure for a gas) before concentrations can be applied.
How to convert velocity into mass flow rate
In order to convert the velocity of a fluid stream into a mass flow rate, you need two pieces of information:
- The cross sectional area of the pipe.
- The density of the fluid.
In order to convert, first use the definition of bulk velocity to convert it into a volumetric flow rate:
Then use the density to convert the volumetric flow rate into a mass flow rate.
The combination of these two equations is useful:
Molar Flow Rates
The concept of a molar flow rate is similar to that of a mass flow rate, it is the number of moles of a solution (or mixture) that pass a fixed point per unit time:
Why they're useful
Molar flow rates are mostly useful because using moles instead of mass allows you to write material balances in terms of reaction conversion and stoichiometry. In other words, there are a lot fewer unknowns when you use a mole balance, since the stoichiometry allows you to consolidate all of the changes in the reactant and product concentrations in terms of one variable.
Unlike mass, total moles are not conserved. Total mass flow rate is conserved whether there is a reaction or not, but the same is not true for the number of moles. For example, consider the reaction between hydrogen and oxygen gasses to form water:
This reaction consumes 1.5 moles of reactants for every mole of products produced, and therefore the total number of moles entering the reactor will be more than the number leaving it.
However, since neither mass nor moles of individual components is conserved in a reacting system, it's better to use moles so that the stoichiometry can be exploited, as described later.
The molar flows are also somewhat less practical than mass flow rates, since you can't measure moles directly but you can measure the mass of something, and then convert it to moles using the molar flow rate.
How to Change from Molar Flow Rate to Mass Flow Rate
Molar flow rates and mass flow rates are related by the molecular weight (also known as the molar mass) of the solution. In order to convert the mass and molar flow rates of the entire solution, we need to know the average molecular weight of the solution. This can be calculated from the molecular weights and mole fractions of the components using the formula:
where i is an index of components and n is the stream number. signifies mole fraction of each component (this will all be defined and derived later).
Once this is known it can be used as you would use a molar mass for a single component to find the total molar flow rate.
A Typical Type of Problem
Most problems you will face are significantly more complicated than the previous problem and the following one. In the engineering world, problems are presented as so-called "word problems", in which a system is described and the problem must be set up and solved (if possible) from the description. This section will attempt to illustrate through example, step by step, some common techniques and pitfalls in setting up mass balances. Some of the steps may seem somewhat excessive at this point, but if you follow them carefully on this relatively simple problem, you will certainly have an easier time following later steps.
Single Component in Multiple Processes: a Steam Process
Note that one way to define efficiency is in terms of conversion, which is intended here:
Step 1: Draw a Flowchart
The problem as it stands contains an awful lot of text, but it won't mean much until you draw what is given to you. First, ask yourself, what processes are in use in this problem? Make a list of the processes in the problem:
- Evaporator (A)
- Heat Exchanger (B)
- Turbine (C)
Once you have a list of all the processes, you need to find out how they are connected (it'll tell you something like "the vapor stream enters a turbine"). Draw a basic sketch of the processes and their connections, and label the processes. It should look something like this:
Remember, we don't care what the actual processes look like, or how they're designed. At this point, we only really label what they are so that we can go back to the problem and know which process they're talking about.
Once all your processes are connected, find any streams that are not yet accounted for. In this case, we have not drawn the feed stream into the evaporator, the waste stream from the evaporator, or the exit streams from the turbine and heat exchanger.
The third step is to Label all your flows. Label them with any information you are given. Any information you are not given, and even information you are given should be given a different variable. It is usually easiest to give them the same variable as is found in the equation you will be using (for example, if you have an unknown flow rate, call it so it remains clear what the unknown value is physically. Give each a different subscript corresponding to the number of the feed stream (such as for the feed stream that you call "stream 1"). Make sure you include all units on the given values!
In the example problem, the flowchart I drew with all flows labeled looked like this:
Notice that for one of the streams, a volume flow rate is given rather than a mass flow rate, so it is labeled as such. This is very important, so that you avoid using a value in an equation that isn't valid (for example, there's no such thing as "conservation of volume" for most cases)!
The final step in drawing the flowchart is to write down any additional given information in terms of the variables you have defined. In this problem, the density of the water in the vapor stream is given, so write this on the side for future reference.
Carefully drawn flowcharts and diagrams are half of the key to solving any mass balance, or really a lot of other types of engineering problems. They are just as important as having the right units to getting the right answer.
Step 2: Make sure your units are consistent
The second step is to make sure all your units are consistent and, if not, to convert everything so that it is. In this case, since the principle that we'll need to use to solve for the flow rate of the waste stream () is conservation of mass, everything will need to be on a mass-flow basis, and also in the same mass-flow units.
In this problem, since two of our flow rates are given in metric units (though one is a volumetric flow rate rather than a mass flow rate, so we'll need to change that) and only one in English units, it would save time and minimize mistakes to convert and to kg/s.
From the previous section, the equation relating volumetric flowrate to mass flow rate is:
Therefore, we need the density of water vapor in order to calculate the mass flow rate from the volumetric flow rate. Since the density is provided in the problem statement (if it wasn't, we'd need to calculate it with methods described later), the mass flow rate can be calculated:
Note that since the density of a gas is so small, a huge volumetric flow rate is necessary to achieve any significant mass flow rate. This is fairly typical and is a practical problem when dealing with gas-phase processes.
The mass flow rate can be changed in a similar manner, but since it is already in terms of mass (or weight technically), we don't need to apply a density:
Now that everything is in the same system of units, we can proceed to the next step.
Step 3: Relate your variables
Since we have the mass flow rate of the vapor stream we can calculate the efficiency of the evaporator directly:
Finding , as asked for in the problem, will be somewhat more difficult. One place to start is to write the mass balance on the evaporator, since that will certainly contain the unknown we seek. Assuming that the process is steady state we can write:
Problem: we don't know so with only this equation we cannot solve for . Have no fear, however, because there is another way to figure out what is... can you figure it out? Try to do so before you move on.
So you want to check your guess? Alright then read on.
The way to find is to do a mass balance on the heat exchanger, because the mass balance for the heat exchanger is simply:
Since we know we can calculate and thus the waste stream flowrate .
Step 4: Calculate your unknowns.
Carrying out the plan on this problem:
Hence, from the mass balance on the evaporator:
So the final answers are:
Step 5: Check your work.
Ask: Do these answers make sense? Check for things like negative flow rates, efficiencies higher than 100%, or other physically impossible happenings; if something like this happens (and it will), you did something wrong. Is your exit rate higher than the total inlet rate (since no water is created in the processes, it is impossible for this to occur)?
In this case, the values make physical sense, so they may be right. It's always good to go back and check the math and the setup to make sure you didn't forget to convert any units or anything like that.
Chapter 2 Practice Problems
Chapter 3: Mass balances on multicomponent systems
Component Mass Balance
Most processes, of course, involve more than one input and/or output, and therefore it must be learned how to perform mass balances on . The basic idea remains the same though. We can write a mass balance in the same form as the overall balance for each component:
For steady state processes, this becomes:
The overall mass balance at steady state, recall, is:
The mass of each component can be described by a similar balance.
The biggest difference between these two equations is that The total generation of mass is zero due to conservation of mass, but since individual species can be consumed in a reaction, for a reacting system
You may recall from general chemistry that a concentration is a measure of the amount of some species in a mixture relative to the total amount of material, or relative to the amount of another species. Several different measurements of concentration come up over and over, so they were given special names.
The first major concentration unit is the molarity which relates the moles of one particular species to the total volume of the solution.
A more useful definition for flow systems that is equally valid is:
Molarity is a useful measure of concentration because it takes into account the volumetric changes that can occur when one creates a mixture from pure substances. Thus it is a very practical unit of concentration. However, since it involves volume, it can change with temperature so molarity should always be given at a specific temperature. Molarity of a gaseous mixture can also change with pressure, so it is not usually used for gasses.
The mole fraction is one of the most useful units of concentration, since it allows one to directly determine the molar flow rate of any component from the total flow rate. It also conveniently is always between 0 and 1, which is a good check on your work as well as an additional equation that you can always use to help you solve problems.
The mole fraction of a component A in a mixture is defined as:
where signifies moles of A. Like molarity, a definition in terms of flowrates is also possible:
If you add up all mole fractions in a mixture, you should always obtain 1 (within calculation and measurement error), because sum of individual component flow rates equals the total flow rate:
Note that each stream has its own independent set of concentrations. This fact will become important when you are performing mass balances.
Since mass is a more practical property to measure than moles, flowrates are often given as mass flowrates rather than molar flowrates. When this occurs, it is convenient to express concentrations in terms of mass fractions defined similarly to mole fractions.
In most texts mass fraction is given the same notation as mole fraction, and which one is meant is explicitly stated in the equations that are used or the data given.
The definition of a mass fraction is similar to that of moles:
for batch systems
where is the mass of A. It doesn't matter what the units of the mass are as long as they are the same as the units of the total mass of solution.
Like the mole fraction, the total mass fraction in any stream should always add up to 1.
Calculations on Multi-component streams
Various conversions must be done with multiple-component streams just as they must for single-component streams. This section shows some methods to combine the properties of single-component streams into something usable for multiple-component streams(with some assumptions).
Average Molecular Weight
The average molecular weight of a mixture (gas or liquid) is the multicomponent equivalent to the molecular weight of a pure species. It allows you to convert between the mass of a mixture and the number of moles, which is important for reacting systems especially because balances must usually be done in moles, but measurements are generally in grams.
To find the value of , we split the solution up into its components as follows, for k components:
where is the mole fraction of component i in the mixture. Therefore, we have the following formula:
This derivation only assumes that mass is additive, which it is, so this equation is valid for any mixture.
Density of Liquid Mixtures
Let us attempt to calculate the density of a liquid mixture from the density of its components, similar to how we calculated the average molecular weight. This time, however, we will notice one critical difference in the assumptions we have to make. We'll also notice that there are two different equations we could come up with, depending on the assumptions we make.
By definition, the density of a single component i is: The corresponding definition for a solution is . Following a similar derivation to the above for average molecular weight:
Now we make the assumption that The volume of the solution is proportional to the mass. This is true for any pure substance (the proportionality constant is the density), but it is further assumed that the proportionality constant is the same for both pure k and the solution. This equation is therefore useful for two substances with similar pure densities. If this is true then:
, where is the mass fraction of component i. Thus:
This equation is easier to derive if we assume the equation will have a form similar to that of average molar mass. Since density is given in terms of mass, it makes sense to start by using the definition of mass fractions:
To get this in terms of only solution properties (and not component properties), we need to get rid of . We do this first by dividing by the density:
Now if we add all of these up we obtain:
Now we have to make an assumption, and it's different from that in the first case. This time we assume that the Volumes are additive. This is true in two cases:
1. In an ideal solution. The idea of an ideal solution will be explained more later, but for now you need to know that ideal solutions:
- Tend to involve similar compounds in solution with each other, or when one component is so dilute that it doesn't effect the solution properties much.
- Include Ideal Gas mixtures at constant temperature and pressure.
2 In a Completely immiscible nonreacting mixture. In other words, if two substances don't mix at all (like oil and water, or if you throw a rock into a puddle), the total volume will not change when you mix them. And the total volume in this case will be sum of volume of individual components.
If the solution is ideal, then we can write:
Hence, for an ideal solution,
where is the mass fraction of component i in the mixture.
Note that this is significantly different from the previous equation! This equation is more accurate for most cases. In all cases, however, it is most accurate to look up the value in a handbook such as Perry's Chemical Engineers Handbook if data is available on the solution of interest.
General Strategies for Multiple-Component Operations
The most important thing to remember about doing mass balances with multiple components is that for each component, you can write one independent mass balance. What do I mean by independent? Well, remember we can write the general, overall mass balance for any steady-state system:
And we can write a similar mass balance for any component of a stream:
This looks like we have three equations here, but in reality only two of them are independent because:
- The sum of the masses of the components equals the total mass
- The total mass generation due to reaction is always zero (by the law of mass conservation)
Therefore, if we add up all of the mass balances for the components we obtain the overall mass balance. Therefore, we can choose any set of n equations we want, where n is the number of components, but if we choose the overall mass balance as one of them we cannot use the mass balance on one of the components.
The choice of which balances to use depends on two particular criteria:
- Which component(s) you have the most information on; if you don't have enough information you won't be able to solve the equations you write.
- Which component(s) you can make the most reasonable assumptions about. For example, if you have a process involving oxygen and water at low temperatures and pressures, you may say that there is no oxygen dissolved in a liquid flow stream, so it all leaves by another path. This will simplify the algebra a good deal if you write the mass balance on that component.
Multiple Components in a Single Operation: Separation of Ethanol and Water
Following the step-by-step method makes things easier.
Step 1: Draw a Flowchart
The first step as always is to draw the flowchart, as described previously. If you do that for this system, you may end up with something like this, where x signifies mass fraction, [A] signifies molarity of A, and numbers signify stream numbers.
Step 2: Convert Units
Now, we need to turn to converting the concentrations into appropriate units. Since the total flowrates are given in terms of mass, a unit that expresses the concentration in terms of mass of the components would be most useful. The vapor stream compositions are given as mass percents, which works well with the units of flow. However, the liquid phase concentration given in terms of a molarity is not useful for finding a mass flow rate of ethanol (or of water). Hence we must convert the concentration to something more useful.
In order to convert the molarity into a mass fraction, then, we need the molecular weight of ethanol and the density of a 4M ethanol solution. The former is easy if you know the chemical formula of ethanol: . Calculating the molecular weight (as you did in chem class) you should come up with about .
Calculating the density involves plugging in mass fractions in and of itself, so you'll end up with an implicit equation. Recall that one method of estimating a solution density is to assume that the solution is ideal (which it probably is not in this case, but if no data are available or we just want an estimate, assumptions like these are all we have, as long as we realize the values will not be exact):
In this case, then,
Therefore, since the mass fractions add to one, our equation for density becomes:
From the NOTE above, we can now finally convert the molarity into a mass fraction as:
Solving this equation yields:
Step 3: Relate your Variables
Since we are seeking properties related to mass flow rates, we will need to relate our variables with mass balances.
Remember that we can do a mass balance on any of the N independent species and one on the overall mass, but since the sum of the individual masses equals the overall only of these equations will be independent. It is often easiest mathematically to choose the overall mass balance and individual species balances, since you don't need to deal with concentrations for the overall measurements.
Since our concentrations are now in appropriate units, we can do any two mass balances we want. Lets choose the overall first:
Plugging in known values:
Now that we know we can do a mass balance on either ethanol or water to find the composition of the input stream. Lets choose ethanol (A):
Written in terms of mass fractions this becomes:
Plugging in what we know:
Hence, the feed is 68% Ethanol and 32% Water.
Introduction to Problem Solving with Multiple Components and Processes
In the vast majority of chemical processes, in which some raw materials are processed to yield a desired end product or set of end products, there will be more than one raw material entering the system and more than one unit operation through which the product must pass in order to achieve the desired result. The calculations for such processes, as you can probably guess, are considerably more complicated than those either for only a single component, or for a single-operation process. Therefore, several techniques have been developed to aid engineers in their analyses. This section describes these techniques and how to apply them to an example problem.
Degree of Freedom Analysis
For more complex problems than the single-component or single-operation problems that have been explored, it is essential that you have a method of determining if a problem is even solvable given the information that you have. There are three ways to describe a problem in terms of its solvability:
- If the problem has a finite (not necessarily unique!) set of solutions then it is called well-defined.
- The problem can be overdetermined (also known as overspecified), which means that you have too much information and it is either redundant or inconsistent. This could possibly be fixed by consolidating multiple data into a single function or, in extreme cases, a single value (such as a slope of a linear correlation), or it could be fixed by removing an assumption about the system that one had made.
- The problem can be underdetermined (or underspecified), which means that you don't have enough information to solve for all your unknowns. There are several ways of dealing with this. The most obvious is to gather additional information, such as measuring additional temperatures, flow rates, and so on until you have a well-defined problem. Another way is to use additional equations or information about what we want out of a process, such as how much conversion you obtain in a reaction, how efficient a separation process is, and so on. Finally, we can make assumptions in order to simplify the equations, and perhaps they will simplify enough that they become solvable.
The method of analyzing systems to see whether they are over or under-specified, or if they are well-defined, is called a degree of freedom analysis. It works as follows for mass balances on a single process:
- From your flowchart, determine the number of unknowns in the process. What qualifies as an unknown depends on what you're looking for, but in a material balance calculation, masses and concentrations are the most common. In equilibrium and energy balance calculations, temperature and pressure also become important unknowns. In a reactor, you should include the conversion as an unknown unless it is given OR you are doing an atom balance.
- Subtract the number of Equations you can write on the process. This can include mass balances, energy balances, equilibrium relationships, relations between concentrations, and any equations derived from additional information about the process.
- The number you are left with is the degrees of freedom of the process.
If the degrees of freedom are negative that means the unit operation is overspecified. If it is positive, the operation is underspecified. If it is zero then the unit operation is well-defined, meaning that it is theoretically possible to solve for the unknowns with a finite set of solutions.
Degrees of Freedom in Multiple-Process Systems
Multiple-process systems are tougher but not undoable. Here is how to analyze them to see if a problem is uniquely solvable:
- Label a flowchart completely with all the relevant unknowns.
- Perform a degree of freedom analysis on each unit operation, as described above.
- Add the degrees of freedom for each of the operations.
- Subtract the number of variables in intermediate streams, i.e. streams between two unit operations. This is because each of these was counted twice, once for the operation it leaves and once for the one it enters.
The number you are left with is the process degrees of freedom, and this is what will tell you if the process as a whole is overspecified, underspecified, or well-defined.
Using Degrees of Freedom to Make a Plan
Once you have determined that your problem is solvable, you still need to figure out how you'll solve for your variables. This is the suggested method.
- Find a unit operation or combination of unit operations for which the degrees of freedom are zero.
- Calculate all of the unknowns involved in this combination.
- Recalculate the degrees of freedom for each process, treating the calculated values as known rather than as variables.
- Repeat these steps until everything is calculated (or at least that which you seek)
Multiple Components and Multiple Processes: Orange Juice Production
Step 1: Draw a Flowchart
This time we have multiple processes so it's especially important to label each one as its given in the problem.
Notice how I changed the 90% capture of solids into an algebraic equation relating the mass of solids in the solid waste to the mass in the feed. This will be important later, because it is an additional piece of information that is necessary to solve the problem.
Also note that from here in, "solids" are referred to as S and "water" as W.
Step 2: Degree of Freedom analysis
Recall that for each stream there are C independent unknowns, where C is the number of components in the individual stream. These generally are concentrations of C-1 species and the total mass flow rate, since with C-1 concentrations we can find the last one, but we cannot obtain the total mass flow rate from only concentration.
Let us apply the previously described algorithm to determining if the problem is well-defined.
On the strainer:
- There are 6 unknowns: m2, xS2, m3, xS3, m4, and xS4
- We can write 2 independent mass balances on the overall system (one for each component).
- We are given a conversion and enough information to write the mass flow rate in the product in terms of only concentration of one component (which eliminates one unknown). Thus we have 2 additional pieces of information.
- Thus the degrees of freedom of the strainer are 6-2-2 = 2 DOF
On the crusher:
- There are 3 unknowns (m1, m2, and xS2).
- We can write 2 independent mass balances.
- Thus the crusher has 3-2 = 1 DOF
Therefore for the system as a whole:
- Sum of DOF for unit operations = 2 + 1 = 3 DOF
- Number of intermediate variables = 2 (m2 and xS2)
- Total DOF = 3 - 2 = 1 DOF.
Hence the problem is underspecified.
So how to we solve it?
In order to solve an underspecified problem, one way we can obtain an additional specification is to make an assumption. What assumptions could we make that would reduce the number of unknowns (or equivalently, increase the number of variables we do know)?
The most common type of assumption is to assume that something that is relatively insignificant is zero.
In this case, one could ask: will the solid stream from the strainer contain any water? It might, of course, but this amount is probably very small compared to both the amount of solids that are captured and how much is strained, provided that it is cleaned regularly and designed well. If we make this assumption, then this specifies that the mass fraction of water in the waste stream is zero (or equivalently, that the mass fraction of solids is one). Therefore, we know one additional piece of information and the degrees of freedom for the overall system become zero.
Step 3: Convert Units
This step should be done after the degree of freedom analysis, because that analysis is independent of your unit system, and if you don't have enough information to solve a problem (or worse, you have too much), you shouldn't waste time converting units and should instead spend your time defining the problem more precisely and/or seeking out appropriate assumptions to make.
Here, the most sensible choice is either to convert everything to the cgs system or to the m-kg-s system, since most values are already in metric. Here, the latter route is taken.
Now that everything is in the same system, we can move on to the next step.
Step 4: Relate your variables
First we have to relate the velocity and area given to us to the mass flowrate of stream 4, so that we can actually use that information in a mass balance. From chapter 2, we can start with the equation:
Since the pipe is circular and the area of a circle is , we have:
So we have that:
Now to find the density of stream 4 we assume that volumes are additive, since the solids and water are essentially immiscible (does an orange dissolve when you wash it?). Hence we can use the ideal-fluid model for density:
Hence, we have the equation we need with only concentrations and mass flowrates:
Now we have an equation but we haven't used either of our two (why two?) independent mass balances yet. We of course have a choice on which two to use.
In this particular problem, since we are directly given information concerning the amount of solid in stream 4 (the product stream), it seems to make more sense to do the balance on this component. Since we don't have information on stream 2, and finding it would be pointless in this case (all parts of it are the same as those of stream 1), lets do an overall-system balance on the solids:
Expanding the mass balance in terms of mass fractions gives:
Plugging in the known values, with the assumption that stream 3 is pure solids (no water) and hence :
Finally, we can utilize one further mass balance, so let's use the easiest one: the overall mass balance. This one again assumes that the total flowrate of stream 3 is equal to the solids flowrate.
We now have three equations in three unknowns so the problem is solvable. This is where all those system-solving skills will come in handy.
If you don't like solving by hand, there are numerous computer programs out there to help you solve equations like this, such as MATLAB, POLYMATH, and many others. You'll probably want to learn how to use the one your school prefers eventually so why not now?
Using either method, the results are:
We're almost done here, now we just have to calculate the number of oranges per year.
Chapter 3 Practice Problems
Chapter 4: Mass balances with recycle
What Is Recycle?
Recycling is the act of taking one stream in a process and reusing it in an earlier part of the process rather than discarding it. It is used in a wide variety of processes.
Uses and Benefit of Recycle
The use of recycle makes a great deal of environmental and economic sense, for the following reasons among others:
- Using recycle lets a company achieve a wider range of separations
This will be demonstrated in the next section. However, there is a tradeoff: the more dilute or concentrated you want your product to be, the lower the flowrate you can achieve in the concentrated or dilute stream.
- By using recycle, in combination with some sort of separation process, a company can increase the overall conversion of an equilibrium reaction.
You may recall from general chemistry that many reactions do not go to completion but only up to a certain point, because they are reversible. How far the reaction goes depends on the concentrations (or partial pressures for a gas) of the products and the reactants, which are related by the reaction stoichiometry and the equilibrium constant K. If we want to increase the amount of conversion, one way we can do this is to separate out the products from the product mixture and re-feed the purified reactants in to the reactor. By Le Chatlier's Principle, this will cause the reaction to continue moving towards the products.
- By using recycle, it is possible to recover expensive catalysts and reagents.
Catalysts aren't cheap, and if we don't try to recycle them into the reactor, they may be lost in the product stream. This not only gives us a contaminated product but also wastes a lot of catalyst.
- Because of the previous three uses, recycle can decrease the amount of equipment needed to get a process meet specifications and consumer demand.
For example, it may improve reaction conversion enough to eliminate the need for a second reactor to achieve an economical conversion.
- Recycle reduces the amount of waste that a company generates.
Not only is this the most environmentally sounds way to go about it, it also saves the company money in disposal costs.
- Most importantly, all of these things can save a company money.
By using less equipment, the company saves maintainence as well as capital costs, and probably gets the product faster too, if the proper analysis is made.it is use to stop the wastage of the material
Differences between Recycle and non-Recycle systems
The biggest difference between recycle and non-recycle systems is that the extra splitting and recombination points must be taken into account, and the properties of the streams change from before to after these points. To see what is meant by this, consider any arbitrary process in which a change occurs between two streams:
Feed -> Process -> Outlet
If we wish to implement a recycle system on this process, we often will do something like this:
The "extra" stream between the splitting and recombination point must be taken into account, but the way to do this is not to do a mass balance on the process, since the recycle stream itself does not go into the process, only the recombined stream does.
Instead, we take it into account by performing a mass balance on the recombination point and one on the splitting point.
Assumptions at the Splitting Point
The recombination point is relatively unpredictable because the composition of the stream leaving depends on both the composition of the feed and the composition of the recycle stream. However, the spliitng point is special because when a stream is split, it generally is split into two streams with equal composition. This is a piece of information that counts towards "additional information" when performing a degree of freedom analysis.
As an additional specification, it is common to know the ratio of splitting, i.e. how much of the exit stream from the process will be put into the outlet and how much will be recycled. This also counts as "additional information".
Assumptions at the Recombination Point
The recombination point is generally not specified like the splitting point, and also the recycle stream and feed stream are very likely to have different compositions. The important thing to remember is that you can generally use the properties of the stream coming from the splitting point for the stream entering the recombination point, unless it goes through another process in between (which is entirely possible).
Degree of Freedom Analysis of Recycle Systems
Degree of freedom analyses are similar for recycle systems to those for other systems, but with a couple important points that the engineer must keep in mind:
- The recombination point and the splitting point must be counted in the degree of freedom analysis as "processes", since they can have unknowns that aren't counted anywhere else.
- When doing the degree of freedom analysis on the splitting point, you should not label the concentrations as the same but leave them as separate unknowns until after you complete the DOF analysis in order to avoid confusion, since labeling the concentrations as identical "uses up" one of your pieces of information and then you can't count it.
As an example, let's do a degree of freedom analysis on the hypothetical system above, assuming that all streams have two components.
- Recombination Point: 6 variables (3 concentrations and 3 total flow rates) - 2 mass balances = 4 DOF
- Process: Assuming it's not a reactor and there's only 2 streams, there's 4 variables and 2 mass balances = 2 DOF
- Splitting Point: 6 variables - 2 mass balances - 1 knowing compositions are the same - 1 splitting ratio = 2 DOF
So the total is 4 + 2 + 2 - 6 (in-between variables) = 2 DOF. Therefore, if the feed is specified then this entire system can be solved! Of course the results will be different if the process has more than 2 streams, if the splitting is 3-way, if there are more than two components, and so on.
Suggested Solving Method
The solving method for recycle systems is similar to those of other systems we have seen so far but as you've likely noticed, they are increasingly complicated. Therefore, the importance of making a plan becomes of the utmost importance. The way to make a plan is generally as follows:
- Draw a completely labeled flow chart for the process.
- Do a DOF analysis to make sure the problem is solvable.
- If it is solvable, a lot of the time, the best place to start with a recycle system is with a set of overall system balances, sometimes in combination with balances on processes on the border. The reason for this is that the overall system balance cuts out the recycle stream entirely, since the recycle stream does not enter or leave the system as a whole but merely travels between two processes, like any other intermediate stream. Often, the composition of the recycle stream is unknown, so this simplifies the calculations a good deal.
- Find a set of independent equations that will yield values for a certain set of unknowns (this is often most difficult the first time; sometimes, one of the unit operations in the system will have 0 DOF so start with that one. Otherwise it'll take some searching.)
- Considering those variables as known, do a new DOF balance until something has 0 DOF. Calculate the variables on that process.
- Repeat until all processes are specified completely.
Example problem: Improving a Separation Process
It has been stated that recycle can help to This example helps to show that this is true and also show some limitations of the use of recycle on real processes.
Consider the following proposed system without recycle.
A degree of freedom analysis on this process:
4 unknowns (), 2 mass balances, and 2 pieces of information (knowing that 40% of A and half of B leaves in stream 3 is not independent from knowing that 60% of A and half of B leaves in stream 2) = 0 DOF.
Methods of previous chapters can be used to determine that and . This is good practice for the interested reader.
If we want to obtain a greater separation than this, one thing that we can do is use a recycle system, in which a portion of one of the streams is siphoned off and remixed with the feed stream in order for it to be re-separated. The choice of which stream should be re-siphoned depends on the desired properties of the exit streams. The effects of each choice will now be assessed.
Implementing Recycle on the Separation Process
This is a rather involved problem, and must be taken one step at a time. The analyses of the cases for recycling each stream are similar, so the first case will be considered in detail and the second will be left for the reader.
Step 1: Draw a Flowchart
You must be careful when drawing the flowchart because the separator separates 60% of all the A that enters it into stream 2, not 60% of the fresh feed stream.
Note: there is a mistake in the flow scheme. m6 and xA6 before the process is actually m4 and xA4
Step 2: Do a Degree of Freedom Analysis
Recall that you must include the recombination and splitting points in your analysis.
- Recombination point: 4 unknowns - 2 mass balances = 2 degrees of freedom
- Separator: 6 unknowns (nothing is specified) - 2 independent pieces of information - 2 mass balances = 2 DOF
- Splitting point: 6 unknowns (again, nothing is specified) - 2 mass balances - 1 assumption that concentration remains constant - 1 splitting ratio = 2 DOF
- Total = 2 + 2 + 2 - 6 = 0. Thus the problem is completely specified.
Step 3: Devise a Plan and Carry it Out
First, look at the entire system, since none of the original processes individually had 0 DOF.
- Overall mass balance on A:
- Overall mass balance on B:
We have 4 unknowns and 2 equations at this point. This is where the problem solving requires some ingenuity. First, lets see what happens when we combine this information with the splitting ratio and constant concentration at the splitter:
- Splitting Ratio:
- Constant concentration:
Plugging these into the overall balances we have:
- On A:
Again we have more equations than unknowns but we know how to relate everything in these two equations to the inlet concentrations in the separator. This is due to the conversions we are given:
- 60% of entering A goes into stream 2 means
- 40% of entering A goes into stream 3 means
- 50% of entering B goes into stream 2 means
- 50% of entering B goes into stream 3 means
Spend some time trying to figure out where these equations come from, it's all definition of mass fraction and translating words into algebraic equations.
Plugging in all of these into the existing balances, we finally obtain 2 equations in 2 unknowns:
Solving these equations gives:
Once these values are known, you can choose to do a balance either on the separator or on the recombination point, since both now have 0 degrees of freedom. We choose the separator because that leads directly to what we're looking for.
The mass balances on the separator can be solved using the same method as that without a recycle system, the results are:
Now since we know the flowrate of stream 3 and the splitting ratio we can find the rate of stream 6:
Now we can assess how effective the recycle is. The concentration of A in the liquid stream was reduced, by a small margin of 0.015 mole fraction. However, this extra reduction came at a pair of costs: the flow rate of dilute stream was significantly reduced: from 45 to 29.165 kg/hr! This limitation is important to keep in mind and also explains why we bother trying to make very efficient separation processes.
Systems with Recycle: a Cleaning Process
First Step: Draw a Flowchart
A schematic is given in the problem statement but it is very incomplete, since it does not contain any of the design specifications (the efficiency of the settler, the solubility of soil in water, and the mass flow rates). Therefore, it is highly recommended that you draw your own picture even when one is provided for you. Make sure you label all of the streams, and the unknown concentrations.
Second Step: Degree of Freedom Analysis
- Around the washer: 6 independent unknowns (), three independent mass balances (ore, dirt, and water), and one solubility. The washer has 2 DOF.
- Around the dryer: 2 independent unknowns () and two independent equations = 0 DOF.
- Around the Settler:5 independent unknowns (), two mass balances (dirt and water), the solubility of saturated dirt, and one additional information (90% removal of dirt), leaving us with 1 DOF.
- At the mixing point: We need to include this in order to calculate the total degrees of freedom for the process, since otherwise we're not counting m9 anywhere. 5 unknowns () and 2 mass balances leaves us with 3 DOF.
Therefore, Overall = 3+2+1 - 6 intermediate variables (not including xO4 since that's going to the dryer) = 0
The problem is well-defined.
Devising a Plan
Recall that the idea is to look for a unit operation or some combination of them with 0 Degrees of Freedom, calculate those variables, and then recalculate the degrees of freedom until everything is accounted for.
From our initial analysis, the dryer had 0 DOF so we can calculate the two unknowns xO4 and m5. Now we can consider xO4 and m5 known and redo the degree of freedom analysis on the unit operations.
- Around the washer: We only have 5 unknowns now (), but still only three equations and the solubility. 1 DOF.
- Around the settler: Nothing has changed here since xO4 and m5 aren't connected to this operation.
- Overall System: We have three unknowns () since is already determined, and we have three mass balances (ore, dirt, and water). Hence we have 0 DOF for the overall system.
Now we can say we know and .
- Around the settler again: since we know m7 the settler now has 0 DOF and we can solve for and .
- Around the washer again: Now we know m8 and xD8. How many balances can we write?
The washer therefore has 2 unknowns (m2, xD2) and 2 equations (the dirt and water balances) = 0 DOF
This final step can also be done by balances on the recombination point (as shown below). Once we have m2 and xD2 the system is completely determined.
The only given information in inconsistent units is the solubility, which is given as . However, since we know the density of water (or can look it up), we can convert this to as follows:
Now that this information is in the same units as the mass flow rates we can proceed to the next step.
Carrying Out the Plan
First, do any two mass balances on the dryer. I choose total and ore balances. Remember that the third balance is not independent of the first two!
- Overall Balance:
- Ore Balance:
Substituting the known values:
Now that we have finished the dryer we do the next step in our plan, which was the overall system balance:
- Water Balance:
- Ore Balance:
- Dirt Balance:
Next we move to the settler as planned, this one's a bit trickier since the solutions aren't immediately obvious but a system must be solved.
- Overall Balance:
- Dirt Balance:
- Efficiency of Removal:
Using the solubility is slightly tricky. You use it by noticing that the mass of dirt in stream 3 is proportional to the mass of water, and hence you can write that:
- mass dirt in stream 3 = 0.4 * mass water in stream 3
Plugging in known values, the following system of equations is obtained:
Solving these equations for the 4 unknowns, the solutions are:
Finally, we can go to the mixing point, and say:
From which the final unknowns are obtained:
Since the problem was asking for , we are now finished.
Check your work
These values should be checked by making a new flowchart with the numerical values, and ensuring that the balances on the washer are satisfied. This is left as an exercise for the reader.
Chapter 5: Mass/mole balances in reacting systems
Review of Reaction Stoichiometry
Up until now, all of the balances we have done on systems have been in terms of mass. However, mass is inconvenient for a reacting system because it does not allow us to take advantage of the stoichiometry of the reaction in relating the relative amounts of reactants and of products.
Stoichiometry is the relationship between reactants and products in a balanced reaction as given by the ratio of their coefficients. For example, in the reaction:
the reaction stoichiometry would dictate that for every one molecule of (acetylene) that reacts, two molecules of (hydrogen) are consumed and one molecule of are formed. However, this does not hold for grams of products and reactants.
Even though the number of molecules in single substance is proportional to the mass of that substance, the constant of proportionality (the molecular mass) is not the same for every molecule. Hence, it is necessary to use the molecular weight of each molecule to convert from grams to moles in order to use the reaction's coefficients.
Molecular Mole Balances
We can write balances on moles like we can on anything else. We'll start with our ubiquitous general balance equation:
As usual we assume that accumulation = 0 in this book so that:
Let us denote molar flow rates by to distinguish them from mass flow rates. We then have a similar equation to the mass balance equation:
The same equation can be written in terms of each individual species.
There are a couple of important things to note about this type of balance as opposed to a mass balance:
- Just like with the mass balance, in a mole balance, a non-reactive system has for all species.
- Unlike the mass balance, the TOTAL generation of moles isn't necessarily 0 even for the overall mole balance! To see this, consider how the total number of moles changes in the above reaction; the final number of moles will not equal the initial number because 3 total moles of molecules are reacting to form 1 mole of products.
Why would we use it if the generation isn't necessarily 0? We use the molecular mole balance because if we know how much of any one substance is consumed or created in the reaction, we can find all of the others from the reaction stoichiometry. This is a very powerful tool because each reaction only creates one new unknown if you use this method! The following section is merely a formalization of this concept, which can be used to solve problems involving reactors.
Extent of Reaction
In order to formalize the previous analysis of reactions in terms of a single variable, let us consider the generic reaction:
The Molar Extent of Reaction X is defined as:
Since all of these are equivalent, it is possible to find the change in moles of any species in a given reaction if the extent of reaction X is known.
The following example illustrates the use of the extent of reaction.
Mole Balances and Extents of Reaction
The mole balance written above can be written in terms of extent of reaction if we notice that the term defined above is exactly the number of moles of a generated or consumed by the reaction.
Therefore we can write that:
where X is the molar extent of reaction and a is the stoichiometric coefficient of A. Plugging this into the mole balance derived earlier, we arrive at the molecular mole balance equation:
Degree of Freedom Analysis on Reacting Systems
If we have N different molecules in a system, we can write N mass balances or N mole balances, whether a reaction occurs in the system or not. The only difference is that in a reacting system, we have one additional unknown, the molar extent of reaction, for each reaction taking place in the system. Therefore each reaction taking place in a process will add one degree of freedom to the process.
Unfortunately, life is not ideal, and even if we want a single reaction to occur to give us only the desired product, this is either impossible or uneconomical compared to dealing with byproducts, side reactions, equilibrium limitations, and other non-idealities.
Independent and Dependent Reactions
When you have more than one reaction in a system, you need to make sure that they are independent. The idea of independent reactions is similar to the idea of linear independence in mathematics.
Lets consider the following two general parallel competing reactions:
We can represent each of the reactions by a vector of the coefficients:
By definition a set of vectors is only linearly independent if the equation:
where K1 and K2 are constants only has one solution: .
Lets plug in our vectors:
Since all components must add up to 0, the following system follows:
Obviously, the last three equations imply that unless c = d = 0 and e2 = 0, and thus the reactions are independent.
Linearly Dependent Reactions
There is one rule to keep in mind whenever you are checking for reaction dependence or independence, which is summarized in the following box.
Therefore, if the following reaction could occur in the same system as the two above:
then it would not be possible to analyze all three reactions at once, since this reaction is the sum of the first two. Only two can legitimately be analyzed at the same time.
All degree of freedom analyses in this book assume that the reactions are independent. You should check this by inspection or, for a large number of reactions, with numerical methods.
Extent of Reaction for Multiple Independent Reactions
When you are setting up extent of reaction in a molecular species balance, you must sure that you set up one for each reaction, and include both in your mole balance. So really, your mole balance will look like this:
for all k reactions. In such cases it is generally easier, if possible, to use an atom balance instead due to the difficulty of solving such equations.
In many cases (actually, the majority of them), a given reaction will be reversible, meaning that instead of reacting to completion, it will stop at a certain point and not go any farther. How far the reaction goes is dictated by the value of the equilibrium coefficient. Recall from general chemistry that the equilibrium coefficient for the reaction is defined as follows:
Here [A] is the equilibrium concentration of A, usually expressed in molarity for an aqueous solution or partial pressure for a gas. This equation can be remembered as "products over reactants" .
Usually solids and solvents are omitted by convention, since their concentrations stay approximately constant throughout a reaction. For example, in an aqueous solution, if water reacts, it is left out of the equilibrium expression.
Often, we are interested in obtaining the extent of reaction of an equilibrium reaction when it is in equilibrium. In order to do this, first recall that:
and similar for the other species.
Rewriting this in terms of molarity (moles per volume) by dividing by volume, we have:
Or, since the final state we're interested in is the equilibrium state,
Solving for the desired equilibrium concentration, we obtain the equation for equilibrium concentration of A in terms of conversion:
Similar equations can be written for B, C, and D using the definition of extent of reaction. Plugging in all the equations into the expression for K, we obtain:
At equilibrium for liquid-phase reactions only
Using this equation, knowing the value of K, the reaction stoichiometry, the initial concentrations, and the volume of the system, the equilibrium extent of reaction can be determined.
By convention, gas-phase equilibrium constants are given in terms of partial pressures which, for ideal gasses, are related to the mole fraction by the equation:
If A, B, C, and D were all gases, then, the equilibrium constant would look like this:
In order to write the gas equilibrium constant in terms of extent of reaction, let us assume for the moment that we are dealing with ideal gases. You may recall from general chemistry that for an ideal gas, we can write the ideal gas law for each species just as validly as we can on the whole gas (for a non-ideal gas, this is in general not true). Since this is true, we can say that:
Plugging this into the equation for above, we obtain:
Similar equations can be written for the other components. Plugging these into the equilibrium constant expression:
Gas Phase Ideal-Gas Equilibrium Reaction at Equilibrium
Again, if we know we are at equilibrium and we know the equilibrium coefficient (which can often be found in standard tables) we can calculate the extent of reaction.
Special Notes about Gas Reactions
You need to remember that In a constant-volume, isothermal gas reaction, the total pressure will change as the reaction goes on, unless the same number of moles are created as produced. In order to show that this is true, you only need to write the ideal gas law for the total amount of gas, and realize that the total number of moles in the system changes.
This is why we don't want to use total pressure in the above equations for K, we want to use partial pressures, which we can conveniently write in terms of extent of reaction.
Notice that all of the above equilibrium equations depend on concentration of the substance, in one form or another. Therefore, if there are species present that don't react, they may still have an effect on the equilibrium because they will decrease the concentrations of the reactants and products. Just make sure you take them into account when you're calculating the concentrations or partial pressures of each species in preparation for plugging into the equilibrium constant.
Example Reactor Solution using Extent of Reaction and the DOF
It always helps to draw a flowchart:
There are four independent unknowns: the total mass (mole) flowrate out of the reactor, the concentrations of two of the exiting species (once they are known, the forth can be calculated), and the extent of reaction.
Additionally, we can write four independent equations, one on each reacting substance. Hence, there are 0 DOF and this problem can be solved.
Let's illustrate how to do it for this relatively simple system, which illustrates some very important things to keep in mind.
First, recall that total mass is conserved even in a reacting system. Therefore, we can write that:
Now, since component masses aren't conserved, we need to convert as much as we can into moles so we can apply the extent of reaction.
Let's use the mole balance on oxygen to find the extent of reaction, since we know how much enters and how much leaves. Recall that:
where a is the stoichiometric coefficient for A. Plugging in known values, including a = 8 (from the reaction written above), we have:
Now let's apply the mole balances to the other species to find how much of them is present:
- (note it's + instead of - because it's being generated rather than consumed by the reaction)
Finally, the last step we need to do is find the mass of all of these, and divide by the total mass to obtain the mass percents. As a sanity check, all of these plus 25 kg of oxygen should yield 100 kg total.
- Mass out = 1080 moles * 0.034 kg\mole = 36.72 kg
- Mass out = 97.66 moles * .284 kg\mole = 27.74 kg
- Mass out = 586 moles * 0.018 kg\mole = 10.55 kg
Sanity check: 36,72 + 27.74 + 10.55 + 25 (oxygen) = 100 kg (total), so we're still sane.
Hence, we get:
Example Reactor with Equilibrium
Solution: First, draw a flowchart of what we're given.
Since all of the species are dissolved in water, we should write the equilibrium constant in terms of molarity:
We use initial molarities of A and B, while we are given mass percents, so we need to convert.
Let's first find the number of moles of A and B we have initially:
Now, the volume contributed by the 100kg of 16% B solution is:
Since adding the A contributes 5L to the volume, the volume after the two are mixed is .
By definition then, the molarities of A and B before the reaction occurs are:
In addition, there is no C or D in the solution initially:
According to the stoichiometry of the reaction, . Therefore we now have enough information to solve for the conversion. Plugging all the known values into the equilibrium equation for liquids, the following equation is obtained:
This equation can be solved using Goalseek or one of the numerical methods in appendix 1 to give:
Since we seek the amount of compound C that is produced, we have:
- Since , this yields
Introduction to Reactions with Recycle
Reactions with recycle are very useful for a number of reasons, most notably because they can be used to improve the selectivity of multiple reactions, push a reaction beyond its equilibrium conversion, or speed up a catalytic reaction by removing products. A recycle loop coupled with a reactor will generally contain a separation process in which unused reactants are (partially) separated from products. These reactants are then fed back into the reactor along with the fresh feed.
Example Reactor with Recycle
Let's first draw our flowchart as usual:
- On reactor: 6 unknowns - 3 equations = 3 DOF
- On separator: 5 unknowns - 3 equations = 2 DOF
- On splitter: 3 unknowns - 0 equations (we used all of them in labeling the chart) -> 3 DOF
- Duplicate variables: 8 ( twice each and once)
- Total DOF = 8 - 8 = 0 DOF
Plan and Solution
Generally, though not always, it is easiest to deal with the reactor itself last because it usually has the most unknowns. Lets begin by looking at the overall system because we can often get some valuable information from that.
Overall System DOF(overall system) = 4 unknowns () - 3 equations = 1 DOF.
Let's go ahead and solve for m5 though because that'll be useful later.
We can't do anything else with the overall system without knowing the conversion so lets look elsewhere.
DOF(separator) = 4 unknowns () - 3 equations = 1 DOF. Let's solve for those variables we can though.
We can solve for m3 because from the overall material balance on the separator:
Then we can do a mass balance on A to solve for xA5:
Since we don't know or , we cannot use the mass balance on B or C for the separator, so lets move on. Let's now turn to the reactor:
DOF: 3 unknowns remaining () - 2 equations (because the overall balance is already solved!) = 1 DOF. Therefore we still cannot solve the reactor completely. However, we can solve for the conversion and generation terms given what we know at this point. Lets start by writing a mole balance on A in the reactor.
To find the three nA terms we need to convert from mass to moles (since A is hydrogen, H2, the molecular weight is ):
Thus the total amount of A entering the reactor is:
The amount exiting is:
Therefore we have the following from the mole balance:
Now that we have this we can calculate the mass of B and C generated:
At this point you may want to calculate the amount of B and C leaving the reactor with the mass balances on B and C:
However, these equations are exactly the same! Therefore, we have proven our assertion that there is still 1 DOF in the reactor. So we need to look elsewhere for something to calculate xB5. That place is the separator balance on B:
Solving these two equations (1) and (2) yields the final two variables in the system:
Note that this means the predominant species in stream 5 is also C (). However, the separator/recycle setup does make a big difference, as we'll see next.
Comparison to the situation without the separator/recycle system
Now that we know how much ethane we can obtain from the reactor after separating, let's compare to what would happen without any of the recycle systems in place. With the same data as in the first part of this problem, the new flowchart looks like this:
There are three unknowns () and three independent material balances, so the problem can be solved. Starting with an overall mass balance because total mass is conserved:
We can carry out the same sort of analysis on the reactor as we did in the previous section to find the conversion and mass percent of C in the exit stream, which is left as an exercise to the reader. The result is that:
Compare this to the two exit streams in the recycle setup. Both of the streams were richer in C than 77%, even the reject stream. This occurred because the unreacted A and B was allowed to re-enter the reactor and form more C, and the separator was able to separate almost all the C that formed from the unreacted A and B.
The concept of atom balances
Let's begin this section by looking at the reaction of hydrogen with oxygen to form water:
We may attempt to do our calculations with this reaction, but there is something seriously wrong with this equation! It is not balanced; as written, it implies that an atom of oxygen is somehow "lost" in the reaction, but this is in general impossible. Therefore, we must compensate by writing:
or some multiple thereof.
Notice that in doing this we have made use of the following conservation law, which is actually the basis of the conservation of mass:
Since by definition the number of moles of an element is proportional to the number of atoms, this implies that where A represents any element in atomic form.
Mathematical formulation of the atom balance
Now recall the general balance equation:
In this course we're assuming . Since the moles of atoms of any element are conserved, . So we have the following balance on a given element A:
Degree of Freedom Analysis for the atom balance
As before, to do a degree of freedom analysis, it is necessary to count the number of unknowns and the number of equations one can write, and then subtract them. However, there are a couple of important things to be aware of with these balances.
- When doing atom balances, the extent of reaction does not count as an unknown, while with a molecular species balance it does. This is the primary advantage of this method: the extent of reaction does not matter since atoms of elements are conserved regardless of how far the reaction has proceeded.
- You need to make sure each atom balance will be independent. This is difficult to tell unless you write out the equations and look to see if any two are identical.
- In reactions with inert species, each molecular balance on the inert species counts as an additional equation. This is because of the following important note:
Example of the use of the atom balance
Let's re-examine a problem from the previous section. In that section it was solved using a molecular species balance, while here it will be solved using atom balances.
For purposes of examination, the flowchart is re-displayed here:
Degree of Freedom Analysis
There are three elements involved in the system (P, H, and O) so we can write three atom balances on the system.
There are likewise three unknowns (since the extent of reaction is NOT an unknown when using the atom balance): the outlet concentrations of
Therefore, there are 3 - 3 = 0 unknowns.
Let's start the same as we did in the previous section: by finding converting the given information into moles. The calculations of the previous section are repeated here:
Now we start to diverge from the path of molecular balances and instead write atom balances on each of the elements in the reaction. Let's start with Phosphorus. How many moles of Phosphorus atoms are entering?
- Inlet: Only provides P, so the inlet moles of P are just
- Outlet: There are two ways phosphorus leaves: as unused or as the product . Therefore, the moles of out are . Note that the 4 in this equation comes from the fact that there are 4 Phosphorus atoms in every mole of .
Therefore the atom balance on Phosphorus becomes:
Similarly, on Oxygen we have:
Finally, check to see if you can get the following Hydrogen balance as a practice problem:
Solving these three linear equations, the solutions are:
All of these answers are identical to those obtained using extents of reaction. Since the remainder of the solution to that problem is identical to that in the previous section, the reader is referred there for its completion.
Example of balances with inert species
Sometimes it's more difficult to choose which type of balance you want, because both are possible but one is significantly easier than the other. As an example, lets consider a basic pollution control system.
Step 1: Flowchart
Flowcharts are becoming especially important now as means of organizing all of that information!
Step 2: Degrees of Freedom
Let's consider an atomic balance on each reactor.
- Denitrification system: 9 unknowns (all concentrations in stream 3, and .) - 3 atom balances (N, H, and O) - 3 inert species () - 1 additional info (3X stoichiometric feed) = 2 DOF
- Desulfurization system: 15 unknowns - 4 atom balances (N, H, O, and S) - 5 inerts () = 6 DOF
- Total = 2 + 6 - 8 shared = 0 DOF, hence the problem has a unique solution.
We can also perform the same type of analysis on molecular balances.
- Denitrification system: 10 unknowns (now the conversion is also unknown) - 8 molecular species balances - 1 additional info = 1 DOF
- Desulfurization system: 16 unknowns (now the conversion is unknown) - 9 balances = 7 DOF.
- Total = 1 + 7 - 8 shared = 0 DOF.
Therefore the problem is theoretically solvable by both methods.
Step 3: Units
The only weird units in this problem (everything is given in moles already so no need to convert) are in the volumetric flowrate, which is given in . Lets convert this to using the ideal gas law. To use the law with the given value of R is is necessary to change the flowrate to units of :
Now that everything is in good units we can move on to the next step.
Step 4: Devise a plan
We can first determine the value of using the additional information. Then, we should look to an overall system balance.
Since none of the individual reactors is completely solvable by itself, it is necessary to look to combinations of processes to solve the problem. The best way to do an overall system balance with multiple reactions is to treat the entire system as if it was a single reactor in which multiple reactions were occurring. In this case, the flowchart will be revised to look like this:
Before we try solving anything, we should check to make sure that we still have no degrees of freedom.
There are 8 unknowns (don't count conversions when doing atom balances), 4 types of atoms (H, N, O, and S), 2 species that never react, and 1 additional piece of information (3X stoichiometric), so there is 1 DOF. This is obviously a problem, which occurs because when performing atom balances you cannot distinguish between species that react in only ONE reaction and those that take part in more than one.
In this case, then, it is necessary to look to molecular-species balances.
In this case, there are 10 unknowns, but we can do molecular species balances on 9 species and have the additional information, so there are 0 DOF when using this method.
Once we have all this information, getting the information about stream 3 is trivial from the definition of extent of reaction.
Step 5: Carry Out the Plan
First off we can determine by using the definition of a stoichiometric feed.
The stoichiometric amount of ammonia needed to react with this is, from the reaction,
Since the problem states that three times this amount is injected into the denitrification system, we have:
Now, we are going to have a very complex system of equations with the 9 molecular balances. This may be a good time to invest in some equation-solving software.
See if you can derive the following system of equations from the overall-system flowchart above.
Using an equation-solving package, the following results were obtained:
Now that we have completely specified the composition of stream 4, it is possible to go back and find the compositions of stream 3 using the extents of reaction and feed composition. Although this is not necessary to answer the problem statement, it should be done, so that we can then test to make sure that all of the numbers we have obtained are consistent.
Chapter 6: Multiple-phase systems, introduction to phase equilibrium
What IS an ideal gas?
Recall from general chemistry that the volume, pressure, temperature, and moles of a gas in a closed system can be related by the following equation, which is referred to as the ideal gas law:
R is referred to as the Universal Gas Constant, and it has the following values for different units of P, V, n, and T:
One thing that may have been de-emphasized in an introductory chemistry course is the fact that gasses do not always follow this law. In fact, they only do under very special circumstances.
Theoretical background on the ideal gas law
The ideal gas law relies on several rather strong assumptions about the nature of gasses, which make up the classical Kinetic Theory of Gases. These assumptions are:
- That gas molecules do not interact with each other whatsoever.
- That all collisions between molecules and each other or with the walls of the container are completely elastic, meaning the mean kinetic energy of the molecules stays the same.
- That gas molecules are very small compared to the distance between them.
There are several other assumptions as well, but these will suffice to explain why deviations occur.
Important facts about ideal gasses
Ideal gasses are nice because they have several properties that make them relatively easy and useful to work with:
- A mixture of ideal gasses is also an ideal gas. Therefore, you can use the ideal gas law on the entire mixture or on any of its components without loss of validity.
- The Partial Pressure of a component in an ideal gas mixture is related to the total pressure by the equation where is the mole fraction of component A in the mixture.
- The ideal gas equation, if it is valid, is independent of the properties of the gas. Therefore, there is no need to look up or measure gas-specific parameters, all you need to know is 3 of the unknowns (P,V,T, and n) and you can solve for the fourth one.
- The enthalpy and entropy of an ideal gas only depend on temperature (not pressure or volume).
- Many gasses are close to ideal at low pressures and high temperatures. Therefore it can be used as a realistic reference state to which a real gas can be compared.
There are many other useful properties of ideal gasses that will be discussed in thermodynamics.
Deviations at high pressure
Suppose that you have water vapor in a small water bottle. What happens when you apply pressure to that vapor by shrinking the volume? If you apply more pressure to the bottle, the gas molecules within become closer and closer together. However, the closer molecules of a substance are to one another, the larger the dispersion forces (and polar forces, if applicable) are between them. Eventually, the dispersion forces become significant, and the kinetic theory of gasses as stated above is no longer valid. Therefore, the ideal gas law no longer applies, or becomes a rough estimate at best.
At very high pressures, a vapor might even condense into a liquid, which would also invalidate the use of the law.
Deviations at low temperature
By definition of temperature, when the temperature of a substance decreases, this indicates a lower average kinetic energy of the molecules of that substance. Molecules with less kinetic energy also have less momentum, and therefore are more easily swayed by dispersion forces from other molecules and by gravity. Eventually, the temperature might become low enough that the forces from other molecules cause significant deviations in the path of a molecule, and in this case the ideal gas law becomes less valid.
As with pressure, a very low temperature can cause a gas to condense.
Rule of thumb for use of the ideal gas law
Due to the above two discussions, we can claim that the ideal gas law is a decent assumption at high temperatures and low pressures, but should not be used outside that realm.
The Idea of Equations of State
The ideal gas law is not the only way to express relationships between system properties. There are an infinite number of possible ways that you could propose to correlate system variables, although thermodynamics provides some guidelines regarding how many variables to correlate and what types of correlations we should look for. In particular, it is most useful to correlate relationships between state variables, for which changes in the properties do not depend on how the change occurred.
Any equation that relates state variables is called an equation of state. The most commonly-used equations of state relate the variables P, T, V, and n (pressure, temperature, volume, and number of moles) since they are all measurable variables whereas many other possible variables are not directly measurable (such as enthalpy, which will be discussed later).
There is a highly useful quantity for describing how much a gaseous system deviates from ideality, which is called the compressibility of the gas. The compressibility Z is defined as:
For an ideal gas, since , . Therefore, any deviation of the compressibility from 1 is a nonideality.
The compressibility of a liquid is very small, due to a small volume per mole of substance compared to that of a gas.
Ideal Gas Law Extension
One use of the compressibility is that it allows a simple extension of the ideal gas law, which is completely general.
Unfortunately, Z is not a constant for any material, but changes with pressure and temperature. However, in a later section you will learn a technique called the generalized compressibility method with which you can estimate the value of Z for any substance, given certain data. Once it is known, this extension can be used to calculate an unknown system property.
Alternatives to the ideal gas law 1: Van der Waals Equation
One of the oldest equations that was developed to take non-ideality into account is called the Van der Waals Equation, which has two substance-dependent parameters. One takes into account the interactions between particles, and the other the fact that particles have volume, sometimes substantial.
The Van der Waals equation is as follows:
A list of values for a and b can be found on Wikipedia at this page.
The Van der Waals equation is significantly more accurate than the ideal gas law and can be used to crudely predict when a gas will condense. However, it is not sufficiently accurate for many industrial purposes, and therefore other methods have been sought since then.
Alternatives to the ideal gas law 2: Virial Equation
The Virial equation is an equation which has a potentially infinite number of parameters that depend on the properties of the substances involved. It is important because it can be shown to be a valid extension to the ideal gas law using statistical theories (whereas the other equations of state have been derived semi-empirically).
The virial equation can take several forms, depending on the data one has available. The one in terms of molar volume is:
where is the molar volume, which is the same as
Alternatives to the ideal gas law 3: Peng-Robinson equation
One of the more modern equations of state is the Peng-Robinson equation, which is most useful for describing nonpolar molecules such as hydrocarbons or nitrogen. The Peng-Robinson equation has two parameters like the Van der Waals equation, but unlike the latter, one of the parameters is not constant; it depends on the temperature of the system as well as the properties of the substance inside.
Many processes in chemical engineering do not only involve a single phase but a combination of two immiscible liquids, or a stream containing both gas and liquid. It is very important to recognize and be able to calculate when these phases are in equilibrium with each other, and how much is in each phase. This knowledge will be especially useful when you study separation processes, for many of these processes work by somehow distorting the equilibrium so that one phase is especially rich in one component, and the other is rich in the other component.
More specifically, there are three important criteria for different phases to be in equilibrium with each other:
- The temperature of the two phases is the same at equilibrium.
- The partial pressure of every component in the two phases is the same at equilibrium.
- The Gibbs free energy' of every component in the two phases is the same at equilibrium.
The third criteria will be explored in more depth in another course; it is a consequence of the first two criteria and the second law of thermodynamics.
Single-Component Phase Equilibrium
If there is only a single component in a mixture, there is only a single possible temperature (at a given pressure) for which phase equilibrium is possible. For example, water at standard pressure (1 atm) can only remain in equilibrium at 100°C. Below this temperature, all of the water condenses, and above it, all of the water vaporizes into steam.
At a given temperature, the unique atmospheric pressure at which a pure liquid boils is called its vapor pressure. If the atmospheric pressure is higher than the vapor pressure, the liquid will not boil. Vapor pressure is strongly temperature-dependent. Water at 100°C has a vapor pressure of 1 atmosphere, which explains why water on Earth (which has an atmosphere of about 1 atm) boils at 100°C. Water at a temperature of 20°C(a typical room temperature) will only boil at pressures under 0.023 atm, which is its vapor pressure at that temperature.
Multiple-Component Phase Equilibrium: Phase Diagrams
In general, chemical engineers are not dealing with single components; instead they deal with equilibrium of mixtures. When a mixture begins to boil, the vapor does not, in general, have the same composition as the liquid. Instead, the substance with the lower boiling temperature (or higher vapor pressure) will have a vapor concentration higher than that with the higher boiling temperature, though both will be present in the vapor. A similar argument applies when a vapor mixture condenses.
The concentrations of the vapor and liquid when the overall concentration and one of the temperature or pressure are fixed can easily be read off of a phase diagram. In order to read and understand a phase diagram, it is necessary to understand the concepts of bubble point and dew point for a mixture.
Bubble Point and Dew Point
In order to be able to predict the phase behavior of a mixture, scientists and engineers examine the limits of phase changes, and then utilize the laws of thermodynamics to determine what happens in between those limits. The limits in the case of gas-liquid phase changes are called the bubble point and the dew point.
The names imply which one is which:
- The bubble point is the point at which the first drop of a liquid mixture begins to vaporize.
- The dew point is the point at which the first drop of a gaseous mixture begins to condense.
If you are able to plot both the bubble and the dew points on the same graph, you come up with what is called a Pxy or a Txy diagram, depending on whether it is graphed at constant temperature or constant pressure. The "xy" implies that the curve is able to provide information on both liquid and vapor compositions, as we will see when we examine the thermodynamics in more detail.
Txy and Pxy diagrams
The easier of the two diagrams to calculate (but sometimes harder to grasp intuitively) is the Pxy diagram, which is shown below for an idealized Benzene-Toluene system:
In order to avoid getting confused about what you're looking at, think: what causes a liquid to vaporize? Two things should come to mind:
- Increasing the temperature
- Decreasing the pressure
Therefore, the region with the higher pressure is the liquid region, and that of lower pressure is vapor, as labeled. The region in between the curves is called the two-phase region.
Now that we have this curve, what can we do with it? There are several critical pieces of information we can gather from this graph by simple techniques, which have complete analogies in the Txy diagram. First, note that the two lines intersect at and at . These intersections are the pure-component vapor pressures at , since a pure component boils at its vapor pressure.
We can determine, given the mole fraction of one component and a pressure, whether the system is gas, liquid, or two-phase, which is critical information from a design standpoint. For example, if the Benzene composition in the Benzene-Toluene system is 40% and the pressure is 25 mmHg, the entire mixture will be vapor, whereas if the pressure is raised to 50 mmHg it will all condense. The design of a flash evaporator at 20oC would require a pressure between about 30 and 40 mmHg (the 2-phase region).
We can also determine the composition of each component in a 2-phase mixture, if we know the overall composition and the vapor pressure. First, start on the x-axis at the overall composition and go up to the pressure you want to know about. Then from this point, go left until you reach the bubble-point curve to find the liquid composition, and go to the right until you reach the dew-point curve to find the vapor composition. See the below diagram.
This method "works" because the pressure must be constant between each phase while the two phases are in equilibrium. The bubble and dew compositions are the only liquid and vapor compositions that are stable at a given pressure and temperature, so the system will tend toward those values.
Another useful rule is the lever rule which can be used to calculate the percentage of all the material that is in a given phase (as opposed to the composition of the vapor). The lever rule equation is :
- Lever Rule
The phase whose percent you're calculating is simply the one which you are going towards for the line segment in the numerator; for example, D1 is going from the point of interest to the liquid phase, so if D1 is in the numerator then you're calculating percent of liquid.
Txy diagrams have entirely analogous rules, but just be aware that the graph is "reversed" somewhat in shape. It's somewhat harder to calculate even in an ideal case, requiring an iterative solution, but is more useful for isobaric (constant-pressure) systems and is worth the effort. The extreme ends of the txy diagram are the boiling temperatures of pure toluene (xb = 0) and benzene (xb = 1) at 760 mmHg.
VLE phase diagram summary
To summarize, here's the information you can directly garner from a phase diagram. Many of these can be used for all types of phase diagrams, not just VLE.
- You can use it to tell you what phase(s) you are in at a given composition, temperature, and/or pressure.
- You can use it to tell you what the composition of each phase will be, if you're in a multiphase region.
- You can use it to tell you how much of the original solution is in each phase, if you're in a multiphase region.
- You can use it to gather some properties of the pure materials from the endpoints (though these are usually the best-known of all the mixture properties).
This data is invaluable in systems design which is why you'll be drilled with it before you graduate.
Raoult's Law: the Simplest Case
The simplest case (by far) to analyze occurs when an ideal solution is in equilibrium with an ideal gas. This is potentially a good approximation when two very similar liquids (the archetypal example is benzene and toluene) are dissolved in each other. It is also a good approximation for solvent properties (NOT solute properties; there is another law for that) when a very small amount of a solute is dissolved.
In an ideal liquid, the pressure exerted by a certain component on the gas is proportional to the vapor pressure of the pure liquid. The only thing that may prevent the liquid from exerting this much pressure is the fact that another component is present. Therefore, the partial pressure of the liquid component on the gas component is:
where is the vapor pressure of pure component A.
Recall that the partial pressure of an ideal gas in a mixture is given by:
Therefore, since the partial pressures must be equal at equilibrium, we have the Raoult's Law equation for each component:
Vapor Pressure Correlations
Unfortunately, life isn't that simple even when everything is ideal. Vapor pressure is not by any stretch of the imagination a constant. In fact, it has a very strong dependence on temperature. Therefore, people have spent a good deal of time and energy developing correlations with which to predict the vapor pressure of a given substance at any reasonable temperature.
One of the most successful correlations is called the Antoine Equation, which uses three coefficients, A, B, and C, which depend on the substance being analyzed. The Antoine Equation is as follows.
Bubble Point and Dew Point with Raoult's Law
When calculating either a bubble point or a dew point, one quantity is key, and this is the overall composition, denoted with the letter z. This is to distinguish it from the single-phase composition in either the liquid or the gas phase. It is necessary to distinguish between them because the composition of the two phases will almost always be different at equilibrium.
It is important to remember that the dew and bubble points of a multi-component mixture are limits. The bubble point is the point at which a very small amount of the liquid has evaporated - so small, in fact, that in essence, the liquid phase composition remains the same as the overall composition. Making this assumption, it is possible to calculate the composition of that single bubble of vapor that has formed.
Similarly, the dew point is the point at which a very small amount of the vapor has condensed, so that the gas phase composition remains the same as the overall composition, and thus it is possible to calculate the composition of the single bubble of liquid.
Recall that the dew point of a solution is the set of conditions (either a temperature at constant pressure or a pressure at constant temperature) at which the first drops of a vapor mixture begin to condense.
Let us first consider how to calculate the bubble point (at a constant temperature) of a mixture of 2 components A and B, assuming that the mixture follows Raoult's Law under all conditions. To begin, write Raoult's Law for each component in the mixture.
We can add these two equations together to yield:
Now since and are mole fractions and A and B are the only components of the mixture, . In addition, recall that since we are considering the bubble point, the liquid composition is essentially equal to the overall composition. Therefore, and .
Hence we have the following equation valid at the bubble point for an ideal equilibrium:
Therefore, if the temperature and overall composition are known, the bubble pressure can be determined directly.
If the pressure is held constant and the bubble point temperature is required, it is necessary to calculate the temperature by an iterative method. The temperature dependence is contained in the Antoine equation for vapor pressure of each component. One method to solve for the temperature is to:
- Guess a temperature
- Use the guess and the Antoine equation to calculate the vapor pressure of each component in the mixture.
- Calculate an equilibrium pressure using the bubble point pressure equation.
- If the calculated pressure does not equal the known pressure, it is necessary to change the temperature and try again.
This process is ideally suited to spreadsheet functions such as Excel's "goalseek" routine. An example calculation will be shown in the next section.
If there is more than one component, a similar derivation yields the following:
The Dew Point calculation is similar, although the equation that results from the derivation is somewhat more complex. The starting point is the same: assume that Raoult's Law applies to each component.
Now we want to eliminate the liquid compositions in a similar manner to how we eliminated the vapor compositions in the previous derivation. To do this we need to divide by the vapor pressures:
Adding the equations and recalling that , we have:
Since this is the dew point, the gas-phase composition is essentially the overall composition, and therefore we have the following dew point equation:
For multiple components, the equation is similarly:
Phase Diagrams Resulting from Raoult's Law
By holding one variable constant, varying a second, and calculating the other two, it is possible to calculate a phase diagram from Raoult's Law. Typical Pxy and Txy diagrams derived from Raoult's Law were shown in the previous section for the benzene-toluene system.
Diagrams for systems that follow Raoult's Law are relatively "nice"; it can be shown that they will never have azeotropes, which would be indicated by intersection of the bubble and dew point lines. In addition, since only one parameter in the equation depends on the temperature (the vapor pressure) and the pressure dependence is explicit, the dew and bubble point lines are relatively easy to calculate.
Deviations from Raoult's Law occur because not all solutions are ideal, nor are all gas mixtures. Therefore, methods have been developed in order to take these nonidealities into account.
The third non-ideal method, Henry's Law, is especially useful for dilute solutions, and states that at very low concentrations, the partial pressure of the dilute component over a liquid mixture is proportional to the concentration:
This law is very similar to Raoult's Law, except that the proportionality constant is not the pure-component vapor pressure but is empirically determined from VLE data. Like the pure-component vapor pressure, the Henry's constant is dependent on temperature and the nature of component A. Unlike the pure-component vapor pressure, it also depends on the solvent, so when utilizing tables of Henry's constants, make sure that the solvents match.
Henry's Law constants are generally very small, and are most useful when the concentration is less than 10% (depending on how accurate you want it, the concentration may need to be less than this).
Excess Gibbs Energy
The other two commonly-used correction parameters, the activity coefficient and the fugacity coefficient, are based on how non-ideal a given phase is. For a gas, the degree of non-ideality present is called the residual Gibbs energy, while for a liquid it is called excess Gibbs energy. The distinction is made because the Gibbs energy of an ideal gas and the Gibbs energy of an ideal solution are very different, as are the natures of how real solutions and real gasses deviate from ideality.
The residual Gibbs energy is based on the ideal gas and is defined as follows:
The excess Gibbs energy of a liquid phase is based on an ideal solution and is defined as:
The activity coefficient takes into account variation from Raoult's Law due to liquid excess Gibbs energy. It may be defined as:
where is a composition-dependent value which is also different for each component. It therefore is a measure of the effect of each component in contributing to the nonideality of the mixture.
Raoult's Law can be extended using activity coefficients as follows:
The extended Raoult's law may be used to calculate activity coefficients: the vapor pressure and equilibrium composition are measured at a low pressure (to avoid gaseous nonideality). Then, since the activity coefficient is only weakly dependent on pressure (liquid properties often change very little with pressure), the same values of the activity coefficient may be used at higher pressures to aid in determining the change in equilibrium properties.
Once activity coefficients are determined at a wide variety of concentrations, it is often desired to condense the information into one equation. See this publication for an interesting read on this topic, though it will probably make more sense after you take thermodynamics, it offers a good description of what you will see.
The fugacity coefficient of a gas is defined in a similar way to the activity coefficient, but it is based on the residual Gibbs energy:
The fugacity coefficient of a gas depends on temperature, as can be seen clearly from the definition. It also depends heavily on the pressure. Indeed, if you have data available that relates the compressibility of a pure gas, Z, as a function of pressure at constant temperature, the fugacity can be computed using calculus or estimated (roughly) using the following equation if the change in pressure between each set of points is constant:
where "k" referring to a data point
To do this calculation, it is necessary to extrapolate so that the first data point is taken at P = 0..
Raoult's law can be modified to account for nonideal gasses in a similar way to its modification for nonideal liquids:
This equation is true except at very high pressures, a case covered in this paper briefly.
At room temperature (about 298K), it is possible to add enough pressure to carbon dioxide to get it to liquify (some fire extinguishers work by keeping liquid carbon dioxide in them under very high pressure, which rapidly vaporizes when the pressure is relieved . However, if the temperature is raised to higher than 304.2 K, it will be impossible to keep carbon dioxide in a liquid form, because it has too much kinetic energy to remain in the liquid phase. No amount of pressure can turn carbon dioxide into a liquid if the temperature is too high.
This threshold temperature is called a critical temperature. Any pure stable substance (not just carbon dioxide) will have a single characteristic critical temperature. Pure stable substances will also have a single characteristic critical pressure, which is the pressure needed to achieve a phase transition at the critical temperature, and a critical specific volume which is the specific volume (volume per mass) of the fluid at this temperature and pressure.
Critical pressures are typically extremely large, ranging from 2.26 atm for helium to 218.3 atm for water , and about 40 atm on average. Critical temperatures typically range from 5.26 K (for helium) to the high 600s K for some aromatic compounds.
A substance which is at a temperature higher than the critical temperature and a pressure higher than its critical pressure is called a supercritical fluid. Supercritical fluids have some properties in common with gasses and some in common with liquid, as may be expected since it they are not observed to be liquid but would be expected to be liquefied at extreme pressures.
Law of Corresponding States
Recall from the last section that the compressibility of any substance (but most useful for gasses) is defined as:
The compressibility of a gas is a measure of how non-ideal it is; an ideal gas has a compressibility of 1. At the critical point, in particular, the compressibility is:
Critical constants are important because it has been found experimentally that the following rule is true for many substances:
It has been found experimentally that many substances have very similar compressibility at their critical point. . Most nonpolar substances in particular have a critical compressibility of about 0.27. The similarity of the critical compressibility between substances is what gives some weight to the law of corresponding states. However, the fact that the critical compressibility is not exactly the same for all substances leads to potential estimation errors if this method is used.
The critical constants are able to effectively predict the properties of a substance without gathering a large amount of data. However, it is necessary to define how the properties of the substance change as the system variables become closer to or farther from the critical point of the substance. These methods are discussed in the following sections.
Recall that many substances have similar critical compressibility values near 0.27. Therefore, charts have been developed which relate compressibility at other conditions to those at the critical point. In order to use these charts, the system parameters are normalized by dividing by the critical constants to yield reduced temperature, pressure, and volume:
- Smith, Van Ness, and Abbott. Introduction to Chemical Engineering Thermodynamics. New York: McGraw Hill, 1996, p. 433.
Chapter 7: Energy balances on non-reacting systems
General Balance Equation Revisited
Recall the general balance equation that was derived for any system property:
When we derived the mass balance, we did so by citing the law of conservation of mass, which states that the total generation of mass is 0, and therefore .
There is one other major conservation law which provides an additional equation we can use: the law of conservation of energy. This states that if E denotes the entire amount of energy in the system,
Types of Energy
In order to write an energy balance, we need to know what kinds of energy can enter or leave a system. Here are some examples (this is not an exhaustive list by any means) of the types of energy that can be gained or lost.
- A system could gain or lose kinetic energy, if we're analyzing a moving system.
- Again, if the system is moving, there could be potential energy changes.
- Heat could enter the system via conduction, convection, or radiation.
- Work (either expansion work or shaft work) could be done on, or by, the system.
The total amount of energy entering the system is the sum of all of the different types entering the system. Here are the expressions for the different types of energy:
- From physics, recall that . If the system itself is not moving, this is zero.
- The gravitational potential energy of a system is where g is the gravitational constant, m is mass in kg and h is the height of the center of mass of the system. If the system does not change height, there is no change in GPE.
- The heat entering the system is denoted by Q, regardless of the mechanism by which it enters (the means of calculating this will be discussed in a course on transport phenomenon). According to this book's conventions, heat entering a system is positive and heat leaving a system is negative, because the system in effect gains energy when heat enters.
- The work done by or on the system is denoted by W. Work done BY a system is negative because the system has to "give up" energy to do work on its surroundings. For example, if a system expands, it loses energy to account for that expansion. Conversely, work done ON a system is positve.
Energy Flows due to Mass Flows
Accumulation of anything is 0 at steady state, and energy is no exception. If, as we have the entire time, we assume that the system is at steady state, we obtain the energy balance equation:
This is the starting point for all of the energy balances below.
Consider a system in which a mass, such as water, enters a system, such as a cup, like so:
The mass flow into (or out of) the system carries a certain amount of energy, associated with how fast it is moving (kinetic energy), how high off the ground it is (potential energy), and its temperature (internal energy). It is possible for it to have other types of energy as well, but for now let's assume that these are the only three types of energy that are important. If this is true, then we can say that the total energy carried in the flow itself is:
However, there is one additional factor that must be taken into account. When a mass stream flows into a system it expands or contracts and therefore performs work on the system. An expression for work due to this expansion is:
Since this work is done on the system, it enters the energy balance as a positive quantity. Therefore the total energy flow into the system due to mass flow is as follows:
Now, to simplify the math a little bit, we generally don't use internal energy and the PV term. Instead, we combine these terms and call the result the enthalpy of the stream. Enthalpy is just the combination of internal energy and expansion work due to the stream's flow, and is denoted by the letter H:
Therefore, we obtain the following important equation for energy flow carried by mass:
Other energy flows into and out of the system
The other types of energy flows that could occur in and out of a system are heat and work. Heat is defined as energy flow due to a change in temperature, and always flows from higher temperature to lower temperature. Work is defined as an energy transferred by a force (see here for details).
- If there is no heat flow into or out of a system, it is referred to as adiabatic.
- If there are no mechanical parts connected to a system, and the system is not able to expand, then the work is essentially 0.
Some systems which have mechanical parts that perform work are turbines, mixers, engines, stirred tank reactors, agitators, and many others. The type of work performed by these parts is called shaft work to distinguish it from work due to expansion of the system itself (which is called expansion work).
An "insulated system" is generally interpreted as being essentially adiabatic, though how good this assumption is depends on the quality of the insulation. A system that cannot expand is sometimes described as "rigid".
The notation for these values are as follows:
- Heat flows: , at the "j"th location.
- Shaft work:
- Expansion work:
Note that the above implies that there is no expansion work at steady state because at steady state nothing about the system, including the volume, changes with time, i.e. .
Overall steady - state energy balance
If we combine all of these components together, remembering that heat flow into a system and work done on a system are positive, we obtain the following:
Some important points:
- If the system is closed AND at steady state that means the total heat flow must equal the total work done in magnitude, and be opposite in sign. However, according to another law of thermodynamics, the second law, it is impossible to change ALL of the heat flow into work, even in the most ideal case.
- In an adiabatic system with no work done, the total amount of energy carried by mass flows is equal between those flowing in and those flowing out. However, that DOES NOT imply that the temperature remains the same, as we will see in a later section. Some substances have a greater capacity to hold heat than others, hence the term heat capacity.
- If the conditions inside the system change over time, then we CANNOT use this form of the energy balance. The next section has information on what to do in the case that the energetics of the system change.Introduction to Chemical Engineering Processes/Use of the steady state energy balance
What IS accumulation?
Recall that so far in this text it has been assumed that all systems are at steady state, which means that there is no buildup of mass, energy, or other conserved quantities. However, there are many situations, such as whenever operating levels change, that a system will not be at steady state, and mass and energy will be accumulated over time.
The most important thing to remember about accumulation is that it deals with the actual amount of stuff in the system, not any sort of flow rate. If you remember if you're dealing with actual system properties rather than flow rates, it will help keep the terms straight in unsteady-state balances.
Unsteady-state Mass Balance
Lets begin the derivation of an unsteady-state mass balance with the general balance equation which you should know and love by now:
Substituting the terms we usually used for in, out, and generation, we obtain:
Now we have to come up with a mathematical formulation for the accumulation. Unlike all of the other terms in this equation, which deal with energy flows into the system, the accumulation deals with the amount of energy that is already in the system at a certain point of time, and more specifically how it changes with time.
The rate of accumulation of energy will not be constant unless it is zero (otherwise every reactor in the world would either blow up from excessive mass and energy buildup or would cease operating because all of the reactants and products would be drained out). Recall that if the accumulation reaches zero, the system is at steady state. Most systems tend to move towards a steady state (it is possible to have more than one set of steady state conditions, but it won't be covered here) over long periods of time, as shown below:
Such a system is called self-regulating (or naturally stable). If a system is not self-regulating then special control techniques (see Control systems) must be utilized to force the system into a steady state.
In order to take into account variation in the accumulation rate, we must consider the rate of change over a very small amount of time, so small in fact that it is practically zero, and the accumulation vs. time curve resembles a straight line. The slope of this line at time t is approximately:
Therefore we could write the following:
We then write our mass balance by substituting this accumulation into the mass balance above:
For practical applications, this equation is generally multiplied by . Then, rather than dealing with flow rates, a new quantity is defined:
This quantity is the total amount of mass that enters the system in a finite amount of time. Substituting this definition into the mass balance yields the following:
Unsteady-state Energy Balance
Lets start by examining what we have so far, but with the accumulation term (yet to be defined mathematically) added in the right side, since we're not at steady state any more:
Following the logic from the mass balance, we obtain for the accumulation:
Therefore, we have:
Like in the case of the mass balance, we can only consider the total energy change over a total amount of time using this equation. To do this, we multiply the entire equation above by the time change from some starting point to the point of interest.
Now we need some definitions:
- is the TOTAL heat flow over the time period.
- is the TOTAL shaft work over the time period.
- is the TOTAL mass flow into (or out of) the system due to stream i during the time period.
- is the TOTAL enthalpy carried into (or out of) the system due to stream i during the time period.
The major assumption here is that the enthalpies, heat flow rates, and shaft work on the left hand side of the equals sign must either be constant, or the average value over the whole time period must be used, in order for this equation to be valid. Whether this assumption is valid or not depends on the situation (for example, it depends on whether the process feeding mass to your process is itself at steady state or not).
With these in mind, we multiply by delta t in order to obtain the following, unsteady state energy balance.
Chapter 8: Combining energy and mass balances in non-reacting systems
- The basic idea
- Several example problems illustrating how to combine these two concepts.
Chapter 9: Introduction to energy balances on reacting systems
- What's different for a reacting system?
Appendix 1: Useful Mathematical Methods
Mean and Standard Deviation
A lot of the time, when you're conducting an experiment, you will run it more than once, especially if it is inexpensive. Scientists run experiments more than once so that the random errors that result from taking measurements, such as having to guess a length between two hash marks on a ruler, cancel themselves out and leave them with a more precise measurement. However, the question remains: how should you consolidate all of the data into something that's more managable to use?
Suppose you have n data points taken under the same conditions and you wish to consolidate them to as few as feasibly possible. One thing which could help is is to use some centralized value, which is in some way "between" all of the original data points. This, in fact, is called the mean of the data set.
There are many ways of computing the mean of a data set depending on how it is believed to be distributed. One of the most common methods is to use the arithmetic mean, which is defined as:
Other types of mean include the w:Geometric mean, which should be used when the data are very widely distributed (ex. an exponential distribution) and the "log-mean" which occurs often in transport phenomena.
Having a value for the mean tells you what value the data points "cluster" around but it does not tell you how spread out they are from the center. A second statistical variable called the standard deviation is used for that. The standard deviation is essentially the average distance between the data points and their mean. The distance is expressed as a squared distance in order to prevent negative deviations from lessoning the effect of positive deviations.
The mathematical formulation for the standard deviation is:
The denominator is n-1 instead of n because statisticians found that it gives better results for small numbers of experiments; see w:Standard deviation for a more thorough explanation of this.
Putting it together
The standard deviation of a data set measured under constant conditions is a measure of how precise the data set is. Because this is true, the standard deviation of a data set is often used in conjunction with the mean in order to report experimental results. Typically, results are reported as:
If a distribution is assumed, knowing both the mean and standard deviation can help us to estimate the probability that the actual value of the variable is within a certain range, if there is no systematic bias in the data. If there is (such as use of broken equipment, negligence, and so on) then no statistics could predict the effects of that.
Suppose you have a set of data points () taken under differing conditions which you suspect, from a graph, can be reasonably estimated by drawing a line through the points. Any line that you could draw will have (or can be written in) the following form:
where m is the slope of the line and b is the y-intercept.
We seek the best line that we could possibly use to estimate the pattern of the data. This line will be most useful for both interpolating between points that we know, and extrapolating to unknown values (as long as they're close to measured values). In the most usual measure, how "good" the fit is is determined by the vertical distance between the line and the data points (), which is called the residual:
In order to normalize the residuals so that they don't cancel when one's positive and one's negative (and thus helping to avoid statistical bias), we are usually concerned with the square of when doing least-squares regression. We use squared terms and not absolute values so that the function is differentiable, don't worry about this if you haven't taken calculus yet.
In order to take into account all of the data points, we simply seek to minimize the sum of the squared residuals:
Using calculus, we can take the derivative of this with respect to m and with respect to b and solve the equations to come up with the values of m and b that minimize the sum of squares (hence the alternate name of this technique: least-squares regression. The formulas are as follows, where n is the total number of data points you are regressing:
Example of linear regression
The first thing we should do with any data like this is to graph it and see if a linear fit would be reasonable. Plotting this data, we can see by inspection that a linear fit appears to be reasonable.
Now we need to compute all of the values in our regression formulas, and to do this (by hand) we set up a table:
Now that we have this data we can plug it into our linear regression equation:
Hence the equation for the line of best fit is:
The graph of this plotted against the data looks like this:
How to tell how good your regression is
In the previous example, we visually determined if it would be reasonable to perform a linear fit, but it is certainly possible to have a less clear-cut case! If there is some slight curve to the data, is it still "close enough" to be useful? Though it will always come down to your own judgment after seeing the fit line graph against the data, there is a mathematical tool to help you called a correlation coefficient, r, which can be defined in several different ways. One of them is as follows :
It can be shown that this value always lies between -1 and 1. The closer it is to 1 (or -1), the more reasonable the linear fit. In general, the more data points you have, the smaller r needs to be before it's a good fit, but a good rule of thumb is to look for high (higher than 0.85 or 0.9) values and then graph to see if the graph makes sense. Sometimes it will, sometimes it won't, the method is not foolproof.
In the above example we have:
Hence the data correlates very well with a linear model.
Whenever you have to fit a parameter or multiple parameters to data, it is a good idea to try to linearize the function first, because linear regression is much less intensive and more accurate than nonlinear regression. The goal with any linearization is to reduce the function to the form:
The difference between this and "standard" linear regression is that Variable 1 and Variable 2 can be any functions of x and y, as long as they are not combined in any way (i.e. you can't have as one variable). The technique can be extended to more than two variables using a method called w:multiple linear regression but as that's more difficult to perform, this section will focus on two-dimensional regression.
To see some of the power of linearization, let's suppose that we have two variables, x and y, related by a power law:
where A and b are constants. If we have data connecting changes in y to changes in x, we would like to know the values of a and b. This is difficult to do if the equation is in its current form but we can change it into a linear-type function!
The trick here is we need to get rid of the exponent b, so in order to do that we take the natural log of both sides:
Using laws of logarithms we can simplify the right-hand side to obtain the following:
The beauty of this equation is that it is, in a sense, linear. If we graph ln(y) vs. ln(x) obtain a straight line with slope b and y-intercept ln(A).
Another common use of linearization is with exponentials, where x and y are related by an expression of the form:
This works for any base but the most common base encountered in practice is Euler's constant, e. Again, we take the natural log of both sides, in order to get rid of the exponent:
This time, Graph ln y vs. x to obtain a line with slope ln(b) and y-intercept ln(A).
Often, when you look up properties on a chart, you will be looking them up at conditions in between two charted conditions. For example, if you were looking up the specific enthalpy of steam at 10 MPa and 430oC you would look in the steam tables and see something like this: 
How can you figure out the intermediate value for this? We can't exactly but we can assume that H(T) is a linear function. If we assume that it is linear, then we can easily find the intermediate value. First, we set up a table, including the unknown value like this:
Then since we're assuming the relationship between T and H is linear, and the slope of a line is a constant the slope between points 3 and 2 has to equal the slope between points 3 and 1.
Therefore, we can write that:
Solving gives x = 2899 kJ/kg
The same method can be used to find an unknown T for a given H between two tabulated values.
To derive a more general formula (though I always derive it from scratch anyways, it's nice to have a formula), lets replace the numbers by variables ad give them more generic symbols:
Setting the slope between points 3 and 2 equal to that between 3 and 1 yields:
This equation can then be solved for x* or y* as appropriate.
Limitations of Linear Interpolation
It is important to remember that linear interpolation is not exact. How inexact it is depends on two major factors:
- What the real relationship between x and y is (the more curved it is, the worse the linear approximation)
- The difference between consecutive x values on the table (the smaller the distance, the closer almost any function will resemble a line)
Therefore, it is not recommended to use linear interpolation if the spaces are very widely separated. However, if no other method of approximation is available, linear interpolation is often the only option, or other forms of interpolation (which may be just as inaccurate, depending on what the actual function is).
See also w:interpolation.
: Smith, Karl J. The Nature of Mathematics. Pacific Grove, California: Brooks/Cole Publishing company, 6e, p. 683
: Sandler, Stanley I. Chemical, Biochemical, and Engineering Thermodynamics. University of Deleware: John Wiley and Sons inc., 4e, p. 923
Basics of Rootfinding
Rootfinding is the determination of solutions to single-variable equations or to systems of n equations in n unknowns (provided that such solutions exist). The basics of the method revolve around the determination of roots
A root of a function in any number of variables is defined as the solution to the equation . In order to use any of the numerical methods in this section, the equation should be put in a specific form, and this is one of the more common ones, used for all methods except the iterative method.
However, it is easy to put a function into this form. If you start with an equation of the form:
then subtracting will yield the required form. Do not forget to do this, even if there is only a constant on one side!
Since any equation can be put into this form, the methods can potentially be applied to any function, though they work better for some functions than others.
Analytical vs. Numerical Solutions
An analytical solution to an equation or system is a solution which can be arrived at exactly using some mathematical tools. For example, consider the function , graphed below.
The root of this function is, by convention, when , or when this function crosses the x-axis. Hence, the root will occur when
The answer x=1 is an analytical solution because through the use of algebra, we were able to come up with an exact answer.
On the other hand, attempting to solve an equation like:
analytically is sure to lead to frustration because it is not possible with elementary methods. In such a case it is necessary to seek a numerical solution, in which guesses are made until the answer is "close enough", but you'll never know what the exact answer is.
All that the numerical methods discussed below do is give you a systematic method of guessing solutions so that you'll be likely (and in some cases guaranteed) to get closer and closer to the true answer. The problem with numerical methods is that most are not guaranteed to work without a good enough initial guess. Therefore it is valuable to try a few points until you get somewhere close and then start with the numerical algorithm to get a more accurate answer. They are roughly in order from the easiest to use to the more difficult but faster-converging algorithms.
Iterative solutions in their purest form will solve the desired function so that it is in the form:
Then, a value for x is guessed, and f(x) is calculated. The new value of x is then re-inserted into f(x), and the process is repeated until the value of x changes very little.
The following example illustrates this procedure.
This method has some rather severe limitations as we'll see in this example:
This example shows that the success of the iteration method strongly depends on the properties of the function on the right-hand side. In particular, it has to do with how large the slope of the function is at the root. If the slope is too large, the method will not converge, and even if it is small the method converges slowly. Therefore it is generally undesirable to use this method, though some more useful algorithms are based on it (which is why it is presented here).
Iterative Solution with Weights
Although the iterative solution method has its downfalls, it can be drastically improved through the use of averaging. In this method, the function is still solved for x in the form:
From the initial guess , the function f(x) is used to generate the second guess . However, rather than simply putting into f(x), a weighted average of and is made:
The term is called the weight. The most common value of the weight is one-half, in which case the next value to plug into f(x) is simply the average of and :
This new value is then plugged into f(x), averaged with the result, and this is repeated until convergence.
The following examples show that this method converges faster and with more reliability than normal iterative solution.
The method is not only faster-converging but also more stable, so that it can actually be used solving the equation the other way too.
Notice that in this case, if we use regular iteration the result only converged if the equation was solved in a certain way. Using weighted iteration, it is possible to solve it either way and obtain a solution, but one way is clearly faster than the other. However, weighting will accelerate the algorithm in most cases and is relatively easy to implement, so it is a worthwhile method to use.
Let us consider an alternative approach to rootfinding. Consider a function f(x) = 0 which we desire to find the roots of. If we let a second variable , then y will (almost always) change sign between the left-hand side of the root and the right-hand side. This can be seen in the above picture of , which changes from negative to the left of the root to positive to its right.
The bisection method works by taking the observation that a function changes sign between two points, and narrowing the interval in which the sign change occurs until the root contained within is tightly enclosed. This only works for a continuous function, in which there are no jumps or holes in the graph, but a large number of commonly-used functions are like this including logarithms (for positive numbers), sine and cosine, and polynomials.
As a more formalized explaination, consider a function that changes sign between and We can narrow the interval by:
- Evaluating the function at the midpoint
- Determining whether the function changes signs or not in each sub-interval
- If the continuous function changes sign in a sub-interval, that means it contains a root, so we keep the interval.
- If the function does not change sign, we discard it. This can potentially cause problems if there are two roots in the interval,so the bisection method is not guaranteed to find ALL of the roots.
Though the bisection method is not guaranteed to find all roots, it is guaranteed to find at least one if the original endpoints had opposite signs.
The process above is repeated until you're as close as you like to the root.
Note that convergence is slow but steady with this method. It is useful for refining crude approximations to something close enough to use a faster but non-guaranteed method such as weighted iteration.
The Regula Falsi method is similar the bisection method. You must again start with two x values between which the function f(x) you want to find the root of changes. However, this method attempts to find a better place than the midpoint of the interval to split it.It is based on the hypothesis that instead of arbitrarily using the midpoint of the interval as a guide, we should do one extra calculation to try and take into account the shape of the curve. This is done by finding the secant line between two endpoints and using the root of that line as the splitting point.
- Draw or calculate the equation for the line between the two endpoints (a,f(a)) and (b,f(b)).
- Find where this line intersects the x-axis (or when y = 0), giving you x = c
- Use this x value to evaluate the function, giving you f(c)
- The sub-intervals are then treated as in the bisection method. If the sign changes between f(a) and f(c), keep the inteval; otherwise, throw it away. Do the same between f(c) and f(b).
- Repeat until you're at a desired accuracy.
Use these two formulas to solve for the secant line y = mx + B:
(you can use either)
The regula falsi method is guaranteed to converge to a root, but it may or may not be faster than the bisection method, depending on how long it takes to calculate the slope of the line and the shape of the function.
In some cases, the regula falsi method will take longer than the bisection method, depending on the shape of the curve. However, it generally worth trying for a couple of iterations due to the drastic speed increases possible.
Tangent Method (Newton's Method)
In this method, we attempt to find the root of a function y = f(x) using the tangent lines to functions. This is similar to the secant method, except it "cuts loose" from the old point and only concentrates on the new one, thus hoping to avoid hang-ups such as the one experienced in the example.
Since this class assumes students have not taken calculus, the tangent will be approximated by finding the equation of a line between two very close points, which are denoted (x) and . The method works as follows:
- Choose one initial guess,
- Evaluate the function f(x) at and at where is a small number. These yield two points on your (approximate) tangent line.
- Find the equation for the tangent line using the formulas given above.
- Find the root of this line. This is
- Repeat steps 2-4 until you're as close as you like to the root.
This method is not guaranteed to converge unless you start off with a good enough first guess, which is why the guaranteed methods are useful for generating one. However, since this method, when it converges, is much faster than any of the others, it is preferable to use if a suitable guess is available.
What is a System of Equations?
A system of equations is any number of equations with more than one total unknown, such that the same unknown must have the same value in every equation. You have probably dealt a great deal, in the past, with linear systems of equations, for which many solution methods exist. A linear system is a system of the form:
And so on, where the a's and b's are constant.
Any system that is not linear is nonlinear. Nonlinear equations are, generally, far more difficult to solve than linear equations but there are techniques by which some special cases can be solved for an exact answer. For other cases, there may not be any solutions (which is even true about linear systems!), or those solutions may only be obtainable using a numerical method similar to those for single-variable equations. As you might imagine, these will be considerably more complicated on a multiple-variable system than on a single equation, so it is recommended that you use a computer program if the equations get too nasty.
A system is solvable if and only if there are only a finite number of solutions. This is, of course, what you usually want, since you want the results to be somewhat predictable of whatever you're designing.
Here is how you can tell if it will definitely be impossible to solve a set of equations, or if it merely may be impossible.
Solvability of systems:
- If a set of n independent equations has n unknowns, then the system has a finite (possibly 0) number of solutions.
- If a set of n independent equations has less than n unknowns then the system has an infinite number of solutions.
- If a set of n independent or dependent equations has more than n unknowns then the system has no solutions.
- Any dependent equations in a system do not count towards n.
Note that even if a system is solvable it doesn't mean it has solutions, it just means that there's not an infinite number.
Methods to Solve Systems
As you may recall there are many ways to solve systems of linear equations. These include:
- Linear Combination: Add multiples of one equation to the others in order to get rid of one variable. This is the basis for Gaussian elimination which is one of the faster techniques to use with a computer.
- Cramer's rule which involves determinants of coefficient matrices.
- Substitution: Solve one equation for one variable and then substitute the resulting expression into all other equations, thus eliminating the variable you solved for.
The last one, substitution, is most useful when you have to solve a set of nonlinear equations. Linear combination can only be employed if the same type of term appears in all equations (which is unlikely except for a linear system), and no general analogue for Cramer's rule exists for nonlinear systems. However, substitution is still equally valid. Let's look at a simple example.
Example of the Substitution Method for Nonlinear Systems
Solution: We want to employ substitution, so we should ask: which variable is easier to solve for?. In this case, X (in the top equation) is easiest to solve for so we do that to obtain:
Substituting into the bottom equation gives:
This can be solved by the method of substitution:
Let . Plugging this in:
Solving by factoring:
Thus since we obtain four solutions for Y!
Notice, however, that depending on where this system came from, the negative solutions may not make sense, so think before you continue!
Let's take into account all of them for now. Since we have Y we can now solve for X:
Notice that even a small system like this has a large number of solutions and, indeed, some systems will have an infinite number, such as:
Numerical Methods to Solve Systems
There are numerical equivalents in multiple variables to some of the methods demonstrated in the previous section. Many of them in their purest forms involve the use of calculus (in fact, the Taylor method does as well), but as before, they can be reduced to approximate algebraic forms at the expense of some accuracy.
Shots in the Dark
If you can solve all of the equations explicitly for the same variable (say, y) you can guess all but one and then compare how different the resulting values of y are in each equation. This method is entirely brute-force, because if there are more than two equations, it is necessary to guess all of the variables but one using this method, and there is no way to tell what the next guess should be. Trying to guess multiple variables at once from thin air gets to be a hastle even with a computer.
Since there are so many problems with this method, it will not be discussed further
Again, the multivariate form of fixed-point iteration is so unstable that it generally can be assumed that it will not work. Weighted iteration is also significantly more difficult.
This is one method that does work, and that is somewhat different from any single-variable method. In the looping method technique, it is necessary to be able to solve each equation for a unique variable, and then you'll go around in a loop essentially, starting with an initial guess on (ideally) a single variable, say y, and then evaluating all equations until you return to your original variable with a new value y'. If the result is not the same as the guess(es) you started with, you need to make a new guess based on the trends in the results.
More specifically, here is an algorithm you can use:
- Solve all equations for a different variable.
- Make a guess on one variable (or as many as necessary to evaluate a second one, if it's more than one it gets harder though, so it is recommended to use another method)
- Go through all of the equations until you end up recalculating the variable (or all of the variables) which you had originally guessed. Note whether the result is higher or lower than your guess.
- Make another guess on the variable(s). Go through the loop again.
- After these two guesses, we know whether increasing or guess will increase or decrease the recalculated value. Therefore, we can deduce whether we need to increase or decrease our guess to get a recalculated value equal to the guess.
- Keep guessing appropriately until the recalculated value equals the guess.
This technique is often necessary in engineering calculations because they are based on data, not on explicit equations for quantities. As we'll see, however, it can be difficult to get it to converge, and this method isn't that convenient to do by hand (though it is the most reliable one to do realistically). It is great, however, for inputting guesses into a computer or spreadsheet until it works.
First we need to solve one of them for x, let's choose the first one:
- To start off, we make a guess: y = 0.1 Then from the first equation, x = 2.303
- Plug this back into the second equation and you'll come out with y' = 0.834. The recalculated value is too high.
- Now make a new guess on y: say, y = 0.5. This results in x = 0.6931
- Plugging back into the second equation gives y' = -0.3665. The recalculated value is too low.
- Lets now try y = 0.25.
- This results in x = 1.386 from the first equation and y' = 0.326 from the second. Too high so we need to increase our guess.
- Let's guess y = 0.3
- This yields x = 1.204 and thus y' = 0.185, which is too low indicating the guessed value was too high.
- Guess y = 0.28, hence x = 1.273 and y'= 0.241. The guess is therefore still too high.
- Guess y = 0.27, hence x = 1.309 and y' = 0.269. Therefore we have now converged:
Looping Method with Spreadsheets
We can do the guessing procedure more easily by programming it into a spreadsheet. First set up three rows like so:
A B C 1 y guess x y' 2 =-ln(A2) =ln(B2)
In B2 we put the first function solved for x, and in C2 we have the second function solved for y. Now all we need to do is type in guesses in A2 until the value in C2 is the same as our guess (the spreadsheet will automatically calculate B2 and C2 for you). To make things even easier, put the line into cell D2. Since we want y' to equal y, just keep guessing until the value in D2 is as close to zero as you like.
As a more in-depth example (which would be significantly more difficult to do by hand), consider the system:
In order for this to work, we only need to solve each equation for a unique variable, the expression need not be explicit! The following will work (assuming that X is a positive quantity), and this will be evident shortly:
Now we need to ask: which variable would be the best to guess to start the iteration procedure? In this case the best answer is T because from this guess, we can calculate P from equation 3, then X from equation 2, and finally a new guess on T from equation 1, and use this new value as a gauge of our old guess.
Lets program this into the spreadsheet:
A B C D E 1 T guess P X T' T' - T guess 2 =0.1*A2 =sqrt(A2^3 - B2) =(2*B2^2*C2^2 - 3*exp(-C2/A2))/(A2 - 2) =D2 - A2
Once all this is programmed in, you can just input guesses as before, with the eventual result that:
Multivariable Newton Method
There is a multivariate extension to Newton's method which is highly useful. It converges quickly, like the single-variable version, with the downside that, at least by hand, it is tedious. However, a computer can be programmed to do this with little difficulty, and the method is not limited only to systems which can be explicitly solved like the looping method is. In addition, unlike the looping method, the Newton method will actually give you the next set of values to use as a guess.
The method works as follows:
1. Solve all of the equations for 0, i.e. let for all functions F in the system.
2. Guess a value for all variables, and put them into a matrix (X). Calculate the value of all functions F at this guess, and put them into a matrix (F).
3. We need to find estimates for all the partial derivatives of the function at the guessed values, which is described later.
4. Construct a matrix (to become the Jacobian) as follows: make an empty matrix with n rows and n columns, where n is the number of equations or the number of variables (remember, a solvable system generally has the same number of equations as variables. Then label the columns with the names of variables and the rows with the names of your functions. It should look something like this:
5. Put the appropriate partial derivative in the labeled spot. For example, put the partial derivative with respect to x1 from function 1 in the first spot.
6. Once the Jacobian matrix is completely constructed, find the inverse of the matrix. There are multiple computer programs that can do this including this one (WARNING:Not tested software, use at your own risk!). Or you can do it by hand if you know how.
7. Matrix-multiply the inverse Jacobian with the transpose function matrix F (to make it a column matrix), then subtract this from the the transposition of X (again, make it a column matrix):
Multivariable Newton Method Formula
8. The result is your next guess. Repeat until convergence.
Estimating Partial Derivatives
||You MUST make sure you carry out quite a few decimal places when doing this, because changing the variables by a very small amount may not change the function values too much, but even small changes are important!|
A Partial derivative is, in its most basic sense, the slope of the tangent line of a function with more than one variable when all variables except one are held constant. The way to calculate it is:
Now we need to stay organized, so let's introduce some notation:
To calculate it:
- Calculate one function F at your guess.
- Increase one variable, x, by a very small amount . Leave all other variables constant.
- Recalculate F at the modified guess to give you F'.
The partial derivative of the function F with respect to x is then .
Example of Use of Newton Method
Let's go back to our archetypal example:
Step 1: We need to solve each for zero:
Step 2: Lets guess that x = 2.303 and y = 0.1 (it's a good idea to choose guesses that satisfy one of the equations). Then:
The values of F at this guess are , and hence by definition:
Step 3-5: Calculate the partial derivatives Lets choose . Then:
The partial derivatives of F2 can be similarly calculated to be and
Therefore, the Jacobian of the system is:
Step 6: Using any method you know how to do, you can come up with the inverse of the matrix:
Step 7: The transposition of F is simply:
Therefore by doing matrix multiplication you can come up with the following modifying matrix:
Therefore, we should subtract 1.3682 from x and 0.1418 from y to get the next guess:
Notice how much closer this is to the true answer than what we started with. However, this method is generally better suited to a computer due to all of the tedious matrix algebra.
In the statistics section, the concept of linearization was introduced as an extension to linear regression. It is discussed here in terms of plotting. Linearization is particularly useful because it allows an engineer to easily tell whether a simple model (such as an exponential model) is a good fit to data, and to locate outliers.
In order to linearize nonlinear data, it is necessary to assume a model that can be linearized. Some requirements for a linearizable function are:
- The equation must be separable (i.e. you must be able to put all instances of y or functions of y on one side of the equation, and all instances of x or functions of x on the other)
- You must be able to express the function in the form
- Simple linearization can only provide a maximum of two constant values (A and B).
Some examples of functions that can be linearized and their linear forms are given in the statistics section. Here is a summary:
- (exponential model, )
- (power-law model, )
An effective method to check the validity of an assumed model is to first evaluate f(y) and f(x) at all data points and then plot f(y) vs. f(x). Spreadsheets are ideal for this computation. If the model assumed is correct, the plot of f(y) vs. f(x) should be linear and randomly scattered around the plot. If the assumed model is known to be correct, the linear plot can be used to quickly identify outlying data points.
Log-log and semi-log plots
In engineering, exponential and power-law models show up so often that they have their own special paper that can be used to graph them easily. They are called semilog paper and log-log paper, respectively, because of the linearized forms of the exponential and power-law functions. These types of paper use a base-10 logarithm (which differs from a natural logarithm by a constant) because it is easier to visualize a base-10 than it is to visualize a base-e.
Often, in engineering analysis, there will be a theoretical value of a parameter (for example, the outlet temperature of a reactor calculated from an energy balance), and there will be an actually-measured value. It is often desirable to compare them. One easy graphical way to do this is with a parity plot. In a parity plot, one plots the measured values against the experimental values (for the same trial). The y=x line is also plotted as a reference. If the theoretical and experimental values agree, they should lie close to the y=x line and be randomly scattered around it. If they do not (due to either a problematic assumption in the theory, errors in measurement, or both), then the data will be skewed away from the y=x line. This is also useful for identifying outlying measurements.
In addition to checking for actual agreement, a parity plot can be used to tell if the theoretical and experimental values are at least correlated (in which case the plot would be linear, even if not near the y=x line).
Appendix 2: Problem Solving using Computers
Introduction to Spreadsheets
This tutorial probably works with other spreadsheets (such as w:open office) with minor modifications.
A spreadsheet such as Excel is a program that lets you analyze moderately large amounts of data by placing each data point in a cell and then performing the same operation on groups of cells at once. One of the nice things about spreadsheets is that data input and manipulation is relatively intuitive and hence easier than doing the same tasks in a programming language like MATLAB (discussed next). This section shows how to do some of these manipulations so that you don't have to by hand.
Anatomy of a spreadsheet
A spreadsheet has a number of parts that you should be familiar with. When you first open up the spreadsheet program, you will see something that looks like this (the image is from the German version of open office)
First off, notice that the entire page is split up into boxes, and each one is labeled. Rows are labeled with numbers and columns with letters. Also, try typing something in, and notice that the box above the spreadsheet (to the right of ) will change automatically as you type. When you're just putting in numbers, this info box will just have the same number in there. But when you're putting in formulas, the cell will display the value calculated from the formula, while the info box will display what the formula was.
Inputting and Manipulating Data in Excel
The first step in any spreadsheet analysis is to input the raw data you want to analyze. It is most effective if you put it in columns, with one column for each variable. It lets you see more data at once, and it also is less limited because the maximum number of rows is much larger than the maximum number of columns.
It is good practice to use the first row for the names of the variables, and the remaining for the data points. Make sure you include units. In this section, the following data will be used as illustration:
|(Rownumber)||Column A||Column B|
In order to tell the spreadsheet that you want to use a formula rather than just enter a number, you have to start the entry with an equal sign (=). You can then use combinations of decimal values and cell designations. A cell designation is simply the column letter followed by the row number containing the value you wish to manipulate. For example, if you wanted to find the product of the distance traveled and the time spent traveling, you could put in the formula:
into any empty cell and it would give you the answer. From here out it will be assumed that this value is in cell C2. You should label the column with the type of calculation you're performing.
Performing Operations on Groups of Cells
The question may arise: why not just put in the numbers themselves instead of referencing the cell? There are two major reasons for this:
- If you change the value in the referenced cell, the value calculated in the formula will automatically change.
- The built-in dragging capability of most spreadsheets.
The dragging capability is a simple concept. If you have put a formula into a spreadsheet, you can have it copied to any number of cells you want. To do this, select the cell with the formula and bring the mouse pointer to its lower-right hand corner. You should see a dark + icon:
|(rownum)||Column A||Column B||Column C|
| 625.45 |
Click on the + and drag it down. This will cause the formulas to change according to how you drag the box. In this case, if you drag it down to row 6, the spreadsheet will produce the following:
A B C 1 t (min) D (yards) t*D 2 1.1 559.5 615.45 3 1.9 759.5 1443.05 4 3.0 898.2 2694.6 5 3.8 1116.3 4241.94 6 5.3 1308.7 6936.11
If you click on the last value in column C (6936.11) the info bar will display:
This is very useful for performing the same operations on multiple sets of data at once; rather than having to do the multiplication 5 separate times here, we just do it once and drag down the box.
Special Functions in Excel
In order to do many mathematical operations in Excel (or at least the easiest way), it is necessary to use functions (not to be confused with formulas). A function is simply an implementation someone already wrote for the mathematical operation, so all you have to do is know how to tell it to do the operation and where to put it when it's done. In excel, you can call a function named "function" by typing the following into a cell:
The function will then execute, and the cell containing the call will display the answer. The necessary inputs are sometimes numbers but are more often the cell addresses. For example, in the data above, say you wanted to take the exponential () of all the time points in column A, and place the result in column D. The function for exponential is exp, and it can only accept one input at a time, but due to the dragging capability of Excel this will not matter much, you can just call it once and then drag the cell as you would with any formula containing cell addresses. So to do this you would type into cell D2:
Hit enter, then click the + in the bottom right and drag the cell down. You should end up with something like this after labeling the D column appropriately:
A B C D 1 t (min) D(yards) t*D e^t 2 1.1 559.5 615.45 3.004166024 3 1.9 759.5 1443.05 6.685894442 4 3 898.2 2694.6 20.08553692 5 3.8 1116.3 4241.94 44.70118449 6 5.3 1308.7 6936.11 200.33681
All excel functions output only one value at a time, though some can accept multiple cells at a time as input (mostly statistical functions).
Following is a brief synopsis of the functions available. For a complete list, see the help files for your spreadsheet, as the availability of each function may vary depending on which one you are using. CELL signifies either the row/column designation of the cell you want to pass to the function as input, or some numerical value you enter manually.
Generally these only take one input at a time.
abs(CELL): Absolute value of CELL sqrt(CELL): Square root of CELL [to do nth roots, use CELL^(1/n)] ln(CELL): Natural log of CELL log10(CELL): Log of CELL to base 10 log(CELL, NUM): Log of CELL to the base NUM (use for all bases except e and 10) exp(CELL): Exponential(e^x) of CELL. Use since Excel doesn't have a built-in constant "e". sin(CELL), cos(CELL), tan(CELL): Trigonometric functions sine, cosine, and tangent of CELL. CELL must be in radians asin(CELL), acos(CELL), atan(CELL): Inverse trigonometric functions (returns values in radians) sinh(CELL), cosh(CELL), tanh(CELL): Hyperbolic functions asinh(CELL), acosh(CELL), atanh(CELL): Inverse hyperbolic functions
These are examples of useful statistics functions in Excel, they are not by any means the only ones.
GROUP means a group of cells that are directly next to each other. Define a group by the syntax FIRSTCELL:LASTCELL, for example, using GROUP = A2:A5 passes all the cells between A2 and A5 (inclusive) to the function. If a function requires two different groups (for example, a y and an x), both groups must be within continuous groups of cells.
average(CELL1, CELL2, ...) OR average(GROUP): Computes the arithmetic average of all inputs. intercept(GROUP1, GROUP2): Calculates the y-intercept (b) of the regression line where y = GROUP1 and x = GROUP2. GROUP1 and GROUP2 must have the same size. pearson(GROUP1, GROUP2): Calculates the Pearson correlation coefficient (R) between GROUP1 and GROUP2. stdev(CELL1, CELL2, ...) OR stdev(GROUP): Computes the sample standard deviation (divides by n-1) of all inputs. slope(GROUP1, GROUP2): Calculates the slope (m) of the regression line where y = GROUP1 and x = GROUP2. GROUP1 and GROUP2 must have the same size.
Solving Equations in Spreadsheets: Goal Seek
Excel and possibly other spreadsheets have a very useful tool called goalseek which allows the user to solve single-variable equations (and can be used as an aid in guess-and-check for systems of algebraic equations). Let's suppose for the purposes of this tutorial that you wish to find a solution to the equation:
In order to set up the problem in Goalseek, it is necessary to define a cell for the variable you want to change (X) and a cell for the function you want to evaluate.
Here, we could set up the cells as follows:
A B 1 X f(X) 2 -1 =A2^3 + 2*A2^2 - A2 + 1
To solve this one, go to
Tools > Goalseek...
It'll give you three boxes: "Set Cell", "To Value", and "By Changing Cell". Since we want the value in cell B2 to equal 0, enter B2 into the "Set Cell" box and 0 into the "To Value" box. Since cell B2 depends on cell A2, we want to change A2 so that B2 equals 0. Hence, the "By Changing Cell" box should contain A2. Put that in and click "OK", and Goalseek will converge to an answer:
A B 1 X f(X) 2 -2.54683 -0.00013
Notice that the success of the goalseek depends on what your initial guess was. If you try to put in an initial guess of 0 in this example (instead of -1), goalseek will diverge. It will tell you so, saying "Goal Seeking with Cell B2 May Not have Found a Solution". However, the algorithm is generally fairly robust so it shouldn't take too many guesses to obtain convergence.
Graphing Data in Excel
In Excel, there are a variety of ways to graph the data you have inserted, such as bar graphs, pie charts, and many others. The most commonly-used in my experience is the scatterplot, which is the name Excel uses for the typical x-y "line graph" plot that you probably think of first when you think of a graph.
Scatterplots can be made relating any one independent variable to any number of dependent variables, though if you try to graph too many it will get crowded and hard to read. Excel will automatically give each different dependent variable a different color and a different shape, so that you can distinguish between them. You can also name each "series" of data differently and Excel will automatically set up a legend for you.
This is how to make a scatterplot:
- Put the data into columns just like it was given in the problem statement.
- Now we need to set up the graph. Go to: .
- Select "XY (scatter)" and click "next".
- Click the "series" tab (on top). If there are any series present, remove them with the remove button (since it usually guesses wrong what you want to graph).
Now we can add a series for each dependent variable we want to graph as follows:
- Click "add".
- Next to "X values" click the funky arrow symbol to the right of the text box. A small box will pop up.
- Click on the first value for the independent variable and drag the mouse down to the last value. Click the funky symbol again to bring you back to the main window.
- Do the same thing with the "Y values" but this time you want to select the values of the dependent variable.
- Click next, and give the graph a title and labels if you want. Then click next and "finish" to generate your graph.
Performing Regressions of the Data from a Scatterplot
Once you have a scatterplot of your data, you can do one of several types of regression: logarithmic, exponential, polynomial (up to 6th degree), linear, or moving-average. Excel will plot the regression curve against your data automatically, and (except for moving average) you can tell it to give you an equation for the curve. To do this:
- Right click on one of the data points (it doesn't matter which). Click "add trendline..."
- A new window will come up, asking you for the type of regression. Choose the type of regression you want to use.
- Click on the "options" tab, and check the "Display Equation on Chart" box (and, if you want, the "Display R-squared value on Chart" box). Click OK.
If you chose a "linear" regression with the sample data above, the equation and value appear on the graph as . Note Excel displays rather than R (so that we don't need to worry about negative vs. positive values); if you want R just take the square root, which is 0.9921 as we calculated in the section on linear regressions.
Further resources for Spreadsheets
Introduction to MATLAB
Inserting and Manipulating Data in MATLAB
Importing Data from Excel
Performing Operations on Entire Data Sets
Graphing Data in MATLAB
MATLAB is able to do regressions up to very large polynomial orders, using the "polyfit" function. The syntax for this function is:
polyfit(XDATA, YDATA, Order)
The x data and y data must be in the form of arrays, which for the purposes of this application are simply comma-separated lists separated by brackets. For example, suppose you want to perform the same linear regression that had been performed in the "linear regression" section. The first step is to define the two variables:
>> XDATA = [1.1,1.9,3.0,3.8,5.3]; >> YDATA = [559.5,759.4,898.2,1116.3,1308.7];
Then just call polyfit with order '1' since we want a linear regression.
>> polyfit(XDATA, YDATA, 1) ans = 1.0e+002 * 1.77876628209900 3.91232582806103
The way to interpret this answer is that the first number is the slope of the line (1.778*10^2) and the second is the y-intercept (3.912*10^2).
Nonlinear Regressions (fminsearch)
Appendix 3: Miscellaneous Useful Information
Standard vs. Actual Volume
When specifying the volume of a gas, the pressure and temperature must be specified because the volume of a gas depends strongly on both temperature and pressure (assuming that it is in an expandable container). In order to avoid specifying a different set of conditions for each measurement, an engineer can convert to standard temperature and pressure (typically 1 atm and 0oC) which is common to all measurements. This allows direct comparisons of volume measurements, but also requires that one convert back to the actual conditions present in the system before the value can be used.
The conversion that is used assumes that the gas is ideal, so that:
Conversion of volume to volume
We wish to compare a standard state to the actual state in the system. Let us consider the standard state (state "s") first. We have the ideal gas law for the standard state:
Now let us compare the standard state to the actual conditions in the system. The standard state conditions have been completely specified. The ideal gas law is assumed to hold in the actual system conditions as well:
Divide this equation by the standard-state ideal gas law gives:
where a is actual and s is standard. If we assume that we want to compare the same number of moles of the substance between the standard and actual states, the following conversion between the states is obtained:
"Gauge" Pressure vs. "Absolute" Pressure
Different types of moles
"Pound-mass" vs. "Pound-force"
What is a "Unit Operation"?
A unit operation is any part of potentially multiple-step process which can be considered to have a single function. Examples of unit operations include:
- Separation Processes
- Purification Processes
- Mixing Processes
- Reaction Processes
- Power Generation Processes
- Heat Exchangers
In general the ductwork between the processes is not explicitly included, though a single pipe can be analyzed for purposes of determining friction loss, heat losses, pressure drop, and so on.
Large processes are broken into unit operations in order to make them easier to analyze. The key thing to remember about them is that the conservation laws apply not only to the process as a whole but also to each individual unit operation.
The purpose of this section is not to show how to design these operations (that's a whole other course) but to give a general idea of how they work.
There are a large number of types of separation processes, including distillation, extraction, absorption, membrane filtration, and so on. Each of these can also be used for purification, to varying degrees.
Separation by Flashing
A mixture of two liquids or a liquid and vapor can be separated by passing it to a flash drum at a fixed temperature and pressure. The mixture is allowed to reach equilibrium (or near it), and then the vapor exits the top and the liquid exits the bottom of the drum. This separates the components somewhat, provided that the temperature is chosen between the boiling temperatures of the components of the mixture at the pressure of the drum. The degree of separation depends on the composition of the mixture, the concentrations of the species in the mixture, and the temperature and pressure. Having data such as fugacity data or even vapor pressures for simple modelling like Raoult's Law is invaluable when choosing the operating conditions.
When a solution boils, the resulting gas is still a mixture, but the gaseous mixture will in general have more of the lower-boiling compound than the higher-boiling compound. Therefore, a higher-boiling compound can be separated from the lower-boiling compound by simply allowing part of the solution to boil and part to remain as liquid.
Distillation, like flashing, is a process which is generally used to separate a mixture of two or more liquids based on their boiling points. However, what happens in a distillation column is essentially a series of flashes, which are connected with recycle loops. The liquid from each tray comes to equilibrium (ideally) with the vapor, and the vapor rises up to the next tray and the liquid falls to the tray beneath it. Each tray has a different temperature because a reboiler on the bottom and a condenser at the top maintain a temperature gradient across the column (in certain separation setups one of these components is omitted).
Distillation is an unit operation, in which two constituent is separated by different boiling point.
The net result is, like flashing, more of the lower-boiling compound(s) will exit at the top of the column, and more of the higher-boiling compound(s) will fall to the bottoms. Since distillation is multiple flashes in a row, it is typically more effective than a single flash, although the latter may be sufficient depending on the purpose. Distillation columns are standard for many types of separations because it is relatively inexpensive for its efficacy. Distillation has a limit, however: non-ideal mixtures can form azeotropes. An azeotrope is a point at which when the solution boils, the vapor has the same composition as the liquid. Therefore no further separation can be done without another method or without using some special tricks.
Two examples of distillation processes are petroleum distillation and the production of alcoholic beverages. In the first case, oil is separated into its many components, with the lightest at the top and the heaviest on the bottom. In the latter, the gas is enriched in ethanol, which is later recondensed.
Gravitational separation takes advantage of the well-known effect of density differences: something that is less dense will float on something that is more dense. Therefore, if two immiscible liquids have significantly different densities, they can be separated by simply letting them settle, then draining the denser liquid out the bottom. Note that the key word here is immiscible; if the liquids are soluble in each other, then it is impossible to separate them by this method.
This method can also be used to separate out solids from a liquid mixture, but again the solids must not be soluble in the liquid (or must be less soluble than they are as present in the solution).
Extraction is the general practice of taking something dissolved in one liquid and forcing it to become dissolved in another liquid. This is done by taking advantage of the relative solubility of a compound between two liquids. For example, caffeine must be extracted from coffee beans or tea leaves in order to be used in beverages such as coffee or soda. The common method for doing this is to use supercritical carbon dioxide, which is able to dissolve caffeine as if it were a liquid. Then, in order to take the caffeine out, the temperature is lowered (lowering the "solubility" in carbon dioxide) and water is injected. The system is then allowed to reach equilibrium. Since caffeine is more soluble in water than it is in carbon dioxide, the majority of it goes into the water.
Extraction is also used for purification, if some solution is contaminated with a pollutant, the pollutant can be extracted with another, clean stream. Even if it is not very soluble, it will still extract some of the pollutant.
Another type of extraction is acid-base extraction, which is useful for moving a basic or acidic compound from a polar solvent (such as water) to a non-polar one. Often, the ionized form of the acid or base is soluble in a polar solvent, but the non-ionized form is not as soluble. The reverse is true for the non-ionized form. Therefore, in order to manipulate where the majority of the compound will end up, we alter the pH of the solution by adding acid or base.
For example, suppose you wanted to extract Fluoride (F-) from water into benzene. First, you would add acid, because when a strong acid is added to the solution it undergoes the following reaction with fluoride, which is practically irreversible:
The hydrogen fluoride is more soluble in benzene than fluoride itself, so it would move into the benzene. The benzene and water fluoride solutions could then be separated by density since they're immiscible.
The term absorption is a generalization of extraction that can involve different phases (gas-liquid instead of liquid-liquid). However, the ideas are still the same.
A membrane is any barrier which allows one substance to pass through it more than another. There are two general types of membrane separators: those which separate based on the size of the molecules and those which separate based on diffusivity.
An example of the first type of membrane separator is your everyday vacuum cleaner. Vacuum cleaners work by taking in air laden with dust from your carpet. A filter inside the vacuum then traps the dust particles (which are relatively large) and allows the air to pass through it (since air particles are relatively small). A larger-scale operation that works on the same principle is called a fabric filter or "Baghouse", which is used in air pollution control or other applications where a solid must be removed from a gas.
Some fancy membranes exist which are able to separate hydrogen from a gaseous mixture by size. These membranes have very small pores which allow hydrogen (the smallest possible molecule, by molecular weight) to pass through by convection, but other molecules cannot pass through the pores and must resort to diffusion (which is comparatively slow). Hence a purified hydrogen mixture results on the other side.
Membranes can separate substances by their diffusivity as well, for example water may diffuse through a certain type of filter faster than ethanol, so if such a filter existed it could be used to enrich the original solution with ethanol.
In order to bring any product to market, it is necessary to purify it adequately. Without purification, people could get sick from eating foods, side-reactions could occur in industry which would cause safety concerns, or a scientist's research could be invalidated. Fortunately there are several methods used to purify things. The separation processes mentioned above are often used for this purpose, as are the following two processes:
Not to be confused with absorption, adsorption is a process which separates components by their relative adhesiveness to a surface. An adsorption column is essentially a pipe filled with a certain material. When the contaminant flows by, it will bind to the material, and in this way the fluid flowing by is cleaned.
A major disadvantage to this method is that the material will always have a saturation point after which no more contaminant can latch on to it. At this point cleaning stops and therefore the spent material must be replaced by new material.
Recrystallization is the purification of substances by taking advantage of changes in solubility with respect to temperature.We take advantage of this by dissolving an impure compound and then lowering the temperature slowly. The solubility of most solid substances increases with temperature , so decreasing the temperature will cause the solubility of both the impurities and the substance to be purified to decrease. However, since there is likely much more of the impure substance present than impurities, the impure substance will crystallize out long before the impurities will. Therefore, as long as the temperature is not lowered too quickly, the impure substance will crystallize out in a purer form, while most impurities will remain in solution.
A disadvantage to this method is that it takes a long time to perform, but it is often the most effective method for obtaining a pure sample of a product.
Plug flow reactors (PFRs) and Packed Bed Reactors (PBRs)
A plug flow reactor is a (idealized) reactor in which the reacting fluid flows through a tube at a rapid pace, but without the formation of eddies characteristic of rapid flow. Plug flow reactors tend to be relatively easy to construct (they're essentially pipes) but are problematic in reactions which work better when reactants (or products!) are dilute.
Plug flow reactors can be combined with membrane separators in order to increase the yield of a reactor. The products are selectively pulled out of the reactor as they are made so that the equilibrium in the reactor itself continues to shift towards making more product.
A packed bed reactor is essentially a plug flow reactor packed with catalyst beads. They are used if, like the majority of reactions in industry, the reaction requires a catalyst to significantly progress at a reasonable temperature.
Continuous Stirred-Tank Reactors (CSTRs) and Fluidized Bed Reactors (FBs)
A continuous stirred-tank reactor is an idealized reactor in which the reactants are dumped in one large tank, allowed to react, and then the products (and unused reactants) are released out of the bottom. In this way the reactants are kept relatively dilute, so the temperatures in the reactor are generally lower. This also can have advantages or disadvantages for the selectivity of the reaction, depending on whether the desired reaction is faster or slower than the undesired one.
CSTRs are generally more useful for liquid-phase reactions than PFRs since less transport power is required. However, gas-phase reactions are harder to control in a CSTR.
A fluidized bed reactor is, in essence, a CSTR which has been filled with catalyst. The same analogy holds between an FB and CSTR as does between a PFR and a PBR. Unlike CSTRs though, Fluidized beds are commonly used with gases; the gas is pumped in the bottom and bubbles through the catalyst on the way to the top outlet.
A bioreactor is a reactor that utilizes either a living organism or one or more enzymes from a living organism to accomplish a certain chemical transformation. Bioreactors can be either CSTRs (in which case they are known as chemostats) or PFRs.
Certain characteristics of a bioreactor must be more tightly controlled than they must be in a normal CSTR or PFR because cellular enzymes are very complex and have relatively narrow ranges of optimum activity. These include, but are not limited to:
- Choice of organism. This is similar to the choice of catalyst for an inorganic reaction.
- Strain of the organism. Unlike normal catalysts, organisms are very highly manipulable to produce more of what you're after and less of other products. However, also unlike normal catalysts, they generally require a lot of work to get any significant production at all.
- Choice of substrate. Many organisms can utilize many different carbon sources, for example, but may only produce what you want from one of them.
- Concentration of substrate and aeration. Two inhibitory effects exist which could prevent you from getting the product you're after. Too much substrate leads to the glucose effect in which an organism will ferment regardless of the air supply, while too much air will lead to the pasteur effect and a lack of fermentation.
- pH and temperature: Bacterial enzymes tend to have a narrow range of optimal pH and temperatures, so these must be carefully controlled.
However, bioreactors have several distinct advantages. One of them is that enzymes tend to be stereospecific, so for example you don't get useless D-sorbose in the production of vitamin C, but you get L-sorbose, which is the active form. In addition, very high production capacities are possible after enough mutations have been induced. Finally, substances which have not been made artificially or which would be very difficult to make artificially (like most antibiotics) can be made relatively easily by a living organism.
In general, a heat exchanger is a device which is used to facilitate the exchange of heat between two mixtures, from the hotter one to the cooler one. Heat exchangers very often involve steam because steam is very good at carrying heat by convection, and it also has a high heat capacity so it won't change temperature as much as another working fluid would. In addition, though steam can be expensive to produce, it is likely to be less expensive than other working fluids since it comes from water.
Tubular Heat Exchangers
A tubular heat exchanger is essentially a jacket around a pipe. The working fluid (often steam) enters the jacket on one side of the heat exchanger and leaves on the other side. Inside the pipe is the mixture which you want to heat or cool. Heat is exchanged through the walls of the device in accordance to the second law of thermodynamics, which requires that heat flow from higher to lower temperatures. Therefore, if it is desired to cool off the fluid in the pipe, the working fluid must be cooler than the fluid in the pipe.
Heat exchangers work because heat naturally flows from higher temperature to lower temperatures. Therefore if a hot fluid and a cold fluid are separated by a heat conducting surface heat can be transferred from the hot fluid to the cold fluid.
Tubular heat exchangers can be set up in two ways: co-current or counter-current. In a co-current setup, the working fluid and the fluid in the pipe enter on the same side of the heat exchanger. This setup is somewhat inefficient because as heat is exchanged, the temperature of the working fluid will approach that of the fluid in the pipe. The closer the two temperatures become, the less heat can be exchanged. Worse, if the temperatures become equal somewhere in the middle of the heat exchanger, the remaining length is wasted because the two fluids are at thermal equilibrium (no heat is released).
To help counteract these effects, one can use a counter-current setup, in which the working fluid enters the heat exchanger on one end and the fluid in the pipe enters at the other end. As an explanation for why this is more efficient, suppose that the working fluid is hotter than the fluid in the pipe, so that the fluid in the pipe is heated up. The fluid in the pipe will be at its highest temperature when it exits the heat exchanger, and at its coolest when it enters. The working fluid will follow the same trend because it cools off as it travels the length of the exchanger. Because it's counter-current, though, the fact that the working fluid cools off has less of an effect because it's exchanging heat with cooler, rather than warmer, fluids in the pipe.
Appendix 4: Notation
A Note on Notation
Base Notation (in alphabetical order)
: Molarity of species i in stream n a, b, c, d: Stoichiometric coefficients. A: Area C: Molar concentration (mol/L) K: Equilibrium coefficient m: Mass MW: Molecular Weight (Molar Mass) n: Moles n: Number of data points (in statistics section) N: Number of components P: Pressure r: Regression coefficient R: Universal gas constant T: Temperature v: Velocity V: Volume x: Mole fraction in the liquid phase OR Mass fraction  X: (molar) extent of reaction y: Mole fraction in the gas phase z: Overall composition Z: Compressibility
- Unless specified explicitly, assume that a given percent composition is in terms of the overall flowrate. So if you're given a flowrate in terms of kg/s and a compositoin of 30%, assume that the 30% is a mass fraction. If a given equation requires one or the other, it will explicitly be stated near the equation which is necessary.
: Density : Sum
If a particular component (rather than an arbitrary one) is considered, a specific letter is assigned to it:
- [A] is the molarity of A
- is the mass fraction of A
Similarly, referring to a specific stream (rather than any old stream you want), each is given a different number.
- is the molar flowrate in stream 1.
- is the molar flow rate of component A in stream 1.
If A is some value denoting a property of an arbitrary component stream, the letter i signifies the arbitrary component and the letter n signifies an arbitrary stream, i.e.
- is a property of stream n. Note is the molar flow rate of stream n.
- is a property of component i.
The subscript "gen" signifies generation of something inside the system.
The subscripts "in" and "out" signify flows into and out of the system.
If A is some value denoting a property then:
denotes the average property in stream n
denotes a total flow rate in steam n
denotes the flow rate of component i in stream n.
indicates a data point in a set.
is a property of pure component i in a mixture.
Units Section/Dimensional Analysis
In the units section, the generic variables L, t, m, s, and A are used to demonstrate dimensional analysis. In order to avoid confusing dimensions with units (for example the unit m, meters, is a unit of length, not mass), if this notation is to be used, use the unit equivalence character rather than a standard equal sign.
Appendix 5: Further Reading
Chapra, S. and Canale, R. 2002. Numerical Methods for Engineers, 4th ed. New York: McGraw-Hill.
Felder, R.M. and Rousseau, R.W. 2000. Elementary Principles of Chemical Processes, 3rd ed. New York: John Wiley & Sons.
Masterton, W. and Hurley, C. 2001. Chemistry Principles and Reactions, 4th ed. New York: Harcourt.
Perry, R.H. and Green, D. 1984. Perry's Chemical Engineers Handbook, 6th ed. New York: McGraw-Hill.
Windholz et al. 1976. The Merck Index, 9th ed. New Jersey: Merck.
General Chemistry: For a more in-depth analysis of general chemistry
Matlab: For more information on how to use MATLAB to solve problems.
Numerical Methods: For more details on the rootfinding module and other fun math (warning: it's written at a fairly advanced level)
Appendix 6: External Links
Chemical Sciences Data Tables: Has a fair amount of useful data, including a fairly comprehensive List of Standard Entropies, and Gibbs Energies at 25oC (also a list for ions), a chart with molar masses of the elements, acid equilibrium constants, solubility products, and electric potentials. Definitely one to check out.
NIST properties: You can look up properties of many common substances, including water, many light hydrocarbons, and many gases. Data available can include density, enthalpy, entropy, Pitzer accentric factor, surface tension, Joule-Thompson coefficients, and several other variables depending on the substance and conditions selected. To see the data in tabular form, once you enter the temperature and pressure ranges you want, click "view table" and then select the property you want from the pull-down menu. It'll tell you acceptable ranges.
Generalized compressibility chart: This is very useful in the section on gases and liquids, and you should be able to find a copy of this chart in any thermodynamics book or in Perry's handbook. I've linked here so you have some clue what I'm talking about when I write about it.
Antoine equation coefficients, NOTE that these values are for use with a COMMON log, not a NATURAL log.
Appendix 7: License
||As of July 15, 2009 Wikibooks has moved to a dual-licensing system that supersedes the previous GFDL only licensing. In short, this means that text licensed under the GFDL only can no longer be imported to Wikibooks, retroactive to 1 November 2008. Additionally, Wikibooks text might or might not now be exportable under the GFDL depending on whether or not any content was added and not removed since July 15.|
Version 1.3, 3 November 2008 Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others.
This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software.
We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference.
1. APPLICABILITY AND DEFINITIONS
This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you". You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law.
A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language.
A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them.
The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none.
The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words.
A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not "Transparent" is called "Opaque".
Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only.
The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text.
The "publisher" means any person or entity that distributes copies of the Document to the public.
A section "Entitled XYZ" means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as "Acknowledgements", "Dedications", "Endorsements", or "History".) To "Preserve the Title" of such a section when you modify the Document means that it remains a section "Entitled XYZ" according to this definition.
The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License.
2. VERBATIM COPYING
You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3.
You may also lend copies, under the same conditions stated above, and you may publicly display copies.
3. COPYING IN QUANTITY
If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects.
If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages.
If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public.
It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document.
You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version:
- Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission.
- List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement.
- State on the Title page the name of the publisher of the Modified Version, as the publisher.
- Preserve all the copyright notices of the Document.
- Add an appropriate copyright notice for your modifications adjacent to the other copyright notices.
- Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below.
- Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice.
- Include an unaltered copy of this License.
- Preserve the section Entitled "History", Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled "History" in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence.
- Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission.
- For any section Entitled "Acknowledgements" or "Dedications", Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein.
- Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles.
- Delete any section Entitled "Endorsements". Such a section may not be included in the Modified version.
- Do not retitle any existing section to be Entitled "Endorsements" or to conflict in title with any Invariant Section.
- Preserve any Warranty Disclaimers.
If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles.
You may add a section Entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties—for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard.
You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one.
The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version.
5. COMBINING DOCUMENTS
You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work.
In the combination, you must combine any sections Entitled "History" in the various original documents, forming one section Entitled "History"; likewise combine any sections Entitled "Acknowledgements", and any sections Entitled "Dedications". You must delete all sections Entitled "Endorsements".
6. COLLECTIONS OF DOCUMENTS
You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects.
You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document.
7. AGGREGATION WITH INDEPENDENT WORKS
A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an "aggregate" if the copyright resulting from the compilation is not used to limit the legal rights of the compilation's users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document.
If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document's Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate.
Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail.
If a section in the Document is Entitled "Acknowledgements", "Dedications", or "History", the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title.
You may not copy, modify, sublicense, or distribute the Document except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, or distribute it is void, and will automatically terminate your rights under this License.
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, receipt of a copy of some or all of the same material does not give you any rights to use it.
10. FUTURE REVISIONS OF THIS LICENSE
The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/.
Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. If the Document specifies that a proxy can decide which future versions of this License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Document.
"Massive Multiauthor Collaboration Site" (or "MMC Site") means any World Wide Web server that publishes copyrightable works and also provides prominent facilities for anybody to edit those works. A public wiki that anybody can edit is an example of such a server. A "Massive Multiauthor Collaboration" (or "MMC") contained in the site means any set of copyrightable works thus published on the MMC site.
"CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 license published by Creative Commons Corporation, a not-for-profit corporation with a principal place of business in San Francisco, California, as well as future copyleft versions of that license published by that same organization.
"Incorporate" means to publish or republish a Document, in whole or in part, as part of another Document.
An MMC is "eligible for relicensing" if it is licensed under this License, and if all works that were first published under this License somewhere other than this MMC, and subsequently incorporated in whole or in part into the MMC, (1) had no cover texts or invariant sections, and (2) were thus incorporated prior to November 1, 2008.
The operator of an MMC Site may republish an MMC contained in the site under CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible for relicensing.
How to use this License for your documents
To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page:
- Copyright (c) YEAR YOUR NAME.
- Permission is granted to copy, distribute and/or modify this document
- under the terms of the GNU Free Documentation License, Version 1.3
- or any later version published by the Free Software Foundation;
- with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
- A copy of the license is included in the section entitled "GNU
- Free Documentation License".
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the "with...Texts." line with this:
- with the Invariant Sections being LIST THEIR TITLES, with the
- Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation.
If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.