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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2010, 00:44
Default Can some one show me a sample program of 3D k-epsilon?
  #1
tss
New Member
 
PA
Join Date: Jan 2010
Posts: 6
Rep Power: 16
tss is on a distinguished road
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/
tss is offline   Reply With Quote

Old   January 8, 2010, 01:15
Default
  #2
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18
Ahmed is on a distinguished road
David Wilcox book on turbulence models is accompanied with a disk full of very useful programmes
Ahmed is offline   Reply With Quote

Old   January 8, 2010, 17:52
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 19
DoHander is on a distinguished road
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
DoHander is offline   Reply With Quote

Reply


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
SimpleFoam k and epsilon bounded nedved OpenFOAM Running, Solving & CFD 16 March 4, 2017 08:30
SimpleFoam k and epsilon bounded nedved OpenFOAM Running, Solving & CFD 1 November 25, 2008 20:21
about my old post Rogerio Fernandes Brito CFX 1 February 8, 2008 19:19
CAE program for heat conducting Rogerio Fernandes Brito FLUENT 0 February 3, 2008 11:22
UDS sample program J.Y.Shin FLUENT 0 January 24, 2007 21:41


All times are GMT -4. The time now is 15:33.