CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Source code for Convection-diffus & Navier stokes (https://www.cfd-online.com/Forums/main/15824-source-code-convection-diffus-navier-stokes.html)

 vishal October 1, 2008 11:30

Source code for Convection-diffus & Navier stokes

Hi,

I am solving a 2D convection diffusion equation and also navier stokes using Finite Volume method. I would like to know whether any source codes are available for them. I saw some source codes like Open foam, overture, NaSt3DGP etc from the CFD online links. I would like to know out of all these source codes or others which one should I use (that is reasonably efficient, easy to comprehend and takes reasonably less computational time) to solve my problem.

Kindly help in this regard.

Vishal

 sudhakar October 2, 2008 04:27

Re: Source code for Convection-diffus & Navier sto

hi, I suggest you to refer the codes provided by Peric. See the appendix section of the book by the Ferziger and Peric for how to access the codes. It is written in fortran and really very simple and self-explanatory..

 vishal October 2, 2008 11:56

Re: Source code for Convection-diffus & Navier sto

Thanks a lot for the reply. But i use C and not Fortran... so any C codes available

Vishal

 x-flow October 7, 2008 06:49

Re: Source code for Convection-diffus & Navier sto

I will suggest the use of OpenFVM:

http://openfvm.sourceforge.net/

It is very easy to comprehend just as the codes of Peric. It is coded in C and not fortran. It can be easily compiled in both Windows and Linux. It also has a reference manual which describes the numerical methods used.

Note: For solving 2D convection/diffusion and navier-stokes, activate the calculation of u,v,p and T. Being T the solution of the convection/diffusion equation. This is done by changing the parameter (.par) file. For a quick start, look the tutorial in the reference manual.

 Vishal October 7, 2008 12:00

Re: Source code for Convection-diffus & Navier sto

Hi x flow,

Thanks a lot for the suggestions. I will download it and if I have any queries I need your help.