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

CPU Time

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2001, 07:32
Default CPU Time
  #1
Daniel Bruno
Guest
 
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, 07:48
Default Re: CPU Time
  #2
kumar
Guest
 
Posts: n/a
Use this UDF to get CPU time! Use as a compiled UDF(not as interpreted!)

#include udf.h

#include time.h

DEFINE_ADJUST(adjustfxn,domain)

{

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

Old   January 23, 2020, 17:41
Default
  #3
New Member
 
Nidhi
Join Date: Oct 2017
Posts: 10
Rep Power: 8
nidhids is on a distinguished road
Thank you so much for this!
nidhids is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 06:55
Computational time sunnysun OpenFOAM Running, Solving & CFD 5 March 16, 2009 03:32
AMG versus ICCG msrinath80 OpenFOAM Running, Solving & CFD 2 November 7, 2006 15:15
CPU time in Fluent5 HGG FLUENT 0 May 7, 2001 19:10
cpu time Gengsheng Wei Main CFD Forum 1 November 19, 1998 15:22


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