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

printf in DEFINE_PROFILE

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 17, 2015, 04:00
Default printf in DEFINE_PROFILE
  #1
Member
 
Join Date: Jan 2015
Posts: 40
Rep Power: 11
philus is on a distinguished road
Hi all,

there is an "easy" thing that I cannot understand: why the following code do not generate a single output "h=..." in the console, but more than one and less than the face cell number or I don't know what?

Code:
DEFINE_PROFILE (name,t,i){
   real h;
   h=some expression;

   printf("h=%f\n",h);

   begin_f_loop(f,t){
      F_PROFILE(f,z,i)=h;
   }end_f_loop(f,t)
}
I was expecting that, since printf is out of the loop, there was only one output...

Can anyone help me on that?

Thanks in advance,
philus
philus is offline   Reply With Quote

 

Tags
define_profile, output, printf, udf


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
A problem about 'printf' and 'Message' in UDF. LICH Fluent UDF and Scheme Programming 2 May 2, 2013 02:45
problem printf fluent marye FLUENT 2 June 7, 2010 05:19
C, printf marye FLUENT 0 June 1, 2010 06:08
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21


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