CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Navier-Stokes equation in spherical coordinate

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2022, 03:08
Smile Navier-Stokes equation in spherical coordinate
  #1
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Hi All,

I need to solve Navier-Stokes equation in spherical coordinate. Prof. Batchelor gave mass and momentum equations directly without derivation in his book "An introduction to Fluid Mechanics", 1967. Besides, some show a coordinate transformation from Cartesian, which is not clear from a physical basis. So I want a complete derivation from basic conservation laws. Could someone help? Thank you so much.


Best,
Mingming
optimux is offline   Reply With Quote

Old   February 16, 2022, 05:08
Default
  #2
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 376
Rep Power: 11
Gerry Kan is on a distinguished road
Dear Mingming:

If you are looking for a direct transformation between the Cartesian equations to the spherical coordinates, look up something called "Lamé coefficients." This should simplify your work.

Otherwise, if you are looking for a direct derivation of these equations in spherical coordinates, you might want to start with mass conservation (continuity) and try to derive it yourself and then infer (not repeat) this for the momentum equations.

Hope that helps, Gerry.
Gerry Kan is offline   Reply With Quote

Old   February 16, 2022, 05:13
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by optimux View Post
Hi All,

I need to solve Navier-Stokes equation in spherical coordinate. Prof. Batchelor gave mass and momentum equations directly without derivation in his book "An introduction to Fluid Mechanics", 1967. Besides, some show a coordinate transformation from Cartesian, which is not clear from a physical basis. So I want a complete derivation from basic conservation laws. Could someone help? Thank you so much.


Best,
Mingming

That means you want to write the Reynolds transport equation in spherical coordinates and then mass, momentum and energy?
FMDenaro is offline   Reply With Quote

Old   February 16, 2022, 05:25
Smile
  #4
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Quote:
Originally Posted by Gerry Kan View Post
Dear Mingming:

If you are looking for a direct transformation between the Cartesian equations to the spherical coordinates, look up something called "Lamé coefficients." This should simplify your work.

Otherwise, if you are looking for a direct derivation of these equations in spherical coordinates, you might want to start with mass conservation (continuity) and try to derive it yourself and then infer (not repeat) this for the momentum equations.

Hope that helps, Gerry.
Hi Gerry,

Yes, I derived continuity equation by myself from mass conservation, but failed for the momentum equations. There must be something missing that I have to dig into.


Thank you so much.



Best,
Mingming
optimux is offline   Reply With Quote

Old   February 16, 2022, 05:35
Smile
  #5
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
That means you want to write the Reynolds transport equation in spherical coordinates and then mass, momentum and energy?
Hey Denaro,

Yes, mass, momentum, energy and chemical species conservation equations for incompressible flows. I have derived them from scratch in Cartesian coordinate, with porous media included. But spherical coordinate is quite different. Could you please give me some hint?


Thanks,
Mingming
optimux is offline   Reply With Quote

Old   February 16, 2022, 05:46
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by optimux View Post
Hey Denaro,

Yes, mass, momentum, energy and chemical species conservation equations for incompressible flows. I have derived them from scratch in Cartesian coordinate, with porous media included. But spherical coordinate is quite different. Could you please give me some hint?


Thanks,
Mingming



The NSE in spherical coordinates are detailed in many textbooks.

I suggest to start from the simple polar representation (without porous effects) to check if you are doing correctly your derivation.
You need to express the nabla and integral operators in sperical coordinates and then apply the inner product to the momentum variable.
Maybe you could write the point in which your derivation failed.
FMDenaro is offline   Reply With Quote

Old   February 16, 2022, 06:10
Smile
  #7
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
The NSE in spherical coordinates are detailed in many textbooks.

I suggest to start from the simple polar representation (without porous effects) to check if you are doing correctly your derivation.
You need to express the nabla and integral operators in sperical coordinates and then apply the inner product to the momentum variable.
Maybe you could write the point in which your derivation failed.
Hi Denaro,

I probably missed unit vectors relationship but I can not tell exactly. Yes, I tried cylindrical coordinate without porous media but not complete yet.

BTW, would you please name a book which has a complete derivation? Thank you.


Best,
Mingming
optimux is offline   Reply With Quote

Old   February 16, 2022, 06:50
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by optimux View Post
Hi Denaro,

I probably missed unit vectors relationship but I can not tell exactly. Yes, I tried cylindrical coordinate without porous media but not complete yet.

