{"id":1471,"date":"2020-06-26T12:20:15","date_gmt":"2020-06-26T16:20:15","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/chbe220\/?post_type=chapter&#038;p=1471"},"modified":"2020-08-20T14:09:10","modified_gmt":"2020-08-20T18:09:10","slug":"non-separable-differential-equations","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/chbe220\/chapter\/non-separable-differential-equations\/","title":{"raw":"Non-separable Differential Equations","rendered":"Non-separable Differential Equations"},"content":{"raw":"<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 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 non-separable transient single-unit processes.\r\n\r\n<strong>Set-up <\/strong>separable transient balances.\r\n\r\n<\/div>\r\n<\/div>\r\n<h2>Non-Separable Differential Equations<\/h2>\r\nNon-separable differential equations are differential equations where the variables cannot be isolated. These equations cannot be easily solved and require numerical or analytical methods that will be taught in future courses. You will learn some methods to solve non-separable equations in CHBE 230 (numerical methods) and MATH 256 (differential equations).\r\n<blockquote>\r\n<p style=\"text-align: center\">[latex]\\frac{dy}{dx} = \\frac{y}{x} + 1 [\/latex]<\/p>\r\nYou cannot isolate the x and y variables in this differential equation, making it a non-separable ordinary differential equation. Without separation you cannot use the integration techniques you learned in your calculus courses to solve this equation for y as a function of x.<\/blockquote>\r\nIn this class, we will only formulate non-separable differential equations without solving them. We will use general balance equations to come up with differential equations and identify the initial conditions, but we will not find the solutions.\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"prompt input_prompt\">\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. Let's say the following first-order reaction takes place in our CSTR:\r\n<p style=\"text-align: center\">[latex] A \u2192 B [\/latex]<\/p>\r\nSay the units of the rate of consumption of A are [latex]\\frac{mol}{s*L}[\/latex].\r\n\r\nSay we know the following information about this CSTR:\r\n<ul>\r\n \t<li>The feed enters at a volumetric flowrate of [latex]\\dot{V}_{0}[\/latex] in L\/s and a concentration of [latex]C_{A,0}[\/latex] in mol\/L<\/li>\r\n \t<li>The volume of the tank is constant at [latex]V[\/latex] in L and it is perfectly mixed. This means that the concentration of A is uniform within the tank and matches the exit concentration.<\/li>\r\n \t<li>We will assume that the density of all streams in the system is constant at [latex]\\rho[\/latex] in g\/L<\/li>\r\n \t<li>Initially ([latex]t=0[\/latex]), the tank has an initial concentration of [latex]C_{A,i}[\/latex] in mol\/L<\/li>\r\n \t<li>The exit stream flows at a rate of [latex]\\dot{V}[\/latex] in L\/s, which is the same as [latex]\\dot{V}_{0}[\/latex] to ensure our volume stays constant<\/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=\"368\" height=\"232\" \/>\r\n\r\nWe want to write a balance for the moles of A in the system under transient conditions.\r\n\r\nWe start off by writing out the general balance for the moles of A for a CSTR:\r\n<p style=\"text-align: center\">[latex]IN-OUT+GEN-CON=ACC[\/latex]<\/p>\r\nFor this example, we can assume that the reaction is irreversible, indiceted by the one-way arrow in the reaction. Therefore, there will be no $GEN$ term in the mole balance for A. We get the following terms:\r\n\r\n[latex]IN = \\dot{V}_{0}*C_{A,0}[\/latex]\r\n\r\n[latex]OUT= \\dot{V}*C_{A}[\/latex]\r\n\r\n[latex]GEN=0[\/latex]\r\n\r\n[latex]CON= k*C_{A}*V[\/latex] - this is the reaction rate in terms of species A\r\n\r\n[latex]\\frac{dN_{A}}{dt}=\\frac{d(V*C_{A})}{dt}=V*\\frac{dC_{A}}{dt}[\/latex] - since the volume V is constant\r\n\r\nThe units for all these terms are mol\/s. Simplifying the balance, we get:\r\n<p style=\"text-align: center\">[latex]\\dot{V}_{0}*C_{A,0}-\\dot{V}*C_{A}-k*C_{A}*V= V*\\frac{dC_{A}}{dt}[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]\\frac{\\dot{V}_{0}*C_{A,0}}{V}-\\frac{\\dot{V}*C_{A}}{V}-k*C_{A}= \\frac{dC_{A}}{dt}[\/latex]<\/p>\r\nwith initial conditions: [latex]C_{A}=C_{A,i}[\/latex]when [latex]t=0[\/latex]\r\n\r\nFor this course, formulating this differential equation and listing initial conditions without solving it is sufficient. You will learn how to solve these different equations in future classes.\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 Mole Balance<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<div class=\"inner_cell\">\r\n<div class=\"text_cell_render border-box-sizing rendered_html\">\r\n<div class=\"textbox textbox--exercises\">\r\n<div class=\"textbox__content\">\r\n\r\nConsider a CSTR where carbonic acid irreversibly decomposes to form water and carbon dioxide as follows:\r\n<p style=\"text-align: center\">[latex] H_{2}CO_{3} \u2192 H_{2}O + CO_{2} [\/latex]<\/p>\r\n<img class=\" wp-image-1221 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/Ex3-300x213.png\" alt=\"\" width=\"413\" height=\"293\" \/>\r\n\r\nThere are two streams entering the CSTR that both contain carbonic acid. The first stream has a concentration of [latex]C_{H_{2}CO_{3},01}[\/latex] and a volumetric flowrate of [latex]\\dot{V}_{01}[\/latex], while the second stream has a concentration of [latex]C_{H_{2}CO_{3},02}[\/latex] and a volumetric flowrate of [latex]\\dot{V}_{02}[\/latex]. The volume of the reactor is constant V. The concentration of the exit stream is [latex]C_{H_{2}CO_{3},i}=0.5M[\/latex] at 0 minutes. If the reaction is first order with the following rate of reaction:\r\n<p style=\"text-align: center\">[latex]-r_{H_{2}CO_{3}} = k*C_{H_{2}CO_{3}}[\/latex]<\/p>\r\nWhat is the transient mole balance on carbonic acid? Set up the ordinary differential equation and initial conditions for this system without solving the differential equation.\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 are present in the mole balance.\r\n<p style=\"text-align: center\">[latex] IN = \\dot{V}_{01}*C_{H_{2}CO_{3},01} + \\dot{V}_{02}*C_{H_{2}CO_{3},02}[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]OUT= \\dot{V}*C_{H_{2}CO_{3}}[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex] GEN = 0[\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex] CON = -r_{H_{2}CO_{3}}*V = k*C_{H_{2}CO_{3}}*V [\/latex]<\/p>\r\n<p style=\"text-align: center\">[latex]ACC = \\frac{dN_{H_{2}CO_{3}}}{dt} = \\frac{d(V*C_{H_{2}CO_{3}})}{dt}[\/latex]<\/p>\r\n<strong>Step 2<\/strong>: Write out the mole balance with the derived terms and determine the initial conditions.\r\n\r\n[latex] \\dot{V}_{01}*C_{H_{2}CO_{3},01} + \\dot{V}_{02}*C_{H_{2}CO_{3},02} - \\dot{V}*C_{H_{2}CO_{3}} - k*C_{H_{2}CO_{3}}*V = \\frac{d(V*C_{H_{2}CO_{3}})}{dt}[\/latex]\r\n\r\nThe intial conditions are [latex]C_{H_{2}CO_{3}}(t=0 min) = 0.5 M[\/latex]\r\n\r\nNote you can see from this equation that [latex]V*C_{H_{2}CO_{3}}[\/latex] cannot be isolated. When we try to put all terms containing [latex]C_{H_{2}CO_{3}}[\/latex] to the right side by dividing it, it induced [latex]C_{H_{2}CO_{3}}[\/latex] terms into the first and second term on the left. and thus we cannot use separation of variables. You will learn to solve these equations in your ordinary differential equations class.\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n<\/div>","rendered":"<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 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 non-separable transient single-unit processes.<\/p>\n<p><strong>Set-up <\/strong>separable transient balances.<\/p>\n<\/div>\n<\/div>\n<h2>Non-Separable Differential Equations<\/h2>\n<p>Non-separable differential equations are differential equations where the variables cannot be isolated. These equations cannot be easily solved and require numerical or analytical methods that will be taught in future courses. You will learn some methods to solve non-separable equations in CHBE 230 (numerical methods) and MATH 256 (differential equations).<\/p>\n<blockquote>\n<p style=\"text-align: center\">[latex]\\frac{dy}{dx} = \\frac{y}{x} + 1[\/latex]<\/p>\n<p>You cannot isolate the x and y variables in this differential equation, making it a non-separable ordinary differential equation. Without separation you cannot use the integration techniques you learned in your calculus courses to solve this equation for y as a function of x.<\/p><\/blockquote>\n<p>In this class, we will only formulate non-separable differential equations without solving them. We will use general balance equations to come up with differential equations and identify the initial conditions, but we will not find the solutions.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"prompt input_prompt\">\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. Let&#8217;s say the following first-order reaction takes place in our CSTR:<\/p>\n<p style=\"text-align: center\">[latex]A \u2192 B[\/latex]<\/p>\n<p>Say the units of the rate of consumption of A are [latex]\\frac{mol}{s*L}[\/latex].<\/p>\n<p>Say we know the following information about this CSTR:<\/p>\n<ul>\n<li>The feed enters at a volumetric flowrate of [latex]\\dot{V}_{0}[\/latex] in L\/s and a concentration of [latex]C_{A,0}[\/latex] in mol\/L<\/li>\n<li>The volume of the tank is constant at [latex]V[\/latex] in L and it is perfectly mixed. This means that the concentration of A is uniform within the tank and matches the exit concentration.<\/li>\n<li>We will assume that the density of all streams in the system is constant at [latex]\\rho[\/latex] in g\/L<\/li>\n<li>Initially ([latex]t=0[\/latex]), the tank has an initial concentration of [latex]C_{A,i}[\/latex] in mol\/L<\/li>\n<li>The exit stream flows at a rate of [latex]\\dot{V}[\/latex] in L\/s, which is the same as [latex]\\dot{V}_{0}[\/latex] to ensure our volume stays constant<\/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=\"368\" height=\"232\" 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: 368px) 100vw, 368px\" \/><\/p>\n<p>We want to write a balance for the moles of A in the system under transient conditions.<\/p>\n<p>We start off by writing out the general balance for the moles of A for a CSTR:<\/p>\n<p style=\"text-align: center\">[latex]IN-OUT+GEN-CON=ACC[\/latex]<\/p>\n<p>For this example, we can assume that the reaction is irreversible, indiceted by the one-way arrow in the reaction. Therefore, there will be no $GEN$ term in the mole balance for A. We get the following terms:<\/p>\n<p>[latex]IN = \\dot{V}_{0}*C_{A,0}[\/latex]<\/p>\n<p>[latex]OUT= \\dot{V}*C_{A}[\/latex]<\/p>\n<p>[latex]GEN=0[\/latex]<\/p>\n<p>[latex]CON= k*C_{A}*V[\/latex] &#8211; this is the reaction rate in terms of species A<\/p>\n<p>[latex]\\frac{dN_{A}}{dt}=\\frac{d(V*C_{A})}{dt}=V*\\frac{dC_{A}}{dt}[\/latex] &#8211; since the volume V is constant<\/p>\n<p>The units for all these terms are mol\/s. Simplifying the balance, we get:<\/p>\n<p style=\"text-align: center\">[latex]\\dot{V}_{0}*C_{A,0}-\\dot{V}*C_{A}-k*C_{A}*V= V*\\frac{dC_{A}}{dt}[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]\\frac{\\dot{V}_{0}*C_{A,0}}{V}-\\frac{\\dot{V}*C_{A}}{V}-k*C_{A}= \\frac{dC_{A}}{dt}[\/latex]<\/p>\n<p>with initial conditions: [latex]C_{A}=C_{A,i}[\/latex]when [latex]t=0[\/latex]<\/p>\n<p>For this course, formulating this differential equation and listing initial conditions without solving it is sufficient. You will learn how to solve these different equations in future classes.<\/p>\n<\/div>\n<\/div>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Exercise: Transient Mole Balance<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<div class=\"inner_cell\">\n<div class=\"text_cell_render border-box-sizing rendered_html\">\n<div class=\"textbox textbox--exercises\">\n<div class=\"textbox__content\">\n<p>Consider a CSTR where carbonic acid irreversibly decomposes to form water and carbon dioxide as follows:<\/p>\n<p style=\"text-align: center\">[latex]H_{2}CO_{3} \u2192 H_{2}O + CO_{2}[\/latex]<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1221 aligncenter\" src=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/Ex3-300x213.png\" alt=\"\" width=\"413\" height=\"293\" srcset=\"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/Ex3-300x213.png 300w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/Ex3-65x46.png 65w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/Ex3-225x160.png 225w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/Ex3-350x249.png 350w, https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-content\/uploads\/sites\/1010\/2020\/06\/Ex3.png 647w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/p>\n<p>There are two streams entering the CSTR that both contain carbonic acid. The first stream has a concentration of [latex]C_{H_{2}CO_{3},01}[\/latex] and a volumetric flowrate of [latex]\\dot{V}_{01}[\/latex], while the second stream has a concentration of [latex]C_{H_{2}CO_{3},02}[\/latex] and a volumetric flowrate of [latex]\\dot{V}_{02}[\/latex]. The volume of the reactor is constant V. The concentration of the exit stream is [latex]C_{H_{2}CO_{3},i}=0.5M[\/latex] at 0 minutes. If the reaction is first order with the following rate of reaction:<\/p>\n<p style=\"text-align: center\">[latex]-r_{H_{2}CO_{3}} = k*C_{H_{2}CO_{3}}[\/latex]<\/p>\n<p>What is the transient mole balance on carbonic acid? Set up the ordinary differential equation and initial conditions for this system without solving the differential equation.<\/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 are present in the mole balance.<\/p>\n<p style=\"text-align: center\">[latex]IN = \\dot{V}_{01}*C_{H_{2}CO_{3},01} + \\dot{V}_{02}*C_{H_{2}CO_{3},02}[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]OUT= \\dot{V}*C_{H_{2}CO_{3}}[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]GEN = 0[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]CON = -r_{H_{2}CO_{3}}*V = k*C_{H_{2}CO_{3}}*V[\/latex]<\/p>\n<p style=\"text-align: center\">[latex]ACC = \\frac{dN_{H_{2}CO_{3}}}{dt} = \\frac{d(V*C_{H_{2}CO_{3}})}{dt}[\/latex]<\/p>\n<p><strong>Step 2<\/strong>: Write out the mole balance with the derived terms and determine the initial conditions.<\/p>\n<p>[latex]\\dot{V}_{01}*C_{H_{2}CO_{3},01} + \\dot{V}_{02}*C_{H_{2}CO_{3},02} - \\dot{V}*C_{H_{2}CO_{3}} - k*C_{H_{2}CO_{3}}*V = \\frac{d(V*C_{H_{2}CO_{3}})}{dt}[\/latex]<\/p>\n<p>The intial conditions are [latex]C_{H_{2}CO_{3}}(t=0 min) = 0.5 M[\/latex]<\/p>\n<p>Note you can see from this equation that [latex]V*C_{H_{2}CO_{3}}[\/latex] cannot be isolated. When we try to put all terms containing [latex]C_{H_{2}CO_{3}}[\/latex] to the right side by dividing it, it induced [latex]C_{H_{2}CO_{3}}[\/latex] terms into the first and second term on the left. and thus we cannot use separation of variables. You will learn to solve these equations in your ordinary differential equations class.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"author":949,"menu_order":3,"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-1471","chapter","type-chapter","status-publish","hentry"],"part":1451,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/chapters\/1471","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=1471"}],"version-history":[{"count":9,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/chapters\/1471\/revisions"}],"predecessor-version":[{"id":2816,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/chapters\/1471\/revisions\/2816"}],"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\/1471\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/wp\/v2\/media?parent=1471"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/pressbooks\/v2\/chapter-type?post=1471"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/wp\/v2\/contributor?post=1471"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/chbe220\/wp-json\/wp\/v2\/license?post=1471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}