CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Simplest way of converting a 2d Navier Stokes code to a 2d axisymmetric one (https://www.cfd-online.com/Forums/main/193165-simplest-way-converting-2d-navier-stokes-code-2d-axisymmetric-one.html)

 mseka September 18, 2017 14:41

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

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?

 FMDenaro September 18, 2017 14:53

Quote:
 Originally Posted by mseka (Post 664798) 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.

 All times are GMT -4. The time now is 02:22.