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

how write UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 28, 2010, 09:38
Default how write UDF
  #1
New Member
 
bluesky
Join Date: Feb 2010
Posts: 6
Rep Power: 7
lnjxhl is on a distinguished road
In wall BC of attachments, I want to set specified value equal to zero in uds0 in local wall location, and that set specified flux equal to zero in uds0 in other wall location, how write udf?
Attached Images
File Type: jpg 3.JPG (55.6 KB, 14 views)
lnjxhl is offline   Reply With Quote

Old   February 28, 2010, 22:14
Default
  #2
New Member
 
bluesky
Join Date: Feb 2010
Posts: 6
Rep Power: 7
lnjxhl is on a distinguished road
hello,everyone.
is there anyone who do DC nontransfer plasma modelling?
i want to ask some questions about the anode spot .
thank you very much for your attention! best wishes for everyone!
lnjxhl is offline   Reply With Quote

Old   March 2, 2010, 09:01
Default
  #3
New Member
 
bluesky
Join Date: Feb 2010
Posts: 6
Rep Power: 7
lnjxhl is on a distinguished road
DEFINE_PROFILE(anode_spot,thread,position)
{
real NV_VEC(n);
real x;
real y;
real z;
face_t f;
Thread *t0=NULL;
begin_f_loop(f,thread)
{
F_CENTROID(n,f,thread);
x=n[0];
y=n[1];
z=n[2];
if(((x-0.004)*(x-0.004)*(x-0.004)+y*y*y+(z-0.008)*(z-0.008)*(z-0.008))<0.0025*0.0025*0.0025)
F_PROFILE(f,thread,position)=0;
else
cell_t c0=F_C0(f,thread);
t0=THREAD_T0(thread);
F_PROFILE(f,thread,position)=C_UDSI(c0,t0,V);
}
end_f_loop(f,thread)
}

please help me check right or wrong, thanks a lot.
lnjxhl is offline   Reply With Quote

Old   March 3, 2010, 09:32
Default urgent --help me
  #4
New Member
 
bluesky
Join Date: Feb 2010
Posts: 6
Rep Power: 7
lnjxhl is on a distinguished road
Please everyone help me,urgent.

I will wait for your help online,thanks.

Quote:
Originally Posted by lnjxhl View Post
In wall BC of attachments, I want to set specified value equal to zero in uds0 in local wall location, and that set specified flux equal to zero in uds0 in other wall location, how write udf?
lnjxhl is offline   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
How to write UDF programme inside FLUENT? coolyihao Fluent UDF and Scheme Programming 4 April 1, 2009 02:07
Trying to Write pitch and Plunge UDF Alex FLUENT 0 March 18, 2006 17:14
How to write UDF for pitching&plunging airfoil? Alex FLUENT 0 March 17, 2006 13:37
UDF (write a data file) problem lichun Dong FLUENT 2 July 29, 2005 11:39
UDF to write interp files Karl FLUENT 6 February 7, 2002 13:10


All times are GMT -4. The time now is 09:11.