|July 9, 2013, 11:02||
Boiling and Condensation (Phase Change) UDF
Chan Hiang Bin
Join Date: Apr 2013
Posts: 44Rep Power: 6
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.
|June 17, 2016, 09:26||
Join Date: Jun 2016
Posts: 11Rep Power: 2
|July 21, 2016, 09:44||
Join Date: Jul 2016
Posts: 3Rep Power: 2
#define T_SAT 373
#define LAT_HT 1.e3
DEFINE_SOURCE(liq_src, cell, pri_th, dS, eqn)
Thread *mix_th, *sec_th;
mix_th = THREAD_SUPER_THREAD(pri_th);
sec_th = THREAD_SUB_THREAD(mix_th, 1);
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;
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
|January 22, 2017, 03:10||
Join Date: Oct 2015
Posts: 3Rep Power: 3
I'm trying to simulate thermosyphon. But when the UDF read, and I want to run, the following error was printed!
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: firstname.lastname@example.org
|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|