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

UDF help------------

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2006, 10:33
Default UDF help------------
  #1
mech
Guest
 
Posts: n/a
My following UDF compiled and run well but I get 0 in the UDMI. Can anybody what is the problem?

#define <mem.h>

DEFINE_ON_DEMAND(on_demand_WallShear) {

Thread *tf;

cell_t c;

face_t f;

int ID =3;

Domain *domain;

real NV_VEC(A);

domain = Get_Domain(1);

tf = Lookup_Thread(domain,ID);

begin_f_loop(f, tf)

{

F_AREA(A,f,tf);

F_UDMI(f,tf,1)= NV_MAG(A);

}

end_f_loop(f, tf)

}

  Reply With Quote

Old   October 27, 2006, 10:03
Default Re: UDF help------------
  #2
cadaei
Guest
 
Posts: n/a
you need to store the value using F_UDMI and C_UDMI. then display with node values turned off in Fluent
  Reply With Quote

Old   November 2, 2006, 06:35
Default Re: UDF help------------
  #3
mech
Guest
 
Posts: n/a
Thank you cadaei for your attentioin. i will try.
  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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


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