1 //======================================================================
3 const int maxNames = 1000;
5 // define the name to be displayed in the window.
6 static char readerName[] = "OpenFOAM";
7 static char meshName[] = "cells";
8 static char readerVersion[] = "2.03";
10 // everything is one part in OpenFOAM, except the spray
11 static int Num_unstructured_parts = 1;
12 static int Num_structured_parts = 0;
13 static int Numparts_available = 1;
14 static int nPatches = 0;
16 static int Num_timesets = 1;
17 static int Geom_timeset_number = 1;
18 static int Num_time_steps = 1;
19 static int Num_global_nodes = 0;
20 static int Num_variables = 0;
21 static int Num_dataset_files = 0;
22 static int Current_time_step = 0;
24 static label nSprayVariables = 0;
25 static label nMaxParcels = 0;
27 static bool isScalar[maxNames];
28 static bool isVector[maxNames];
29 static bool isTensor[maxNames];
30 static bool isSpray[maxNames];
32 static word scalarName = "volScalarField";
33 static word vectorName = "volVectorField";
34 static word tensorName = "volTensorField";
35 static word sprayScalarFieldName = "scalarField";
36 static word sprayVectorFieldName = "vectorField";
37 static word sprayTensorFieldName = "tensorField";
38 static word parcelPrepend = "parcel_";
39 static word pointPrepend = "point_";
41 static fileName rootDir;
42 static fileName caseDir;
44 static instantList timeDirs;
46 static List<word> fieldNames;
47 static List<word> lagrangianScalarNames;
48 static List<word> lagrangianVectorNames;
49 static label var2field[maxNames];
51 static Time *runTimePtr = 0;
52 static fvMesh *meshPtr = 0;
53 static Cloud<passiveParticle> *sprayPtr = 0;