CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   turbulence model (https://www.cfd-online.com/Forums/main/10817-turbulence-model.html)

Dan February 16, 2006 16:12

turbulence model
 
Is there any 2-equation turbulence model code in FORTRAN (preferably free) so I can implement it into my CFD code?

If anybody can help, much appreciated.

Dan

Anindya February 16, 2006 17:15

Re: turbulence model
 
See Peric's Code avaliable online. Has k-e and k-w coded in fortran.

Anindya


Dan February 17, 2006 15:45

Re: turbulence model
 
Thanks for your help. I did a quick search and found this site:

ftp://ftp.springer.de/pub/technik/peric/

but, I couldn't find any turbulence modeling code in it.

Could you tell me where I can find it.

Appreciate it.

Dan

Sharaf February 17, 2006 21:07

Re: turbulence model
 
Your question is a bit strange. A turbulence model is not an isolated bit that you stick onto your CFD code. Rather you are going to be solving an additional equation for turbulence kinetic energy (k) and, for example, dissipation rate of k (epsilon), in addition to velocity components and pressure. So they will part of your iteration cycle.

Moreover, if you have an existing code that doesn't have any turbulence model you will probably need to modify your velocity equations to the Reynolds-averaged version (RANS), i.e add the Reynolds stresses.

Maybe you need to read a little more about turbulence modeling.

Sharaf

Dan February 18, 2006 09:52

Re: turbulence model
 
Thanks Sharaf. My code does have a turbulence model but a very simple one (0 equation). By using a more sophisticated model, say a 2-layer one, I want to get better estimations for those parameters you mentioned. I believe it is possible to replace my model with a new one. It might just take a few days to match up the parameters and then get the first run.

So, now if you or anybody else can give me better advice on this, would be a great lift. My code is based on a control volume algorithm.

Dan


Dan February 18, 2006 09:53

Re: turbulence model
 
Sorry, I meant *Finite Volume*

Dan

Anindya February 18, 2006 17:40

Re: turbulence model
 
You have gone to the correct website. There, go to the folder 2dgt. There you will find the directories for both keps and komega codes. Both the codes there are probably called caffa.f

Hope it helps.

Anindya



All times are GMT -4. The time now is 17:24.