{"id":1469,"date":"2020-06-26T12:18:03","date_gmt":"2020-06-26T16:18:03","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/chbe220\/?post_type=chapter&#038;p=1469"},"modified":"2020-08-20T14:06:39","modified_gmt":"2020-08-20T18:06:39","slug":"separable-differential-equations","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/chbe220\/chapter\/separable-differential-equations\/","title":{"raw":"Separable Differential Equations","rendered":"Separable Differential Equations"},"content":{"raw":"<div class=\"textbox textbox--learning-objectives\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Learning Objectives<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nBy the end of this section, you should be able to:\r\n\r\n<strong>Provide<\/strong> initial conditions for well-mixed separable transient single-unit processes.\r\n\r\n<strong>Solve <\/strong>separable\u00a0transient balances to find a property of a system at any given time.\r\n\r\n<\/div>\r\n<\/div>\r\n<h2>Separable Differential Equations<\/h2>\r\nSeparable differential equations are differential equations where the variables can be isolated to one side of the equation. Take the following differential equations:\r\n<blockquote>1 - [latex]\\frac{dx}{dy}=(x^{3}+x)*(y-y^{2})[\/latex]\r\n\r\nThis equation is <em>separable<\/em> because you can completely isolate the x and y variables as follows:\r\n<p style=\"text-align: center\">[latex]\\frac{dx}{x^{3}+x}=dy*(y-y^{2})[\/latex]<\/p>\r\n2 - [latex]\\frac{dx}{dy}=\\frac{x}{x+y}[\/latex]\r\n\r\nThis equation is <em>non-separable<\/em> because you cannot completely isolate the x and y variables:\r\n<p style=\"text-align: center\">[latex]dy*(x+y)=dx*x[\/latex]<\/p>\r\nThese non-separable equations we will discuss later.<\/blockquote>\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Example: Chemical Reactor<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nConsider a \"continuous stirred-tank reactor\" (CSTR). CSTRs are reactors with continuous feed and exit streams and some kind of mixer.\r\n\r\nSay we know the following information about this CSTR:\r\n<ul>\r\n \t<li>The feed enters at a constant volumetric flowrate of [latex]\\dot{V}_{0}[\/latex] in L\/s<\/li>\r\n \t<li>The volume of the tank is [latex]V[\/latex] in L.<\/li>\r\n \t<li>Initially ([latex]t=0[\/latex]), the tank is filled to [latex]V_i[\/latex] in L<\/li>\r\n \t<li>The exit stream flows at a constant rate of [latex]\\dot{V}[\/latex] in L\/s<\/li>\r\n \t<li>We can assume that the density of all streams in the system is constant at [latex]\\rho[\/latex] in g\/L<\/li>\r\n<\/ul>\r\n<img class=\" wp-image-1218 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/cstr-300x189.png\" alt=\"\" width=\"379\" height=\"239\" \/>\r\n\r\nWe want to write a balance for the total (overall) mass in the system under transient conditions.\r\n\r\nWe start off by writing out the overall balance:\r\n<p style=\"text-align: center\">[latex]IN-OUT+GEN-CON=ACC[\/latex]<\/p>\r\nMass is not being consumed or generated, just changed from one substance to another. This means the [latex]GEN[\/latex] and [latex]CON[\/latex] terms are negligible. We get:\r\n\r\n[latex]IN=\\dot{V}_{0}*\\rho[\/latex]\r\n\r\n[latex]OUT=\\dot{V}*\\rho[\/latex]\r\n\r\n[latex]ACC=\\frac{dM}{dt}=\\frac{d(V*\\rho)}{dt}=\\rho*\\frac{dV}{dt}[\/latex]\r\n\r\nThe units for the [latex]IN[\/latex], [latex]OUT[\/latex], and [latex]ACC[\/latex] terms are kg\/s. Simplifying the balance, we get:\r\n<p style=\"text-align: center\">[latex]\\dot{V}_{0}*\\rho-\\dot{V}*\\rho = \\rho*\\frac{dV}{dt}[\/latex]<\/p>\r\nSince the densities are all constant, we can cancel them out:\r\n<p style=\"text-align: center\">[latex]\\dot{V}_{0} - \\dot{V} = \\frac{dV}{dt}[\/latex]<\/p>\r\nUsing separation of variables (from calculus), we can integrate both sides. We want to find a given value about our system at a specific final time ([latex]t_{f}[\/latex]), starting from an initial time (say [latex]t_{0} = 0[\/latex]). We know the initial volume [latex]V_{i}[\/latex] and want to find the final volume [latex]V_{f}[\/latex].\r\n<p style=\"text-align: center\">[latex](\\dot{V}_{0} - \\dot{V})dt = dV[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]\\int^{t_{f}}_{t_{0}}(\\dot{V}_{0} - \\dot{V})dt =\\int^{V_{f}}_{V_{i}} dV[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex](\\dot{V}_{0} - \\dot{V})*(t_{f}-t_{0}) =V_{f}-V_{i}[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]V_{f} = V_{i}+(\\dot{V}_{0} - \\dot{V})*(t_{f}-t_{0})[\/latex]<\/p>\r\nLet's try substituting in some numbers to this equation. Say the rate of flow in is 5 L\/min, and the flow out is 6 L\/min with 300 L initially in the tank. How much water remains in the tank after 1 hour? Using the formula we derived, we can find this:\r\n<p style=\"text-align: center\">[latex]V_{f} = V_{i}+(\\dot{V}_{0} - \\dot{V})*(t_{f}-t_{0})[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]V_{f} = 300 L+(5 \\frac{L}{min} - 6 \\frac{L}{min})*(60 min-0 min)$$<\/p>\r\n<p style=\"text-align: center\">$$V_{f} = 300 L-60 L$$<\/p>\r\n<p style=\"text-align: center\">$$V_{f} = 240 L$$<\/p>\r\nNote, you may say this is obvious and there is no need to derive our equation, and in this case our equation was relatively simple. However, we want to get in the practice of formulating these equations for when things start getting more complicated. In this class, we'll focus on formulating these equations rather than finding the solution.\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Exercise: Transient Mass Balance<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nConsider pumping liquid from a tank that has one drain line as depicted below:\r\n\r\n&nbsp;\r\n\r\n<img class=\" wp-image-1220 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-300x211.png\" alt=\"\" width=\"373\" height=\"262\" \/>\r\n\r\n&nbsp;\r\n\r\nAssume the tank contains only 1 species (A) and the density is constant. What are the relevant terms in the mass balance for this draining tank?\r\n\r\nSay at time zero, the height of the tank is 5 m, the tank also has a diameter of 2 m. There is a pump at the outlet pumping A out at a rate of 0.1 [latex]m^3\/min[\/latex]. What is the height of the tank at 10 minutes?\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"textbox\">\r\n<h3>Solution<\/h3>\r\n<strong>Step 1<\/strong>: Determine what terms in the general balance are zero or negligible.\r\n<p style=\"text-align: center\">[latex] IN - OUT + GEN - CON = ACC[\/latex]<\/p>\r\nSince there are no feed streams and no reactions (no mass generated or consumed), the [latex]IN[\/latex], [latex]GEN[\/latex], and [latex]CON[\/latex] terms can be omitted from the balance.\r\n<p style=\"text-align: center\">[latex] -OUT = ACC[\/latex]<\/p>\r\n<strong>Step 2<\/strong>: Write out the mass balance for species A in the system.\r\n<p style=\"text-align: center\">[latex] (-\\dot{m}_{out,A}) = \\frac{dM_{A}}{dt} [\/latex]<\/p>\r\n<strong>Step 3<\/strong>: Expand the mass terms.\r\n\r\nRecall that [latex]Mass=Volume*density[\/latex], so we can use that to express both terms in the mass balance:\r\n<p style=\"text-align: center\">[latex](-\\dot{V}_{out,A}*\\rho) = \\rho*\\frac{dV_{A}}{dt}[\/latex]<\/p>\r\nSince the density is constant, the density terms on both sides cancel each other out\r\n<p style=\"text-align: center\">[latex](-\\dot{V}_{out,A}) = \\frac{dV_{A}}{dt}[\/latex]<\/p>\r\nThe volume terms can be further expanded. Recall that the volume of a cylinder [latex]Area*Height[\/latex] or [latex]A*h[\/latex]. In differential terms, [latex]\\frac{dV}{dt}=A\\frac{dh}{dt} + h\\frac{dA}{dt}[\/latex]. Since the area is constant in this case, this simplifies to: [latex]\\frac{dV}{dt} = A\\frac{dh}{dt}[\/latex].\r\n<p style=\"text-align: center\">[latex](-\\dot{V}_{out,A}) = A_{tank}*\\frac{dh}{dt}[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]A_{tank} = \\frac{\\pi}{4}*{D_{tank}}^{2}=\\frac{\\pi}{4}*{2 m}^{2}=3.14 m^{2}[\/latex]<\/p>\r\n<strong>Step 4<\/strong>: Solve the integral from t = 0 to t = 10 mins\r\n<p style=\"text-align: center\">[latex](-\\dot{V}_{out,A})dt = A_{tank}*dh[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]\\int^{t=10 min}_{0 min}(-\\dot{V}_{out,A})dt =\\int^{h_{final}}_{h_{intial}} A_{tank}*dh[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]\\int^{t=10 min}_{0 min}(-0.10\\frac{m^3}{min})dt =\\int^{h_{final}}_{h_{intial}}3.14m^{2}*dh[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex](-0.1\\frac{m^{3}}{min})*t\\;\\bigg|^{t=10 min}_{0 min} = (3.14m^{2})*h\\;\\bigg|^{h_{final}}_{5m}[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex](-0.1\\frac{m^{3}}{min})*(10min-0min) = (3.14m^{2})*(h_{final}-5m)[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]-1 m^{3}*\\frac{1}{3.14m^{2}} = h_{final}-5m[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]-0.32 m = h_{final}-5m[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex](-.32+5) m = h_{final}[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]h_{final}=4.68 m[\/latex]<\/p>\r\n\r\n<\/div>\r\n&nbsp;\r\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Exercise: Transient Mass Balance<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<div class=\"cell border-box-sizing text_cell rendered\">\r\n<div class=\"inner_cell\">\r\n<div class=\"text_cell_render border-box-sizing rendered_html\">\r\n<div>\r\n\r\nSuppose we have a tank with an outlet at the bottom as shown below. Water is the only thing in the tank (we'll call this species A). The water flows out of the tank at a rate of [latex]\\sqrt{19.6\u00d7h}\\;m\/s[\/latex], where h is the height of water in m at any specific time (note that expression like this for outlet flow come from conservation of energy in a tank with gravity driving flow out of the tank). The tank has a cross-sectional area of [latex]1m^2[\/latex] and the outlet pipe has a cross-sectional area [latex]10cm^2[\/latex]. If the initial height of the water in the tank is 1 m, using a transient mass balance, calculate the height of water in the tank after 5 mins.\r\n\r\n<img class=\" wp-image-1219 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-example-2-300x228.png\" alt=\"\" width=\"419\" height=\"319\" \/>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"textbox\">\r\n<h3>Solution<\/h3>\r\n<strong>Step 1<\/strong>: Determine what terms in the general balance are zero or negligible.\r\n<p style=\"text-align: center\">[latex] IN - OUT + GEN - CON = ACC [\/latex]<\/p>\r\nSince there is no inlet stream and no chemical reactions in the tank, there is no [latex]IN[\/latex], [latex]GEN[\/latex] or [latex]CON[\/latex] terms:\r\n<p style=\"text-align: center\">[latex] -OUT = ACC[\/latex]<\/p>\r\n<strong>Step 2<\/strong>: Write out the mass balance for species A in the system.\r\n<p style=\"text-align: center\">[latex] (-\\dot{m}_{out}) = \\frac{dM}{dt} [\/latex]<\/p>\r\n<strong>Step 3<\/strong>: Express each term using the given quantities:\r\n\r\nReplace [latex]\\text{Mass}[\/latex] by [latex]\\text{Volume}\u00d7\\text{density}[\/latex] for both terms:\r\n<p style=\"text-align: center\">[latex] (-\\dot{V}_{out}\u00d7\\rho) = \\frac{dV\u00d7\\rho}{dt} [\/latex]<\/p>\r\nBecause [latex]\\rho[\/latex] are multiplied by both sides and we assume it is constant throughout the system, we can cancel [latex]\\rho[\/latex] in this step:\r\n<p style=\"text-align: center\">[latex] (-\\dot{V}_{out}) = \\frac{dV}{dt} [\/latex]<\/p>\r\nThe volume of fluid flowing out of a pipe at any instant can be calculated using [latex]\\dot{V}=u\u00d7A[\/latex], where u is the instantaneous velocity of the fluid and A is the cross-sectional area of the pipe. We can use this to express the outlet flow. For the accumulation term, it is not beneficial to do this because we don't know the expression for [latex]u[\/latex].\r\n\r\nFor the accumulation term, we can espress dV as [latex]A_{1}\u00d7dh[\/latex] because we know that [latex]A_{1}[\/latex] is constant, and this leaves only one variable (h) for us to solve for in the mass balance:\r\n<p style=\"text-align: center\">[latex] -u\u00d7A_{2} = \\frac{A_{1}dh}{dt} [\/latex]<\/p>\r\nWe can replace [latex]u[\/latex] using [latex]u=\\sqrt{19.6\u00d7h}[\/latex] given in the question. T\r\n<p style=\"text-align: center\">[latex] -\\sqrt{19.6\u00d7h}\u00d7A_{2} = \\frac{A_{1}dh}{dt} [\/latex]<\/p>\r\n<strong>Step 4<\/strong>: Solve the integral to find [latex]h_{f}[\/latex]:\r\n<p style=\"text-align: center\">[latex]\\int_{t_{0}}^{t_{f}}-\\sqrt{19.6\u00d7h}\u00d7A_{2}\\;dt= \\int_{h_{0}}^{h_{f}}A_{1}dh [\/latex]<\/p>\r\nSeparate the equation by moving all terms involving h to one side:\r\n<p style=\"text-align: center\">[latex]\\int_{t_{0}}^{t_{f}}-\\frac{A_{2}}{A_{1}}dt = \\int_{h_{0}}^{h_{f}}\\frac{1}{\\sqrt{19.6\u00d7h}}dh[\/latex]<\/p>\r\nReplace the variables by the given information: [latex]A_{2}=10cm^2=10\u00d710^{-4}m^2[\/latex], [latex]A_{1}=1m^2[\/latex], [latex]t_{0}=0s[\/latex], [latex]t_{f}=5min=300s[\/latex].\r\n\r\n\\begin{align*}\r\n\\int_{0}^{t=300}-\\frac{10\u00d710^{-4}}{1} dt&amp;= \\int_{h_{0}=1}^{h_{f}}\\frac{1}{\\sqrt{19.6}}\u00d7h^{-\\frac{1}{2}}dh \\\\\r\n-10\u00d710^{-4}\u00d7 t\\;\\bigg|_{0}^{t=300}&amp; = \\frac{2}{\\sqrt{19.6}}\u00d7h^{\\frac{1}{2}}\\;\\bigg|_{h_{0}=1}^{h_{f}}\\\\\r\n-10\u00d710^{-4}\u00d7(300-0)&amp; = \\frac{2}{\\sqrt{19.6}}\u00d7h_{f}^{\\frac{1}{2}}-\\frac{2}{\\sqrt{19.6}}\u00d7(1)^{\\frac{1}{2}}\\\\\r\n\\bigg(\\frac{-10\u00d710^{-4}\u00d7(300-0)+\\frac{2}{\\sqrt{19.6}}\u00d7(1)^{\\frac{1}{2}}}{\\frac{2}{\\sqrt{19.6}}}\\bigg)^2&amp;=h_{f} \\\\\r\nh_{f}&amp;=0.11m\r\n\\end{align*}\r\n\r\n<\/div>\r\n&nbsp;","rendered":"<div class=\"textbox textbox--learning-objectives\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Learning Objectives<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>By the end of this section, you should be able to:<\/p>\n<p><strong>Provide<\/strong> initial conditions for well-mixed separable transient single-unit processes.<\/p>\n<p><strong>Solve <\/strong>separable\u00a0transient balances to find a property of a system at any given time.<\/p>\n<\/div>\n<\/div>\n<h2>Separable Differential Equations<\/h2>\n<p>Separable differential equations are differential equations where the variables can be isolated to one side of the equation. Take the following differential equations:<\/p>\n<blockquote><p>1 &#8211; [latex]\\frac{dx}{dy}=(x^{3}+x)*(y-y^{2})[\/latex]<\/p>\n<p>This equation is <em>separable<\/em> because you can completely isolate the x and y variables as follows:<\/p>\n<p style=\"text-align: center\">[latex]\\frac{dx}{x^{3}+x}=dy*(y-y^{2})[\/latex]<\/p>\n<p>2 &#8211; [latex]\\frac{dx}{dy}=\\frac{x}{x+y}[\/latex]<\/p>\n<p>This equation is <em>non-separable<\/em> because you cannot completely isolate the x and y variables:<\/p>\n<p style=\"text-align: center\">[latex]dy*(x+y)=dx*x[\/latex]<\/p>\n<p>These non-separable equations we will discuss later.<\/p><\/blockquote>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Example: Chemical Reactor<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>Consider a &#8220;continuous stirred-tank reactor&#8221; (CSTR). CSTRs are reactors with continuous feed and exit streams and some kind of mixer.<\/p>\n<p>Say we know the following information about this CSTR:<\/p>\n<ul>\n<li>The feed enters at a constant volumetric flowrate of [latex]\\dot{V}_{0}[\/latex] in L\/s<\/li>\n<li>The volume of the tank is [latex]V[\/latex] in L.<\/li>\n<li>Initially ([latex]t=0[\/latex]), the tank is filled to [latex]V_i[\/latex] in L<\/li>\n<li>The exit stream flows at a constant rate of [latex]\\dot{V}[\/latex] in L\/s<\/li>\n<li>We can assume that the density of all streams in the system is constant at [latex]\\rho[\/latex] in g\/L<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1218 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/cstr-300x189.png\" alt=\"\" width=\"379\" height=\"239\" srcset=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/cstr-300x189.png 300w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/cstr-1024x647.png 1024w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/cstr-768x485.png 768w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/cstr-65x41.png 65w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/cstr-225x142.png 225w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/cstr-350x221.png 350w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/cstr.png 1064w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/p>\n<p>We want to write a balance for the total (overall) mass in the system under transient conditions.<\/p>\n<p>We start off by writing out the overall balance:<\/p>\n<p style=\"text-align: center\">[latex]IN-OUT+GEN-CON=ACC[\/latex]<\/p>\n<p>Mass is not being consumed or generated, just changed from one substance to another. This means the [latex]GEN[\/latex] and [latex]CON[\/latex] terms are negligible. We get:<\/p>\n<p>[latex]IN=\\dot{V}_{0}*\\rho[\/latex]<\/p>\n<p>[latex]OUT=\\dot{V}*\\rho[\/latex]<\/p>\n<p>[latex]ACC=\\frac{dM}{dt}=\\frac{d(V*\\rho)}{dt}=\\rho*\\frac{dV}{dt}[\/latex]<\/p>\n<p>The units for the [latex]IN[\/latex], [latex]OUT[\/latex], and [latex]ACC[\/latex] terms are kg\/s. Simplifying the balance, we get:<\/p>\n<p style=\"text-align: center\">[latex]\\dot{V}_{0}*\\rho-\\dot{V}*\\rho = \\rho*\\frac{dV}{dt}[\/latex]<\/p>\n<p>Since the densities are all constant, we can cancel them out:<\/p>\n<p style=\"text-align: center\">[latex]\\dot{V}_{0} - \\dot{V} = \\frac{dV}{dt}[\/latex]<\/p>\n<p>Using separation of variables (from calculus), we can integrate both sides. We want to find a given value about our system at a specific final time ([latex]t_{f}[\/latex]), starting from an initial time (say [latex]t_{0} = 0[\/latex]). We know the initial volume [latex]V_{i}[\/latex] and want to find the final volume [latex]V_{f}[\/latex].<\/p>\n<p style=\"text-align: center\">[latex](\\dot{V}_{0} - \\dot{V})dt = dV[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]\\int^{t_{f}}_{t_{0}}(\\dot{V}_{0} - \\dot{V})dt =\\int^{V_{f}}_{V_{i}} dV[\/latex]<\/p>\n<p style=\"text-align: center\">[latex](\\dot{V}_{0} - \\dot{V})*(t_{f}-t_{0}) =V_{f}-V_{i}[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]V_{f} = V_{i}+(\\dot{V}_{0} - \\dot{V})*(t_{f}-t_{0})[\/latex]<\/p>\n<p>Let&#8217;s try substituting in some numbers to this equation. Say the rate of flow in is 5 L\/min, and the flow out is 6 L\/min with 300 L initially in the tank. How much water remains in the tank after 1 hour? Using the formula we derived, we can find this:<\/p>\n<p style=\"text-align: center\">[latex]V_{f} = V_{i}+(\\dot{V}_{0} - \\dot{V})*(t_{f}-t_{0})[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]V_{f} = 300 L+(5 \\frac{L}{min} - 6 \\frac{L}{min})*(60 min-0 min)$$<\/p>\n<p style=\"text-align: center\">$$V_{f} = 300 L-60 L$$<\/p>\n<p style=\"text-align: center\">$$V_{f} = 240 L$$<\/p>\n<p>  Note, you may say this is obvious and there is no need to derive our equation, and in this case our equation was relatively simple. However, we want to get in the practice of formulating these equations for when things start getting more complicated. In this class, we'll focus on formulating these equations rather than finding the solution.    <\/p><\/div>\n<\/p><\/div>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Exercise: Transient Mass Balance<\/p>\n<\/header>\n<div class=\"textbox__content\">    Consider pumping liquid from a tank that has one drain line as depicted below:    &nbsp;    <img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1220 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-300x211.png\" alt=\"\" width=\"373\" height=\"262\" srcset=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-300x211.png 300w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-768x540.png 768w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-65x46.png 65w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-225x158.png 225w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-350x246.png 350w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank.png 943w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/>    &nbsp;    Assume the tank contains only 1 species (A) and the density is constant. What are the relevant terms in the mass balance for this draining tank?    Say at time zero, the height of the tank is 5 m, the tank also has a diameter of 2 m. There is a pump at the outlet pumping A out at a rate of 0.1 [latex]m^3\/min[\/latex]. What is the height of the tank at 10 minutes?<\/p>\n<\/div>\n<\/div>\n<div class=\"textbox\">\n<h3>Solution<\/h3>\n<p><strong>Step 1<\/strong>: Determine what terms in the general balance are zero or negligible.<\/p>\n<p style=\"text-align: center\">[latex]IN - OUT + GEN - CON = ACC[\/latex]<\/p>\n<p>Since there are no feed streams and no reactions (no mass generated or consumed), the [latex]IN[\/latex], [latex]GEN[\/latex], and [latex]CON[\/latex] terms can be omitted from the balance.<\/p>\n<p style=\"text-align: center\">[latex]-OUT = ACC[\/latex]<\/p>\n<p><strong>Step 2<\/strong>: Write out the mass balance for species A in the system.<\/p>\n<p style=\"text-align: center\">[latex](-\\dot{m}_{out,A}) = \\frac{dM_{A}}{dt}[\/latex]<\/p>\n<p><strong>Step 3<\/strong>: Expand the mass terms.<\/p>\n<p>Recall that [latex]Mass=Volume*density[\/latex], so we can use that to express both terms in the mass balance:<\/p>\n<p style=\"text-align: center\">[latex](-\\dot{V}_{out,A}*\\rho) = \\rho*\\frac{dV_{A}}{dt}[\/latex]<\/p>\n<p>Since the density is constant, the density terms on both sides cancel each other out<\/p>\n<p style=\"text-align: center\">[latex](-\\dot{V}_{out,A}) = \\frac{dV_{A}}{dt}[\/latex]<\/p>\n<p>The volume terms can be further expanded. Recall that the volume of a cylinder [latex]Area*Height[\/latex] or [latex]A*h[\/latex]. In differential terms, [latex]\\frac{dV}{dt}=A\\frac{dh}{dt} + h\\frac{dA}{dt}[\/latex]. Since the area is constant in this case, this simplifies to: [latex]\\frac{dV}{dt} = A\\frac{dh}{dt}[\/latex].<\/p>\n<p style=\"text-align: center\">[latex](-\\dot{V}_{out,A}) = A_{tank}*\\frac{dh}{dt}[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]A_{tank} = \\frac{\\pi}{4}*{D_{tank}}^{2}=\\frac{\\pi}{4}*{2 m}^{2}=3.14 m^{2}[\/latex]<\/p>\n<p><strong>Step 4<\/strong>: Solve the integral from t = 0 to t = 10 mins<\/p>\n<p style=\"text-align: center\">[latex](-\\dot{V}_{out,A})dt = A_{tank}*dh[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]\\int^{t=10 min}_{0 min}(-\\dot{V}_{out,A})dt =\\int^{h_{final}}_{h_{intial}} A_{tank}*dh[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]\\int^{t=10 min}_{0 min}(-0.10\\frac{m^3}{min})dt =\\int^{h_{final}}_{h_{intial}}3.14m^{2}*dh[\/latex]<\/p>\n<p style=\"text-align: center\">[latex](-0.1\\frac{m^{3}}{min})*t\\;\\bigg|^{t=10 min}_{0 min} = (3.14m^{2})*h\\;\\bigg|^{h_{final}}_{5m}[\/latex]<\/p>\n<p style=\"text-align: center\">[latex](-0.1\\frac{m^{3}}{min})*(10min-0min) = (3.14m^{2})*(h_{final}-5m)[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]-1 m^{3}*\\frac{1}{3.14m^{2}} = h_{final}-5m[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]-0.32 m = h_{final}-5m[\/latex]<\/p>\n<p style=\"text-align: center\">[latex](-.32+5) m = h_{final}[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]h_{final}=4.68 m[\/latex]<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Exercise: Transient Mass Balance<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<div class=\"cell border-box-sizing text_cell rendered\">\n<div class=\"inner_cell\">\n<div class=\"text_cell_render border-box-sizing rendered_html\">\n<div>\n<p>Suppose we have a tank with an outlet at the bottom as shown below. Water is the only thing in the tank (we'll call this species A). The water flows out of the tank at a rate of [latex]\\sqrt{19.6\u00d7h}\\;m\/s[\/latex], where h is the height of water in m at any specific time (note that expression like this for outlet flow come from conservation of energy in a tank with gravity driving flow out of the tank). The tank has a cross-sectional area of [latex]1m^2[\/latex] and the outlet pipe has a cross-sectional area [latex]10cm^2[\/latex]. If the initial height of the water in the tank is 1 m, using a transient mass balance, calculate the height of water in the tank after 5 mins.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1219 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-example-2-300x228.png\" alt=\"\" width=\"419\" height=\"319\" srcset=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-example-2-300x228.png 300w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-example-2-65x49.png 65w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-example-2-225x171.png 225w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-example-2-350x266.png 350w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/DrainingTank-example-2.png 692w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox\">\n<h3>Solution<\/h3>\n<p><strong>Step 1<\/strong>: Determine what terms in the general balance are zero or negligible.<\/p>\n<p style=\"text-align: center\">[latex]IN - OUT + GEN - CON = ACC[\/latex]<\/p>\n<p>Since there is no inlet stream and no chemical reactions in the tank, there is no [latex]IN[\/latex], [latex]GEN[\/latex] or [latex]CON[\/latex] terms:<\/p>\n<p style=\"text-align: center\">[latex]-OUT = ACC[\/latex]<\/p>\n<p><strong>Step 2<\/strong>: Write out the mass balance for species A in the system.<\/p>\n<p style=\"text-align: center\">[latex](-\\dot{m}_{out}) = \\frac{dM}{dt}[\/latex]<\/p>\n<p><strong>Step 3<\/strong>: Express each term using the given quantities:<\/p>\n<p>Replace [latex]\\text{Mass}[\/latex] by [latex]\\text{Volume}\u00d7\\text{density}[\/latex] for both terms:<\/p>\n<p style=\"text-align: center\">[latex](-\\dot{V}_{out}\u00d7\\rho) = \\frac{dV\u00d7\\rho}{dt}[\/latex]<\/p>\n<p>Because [latex]\\rho[\/latex] are multiplied by both sides and we assume it is constant throughout the system, we can cancel [latex]\\rho[\/latex] in this step:<\/p>\n<p style=\"text-align: center\">[latex](-\\dot{V}_{out}) = \\frac{dV}{dt}[\/latex]<\/p>\n<p>The volume of fluid flowing out of a pipe at any instant can be calculated using [latex]\\dot{V}=u\u00d7A[\/latex], where u is the instantaneous velocity of the fluid and A is the cross-sectional area of the pipe. We can use this to express the outlet flow. For the accumulation term, it is not beneficial to do this because we don't know the expression for [latex]u[\/latex].<\/p>\n<p>For the accumulation term, we can espress dV as [latex]A_{1}\u00d7dh[\/latex] because we know that [latex]A_{1}[\/latex] is constant, and this leaves only one variable (h) for us to solve for in the mass balance:<\/p>\n<p style=\"text-align: center\">[latex]-u\u00d7A_{2} = \\frac{A_{1}dh}{dt}[\/latex]<\/p>\n<p>We can replace [latex]u[\/latex] using [latex]u=\\sqrt{19.6\u00d7h}[\/latex] given in the question. T<\/p>\n<p style=\"text-align: center\">[latex]-\\sqrt{19.6\u00d7h}\u00d7A_{2} = \\frac{A_{1}dh}{dt}[\/latex]<\/p>\n<p><strong>Step 4<\/strong>: Solve the integral to find [latex]h_{f}[\/latex]:<\/p>\n<p style=\"text-align: center\">[latex]\\int_{t_{0}}^{t_{f}}-\\sqrt{19.6\u00d7h}\u00d7A_{2}\\;dt= \\int_{h_{0}}^{h_{f}}A_{1}dh[\/latex]<\/p>\n<p>Separate the equation by moving all terms involving h to one side:<\/p>\n<p style=\"text-align: center\">[latex]\\int_{t_{0}}^{t_{f}}-\\frac{A_{2}}{A_{1}}dt = \\int_{h_{0}}^{h_{f}}\\frac{1}{\\sqrt{19.6\u00d7h}}dh[\/latex]<\/p>\n<p>Replace the variables by the given information: [latex]A_{2}=10cm^2=10\u00d710^{-4}m^2[\/latex], [latex]A_{1}=1m^2[\/latex], [latex]t_{0}=0s[\/latex], [latex]t_{f}=5min=300s[\/latex].<\/p>\n<p>\\begin{align*}<br \/>\n\\int_{0}^{t=300}-\\frac{10\u00d710^{-4}}{1} dt&amp;= \\int_{h_{0}=1}^{h_{f}}\\frac{1}{\\sqrt{19.6}}\u00d7h^{-\\frac{1}{2}}dh \\\\<br \/>\n-10\u00d710^{-4}\u00d7 t\\;\\bigg|_{0}^{t=300}&amp; = \\frac{2}{\\sqrt{19.6}}\u00d7h^{\\frac{1}{2}}\\;\\bigg|_{h_{0}=1}^{h_{f}}\\\\<br \/>\n-10\u00d710^{-4}\u00d7(300-0)&amp; = \\frac{2}{\\sqrt{19.6}}\u00d7h_{f}^{\\frac{1}{2}}-\\frac{2}{\\sqrt{19.6}}\u00d7(1)^{\\frac{1}{2}}\\\\<br \/>\n\\bigg(\\frac{-10\u00d710^{-4}\u00d7(300-0)+\\frac{2}{\\sqrt{19.6}}\u00d7(1)^{\\frac{1}{2}}}{\\frac{2}{\\sqrt{19.6}}}\\bigg)^2&amp;=h_{f} \\\\<br \/>\nh_{f}&amp;=0.11m<br \/>\n\\end{align*}<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"author":949,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1469","chapter","type-chapter","status-publish","hentry"],"part":1451,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/chapters\/1469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/wp\/v2\/users\/949"}],"replies":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/wp\/v2\/comments?post=1469"}],"version-history":[{"count":10,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/chapters\/1469\/revisions"}],"predecessor-version":[{"id":2814,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/chapters\/1469\/revisions\/2814"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/parts\/1451"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/chapters\/1469\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/wp\/v2\/media?parent=1469"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/chapter-type?post=1469"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/wp\/v2\/contributor?post=1469"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/wp\/v2\/license?post=1469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}