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

udf shear

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2008, 08:11
Default udf shear
  #1
isabel
Guest
 
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;

}

end_f_loop(f,thread);

}

My error is:

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

  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
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 08:38
Shear stresses Vidya FLUENT 1 July 10, 2006 05:59
wall shear not right! Patrick Louis FLUENT 1 July 7, 2004 00:42


All times are GMT -4. The time now is 20:36.