CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF problem (

greg July 11, 2006 06:39

UDF problem
can you tell me what is wrong in my udf?

#include "udf.h"

DEFINE_MASS_TRANSFER(od_gas_to_liquidh2o_source,ce ll,thread,from_2,from_species_0,to_3,to_species_1) { int i; Material *sp; real m_lg; real T_SAT = 373; Thread *gas = THREAD_SUB_THREAD(thread, from_2); Thread *liq = THREAD_SUB_THREAD(thread, to_3); m_lg = 0.;

mixture_species_loop(THREAD_MATERIAL(liq),sp,i) {

if ((C_T(cell, liq) >= T_SAT) && sp) { m_lg = (-0.1*C_VOF(cell,liq)*C_R(cell,liq)* fabs(C_T(cell,liq)-T_SAT)/T_SAT); }


mixture_species_loop(THREAD_MATERIAL(gas),sp,i) { 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); }

UDF is compiled by fluent but during initialize an error occurred (below)

Error: 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. Error Object: ()

thank you g

Birute Bunkute July 11, 2006 08:24

Re: UDF problem
Hi Greg,

I have the same problem with definition of critical strain rate to extinction in the partially premixed model. I think, it is the problem not with your UDF, but Fluent.

Regards, Birute

cax July 12, 2006 02:21

Re: UDF problem
hi.I had a similar error message one month ago.You should check the use of User Define Memories.If you use UDMI in you UDF,you must define enough memories in Fluent before solving.Hope it will help you

All times are GMT -4. The time now is 19:07.