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

read out controlDict and fvSolution from a lib

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2013, 05:16
Question read out controlDict and fvSolution from a lib
  #1
Member
 
Martin
Join Date: Aug 2010
Location: Germany
Posts: 55
Rep Power: 16
RugbyGandalf is on a distinguished road
Dear Foam-Community,

i am working on a mesh-motion solver, wich works as a library / boundary-type.
Therefor i would like to read out the runTime out of the controlDict and some values out of the fvSolution dict. Unfortunately, I do not know, how to solve this.

I tried:
scalar iterationSteps(readScalar(runTime.controlDict().lo okup("deltaT")));
But the problem is the 'runTime'-Variable, wich i am not able to define.

Does anyone has any suggestions, how to solve this?

Regards,
Martin
RugbyGandalf is offline   Reply With Quote

Old   September 5, 2013, 10:20
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
In (e. g.) simpleFoam.C the file createTime.H is included, which defines runTime:
Code:
//
// createTime.H
// ~~~~~~~~~~~~

    Foam::Info<< "Create time\n" << Foam::endl;

    Foam::Time runTime(Foam::Time::controlDictName, args);
jherb 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
Converting Starccm+ mesh Ladnam OpenFOAM 0 September 14, 2011 07:30


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