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

UDF using problem, error happens-heip!!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2008, 09:03
Default UDF using problem, error happens-heip!!
  #1
Michael
Guest
 
Posts: n/a
Hi everyone,

I have a problem with using udf in the Stanford website http://www.stanford.edu/class/me469b/handout.html, 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)

if (FLUID_THREAD_P(t))

{

begin_c_loop(c,t)

{

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);

}

end_c_loop(c,t)

} }

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.
  Reply With Quote

Old   December 9, 2008, 08:51
Default Re: UDF using problem, error happens-heip!!
  #2
sk
Guest
 
Posts: n/a
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.

  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
help problem with "syntax error" Bo FLUENT 0 February 16, 2009 12:15
Error in fluent, Who knows what's the problem? tina FLUENT 0 October 7, 2008 23:07
Will this global error cause me any problem? Forrest CFX 2 February 9, 2006 10:33
Plotting Problem/Error Shazlan Siemens 3 March 30, 2005 06:19
UDF problem error msg Johan Svensson FLUENT 0 May 12, 2004 11:42


All times are GMT -4. The time now is 15:57.