Continuity equation, cartisan to polar

Click For Summary
SUMMARY

The discussion focuses on converting the continuity equation from Cartesian coordinates to polar coordinates using mathematical derivations. The continuity equation in Cartesian form is expressed as \(\frac{\partial V_{x}}{\partial x}+\frac{\partial V_{y}}{\partial y}=0\). The transformation involves using the relationships \(x=r\cos(\theta)\) and \(y=r\sin(\theta)\) to derive the polar form. The final polar continuity equation is \(\frac{1}{r}\frac{\partial}{\partial r}(rV_{r})+\frac{1}{r}\frac{\partial}{\partial \theta}(V_{\theta})=0\), which requires careful application of vector calculus and the chain rule for derivatives.

PREREQUISITES
  • Understanding of vector calculus and the divergence operator (\(\nabla\))
  • Familiarity with polar and Cartesian coordinate systems
  • Knowledge of the continuity equation in fluid mechanics
  • Proficiency in applying the chain rule for derivatives
NEXT STEPS
  • Study the derivation of the continuity equation in polar coordinates
  • Learn about the chain rule and its applications in vector calculus
  • Explore the transformation of vector fields between coordinate systems
  • Investigate the implications of non-constant unit vectors in polar coordinates
USEFUL FOR

Students and professionals in fluid mechanics, mathematicians focusing on vector calculus, and engineers working with coordinate transformations in physical systems.

arneolsen
Messages
1
Reaction score
0
Hello, I've allways wondered how to get to polar coordinates from cartisan coordinates. I took a course in fluid mechanics but we never learned how to get the continuity equation from cartisan to polar. I know you can use physics to derive the polar equation, but I want to do it just by using mathematics and the cartisan equation.

In cartisan the equation is
[itex]\frac{\partial V_{x}}{\partial x}+\frac{\partial V_{y}}{\partial y}=0[/itex]

by using:
[itex]x=r*cos(\theta)\\<br /> y = r*sin(\theta)[/itex]

I get:

[itex] \begin{pmatrix}<br /> \frac{dx}{dt} \\<br /> \frac{dy}{dt}\end{pmatrix}<br /> <br /> =<br /> \begin{pmatrix}<br /> V_{x} \\<br /> V_{y}\end{pmatrix}<br /> =<br /> \begin{pmatrix}<br /> cos(\theta) & -r*sin(\theta) \\<br /> sin(\theta) & r*cos(\theta)\end{pmatrix}<br /> *<br /> \begin{pmatrix}<br /> V_{r} \\<br /> V_{\theta}\end{pmatrix}[/itex], I have defined: [itex] \begin{pmatrix}<br /> \frac{dr}{dt} \\<br /> \frac{d\theta}{dt}\end{pmatrix}<br /> =<br /> \begin{pmatrix}<br /> V_{r} \\<br /> V_{\theta}\end{pmatrix}[/itex]

This gives:
[itex]V_{x}=cos(\theta)*V_{r}-r*sin(\theta)*V_{\theta}[/itex] and
[itex]V_{y}=sin(\theta)*V_{r}+r*cos(\theta)*V_{\theta}[/itex]

Now my problem arises, I do not see how I am supposed to calculate:
[itex]\frac{\partial V_{x}}{\partial x}+\frac{\partial V_{y}}{\partial y}=<br /> \frac{\partial (cos(\theta)*V_{r}-r*sin(\theta)*V_{\theta})}{\partial x} + <br /> \frac{ \partial (sin(\theta)*V_{r}+r*cos(\theta)*V_{\theta}) }{\partial y}[/itex]

Can you guys help me how to end this? It is supposed to be at the end:

[itex] \frac{1}{r}\frac{\partial}{\partial r}(r*V_{r})<br /> +\frac{1}{r}\frac{\partial}{\partial \theta}(V_{\theta})=0[/itex]
 
Last edited:
Physics news on Phys.org
Unfortunately vector calculus doesn't work that way. If you're trying to convert from cartesian coordinates then you need to work in terms of the vector derivative operator [itex]\nabla[/itex] or you will get things wrong.

The continuity equation is
[tex]\frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \mathbf{v}) = 0[/tex]
which for a constant density [itex]\rho[/itex] reduces to
[tex]\nabla \cdot \mathbf{v} = 0.[/tex]

In cartesian coordinates,
[tex]\nabla = \mathbf{e}_x \frac{\partial}{\partial x} + \mathbf{e}_y \frac{\partial}{\partial y}[/tex]
where the unit vectors [itex]\mathbf{e}_x[/itex] and [itex]\mathbf{e}_y[/itex] are constant, so that if [itex]\mathbf{v} = v_x \mathbf{e}_x + v_y \mathbf{e}_y[/itex] then
[tex] \nabla \cdot \mathbf{v} = \frac{\partial v_x}{\partial x} +<br /> \frac{\partial v_y}{\partial y}[/tex]

The unit vectors in polar coordinates are, in terms of the cartesian unit vectors, [itex]\mathbf{e}_r = \cos\theta \mathbf{e}_x + \sin\theta \mathbf{e}_y[/itex] and [itex]\mathbf{e}_\theta = -\sin\theta \mathbf{e}_x + \cos\theta \mathbf{e}_y[/itex]. These are not constant but depend on [itex]\theta[/itex]. Thus, if [itex]\mathbf{v} = v_r\mathbf{e}_r + v_\theta \mathbf{e}_\theta[/itex] then
[tex] \frac{\partial}{\partial \theta} (v_r\mathbf{e}_r ) <br /> = \frac{\partial v_r}{\partial \theta} \mathbf{e}_r + v_r \frac{\partial}{\partial \theta} \mathbf{e}_r<br /> = \frac{\partial v_r}{\partial \theta} \mathbf{e}_r + v_r \mathbf{e}_\theta[/tex]
and
[tex] \frac{\partial}{\partial \theta} (v_\theta\mathbf{e}_\theta ) <br /> = \frac{\partial v_\theta}{\partial \theta} \mathbf{e}_\theta + v_\theta \frac{\partial}{\partial \theta} \mathbf{e}_\theta<br /> = \frac{\partial v_\theta}{\partial \theta} \mathbf{e}_\theta - v_\theta \mathbf{e}_r[/tex]

It is fairly easy to show that, in polar coordinates,
[tex] \nabla = \mathbf{e}_r\frac{\partial }{\partial r} + \mathbf{e}_\theta \frac1r \frac{\partial}{\partial \theta}[/tex]
(the best way is to express the derivatives with respect to [itex]r[/itex] and [itex]\theta[/itex] in terms of those with respect to [itex]x[/itex] and [itex]y[/itex] using the chain rule, and then invert a 2x2 matrix to obtain the derivatives with respect to [itex]x[/itex] and [itex]y[/itex] in terms of those with respect to [itex]r[/itex] and [itex]\theta[/itex], and substitute those expressions into the cartesian version of [itex]\nabla[/itex]) and it is straightforward to compute
[tex] \nabla \cdot \mathbf{v} = \left(\mathbf{e}_r\frac{\partial }{\partial r} + \mathbf{e}_\theta \frac1r \frac{\partial}{\partial \theta}\right)\cdot \left(v_r\mathbf{e}_r + v_\theta \mathbf{e}_\theta\right)[/tex]
to get the correct expression.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 29 ·
Replies
29
Views
5K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K