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

UDF problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2012, 04:47
Default UDF problem
  #1
Member
 
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14
libia87 is on a distinguished road
Hi!

I have a problem with my udf:

Warning: incorrect grid motion UDF moving_wall on zone 5 (assuming no motion)

what does it mean??

thanks!
libia87 is offline   Reply With Quote

Old   May 4, 2012, 22:49
Default udf explaination
  #2
New Member
 
Ijaz
Join Date: Dec 2011
Location: Singapore
Posts: 17
Rep Power: 14
Ijaz is on a distinguished road
This is the udf for mix tank Tutorial 23- for eulerian multiphase granular flow. Can anyone please explain the udf,as in my case only a simple disc is rotating. I need to modify the udf. Can anyone please help...

#include "udf.h"
#include "sg.h"
#define FLUID_ID 1
#define ua1 -7.1357e-2
#define ua2 54.304
#define ua3 -3.1345e3
#define ua4 4.5578e4
#define ua5 -1.9664e5
#define va1 3.1131e-2
#define va2 -10.313
#define va3 9.5558e2
#define va4 -2.0051e4
#define va5 1.1856e5
#define ka1 2.2723e-2
#define ka2 6.7989
#define ka3 -424.18
#define ka4 9.4615e3
#define ka5 -7.7251e4
#define ka6 1.8410e5
#define da1 -6.5819e-2
#define da2 88.845
#define da3 -5.3731e3
#define da4 1.1643e5
#define da5 -9.1202e5
#define da6 1.9567e6

DEFINE_PROFILE(fixed_u, thread, np)
{
real r;
begin_c_loop (c,thread)
{
/* centroid is defined to specify position dependent profiles*/
C_CENTROID(x,c,thread);
r =x[1];
F_PROFILE(c,thread,np) =
ua1+(ua2*r)+(ua3*r*r)+(ua4*r*r*r)+(ua5*r*r*r*r);
}
end_c_loop (c,thread)
}

DEFINE_PROFILE(fixed_v, thread, np)
{
cell_t c;
real x[ND_ND];
real r;
begin_c_loop (c,thread)
{
/* centroid is defined to specify position dependent profiles*/
C_CENTROID(x,c,thread);
r =x[1];
F_PROFILE(c,thread,np) =
va1+(va2*r)+(va3*r*r)+(va4*r*r*r)+(va5*r*r*r*r);
}
end_c_loop (c,thread)
}

DEFINE_PROFILE(fixed_ke, thread, np)
{
cell_t c;
real x[ND_ND];
real r;
begin_c_loop (c,thread)
{
/* centroid is defined to specify position dependent profiles*/
C_CENTROID(x,c,thread);
r =x[1];
F_PROFILE(c,thread,np) =
ka1+(ka2*r)+(ka3*r*r)+(ka4*r*r*r)+(ka5*r*r*r*r)+(k a6*r*r*r*r*r);
}
end_c_loop (c,thread)
}

DEFINE_PROFILE(fixed_diss, thread, np)
{
cell_t c;
real x[ND_ND];
real r;
begin_c_loop (c,thread)
{
/* centroid is defined to specify position dependent profiles*/
C_CENTROID(x,c,thread);
r =x[1];
F_PROFILE(c,thread,np) =
da1+(da2*r)+(da3*r*r)+(da4*r*r*r)+(da5*r*r*r*r)+(d a6*r*r*r*r*r);
}
end_c_loop (c,thread)
}
Ijaz is offline   Reply With Quote

Reply


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 07:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58


All times are GMT -4. The time now is 13:49.