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

Boiling and Condensation (Phase Change) UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By SACHIN1639

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2013, 12:02
Default Boiling and Condensation (Phase Change) UDF
  #1
Bin
Member
 
Chan Hiang Bin
Join Date: Apr 2013
Posts: 44
Rep Power: 13
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: 11
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, 10:26
Default
  #3
New Member
 
SHUJAN
Join Date: Jun 2016
Posts: 17
Rep Power: 10
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, 10:44
Default
  #4
New Member
 
SACHIN SHNDE
Join Date: Jul 2016
Posts: 3
Rep Power: 10
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;
}
BlnPhoenix and tang17433 like this.
SACHIN1639 is offline   Reply With Quote

Old   January 22, 2017, 03:10
Default
  #5
New Member
 
mehrdad
Join Date: Oct 2015
Posts: 3
Rep Power: 11
zakizadeh is on a distinguished road
Hi
I'm trying to simulate thermosyphon. But when the UDF read, and I want to run, the following error was printed!
please help



FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.




my email: zakizadeh.ac@gmail.com
Attached Images
File Type: jpg New Bitmap Image.jpg (117.4 KB, 27 views)
zakizadeh is offline   Reply With Quote

Reply


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
UDF for condensation or boiling Yvonne Fluent UDF and Scheme Programming 12 June 24, 2019 17:57
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 16:06.