|
[Sponsors] |
May 4, 2018, 13:48 |
GeometricField read
|
#1 |
New Member
Mohammad Najafi
Join Date: Oct 2017
Posts: 11
Rep Power: 8 |
Hi
After hour of search and find no solution I'm going to ask this question. There is for sure similar questions in the forum but I didn't find them. I want to read a GeometricField, say p, from time folders in a loop. Following program works but it's not a good solution of course: Code:
label endTimeIndex=std::floor(runTime.endTime().value()/runTime.deltaTValue()); for (int j=0;j<=endTimeIndex;j++) { volScalarField p ( IOobject ( "p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info<<runTime.timeName()<<endl; Info<<"p:"<<endl<<p<<endl; runTime++; } Thanks Last edited by mnajafi; May 4, 2018 at 14:56. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Meshing & Mesh Conversion | 12 | May 2, 2013 11:52 |
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 | UDS_rambler | FLUENT | 2 | November 22, 2011 10:46 |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 18:51 |
Error Fluents | TDL | FLUENT | 6 | April 26, 2005 07:02 |