|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Jeremy Tong
Join Date: Mar 2011
Posts: 4
Rep Power: 4 ![]() |
Hello everyone,
I'm very new to UDF. I was trying to write a UDF that can get surface temperature on a wall at the end of the calculation and store it to a UDMI. Here is the code I wrote: DEFINE_ON_DEMAND(on_demand) { Domain *d; Thread *t; face_t f; d = Get_Domain(1); t = Lookup_Thread(d, 16); /*16 is boundary ID*/ begin_f_loop(f,t) { F_UDMI(f,t,0) = F_T(f,t); } end_f_loop(f,t) When I plot it, there is nothing showing. I guess there must be something wrong in my code, so the temperature is not stored into the UDMI yet. Could anybody help me figure out what I did wrong. |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Very technical question about solving wall boundary layer ... | jlb001 | FLUENT | 3 | April 19, 2011 04:27 |
| Domain Imbalance | HMR | CFX | 3 | March 6, 2011 20:10 |
| Import problem | ARC | Open Source Meshers: Gmsh, Netgen, CGNS, ... | 0 | February 27, 2010 10:56 |
| correct UDF code for unsteady pressure boundary | James W | FLUENT | 0 | November 2, 2005 11:38 |
| Please help with flow around car modelling! | Tudor Miron | CFX | 17 | March 19, 2004 19:23 |