BTW, would you please name a book which has a complete derivation? Thank you.


Best,
Mingming



post your notes and we can check ....
Have a look to the dedicated appendix in the textbook of Kundu.
FMDenaro is offline   Reply With Quote

Old   February 16, 2022, 07:15
Smile
  #9
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
post your notes and we can check ....
Have a look to the dedicated appendix in the textbook of Kundu.
Hi Denaro,

Thanks a lot! I'll check out that book first and translate my notes. Thanks for your time.


Best,
Mingming
optimux is offline   Reply With Quote

Old   February 16, 2022, 07:23
Default
  #10
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 376
Rep Power: 11
Gerry Kan is on a distinguished road
I remember this being in my course notes from some decades ago. The direct derivation of the momentum equations in the spherical coordinates are not so straightforward.

What you can do, is to assume a set of transformation coefficients (i.e., Lamé coefficients). Leave them "as is" (i.e., as h1, h2, and h3) until the very end, since you are deriving differential equations. These coefficients are conservative so the advantage is that you simply have to carry them in your derivation and then substitute them when you have the governing equations in basic form, effectively treating the derivation as Cartesian for the most part.

I imagine this is also the same approach as what is shown in Batchelor's text. What these coefficients are you can infer from the continuity equation, which you have already done.

Also, how are you modelling porous media? With Darcy / Forchheimer relations, or explicitly (i.e., porous interface as walls)?

Gerry.
Gerry Kan is offline   Reply With Quote

Old   February 16, 2022, 08:10
Smile
  #11
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Quote:
Originally Posted by Gerry Kan View Post
I remember this being in my course notes from some decades ago. The direct derivation of the momentum equations in the spherical coordinates are not so straightforward.

What you can do, is to assume a set of transformation coefficients (i.e., Lamé coefficients). Leave them "as is" (i.e., as h1, h2, and h3) until the very end, since you are deriving differential equations. These coefficients are conservative so the advantage is that you simply have to carry them in your derivation and then substitute them when you have the governing equations in basic form, effectively treating the derivation as Cartesian for the most part.

I imagine this is also the same approach as what is shown in Batchelor's text. What these coefficients are you can infer from the continuity equation, which you have already done.

Also, how are you modelling porous media? With Darcy / Forchheimer relations, or explicitly (i.e., porous interface as walls)?

Gerry.
Hi Gerry,

Thanks for your suggestions. I use Darcy's law to model resistence of porous media.

Best,
Mingming
optimux is offline   Reply With Quote

Old   February 16, 2022, 10:20
Default
  #12
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 376
Rep Power: 11
Gerry Kan is on a distinguished road
Quote:
Originally Posted by optimux View Post
Thanks for your suggestions. I use Darcy's law to model resistence of porous media.
Do keep in mind that Darcy's law is an empirical loss term. For derive the resistance in all three spherical directions, assume the general form:

u_k = -\left(\frac{\kappa}{\mu}\right)\frac{1}{h_k}\nabla_k{p}

where \kappa is the permeability, \muis the dynamic viscosity, k is the individual orthogonal component r, \phi, \theta, and h_k are the Lamé coefficients for each of the component.

What you will have should be:

k_r = 1, \quad k_\phi = r\sin(\theta), \quad k_\theta = r.

If you need to be convinced for the spherical coordinates, you can derive the Lamé coefficients from mass conservation alone. The corresponding differentials (\nabla, \nabla\cdotp, \nabla\times, \nabla^2) and substitute this into your momentum equations to save you work in deriving everything, since it will get very messy for spherical coordinates.

Gerry.
Gerry Kan is offline   Reply With Quote

Old   February 16, 2022, 12:09
Smile
  #13
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Quote:
Originally Posted by Gerry Kan View Post
Do keep in mind that Darcy's law is an empirical loss term. For derive the resistance in all three spherical directions, assume the general form:

u_k = -\left(\frac{\kappa}{\mu}\right)\frac{1}{h_k}\nabla_k{p}

where \kappa is the permeability, \muis the dynamic viscosity, k is the individual orthogonal component r, \phi, \theta, and h_k are the Lamé coefficients for each of the component.

What you will have should be:

k_r = 1, \quad k_\phi = r\sin(\theta), \quad k_\theta = r.

