CFD Online Logo CFD Online URL
Home > Forums > FLUENT

udf shear

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

LinkBack Thread Tools Display Modes
Old   July 22, 2008, 07:11
Default udf shear
Posts: n/a
Hello everybody,

I want to impose as a boundary condition a shear dTdx*T. I have written the following code but I have an error. Does somebody know why?

#include "udf.h"

DEFINE_PROFILE (shear_x, thread, position)


real T;

real dTdx;

real shear;

face_t f;

Thread *tc0;

cell_t c0;

begin_f_loop(f,thread) /*PERHAPS I WOULD DEFINE f BEFORE */


c0 = F_C0(f,thread);

tc0 = THREAD_T0(thread);

dTdx = C_T_G(c0,tc0) [0];

T = C_T(c0,tc0);

shear = T*dTdx;

F_PROFILE(f,thread,position) = shear;




My error is:

Error: CAR: invalid argument [1]: wrong type [not a pair] Error Object: ()

  Reply With Quote


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
shear stress a.abbaspour FLUENT 3 March 23, 2010 10:50
shear stress Mihail CFX 4 December 23, 2008 01:27
About shear stress, need help!! Dong Wenchao FLUENT 1 August 23, 2006 07:38
Shear stresses Vidya FLUENT 1 July 10, 2006 04:59
wall shear not right! Patrick Louis FLUENT 1 July 6, 2004 23:42

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