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

UDF for fluxes normal to a wall

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2007, 13:04
Default UDF for fluxes normal to a wall
  #1
Leverkin
Guest
 
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!

My UDF:

#include "udf.h"

FILE *fout;

DEFINE_EXECUTE_AT_END(Sherwood)

{

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);

thread_loop_c(t,d)

{

begin_c_loop(c,t)

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

end_c_loop(c,t)

}

fclose(fout);

}

  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
Unit normal vector of nearest wall l_r_mcglashan OpenFOAM Programming & Development 3 May 13, 2014 18: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 12:53
momentum equation (Normal to wall) kk Main CFD Forum 0 July 3, 2006 00:13
UDF hook on the WALL boundary condition Luke FLUENT 0 June 7, 2006 12:54


All times are GMT -4. The time now is 17:39.