CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF for fluxes normal to a wall

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

LinkBack Thread Tools Display Modes
Old   December 10, 2007, 13:04
Default UDF for fluxes normal to a wall
Posts: n/a
Hello dear people,

I am trying to hook an execute at end UDF. My UDF is for calculating the fluxes in a portion of a wall in x - direction normal to the wall. I wrote this UDF but it does't work, althougth it has no errors. Can anyone help me?

Thanks in advance!


#include "udf.h"

FILE *fout;



int id;

Domain *d;

Thread *t;

cell_t c;

id = 3;

d = Get_Domain(1);

fout = fopen("Sherwood.out", "w");

t = Lookup_Thread(d,id);




fprintf(fout, "%f %f\n",C_YI_G(c,t,1)[0]);





  Reply With Quote


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
Unit normal vector of nearest wall l_r_mcglashan OpenFOAM Programming & Development 3 May 13, 2014 17:06
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
UDF to monitor minimum pressure on the wall Arvind Jayaprakash FLUENT 0 September 20, 2007 11:53
momentum equation (Normal to wall) kk Main CFD Forum 0 July 2, 2006 23:13
UDF hook on the WALL boundary condition Luke FLUENT 0 June 7, 2006 11:54

All times are GMT -4. The time now is 20:27.