If you need to be convinced for the spherical coordinates, you can derive the Lamé coefficients from mass conservation alone. The corresponding differentials (\nabla, \nabla\cdotp, \nabla\times, \nabla^2) and substitute this into your momentum equations to save you work in deriving everything, since it will get very messy for spherical coordinates.

Gerry.
Hi Gerry,

It seems that spherical coordinate is not friendly. I'll keep this in mind. Thank you so much.


Best,
Mingming
optimux is offline   Reply With Quote

Old   February 16, 2022, 13:38
Default
  #14
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
In my opinion, this is best done by deriving the vector form of the Navier-Stokes equations using divergence operators (this is also the meta). Then you can freely go into any coordinate system you want. Coordinates are just representations of vectors, the underlying physics remains the same.
LuckyTran is offline   Reply With Quote

Old   February 24, 2022, 05:07
Default
  #15
New Member
 
cartlon flores
Join Date: Feb 2022
Posts: 1
Rep Power: 0
sonmezroy is on a distinguished road
I derived continuity equation by myself from mass conservation, but failed for the momentum equations. shareit downloading vidmate 2014

Last edited by sonmezroy; February 26, 2022 at 05:09.
sonmezroy is offline   Reply With Quote

Old   February 26, 2022, 04:14
Default
  #16
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
In my opinion, this is best done by deriving the vector form of the Navier-Stokes equations using divergence operators (this is also the meta). Then you can freely go into any coordinate system you want. Coordinates are just representations of vectors, the underlying physics remains the same.
Hi Tran,

I followed your suggestion and succeeded. At this moment, only mass and momentum equations are derived without porous media, species and energy equations are the next step.

Thank you very much.

Best,
Mingming
optimux is offline   Reply With Quote

Old   February 26, 2022, 04:19
Smile
  #17
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Quote:
Originally Posted by sonmezroy View Post
I derived continuity equation by myself from mass conservation, but failed for the momentum equations.
Hi Sonmezroy,

How did you work out mass conservation equation? I'd like to share my notes but it's not in English. You can email me at zmmhst0819@gmail.com.


Best,
Mingming
optimux is offline   Reply With Quote

Old   February 26, 2022, 04:25
Wink Mass+momentum equation in spherical coordinates derivation
  #18
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Dear CFDers,

I have derived mass and momentum equations in sperical coordinates by hand, to have a deeper understanding of variables in spherical coordiantes. Anyone interested in could contact me at zmmhst0819@gmail.com.


Cheers,
Mingming
optimux is offline   Reply With Quote

Old   March 9, 2022, 11:52
Default Found a paper
  #19
Member
 
optimux's Avatar
 
Mingming Zhang
Join Date: Dec 2019
Posts: 35
Rep Power: 7
optimux is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
In my opinion, this is best done by deriving the vector form of the Navier-Stokes equations using divergence operators (this is also the meta). Then you can freely go into any coordinate system you want. Coordinates are just representations of vectors, the underlying physics remains the same.
Hi Tran,

I recently found a paper that uses finite difference method to solve NS equations in spherical coordinates. It provides an interesting pseudo-velocity method to circumvent singularity problem. It's "A fi nite difference scheme for three-dimensional incompressible fows in spherical coordinates" by Luca Santelli.

Best,
Mingming
optimux is offline   Reply With Quote

Old   July 28, 2022, 11:08
Default
  #20
New Member
 
Uno
Join Date: Jul 2022
Posts: 1
Rep Power: 0
unogamerules is on a distinguished road
Yes, I derived continuity equation by myself from mass conservation, but failed for the momentum equations. There must be something missing that I have to dig into.
__________________
UNO blank card rules
unogamerules is offline   Reply With Quote

Reply

Tags
ns equation, spherical coordinate


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Line term in the Navier - Stokes equation. vgoy OpenFOAM Programming & Development 2 October 26, 2021 10:07
Navier Stokes Equation for Non-newtonian fluid? shivasluzz Main CFD Forum 6 June 9, 2015 11:44
need 2d equation for navier stokes in c sudeep FLUENT 1 February 16, 2011 18:01
Navier stokes compresible viscid flow fea, somebody can help? Jose Choy Main CFD Forum 3 October 24, 2003 03:28
help: I am trying to solve Navier Stokes compressible and viscid flow Jose Choy Main CFD Forum 2 May 18, 2000 06:45


All times are GMT -4. The time now is 14:43.