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

UDF for multiphase flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2004, 07:37
Default UDF for multiphase flow
  #1
ROOZBEH
Guest
 
Posts: n/a
Hi;

I want to write a UDF to modify turbulent viscosity in two phase region in multiphase cavitating flow. In fluent documentation there is an example for such UDF for Std k-e model. If I want to write this UDF for RNG k-e and multiphase model, what Should I do? In my modification formula there is mixture density and constant density of vapor and water and mixtur k and e. Should I use commands like thread_subthread etc. ?

Thanks

ROOZBEH
  Reply With Quote

Old   April 6, 2004, 18:18
Default Re: UDF for multiphase flow
  #2
ap
Guest
 
Posts: n/a
There is no significant difference between a UDF written for RNG k-eps and Standard k-eps calculations.

You can read the mixture density value recovering the thread of mixture using specific macros, or just calculating is as a weighted average using as weights volume fractions of phases.

For constant densities of vapour and water, you can use the C macro #define to set them in your UDF, or read them using C_R(cell, phase_thread), where phase_thread is the thread of the phase of which you want the density.

Hope this helps.

Hi

ap
  Reply With Quote

Old   April 7, 2004, 08:34
Default Re: UDF for multiphase flow
  #3
ROOZBEH
Guest
 
Posts: n/a
Hi; Thanks for your answer. Can I send you my new UDF corresponding to your suggestion, by e-mail!?

ROOZBEH
  Reply With Quote

Old   April 7, 2004, 18:54
Default Re: UDF for multiphase flow
  #4
ap
Guest
 
Posts: n/a
Sure.

Hi

ap
  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
UDF to measure Mass Flow Rate a.lynchy Fluent UDF and Scheme Programming 31 October 4, 2018 15:10
UDF of flow over oscillating cylinder 2D case imharoon1 FLUENT 3 August 28, 2011 02:46
UDF for transient pressure inlet, mass flow check at nozzle exit and volumetric heat kokoory FLUENT 0 August 17, 2011 03:07
How to define mass flow rate using UDF? SAMUEL FLUENT 3 December 25, 2004 01:36
How to define mass flow rate using UDF? SAMUEL FLUENT 0 December 16, 2004 03:55


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