CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Mass transfer with varying saturation temperature

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2014, 13:19
Exclamation Mass transfer with varying saturation temperature
New Member
Join Date: Apr 2014
Posts: 3
Rep Power: 11
Lukeimpervius is on a distinguished road
Dear all,

I am a quite new user in fluent, and I am trying to write a UDF to implement the mass transfer in a evaporation-multiphase problem.

The problem is that the saturation temperature varies according to the vapor fraction of one species in the liquid phase. I have a polynomial interpolation of this variation and I would like to write T_SAT in function of that specie's vapor fraction C_VOF.

I am trying to write a UDF without much success for now. Is there anyone who could give me some suggestions, or find possible errors?

I am using mixture model.
Here is the UDF (based on the linearized mass transfer tutorial example of the udf manual), without the polynomial interpolation due to its length. I have substituted dummy values instead.

#include "udf.h"
DEFINE_LINEARIZED_MASS_TRANSFER(cav_source,cell,th read,from_index,from_species_index, to_index, to_species_index, d_mdot_d_vof_from, d_mdot_d_vof_to)

{ real m_lg;

Thread *gas = THREAD_SUB_THREAD(thread, from_index);
Thread *liq = THREAD_SUB_THREAD(thread, to_index);
real T_SAT;
m_lg = 0.;

T_SAT=373.15*C_VOF(cell,liq)^2+300*C_VOF(cell,liq) +100;

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);

Any help is appreciated!

Thanks in advance!
Lukeimpervius is offline   Reply With Quote


evaporation, mass transfer, multiphase mixture model, phase change, saturation temeprature

Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Multiphase Mass transfer UDF issue therandomestname FLUENT 0 April 21, 2011 14:51
mass transfer coefficient for boundary condition niek Main CFD Forum 0 March 29, 2011 05:33

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