{"id":1615,"date":"2021-11-26T23:30:00","date_gmt":"2021-11-27T04:30:00","guid":{"rendered":"http:\/\/underthehood.blogwyrm.com\/?p=1615"},"modified":"2022-07-28T06:28:23","modified_gmt":"2022-07-28T10:28:23","slug":"a-curvilinear-mantra-part-2","status":"publish","type":"post","link":"https:\/\/underthehood.blogwyrm.com\/?p=1615","title":{"rendered":"A Curvilinear Mantra &#8211; Part 2"},"content":{"rendered":"\n<p>The last post introduced the curvilinear mantra for students working with field equations in such disciplines as fluid mechanics, general relativity, and electricity and magnetism.&nbsp; The textbook example (see, e.g. Acheson Appendix A, pp 352-3) is Euler\u2019s equations for ideal fluids in two spatial dimensions.&nbsp;<\/p>\n\n\n\n<p>In cartesian coordinates these equations read<\/p>\n\n\n\n<p>\\[ \\rho \\left( V_x \\partial_x + V_y \\partial_y + \\partial_t \\right) V_x = &#8211; \\partial_x p + f_x \\; &nbsp;\\]<\/p>\n\n\n\n<p>and<\/p>\n\n\n\n<p>\\[ \\rho \\left( V_x \\partial_x + V_y \\partial_y + \\partial_t \\right) V_y = -\\partial_y p + f_y \\; ,\\]<\/p>\n\n\n\n<p>whereas, in polar coordinates these equations read<\/p>\n\n\n\n<p>\\[ \\rho \\left( V_r \\partial_r + \\frac{V_\\theta}{r} \\partial_\\theta &nbsp;+ \\partial_t \\right) V_r &#8211; \\rho \\frac{{V_\\theta}^2}{r} = -\\partial_r p + f_r \\; \\]<\/p>\n\n\n\n<p>and<\/p>\n\n\n\n<p>\\[ \\rho \\left( V_r \\partial_r + \\frac{V_\\theta}{r} \\partial_\\theta &nbsp;+ \\partial_t \\right) V_\\theta + \\rho \\frac{V_r V_\\theta}{r} = -\\frac{1}{r} \\partial_\\theta p + f_\\theta \\; . \\]<\/p>\n\n\n\n<p>As discussed in the previous post, beginning students are often confused by two changes when transitioning from cartesian to polar coordinates.&nbsp; The first is the appearance of $1\/r$ scale factors that decorate various terms such as $V_\\theta\/r \\partial_\\theta$.&nbsp; The second is the appearance of additional additive terms, such as $V_r V_\\theta\/r$.&nbsp;<\/p>\n\n\n\n<p>The curvilinear mantra explains these changes as follows: the scale factors come from minding the units and the additive terms show up to account for how the basis unit vectors change from place to place.<\/p>\n\n\n\n<p>The first half of the mantra was covered in the previous post.&nbsp; This post finishes the exploration by demonstrating how the additive terms arise due to the spatial variations of the basis vectors.&nbsp;<\/p>\n\n\n\n<p>The first step involves writing the position vector in terms of the polar coordinates and the cartesian unit basis vectors<\/p>\n\n\n\n<p>\\[ {\\vec r} = r \\cos \\theta {\\hat x} + r \\sin \\theta {\\hat y} \\; .\\]<\/p>\n\n\n\n<p>The polar unit basis vectors are defined by taking the derivatives of the position vector with respect to the polar coordinates and then unitizing.&nbsp; The radial basis vector (not unitized) is<\/p>\n\n\n\n<p>\\[ {\\vec e}_r \\equiv \\frac{\\partial {\\vec r}}{\\partial r} = \\cos \\theta {\\hat x} + \\sin \\theta {\\hat y} \\; .\\]<\/p>\n\n\n\n<p>Conveniently, this vector has a unit length and we can immediately write the radial unit basis vector as<\/p>\n\n\n\n<p>\\[ {\\hat r} = \\cos \\theta {\\hat x} + \\sin \\theta {\\hat y} \\; . \\]<\/p>\n\n\n\n<p>Following the same procedure, the polar angle basis vector (not unitized) is<\/p>\n\n\n\n<p>\\[ {\\vec e}_\\theta \\equiv \\frac{\\partial {\\vec r}}{\\partial \\theta} = -r \\sin \\theta {\\hat x} + r \\cos \\theta {\\hat y} \\; . \\]<\/p>\n\n\n\n<p>This vector has length $r$ and so the polar angle unit base vector is<\/p>\n\n\n\n<p>\\[ {\\hat \\theta} = -\\sin \\theta {\\hat x} + \\cos \\theta {\\hat y}\u00a0 \\; .\\]<\/p>\n\n\n\n<p>Both vectors are independent of $r$ but do depend on $\\theta$ and their variations are<\/p>\n\n\n\n<p>\\[ \\partial_\\theta {\\hat r} = {\\hat \\theta} \\; \\]<\/p>\n\n\n\n<p>and<\/p>\n\n\n\n<p>\\[ \\partial_\\theta {\\hat \\theta} = &#8211; {\\hat r} \\; . \\]<\/p>\n\n\n\n<p>At this point we have all the ingredients we need.&nbsp; From the first part of the curvilinear mantra we have the velocity in polar coordinates is<\/p>\n\n\n\n<p>\\[ {\\vec V} = V_r {\\hat r} + \\frac{V_\\theta}{r} {\\hat \\theta} \\; &nbsp;\\]<\/p>\n\n\n\n<p>and the material (or total) time derivative is<\/p>\n\n\n\n<p>\\[ \\frac{D}{Dt} = V_r \\partial_r + \\frac{V_\\theta}{r} \\partial_\\theta + \\partial_t \\; , \\]<\/p>\n\n\n\n<p>where the scale factors on the polar angle terms are due to minding units.<\/p>\n\n\n\n<p>Applying the material time derivative to the velocity gives<\/p>\n\n\n\n<p>\\[ \\frac{D {\\vec V}}{Dt} = \\left( V_r \\partial_r + \\frac{V_\\theta}{r} \\partial_\\theta + \\partial_t \\right) \\left( V_r {\\hat r} + \\frac{V_\\theta}{r} {\\hat \\theta} \\right) \\; . \\]<\/p>\n\n\n\n<p>Expanding this expression term-by-term yields<\/p>\n\n\n\n<p>\\[ V_r \\partial_r \\left( V_r {\\hat r} \\right) + \\frac{V_\\theta}{r} \\partial_\\theta \\left( V_\\theta {\\hat \\theta} \\right) + \\frac{V_\\theta}{r} \\partial_\\theta \\left( V_r {\\hat r} \\right) + \\left(\\partial_t V_r \\right) {\\hat r} + \\left( \\partial_t V_\\theta \\right) {\\hat \\theta} \\; . \\]<\/p>\n\n\n\n<p>Expanding the derivatives, taking care to evaluate the spatial derivatives of the unit basis vectors, yields<\/p>\n\n\n\n<p>\\[ V_r \\partial_r V_r {\\hat r} + \\frac{V_\\theta}{r} \\left( \\partial_\\theta V_\\theta \\right) {\\hat \\theta} &#8211; \\frac{{V_\\theta}^2}{r} {\\hat r} + \\left( \\frac{V_\\theta}{r} \\partial_\\theta V_r \\right) {\\hat r} + \\\\ \\frac{V_\\theta V_r}{r} {\\hat \\theta} &nbsp;+ \\left(\\partial_t V_r \\right) {\\hat r} + \\left( \\partial_t V_\\theta \\right) {\\hat \\theta} \\; . \\]<\/p>\n\n\n\n<p>Collecting terms gives the radial term as<\/p>\n\n\n\n<p>\\[ V_r \\partial_r V_r + \\frac{V_\\theta}{r} \\partial_\\theta V_r &#8211; \\frac{{V_\\theta}^2}{r} + \\partial_t V_r  \\; \\]<\/p>\n\n\n\n<p>and the polar angle term as<\/p>\n\n\n\n<p>\\[&nbsp; \\frac{V_\\theta}{r} \\partial_\\theta V_\\theta&nbsp; + \\frac{V_\\theta}{r} \\partial_\\theta V_\\theta + \\frac{V_\\theta V_r}{r} + \\partial_t V_\\theta \\; .\\]<\/p>\n\n\n\n<p>Factoring the terms yields<\/p>\n\n\n\n<p>\\[ \\left( V_r \\partial_r + \\frac{V_\\theta}{r} \\partial_\\theta + \\partial_t \\right) V_r &#8211; \\frac{{V_\\theta}^2}{r} \\; \\]<\/p>\n\n\n\n<p>and <\/p>\n\n\n\n<p>\\[ \\left( V_r \\partial_r + \\frac{V_\\theta}{r} \\partial_\\theta + \\partial_t \\right) V_\\theta + \\frac{V_\\theta V_r}{r} \\; .\\]<\/p>\n\n\n\n<p>Happily, these expressions match term-for-term the textbook (up to multiplication by $\\rho$).&nbsp; This shows the accuracy and power of the curvilinear mantra.&nbsp; Hopefully it will catch on in classrooms.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The last post introduced the curvilinear mantra for students working with field equations in such disciplines as fluid mechanics, general relativity, and electricity and magnetism.&nbsp; The textbook example (see, e.g&#8230;. <a class=\"read-more-button\" href=\"https:\/\/underthehood.blogwyrm.com\/?p=1615\">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-1615","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/1615","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=1615"}],"version-history":[{"count":7,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/1615\/revisions"}],"predecessor-version":[{"id":1624,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/1615\/revisions\/1624"}],"wp:attachment":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}