|
[Sponsors] |
January 25, 2010, 09:54 |
Problems with extracting data
|
#1 |
New Member
Alice
Join Date: Nov 2009
Posts: 16
Rep Power: 17 |
Hi everyone,
I got a problem when extracting values from a specific time step, the following is my code: Code:
#include "fvCFD.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // int main(int argc, char *argv[]) { # include "addTimeOptions.H" # include "setRootCase.H" # include "createTime.H" // Get times list instantList Times = runTime.times(); // set startTime and endTime depending on -time and -latestTime options # include "checkTimeOptions.H" runTime.setTime(Times[startTime], startTime); # include "createMesh.H" for (label i=startTime; i<endTime; i++) { runTime.setTime(Times[i], i); Info<< "Time = " << runTime.timeName() << endl; Info<< "Start Time = " << startTime << endl; Info<< "End Time = " << endTime << endl; volScalarField UMeanNorm ( IOobject ( "UMeanNorm", runTime.timeName(endTime), mesh, IOobject::MUST_READ ), mesh ); The following is the controlDict code: Code:
FoamFile { version 2.0; format ascii; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application turbFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 5; deltaT 0.001; writeControl timeStep; writeInterval 100; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression uncompressed; timeFormat general; timePrecision 6; runTimeModifiable yes; Thanks! Alice |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3D data extracting from Fluent simulation | unknown | FLUENT | 0 | October 11, 2009 14:15 |
2D data extracting from Fluent simulation | unknown | FLUENT | 0 | October 11, 2009 14:14 |
Extracting data. | Sham | FLUENT | 2 | August 16, 2005 11:39 |
Problems saving graph registers data | Julie Polyakh | Siemens | 4 | August 6, 2003 14:32 |
Data Base Problems | Richard Harrison | CFX | 1 | January 11, 2001 18:44 |