CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Help needed with UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 25, 2005, 11:38
Default Help needed with UDF
  #1
sam
Guest
 
Posts: n/a
I want to move the cells on a wall normal to the cell surface in cylindrical co-ordinates for an unsymmetrical wall about the origin. Any help with the following UDF is highly appreciated. thanks, Samir

#include "udf.h"

DEFINE_GRID_MOTION(wall,domain,dt,time,dtime) { Thread *tf = DT_THREAD(dt); face_t f; Node *v; real NV_VEC(omega), NV_VEC(axis), NV_VEC(dx); real NV_VEC(origin), NV_VEC(rvec); real sign; int n;

/* set deforming flag on adjacent cell zone */ SET_DEFORMING_THREAD_FLAG(THREAD_T0(tf));

sign = 0.66 * dt);

Message ("time = %f, omega = %f\n", time, sign);

NV_S(omega, =, 0.0); NV_D(axis, =, 1.0, 0.0, 1.0); NV_D(origin, =, 0.0, 0.0, 0.0);

begin_f_loop(f,tf)

{

f_node_loop(f,tf,n)

{

v = F_NODE(f,tf,n);

/* update node if x position is greater than 0.02

and that the current node has not been previously

visited when looping through previous faces */

if (NODE_X(v) > 0.020 && NODE_POS_NEED_UPDATE (v))

{

/* indicate that node position has been update

so that it's not updated more than once */

NODE_POS_UPDATED(v);

omega[1] = sign;

NV_VV(rvec, =, NODE_COORD(v), -, origin);

NV_CROSS(dx, omega, rvec);

NV_S(dx, *=, dtime);

NV_V(NODE_COORD(v), +=, dx);

}

}

}

end_f_loop(f,tf); }
  Reply With Quote

Old   October 25, 2005, 13:45
Default urgent query
  #2
zubier
Guest
 
Posts: n/a
hi all would you please send me tutorial of case file and solution file of how to simulate the electrical field in cylidrical pipe of flowing fluid. iam highly appreciate your help thanks regard
  Reply With Quote

Old   October 25, 2005, 23:06
Default Re: Help needed with UDF
  #3
Md. Tajul Islam
Guest
 
Posts: n/a
I need a C code UDF for fluent for slip boundary condition microflow when the Knudsen number<=0.1. Help from anyone is apreciated. Tajul
  Reply With Quote

Old   October 25, 2005, 23:09
Default Re: urgent query *NM*
  #4
Md. Tajul Islam
Guest
 
Posts: n/a
  Reply With Quote

Old   October 26, 2005, 02:42
Default Re: urgent query
  #5
zubier
Guest
 
Posts: n/a
Dear MR MOHAMMAD TAJUL ISLAM how are u and ramadan kareem i didn't recieve your reply regarding my qustion in my previus massage hope u send it again thanks
  Reply With Quote

Old   October 26, 2005, 02:48
Default Re: urgent query
  #6
Md. Tajul Islam
Guest
 
Posts: n/a
As salam. I am not expert in this regard. My posting was a mistake.
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed on UDF for modification of default syamlal o' brien drag law caai9 Fluent UDF and Scheme Programming 9 August 20, 2014 08:52
Help needed with UDF writing (CREATIVITY WELCOME!) ximik Fluent UDF and Scheme Programming 0 May 13, 2011 12:13
Help needed with UDF writing (CREATIVITY WELCOME!) ximik Main CFD Forum 0 May 13, 2011 12:11
Parse error in UDF, URGENT HELP NEEDED!!! Boris Kloser FLUENT 2 December 12, 2009 04:16
Help with UDF for BC needed. Albert FLUENT 1 January 7, 2004 14:32


All times are GMT -4. The time now is 22:29.