|
[Sponsors] |
December 15, 2001, 07:32 |
CPU Time
|
#1 |
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. |
|
December 19, 2001, 07:48 |
Re: CPU Time
|
#2 |
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 < > |
|
January 23, 2020, 17:41 |
|
#3 |
New Member
Nidhi
Join Date: Oct 2017
Posts: 10
Rep Power: 8 |
Thank you so much for this!
|
|
|
|
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 |