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

Accessing Total Flow Time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2016, 08:06
Default Accessing Total Flow Time
  #1
New Member
 
Richard
Join Date: May 2011
Posts: 10
Rep Power: 15
rw511 is on a distinguished road
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
rw511 is offline   Reply With Quote

Reply

Tags
simulation, time, total, 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
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


All times are GMT -4. The time now is 04:51.