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

udf-plz help

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 7, 2011, 09:06
Default udf-plz help
  #1
New Member
 
m.reza
Join Date: Apr 2011
Posts: 18
Rep Power: 6
m.reza is on a distinguished road
hi
In my udf, A is introduced such:
A= T*(2*C_K(cell, thread)/3-2*nu_t*S11)*C_T_G(cell,thread)[0]+T*(-2*nu_t*S12)*C_T_G(cell,thread)[1];
(I think A is a vector)
so,how can I apply gradiant of A in my program?
because C_A_G(c,t,i) didn't define in user guide.
thank you for your help
m.reza is offline   Reply With Quote

Old   May 19, 2011, 07:42
Default
  #2
Member
 
john
Join Date: Nov 2010
Posts: 50
Rep Power: 6
johnwinter is on a distinguished road
Hi,
Define A is vector, then i think you can use C_A_G
for example define
NV_V(A,=, C_T_G(cell, thread)
ND_VEC(A_X=C_T_G(cell, thread)[0]*xx, A_Y=C_T_G(cell, thread)[1]*xx,A_Z=C_T_G(cell, thread)[2])*xx);

where 'xx' is any quanity

now you can use A as a vector so, you can use C_A_G. This what i think, Expert can give better answer.
you can try it.
johnwinter 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
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
LES and UDF... plz help! mariachi FLUENT 2 January 24, 2010 12:11
UDF and LES....... plz help out! mariachi Fluent UDF and Scheme Programming 0 January 23, 2010 13:23
plz help. a UDF problem. mehrdad FLUENT 0 August 13, 2007 05:19
udf problem!! plz guevara FLUENT 6 March 5, 2003 05:56


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