CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDS trouble (http://www.cfd-online.com/Forums/fluent/48694-uds-trouble.html)

Jenny July 7, 2008 03:27

UDS trouble
 
There is a usf followed. I found that the output of UDS defined is not agreed with the variable of F_U. What's wrong with it? Plus, zone ID = 5 denotes the pressure outlet boundary.

# include "udf.h"

DEFINE_ADJUST(adjust_gradient, domain)

{ face_t f;

int ID = 5;

Thread *t = Lookup_Thread(domain,ID);

/* Fill UDS with the variable. */ begin_f_loop(f,t)

{

F_UDSI(f,t,0) = F_U(f,t);

} end_f_loop(f,t) }


All times are GMT -4. The time now is 08:46.