CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS

UDF for VOF model

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

LinkBack Thread Tools Display Modes
Old   October 5, 2012, 13:15
Exclamation UDF for VOF model
New Member
Join Date: Feb 2012
Location: UK
Posts: 24
Rep Power: 8
canev.civelek is on a distinguished road
Hi there,

Ive run a VOF spray simulation in FLUENT and now i wish to add a UDF to incorporate mass transfer (Evaporation) into the simulation.

I am aware there is a code given in the UDF user's guide, however im not sure exactually how it works. see below:

#include "udf.h"
DEFINE_MASS_TRANSFER(liq_gas_source, cell, thread, from_index,
from_species_index, to_index, to_species_index)
real m_lg;
real T_SAT = 373.15;
Thread *gas = THREAD_SUB_THREAD(thread, from_index);
Thread *liq = THREAD_SUB_THREAD(thread, to_index);
m_lg = 0.;
if (C_T(cell, liq) >= T_SAT)
m_lg = -0.1*C_VOF(cell,liq)*C_R(cell,liq)*
if ((m_lg == 0. ) && (C_T(cell, gas) <= T_SAT))
m_lg = 0.1*C_VOF(cell,gas)*C_R(cell,gas)*
return (m_lg);

I have found a model by Hardt and Wondra which has been implemented in fluent before. I wish to add a mass source term and an evaporation source term as they did. These equations are published in their paper however im not sure how to implement this into fluent.

If anyone has any information, or could reccomend any sources which may be helpful i would really appreciate it.

canev.civelek is offline   Reply With Quote


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
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
Writing UDF for Eulerian model golriz Fluent UDF and Scheme Programming 7 November 3, 2011 06:30
UDF for Heat Exchanger model francois louw FLUENT 2 July 16, 2010 02:21
UDF: how to know domain number in the model? mssound FLUENT 0 May 17, 2010 15:00
The problem of UDF in Non premixed combustion model zhangyuan Main CFD Forum 0 May 25, 2009 09:41

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