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

A problem about begin_f_loop

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2018, 21:21
Default A problem about begin_f_loop
  #1
New Member
 
BigZ
Join Date: Jan 2018
Posts: 11
Rep Power: 8
bigfish_1023 is on a distinguished road
Hi, guys. recentlly, i have a problem about begin_f_loop. the code is presented below.

************************
int fu = 0;
real A = 0;
begin_f_loop(f, t)
{
fu = fu + 1;
A = A + 1;
M[fu] = fu;
Message("fu, M: %e, %e, %e \n",fu, a, M[fu]);
}
end_f_loop(f, t)
****************************

But the value of fu is nearly zero and A is correct. Could anybody tell me why?
bigfish_1023 is offline   Reply With Quote

Old   January 17, 2018, 22:22
Default
  #2
New Member
 
BigZ
Join Date: Jan 2018
Posts: 11
Rep Power: 8
bigfish_1023 is on a distinguished road
i have found the mistake. The data type of fu declared in Message is wrong. After changing to "d", the displayed value of fu is correct.
bigfish_1023 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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


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