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

UDF help

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 26, 2004, 21:31
Default UDF help
  #1
Doris
Guest
 
Posts: n/a
hi all

i wrote a udf to obtain the coordinates and the secondary phase vof for a specified thread and i have had the data, the coordinates is right data but the vof is wrong, compared with the export data from fluent.

below is my udf,please help me to check the udf. thanks

DEFINE_ADJUST(print_vof,mix_domain) {

Thread *mix_thread;

Thread **pt;

int i=0;

int k;

Thread *t;

real FC[ND_ND];

mp_thread_loop_c(mix_thread,mix_domain,pt)

{

cell_t c;

int kount=0;

t = Lookup_Thread(mix_domain,4);

begin_c_loop(c,t)

{

kount++;

F_CENTROID(FC,c,t);

printf("kount=%d cell volume fraction = %e ",kount,C_VOF(c,pt[1]));

for (k = 0; k < ND_ND; k++)

printf("%e ",FC[k]);

printf("\n");

} end_c_loop(c,t)

i++;

}

printf("********* i = %d ***********\n",i); }
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


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