CFD Online Logo CFD Online URL
Home > Forums > FLUENT

CPU Time

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

LinkBack Thread Tools Display Modes
Old   December 15, 2001, 08:32
Default CPU Time
Daniel Bruno
Posts: n/a
Is there any way to get the CPU time of one set of iterations in Fluent ? I looked for in the manual and couldn't find anything about.

Thanks in advance,

Daniel Bruno.
  Reply With Quote

Old   December 19, 2001, 08:48
Default Re: CPU Time
Posts: n/a
Use this UDF to get CPU time! Use as a compiled UDF(not as interpreted!)

#include udf.h

#include time.h



long cpu_clock;

float time_sec;

cpu_clock = clock();

time_sec = (float)cpu_clock/(float)CLOCKS_PER_SEC;

Message("\n cpu_clock time is: %ld, clock time in seconds: %f\n", cpu_clock, time_sec);


The header files should be in between these symbols

< >
  Reply With Quote


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
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 28 May 28, 2015 13:37
Computational time sunnysun OpenFOAM Running, Solving & CFD 5 March 16, 2009 04:32
AMG versus ICCG msrinath80 OpenFOAM Running, Solving & CFD 2 November 7, 2006 16:15
CPU time in Fluent5 HGG FLUENT 0 May 7, 2001 19:10
cpu time Gengsheng Wei Main CFD Forum 1 November 19, 1998 16:22

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