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

DEFINE_ON_DEMAND

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2006, 03:36
Default DEFINE_ON_DEMAND
  #1
jim
Guest
 
Posts: n/a
hi!

first I hope you understand me that i can't speak english well.

I saw the DEFINE_ON_DEMAND macro in fluent manual I want to execute the exemple of DEFINE_ON_DEMAND in manual

but i have some problems

I write UDF like below

#include "udf.h"

DEFINE_ON_DEMAND(on_demand_calc)

{

Domain *d;

real temp;

Thread *t;

cell_t c;

d=Get_Domain(2);

thread_loop_c(t,d)

{

begin_c_loop(c,t)

{

temp=C_T(c,t);

if (temp>288) temp=temp;

}

end_c_loop(c,t)

begin_c_loop(c,t)

{

temp=C_T(c,t);

C_UDMI(c,t,0)=temp;

}

end_c_loop(c,t)

} }

the exemple is consist of DEFINE_ON_DEMAND and C_UDMI macro.

according manual

the exemple UDF will compute a value and stores it in user-defined memory location 0

the value can be available in the drop-down lists in postprocessing panels.

but I don't see the contour of value(=udm-0). all of value is "0"

Could you give me process?... as possible as detail

(my case is...3D/unsteady)

thanks your attention

  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



All times are GMT -4. The time now is 05:11.