CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

runTime.timeName(), versus mesh.time().timeName()

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 8 Post By floquation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2017, 10:40
Default runTime.timeName(), versus mesh.time().timeName()
  #1
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
What is the difference between and usage of
runTime.timeName() versus mesh.time().timeName()

Specifically in the use of IOobject.

I'm in the process of trying to create a new new absorption emission sub-model, that is constant with respect to time but varies with its location in the mesh.
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   June 6, 2017, 04:30
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21
floquation will become famous soon enough
Nothing.

runTime is a variable declared in your solver that refers to the Foam::Time object.
<-- Useful in your solver

mesh.time() retrieves the same Foam::Time object, as the mesh has access to Foam::Time.
<-- Useful everywhere else, where the variable 'runTime' is not accessible.
floquation is offline   Reply With Quote

Reply


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
How to Plot Average Temperature or Other Variables of a Domain Versus Pipe n CFD-Post Shomaz ul Haq CFX 8 June 6, 2018 19:43
shaft power versus RMP curve in wind turbine simulation zhenduan306 CFX 28 November 8, 2012 11:11
Plot of Solid Volume Fraction versus Height Musa FLUENT 2 February 5, 2012 09:06
Properties of air versus temperature AND pressure Vincent Main CFD Forum 5 July 28, 2008 07:28
variable versus time Cesare CFX 1 September 27, 2004 12:00


All times are GMT -4. The time now is 07:36.