|
[Sponsors] |
read out controlDict and fvSolution from a lib |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Martin
Join Date: Aug 2010
Location: Germany
Posts: 55
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21 ![]() |
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); |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting Starccm+ mesh | Ladnam | OpenFOAM | 0 | September 14, 2011 06:30 |