# Simplest way of converting a 2d Navier Stokes code to a 2d axisymmetric one

 Register Blogs Members List Search Today's Posts Mark Forums Read

 September 18, 2017, 14:41 Simplest way of converting a 2d Navier Stokes code to a 2d axisymmetric one #1 New Member   Join Date: Jul 2017 Posts: 6 Rep Power: 6 Hello I have a 2d NS code, I want to convert it to a 2d axisymmetric one, can you refer me to a reference, thesis, book, that describes the easiest way to do it? Btw, how do you suggest me to modify the 2d version to get a 2d axisymmetric one? Boundary conditions also to me is not clear whether or not, and how should be modified. Shall I change all my discretizations and convert them to cylindrical coordinate?

September 18, 2017, 14:53
#2
Senior Member

Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,041
Rep Power: 64
Quote:
 Originally Posted by mseka Hello I have a 2d NS code, I want to convert it to a 2d axisymmetric one, can you refer me to a reference, thesis, book, that describes the easiest way to do it? Btw, how do you suggest me to modify the 2d version to get a 2d axisymmetric one? Boundary conditions also to me is not clear whether or not, and how should be modified. Shall I change all my discretizations and convert them to cylindrical coordinate?

I don't see a relevant problem in doing that ...if you work in (r,z), the direction z is one of the 2D direction (x or y), depending on your choice.
Just see in some textbook the PDE equations in (r,z) and discretize as you did in the 2D case. You will find some slight differences and you have to consider the r=0 case but it is quite simple, some years ago I transformed my 2D code in one day, validation included.