2 inlets, 2 UDF
plz i need an urgent help.
i have to inject oil into water. the problem that water must have a specific profile of velocity so i have to introduce a UDF. and same for the oil. so i don't know how to define 2 UDF and interpret them in each inlet. plz help |
UDF needed too
I too need udf function for a fully developed velocity profile at inlet in vertical channel . As i have never worked on Fluent i dont know how udf
have to write is it exactly the same code as in FORTRAN or C as i know both well but udf i dont know |
UDF's are User Defined Functions
They are typically written in C, but can be written in Fortran. Fluent has a C interpreter built in, so you don't need one unless aspects of the calculation (specific Fluent calls, speed of calculation, etc) require compilation. To impose a fully developed profile at a wall, you must loop over all faces of the wall and set the velocity magnitude (or, perhaps, a vector component) equal to the velocity you obtain from fully developed flow. In the code below, I assume the following: 1) Fully developed laminar flow 2) 2-D flow in the x-direction 3) An inlet face which extends from 0.5 to -0.5 in the y-direction 4) A maximum centerline velocity of 10 Code:
#include "udf.h" Go here: http://combust.hit.edu.cn:8080/fluen.../udf/node2.htm for more information on UDFs. ComputerGuy |
Thanks
many thanks to ComputerGuy for you help and code I will try to learn and do whatever is needed furthermore.
|
All times are GMT -4. The time now is 21:00. |