CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

problem about "DEFINE_ADJUST"

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2011, 05:47
Default problem about "DEFINE_ADJUST"
  #1
New Member
 
tom pan
Join Date: Nov 2010
Posts: 14
Rep Power: 15
tompa is on a distinguished road
I followed the example in "udf manual" on page 2-6, here's my ndf
------------------------------------------------------------------
#include "udf.h"
real x[ND_ND];

DEFINE_ADJUST(adjust1,d)
{
Thread *t;
cell_t c;
real K_EL=1.0;
if(! Data_Valid_P())
return;
thread_loop_c(t,d)
{
if(FLUID_THREAD_P(t))
{
begin_c_loop_all(c,t)
{
C_UDSI(c,t,0)+=K_EL*NV_MAG2(C_T_G(c,t))*C_VOLUME(c ,t);
}
end_c_loop_all(c,t)

}
}
}

and the setting step is shown below:
after compiling
1.jpg

2.jpg

3.jpg

4.jpg

5.jpg

is there any step wrong?
tompa is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Incoherent problem table in hollow-fiber spinning Gianni FLUENT 0 April 5, 2008 11:33
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


All times are GMT -4. The time now is 17:15.