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

a udf problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 24, 2003, 20:47
Default a udf problem
  #1
zht77
Guest
 
Posts: n/a
hi,i have tried to compile the following code(using interpreted),but an error is appeared.the code is able to be complied ,however, when i execute execute on demand ,the error is appeared.if an real number (such as 2.55)replace C-VOLUME ,everything is ok,and there are n 2.55 being appeared( n is the number of the cell in the domain 1.)

But i compile the code (using complie),everything is ok,however, nothing is appeared in terminal emulator.even if an real number (such as 2.55)replace C-VOLUME ,anything does not alter.

thank you very much. DEFINE_ON_DEMAND(on_demand_calc) { Domain *d; real nn = 0.; Thread *t; cell_t c; d = Get_Domain(1); /* Loop over all cell threads in the domain */ thread_loop_c(t,d) { begin_c_loop(c,t)

{

nn=C_VOLUME(c,t);

printf(" %g ",nn );

} end_c_loop(c,t)

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

  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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 00:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 09:58


All times are GMT -4. The time now is 03:54.