|
[Sponsors] |
July 9, 2013, 12:02 |
Boiling and Condensation (Phase Change) UDF
|
#1 |
Member
Chan Hiang Bin
Join Date: Apr 2013
Posts: 44
Rep Power: 13 |
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 |
|
February 5, 2015, 05:08 |
|
#2 |
New Member
Aayush
Join Date: Feb 2015
Location: Solapur
Posts: 3
Rep Power: 11 |
Hello friend i am trying to do the same. Have you got it done with this??
|
|
June 17, 2016, 10:26 |
|
#3 | |
New Member
SHUJAN
Join Date: Jun 2016
Posts: 17
Rep Power: 10 |
Quote:
|
||
July 21, 2016, 10:44 |
|
#4 |
New Member
SACHIN SHNDE
Join Date: Jul 2016
Posts: 3
Rep Power: 10 |
#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; } |
|
January 22, 2017, 03:10 |
|
#5 |
New Member
mehrdad
Join Date: Oct 2015
Posts: 3
Rep Power: 11 |
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 |
|
|
|
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 |