CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Slip flow in UDF - Plse Help (https://www.cfd-online.com/Forums/fluent/42820-slip-flow-udf-plse-help.html)

Jeerasak November 10, 2006 03:23

Slip flow in UDF - Plse Help
 
Dear all, I wrote UDF to calculate slip flow at the wall and I hook it with moving wall. When I iterate it, the solution divert and the flow rate increase until I get a message out of memory. Please help! Thank you in advance

My code is

DEFINE_PROFILE(w_vel_wall01,thread,index) { real x[ND_ND]; /* this will hold the position vector */ face_t f; cell_t c; Thread *cell_thread;

begin_f_loop(f,thread) { F_CENTROID(x,f,thread); c = F_C0(f,thread); cell_thread = THREAD_T0(thread);

F_PROFILE(f,thread,index) = -(0.0000004)*C_DUDY(c,cell_thread);

} end_f_loop(f,thread) }

wangguobin14 June 26, 2010 10:07

slip velocity
 
anyone recently see this message could touch me
i am working on this small code for a long time
some exprimence could be shared wonderfully.
wangguobin14@163.com

thank you!:eek::mad:


All times are GMT -4. The time now is 06:58.