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

Writing own turbulence model

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 8, 2002, 05:08
Default Writing own turbulence model
  #1
ff
Guest
 
Posts: n/a
Dear Fluent users,

I would like to applay my own turbulence model by writing UDF function. Is this possible in Fluent? Any advice will be very helpful.

BR, ff
  Reply With Quote

Old   November 8, 2002, 09:31
Default Re: Writing own turbulence model
  #2
cfd monkey
Guest
 
Posts: n/a
I think I understand your dilemma. You have the turbulence model (or the makings of one), but not the solver and some way of viewing/outputting your results. I may be wrong, but unfortunately I think it is not possible to do want you want with Fluent. My understanding of UDFs is that they are for getting more specific information about cells and faces than Fluent's defaults output. For example, if you wanted specific time-dependent data from a certain range of cells on a face, then this is a good applicaton for a UDF. Also UDF can be used for inputting profiles for velocity, temperature, radiation, et cetera, as boundary conditions. Fluent uses C in the UDFs and in Fluent 5 I'm fairly sure that no arrays are possible, among other limitations to the C language, so if this is the case, then you can see that it is probably not likely you will be able to implement a hand-written turbulence model. On the other hand, Fluent's primary turbulence models (Spalart-Almaras, K-e, and RNG) work quite well, so its probably more trouble than its worth to use Fluent as the environment to run your turbulence model. To get a definitive answer to your question, you could contact Fluent and ask them directly.
  Reply With Quote

Old   November 8, 2002, 09:48
Default Re: Writing own turbulence model
  #3
ff
Guest
 
Posts: n/a
Thank you, for your promptly answer. Is it possible to add some additional terms in scalar transport equations (like k or E) with UDF.

Best Regards,
  Reply With Quote

Old   November 8, 2002, 10:20
Default Re: Writing own turbulence model
  #4
Jonas Larsson
Guest
 
Posts: n/a
Yes, it is possible to implement a new turbulence model using UDFs. It is not easy though. You might want to ask fluent if they can provide you with an example - I remember seeing a k-w model implemented as a UDF for Fluent 5 some time ago.
  Reply With Quote

Old   November 9, 2002, 22:03
Default Re: Writing own turbulence model
  #5
david
Guest
 
Posts: n/a
I think, even if you are smart, it may take your 4/5 yrs of your dedicated time to implement a new turbulence model using UDFs. Why not writing a complete independent code??!! There are lots advantages and desadvantages though.

DC
  Reply With Quote

Old   November 10, 2002, 05:17
Default Re: Writing own turbulence model
  #6
Jonas Larsson
Guest
 
Posts: n/a
With a good example to start from it shouldn't be more than a weeks work to implement a new model and run a few validation cases.
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a Turbulence Model doug OpenFOAM Running, Solving & CFD 10 October 2, 2012 06:55
KOmega Turbulence model from wwwopenFOAMWikinet philippose OpenFOAM Running, Solving & CFD 30 August 4, 2010 10:26
turbulence model equation Andy Chen FLOW-3D 4 January 1, 2010 21:45
SimpleFoam case with SpalartAllmaras turbulence model implemented nedved OpenFOAM Running, Solving & CFD 1 November 18, 2008 15:49
SSG Reynolds Turbulence Model Georges CFX 1 February 28, 2007 16:15


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