|
[Sponsors] |
August 9, 2016, 08:06 |
Accessing Total Flow Time
|
#1 |
New Member
Richard
Join Date: May 2011
Posts: 10
Rep Power: 15 |
Hi all,
I'm trying to access/calculate the total flow time of a simulation. For something that seems so simple, I'm struggling! I'm well aware of the common unsteady macros but can't calculate the total run time with these. I thought a simple: var1 = CURRENT_TIMESTEP; var2 = N_TIME; totalTime = var1*var2; would suffice, but then realised N_TIME returns the number of elapsed time-steps not the total prescribed number. I would have thought that a total flow time of a simulation is already defined, but if it is, it appears well hidden to me! In case you're wanting to now more on why I need this, I am coupling Fluent with a DEM code and need to input the total (expected) flow time to part of the coupling code, to prevent some issues I've been having. I can manually specify the total flow time and all works fine, so now I just need a general method of obtaining the total flow time. Thanks, Richard |
|
Tags |
simulation, time, total, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
Help for the small implementation in turbulence model | shipman | OpenFOAM Programming & Development | 25 | March 19, 2014 11:08 |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 08:47 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |