|
[Sponsors] |
April 6, 2004, 07:37 |
UDF for multiphase flow
|
#1 |
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 |
|
April 6, 2004, 18:18 |
Re: UDF for multiphase flow
|
#2 |
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 |
|
April 7, 2004, 08:34 |
Re: UDF for multiphase flow
|
#3 |
Guest
Posts: n/a
|
Hi; Thanks for your answer. Can I send you my new UDF corresponding to your suggestion, by e-mail!?
ROOZBEH |
|
April 7, 2004, 18:54 |
Re: UDF for multiphase flow
|
#4 |
Guest
Posts: n/a
|
Sure.
Hi ap |
|
|
|
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 |