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

Mass transfer with varying saturation temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2014, 14:19
Exclamation Mass transfer with varying saturation temperature
  #1
New Member
 
Join Date: Apr 2014
Posts: 3
Rep Power: 12
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.;

if(C_VOF(cell,liq)<0.1)
{
T_SAT=373.15*C_VOF(cell,liq)^2+300*C_VOF(cell,liq) +100;
}
else
{
T_SAT=450.;
}

if (C_T(cell, liq) >= T_SAT)
{
m_lg = -0.1*C_VOF(cell,liq)*C_R(cell,liq)*
fabs(C_T(cell,liq)-T_SAT)/T_SAT;
}
if ((m_lg == 0. ) && (C_T(cell, gas) <= T_SAT))
{
m_lg = 0.1*C_VOF(cell,gas)*C_R(cell,gas)*
fabs(T_SAT-C_T(cell,gas))/T_SAT;
}
return (m_lg);
}

Any help is appreciated!

Thanks in advance!
Lukeimpervius is offline   Reply With Quote

Reply

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


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 08:00
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Multiphase Mass transfer UDF issue therandomestname FLUENT 0 April 21, 2011 15:51
mass transfer coefficient for boundary condition niek Main CFD Forum 0 March 29, 2011 06:33


All times are GMT -4. The time now is 01:46.