CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Can some one show me a sample program of 3D k-epsilon? (https://www.cfd-online.com/Forums/main/71572-can-some-one-show-me-sample-program-3d-k-epsilon.html)

tss January 8, 2010 00:44

Can some one show me a sample program of 3D k-epsilon?
 
Hi

I want to learn how k-epsilon model works in low level. I googled many programs but none satisfy my needs.

Most mature codes depend on many libraries (like MPI, ParMetis, Petsc, etc). They are very complicated (FreeCFD contains thousands of lines of code, OpenFOAM tarball is 30MB big). And Most of them are too high level (kEpsilon.C in OpenFOAM is quite simple: it just described the equations. Investigating the low level solving strategies takes forever for beginners.)

So my question is, is there a simple clean k-epsilon code for the beginners to learn the brief idea of a CFD solver? Such program might not be full-featured (solving one case is enough. no need to include pre/post processing, meshing, etc.), but should be small (a few hundreds lines of code) and clean (use ANSI C, do not depends on libraries).

For LBM, there are some sample code for the newbies to learn: http://www.ndsu.edu/physics/people/f...ltzmann_codes/

Ahmed January 8, 2010 01:15

David Wilcox book on turbulence models is accompanied with a disk full of very useful programmes

DoHander January 8, 2010 17:52

You could also try NSC2KE (Google and you shall find) and the accompanying book:

Analysis of the K-epsilon turbulence mode, by B. Mohammadi.

The software is open source and self containing but in Fortran 77 (it should take a few hours to a C programmer to learn Fortran 77 syntax), anyway it should give you an idea of a code like this can be structured.
Do


All times are GMT -4. The time now is 10:05.