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

read out controlDict and fvSolution from a lib

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 5, 2013, 04:16
Question read out controlDict and fvSolution from a lib
  #1
Member
 
Martin
Join Date: Aug 2010
Location: Germany
Posts: 55
Rep Power: 7
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, 09:20
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 296
Rep Power: 9
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Starccm+ mesh Ladnam OpenFOAM 0 September 14, 2011 06:30


All times are GMT -4. The time now is 08:47.