CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF using problem, error happens-heip!! (

Michael December 2, 2008 09:03

UDF using problem, error happens-heip!!
Hi everyone,

I have a problem with using udf in the Stanford website, which is for a low-reynolds number-k-e model by using scalar equaitons by deactivating the k and e equations.

I compile and attach the UDF in FLUENT with no problem, and hooking the various functions (sources,bc,scalar diffusivity and eddy viscosity) is ok, but after i hook the udf Routine of DEFINE_ADJUST and initializing, FLUENT gives me this fatal error:

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: ()

the UDF routines of DEFINE_ADJUST is as follows,

DEFINE_ADJUST(turb_adjust, domain) {

Thread *t;

cell_t c; /* Set the turbulent viscosity */

thread_loop_c (t, domain)





C_STORAGE_R(c,t,SV_MU_T) = C_R(c,t)*CMU*f_mu(c,t)*sqrt(C_UDSI(c,t,TKE))/C_UDSI(c,t,TDR);



} }

The problem above have bothered me for a long time. Can anybody tell me the reason? I can give you my case file by e-mail,If necessary. Any help would be much appreciated. Micheal.

sk December 9, 2008 08:51

Re: UDF using problem, error happens-heip!!
Hi Michael,

Did you find some solution for the error. :(

if you have some solution, Can you post the same or write an email to me.

Thanks. Sk.

All times are GMT -4. The time now is 10:28.