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

Boiling and Condensation (Phase Change) UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 9, 2013, 11:02
Default Boiling and Condensation (Phase Change) UDF
  #1
Bin
Member
 
Chan Hiang Bin
Join Date: Apr 2013
Posts: 44
Rep Power: 5
Bin is on a distinguished road
Hi all,

I'm new to ANSYS fluent, but I need to write udf for phase change including boiling and condensation in VOF model (which I think is a very difficult task for a newcomer like me). I had read through ANSYS UDF guide for some brief ideas. The following is what I think I need to write in the UDF after those readings (correct me if i'm wrong):

1. Define source terms in both liquid and vapor phases;
2. Define the mass transfer macro(where phase changes occur).

Is this correct? If I'm wrong what should I focus on? Any suggestions and advice are highly appreciate.

Best regards,
Bin
Bin is offline   Reply With Quote

Old   February 5, 2015, 05:08
Default
  #2
New Member
 
Aayush
Join Date: Feb 2015
Location: Solapur
Posts: 3
Rep Power: 3
aayushjain27 is on a distinguished road
Hello friend i am trying to do the same. Have you got it done with this??
aayushjain27 is offline   Reply With Quote

Old   June 17, 2016, 09:26
Default
  #3
New Member
 
SHUJAN
Join Date: Jun 2016
Posts: 11
Rep Power: 2
MDSHUJAN is on a distinguished road
Quote:
Originally Posted by Bin View Post
Hi all,

I'm new to ANSYS fluent, but I need to write udf for phase change including boiling and condensation in VOF model (which I think is a very difficult task for a newcomer like me). I had read through ANSYS UDF guide for some brief ideas. The following is what I think I need to write in the UDF after those readings (correct me if i'm wrong):

1. Define source terms in both liquid and vapor phases;
2. Define the mass transfer macro(where phase changes occur).

Is this correct? If I'm wrong what should I focus on? Any suggestions and advice are highly appreciate.

Best regards,
Bin
Yes, you are right. You can do both way
MDSHUJAN is offline   Reply With Quote

Old   July 21, 2016, 09:44
Default
  #4
New Member
 
SACHIN SHNDE
Join Date: Jul 2016
Posts: 3
Rep Power: 2
SACHIN1639 is on a distinguished road
#include "udf.h"
#include "sg_mphase.h"
#define T_SAT 373
#define LAT_HT 1.e3
DEFINE_SOURCE(liq_src, cell, pri_th, dS, eqn)
{
Thread *mix_th, *sec_th;
real m_dot_l;
mix_th = THREAD_SUPER_THREAD(pri_th);
sec_th = THREAD_SUB_THREAD(mix_th, 1);
if(C_T(cell, mix_th)>=T_SAT)
{
m_dot_l = -0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)* fabs(C_T(cell, mix_th) - T_SAT)/T_SAT;
dS[eqn] = -0.1*C_R(cell, pri_th)*fabs(C_T(cell, mix_th) - T_SAT)/T_SAT;
}
else
{
m_dot_l = 0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)* fabs(T_SAT-C_T(cell,mix_th))/T_SAT; dS[eqn] = 0
}
return m_dot_l;
}
SACHIN1639 is offline   Reply With Quote

Reply

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
UDF for condensation or boiling Yvonne Fluent UDF and Scheme Programming 10 April 28, 2016 08:50
Boiling and Condensation Ghalebsater FLUENT 0 February 1, 2012 23:59
boiling and condensation udf brusly FLUENT 0 January 8, 2007 23:33
udf for boiling and condensation brusly FLUENT 0 November 22, 2006 23:17
udf for boiling and condensation brusly FLUENT 0 November 20, 2006 02:10


All times are GMT -4. The time now is 21:08.