{"id":500,"date":"2015-05-01T22:34:40","date_gmt":"2015-05-01T22:34:40","guid":{"rendered":"http:\/\/underthehood.blogwyrm.com\/?p=500"},"modified":"2025-12-06T05:42:03","modified_gmt":"2025-12-06T10:42:03","slug":"a-flux-transport-example","status":"publish","type":"post","link":"https:\/\/underthehood.blogwyrm.com\/?p=500","title":{"rendered":"A Flux Transport Example"},"content":{"rendered":"<p>One of the more confusing things when I was learning vector calculus &amp; classical field theory was the derivation of the flux transport theorem. The theorem relates the change in flux $$\\Phi$$ due to a vector field $$\\vec F$$ through a moving surface $${\\mathcal S}$$ to certain integrals involving the time rate of change and the divergence of the field over the surface along with a contour integral around the surface&#8217;s boundary. Using the notation of &#8216;Introduction to Vector Analysis, 4th ed.&#8217; by Davis and Snider, the flux transport theorem is given by:<\/p>\n<p>\\[ \\frac{d \\Phi}{d t} = \\int_{\\mathcal S} d \\vec {\\mathcal S} \\cdot \\left[ \\frac{\\partial \\vec F}{\\partial t} + (\\nabla \\cdot \\vec F) \\vec v \\right] + \\int_{\\partial {\\mathcal S}} d \\vec \\ell \\cdot \\vec F \\times \\vec v \\; , \\]<\/p>\n<p>where $$d \\vec {\\mathcal S}$$ is the outward normal to a differential portion of surface area, $$\\vec v$$ is the velocity at each point on the surface (recall it is moving), and $$d \\vec \\ell$$ is a differential line element along the boundary of the surface $$\\partial {\\mathcal S}$$.<\/p>\n<p>Davis and Snider have some nice homework problems but I wanted an example where the surface changed size as well as moved in space. The example I concocted is one with a rectangular shaped surface whose four vertices are given by:<br \/>\n\\[ \\vec {\\mathcal A} \\doteq [t,-t,-1] \\; ,\\]<br \/>\n\\[ \\vec {\\mathcal B} \\doteq [t,t,-1] \\; ,\\]<br \/>\n\\[ \\vec {\\mathcal C} \\doteq [t,t,1] \\; ,\\]<br \/>\nand<br \/>\n\\[ \\vec {\\mathcal B} \\doteq [t,-t,1] \\; .\\]<br \/>\nNote that I represent ($$\\doteq$$) the coordinates of the points by row arrays simply for typographical convenience, although whether they are rows or columns doesn&#8217;t matter.<\/p>\n<p>The surface, which moves uniformly in the x-direction, is canted 45 degrees with respect to the y-z plane and has a time varying area of $$4t$$. The surface is parametrized by two parameters $$u$$ and $$v$$ ranging from $$0$$ to $$1$$ such that any point on the surface (including the boundary) is given by<\/p>\n<p>\\[\\vec {\\mathcal R}(u,v) \\doteq \\left[ t, (2u-1)t, 2v -1 \\right] \\; \\; u,v \\in[0,1] \\; .\\]<\/p>\n<p>In this parameterization, the outward normal to a differential patch is<\/p>\n<p>\\[ d \\vec {\\mathcal S} = \\frac{\\partial \\vec {\\mathcal R}}{\\partial u} \\times \\frac{\\partial \\vec {\\mathcal R}}{\\partial v} du dv \\doteq [4t,0,0] du dv \\; , \\]<\/p>\n<p>from which we immediately get the total area as<\/p>\n<p>\\[ Area(\\vec {\\mathcal S}) = \\int_{(u,v)} |d \\vec {\\mathcal S} | = \\int_0^1 du \\int_0^1 dv \\, 4 t = 4t \\]<\/p>\n<p>as expected.<\/p>\n<p>The form of the vector field is<\/p>\n<p>\\[ \\vec F(\\vec r) \\doteq [x y^2, y z^2 z x^2] \\]<\/p>\n<p>where $$\\vec r \\doteq [x,y,z] $$.<\/p>\n<p>Since the form of the surface and the vector field are fairly simple, the flux through the surface due to $$\\vec F$$<\/p>\n<p>\\[ \\Phi[\\vec F,\\vec {\\mathcal S}] = \\int_{\\vec {\\mathcal S}} \\vec F(\\vec {\\mathcal R}(u,v)) \\cdot d \\vec {\\mathcal S} \\]<\/p>\n<p>can be explicitly computed as<br \/>\n\\[ \\Phi[\\vec F,\\vec {\\mathcal S}] = \\int_0^1 du \\int_0^1 dv \\, 4 t^4 (2 u &#8211; 1)^2 = \\frac{4t^4}{3} \\; .\\]<\/p>\n<p>The time derivative is then easily obtained as<\/p>\n<p>\\[ \\frac{d \\Phi[\\vec F,\\vec {\\mathcal S}]}{d t} = \\frac{16t^3}{3} \\; .\\]<\/p>\n<p>To use the flux transport theorem, we need to compute $$div(\\vec F)$$ and $$\\frac{\\partial \\vec F}{\\partial t}$$ and then evaluate these terms across the expanse of the surface $$\\mathcal{S}$$. Likewise we also need to compute $$\\vec F \\times \\vec v$$, where $$\\vec v$$ is the velocity of the surface and then evaluate this terms along the its boundary.<\/p>\n<p>The divergence of the field is given by<\/p>\n<p>\\[ div(\\vec F) = x^2 + y^2 + z^2 \\; , \\]<\/p>\n<p>which, in the $$u-v$$ parametrization becomes<\/p>\n<p>\\[ div(\\vec F) = t^2 + (2 u &#8211; 1)^2 t^2 + (2 v- 1)^2 \\; .\\]<\/p>\n<p>The time derivative of the field is<\/p>\n<p>\\[\\frac{\\partial \\vec F}{\\partial t} = 0 \\]<\/p>\n<p>since the vector field $$\\vec F$$ has no explicit time dependence. All of the time rate of change is due to the surface moving within the field.<\/p>\n<p>The surface integral in the flux transport equation, formally given by<\/p>\n<p>\\[ I_0 = \\int_{\\vec {\\mathcal S}} d \\vec {\\mathcal S} \\cdot \\left[ div\\left(\\vec F(\\vec {\\mathcal R}(u,v))\\right) \\vec v + \\frac{\\partial \\vec F}{\\partial t}\\left(\\vec {\\mathcal R}(u,v)\\right) \\right] \\]<\/p>\n<p>in the $$u-v$$ parametrization, evaluates to<\/p>\n<p>\\[ I_0 = \\frac{ 16 t^3}{3} + \\frac{4 t }{3} \\; .\\]<\/p>\n<p>The velocity of any point on the surface is obtained by taking a time derivative with respect to $$\\vec {\\mathcal R}$$<\/p>\n<p>\\[ \\vec v = \\frac{\\partial \\mathcal{R} (u,v)}{\\partial t} \\doteq [1, 2 u &#8211; 1, 0] \\; .\\]<\/p>\n<p>The integrand of the line integral is<\/p>\n<p>\\[ \\vec F \\times \\vec v \\doteq [ &#8211; z x^2 (2 u &#8211; 1), z x^2 , x y^2 (2 u &#8211; 1) &#8211; y z^2 ] \\; , \\]<\/p>\n<p>which, in the $$u-v$$ parametrization, becomes<\/p>\n<p>\\[ \\vec F \\times \\vec v \\doteq [-(2 v &#8211; 1)(2 u &#8211; 1) t^2, (2 v &#8211; 1) t^2, (2 u &#8211; 1)^3 t^3 &#8211; (2 u &#8211; 1)(2 v &#8211; 1 )^2 t] \\; .\\]<\/p>\n<p>There are four distinct lines or legs making up the boundary of the surface. These are given by<\/p>\n<p>\\[ \\vec {\\mathcal L}_1(u) = \\vec {\\mathcal A} + u(\\vec {\\mathcal B} &#8211; \\vec {\\mathcal A}) \\; ,\\]<br \/>\n\\[ \\vec {\\mathcal L}_2(v) = \\vec {\\mathcal B} + v(\\vec {\\mathcal C} &#8211; \\vec {\\mathcal B}) \\; ,\\]<br \/>\n\\[ \\vec {\\mathcal L}_3(u) = \\vec {\\mathcal C} + u(\\vec {\\mathcal D} &#8211; \\vec {\\mathcal C}) \\; ,\\]<\/p>\n<p>and<\/p>\n<p>\\[ \\vec {\\mathcal L}_4(v) = \\vec {\\mathcal D} + v(\\vec {\\mathcal A} &#8211; \\vec {\\mathcal D}) \\]<\/p>\n<p>and there is a corresponding integral for each.<\/p>\n<p>The evaluation of each is a bit tedious (particularly in taking care to make sure that $$u$$ or $$v$$ take on the appropriate value for the leg being traversed) but straightforward leading to<br \/>\n\\[ I_1 =-2 t^3 \\int_0^1 du = -2 t^3 \\; , \\]<br \/>\n\\[ I_2 = 2 t^3 \\int_0^1 dv &#8211; 2t \\int_0^1 dv (2v-1)^2 = \\frac{ 2(3 t^3 &#8211; t)}{3} \\; , \\]<br \/>\n\\[ I_3 = -2t^3 \\int_0^1 du = -2 t^3 \\; , \\]<br \/>\nand<\/p>\n<p>\\[ I_4 = 2 t^3 \\int_0^1 dv &#8211; 2t\\int_0^1 dv (2v-1)^2 = 2 t^3 &#8211; \\frac{2}{3} t \\; ,\\]<br \/>\nrespectively.<\/p>\n<p>The total line integral around the boundary is then given as the sum of these terms<\/p>\n<p>\\[ I_c = &#8211; \\frac{4}{3} t \\; .\\]<\/p>\n<p>Adding this result to the result from surface integral gives<\/p>\n<p>\\[I_{tot} = \\frac{16 t^3}{3} \\; , \\]<\/p>\n<p>which is the same result as before.<\/p>\n<p>While this example is a bit contrived, it does offer a simple combination of both movement and growth that seems absent within the literature. Furthermore, when worked in detail, each piece drives home the content of the flux transport theorem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the more confusing things when I was learning vector calculus &amp; classical field theory was the derivation of the flux transport theorem. The theorem relates the change in&#8230; <a class=\"read-more-button\" href=\"https:\/\/underthehood.blogwyrm.com\/?p=500\">Read more &gt;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500"}],"version-history":[{"count":2,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":2210,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions\/2210"}],"wp:attachment":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}