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

Will the UDF work??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2001, 22:21
Default Will the UDF work??
  #1
H.S.Fang
Guest
 
Posts: n/a
Hi,all,

DEFINE_ADJUST(adjustfunction,domain) { /*ɨÃèÈ«³¡,ÐÞ¸ÄËٶȳ¡Îª¶ÔÓ¦º¯Êý³¡*/ thread_loop_c(t,domain) {begin_c_loop(c,t) {

C_U(c,t)=C_UDMI(c,t,4);

C_V(c,t)=C_UDMI(c,t,5);

C_U(c,t)=C_U(c,t)-ul;

C_V(c,t)=C_V(c,t)-vl; } end_c_loop(c,t) }

/*Çó¸öÍø¸ñµÄº¯ÊýÌݶȲ¢´æÓÚÍø¸ñÄÚ´æ±äÁ¿ÖÐ*/ thread_loop_c(t,domain) {begin_c_loop(c,t) {

C_UDMI(c,t,0)=C_DUDX(c,t);

C_UDMI(c,t,1)=C_DUDY(c,t);

C_UDMI(c,t,2)=C_DVDX(c,t);

C_UDMI(c,t,3)=C_DVDY(c,t); } end_loop_c(c,t) } /*ÔÙ´ÎɨÃèÈ«³¡¸Ä±äËٶȳ¡Îª¶ÔÓ¦º¯Êý³¡*/ thread_loop_c(t,domain) {begin_c_loop(c,t) {

C_U(c,t)=C_H(c,t)-hl;

C_V(c,t)=C_YI(c,t,i)-cll; } end_c_loop(c,t) }

/*ÔÙ´ÎÇó¸öÍø¸ñµÄº¯ÊýÌݶȲ¢´æÓÚÍø¸ñÄÚ´æ±äÁ¿ÖÐ*/ thread_loop_c(t,domain) {begin_c_loop(c,t) {

C_UDMI(c,t,6)=C_DUDX(c,t);

C_UDMI(c,t,7)=C_DUDY(c,t);

C_UDMI(c,t,8)=C_DVDX(c,t);

C_UDMI(c,t,9)=C_DVDY(c,t); } end_loop_c(c,t) }

/*»¹Ô*Ëٶȳ¡*/ thread_loop_c(t,domain) {begin_c_loop(c,t) {

C_UDMI(c,t,4)=C_U(c,t);

C_UDMI(c,t,5)=C_V(c,t); } end_c_loop(c,t) } }

I will use C_UDMI(c,t,i)(i=0,1,2,3 6,7,8,9) in the DEFINE_SOURCE functions,will they work? Thanks!
  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
UDF using c_face_loop(c,t,i) frederic FLUENT 3 January 17, 2017 00:17
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
Help Parallelizing UDF AndresC FLUENT 0 February 25, 2010 16:50
udf - c++ compiler does not work Matthias FLUENT 1 January 9, 2009 01:44
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


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