|
[Sponsors] |
December 10, 2007, 13:04 |
UDF for fluxes normal to a wall
|
#1 |
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); } |
|
|
|
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 |