1 //======================================================================
3 const int maxNames = 1000;
5 // define the name to be displayed in the window.
6 static char readerName[] = "newOpenFOAM";
7 static char meshName[] = "cells";
8 static char readerVersion[] = "2.03";
10 // everything is one part in foam, 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 sprayName = "lagrangian";
36 static word sprayScalarFieldName = "scalarField";
37 static word sprayVectorFieldName = "vectorField";
38 static word sprayTensorFieldName = "tensorField";
39 static word parcelPrepend = "parcel_";
40 static word pointPrepend = "point_";
42 static fileName rootDir;
43 static fileName caseDir;
45 static instantList TimeList;
47 static List<word> fieldNames;
48 static List<word> lagrangianScalarNames;
49 static List<word> lagrangianVectorNames;
50 static label var2field[maxNames];
52 static Time *runTimePtr = 0;
53 static fvMesh *meshPtr = 0;
54 static Cloud<passiveParticle> *sprayPtr = 0;
56 // Second mesh global data
57 static fvMesh* secondMeshPtr = 0;
58 static int nSecondMeshPatches = 0;
59 static char secondMeshName[] = "cells_2";
60 static List<word> secondMeshFieldNames;
61 static label secondMeshVar2field[maxNames];
62 static bool secondMeshIsScalar[maxNames];
63 static bool secondMeshIsVector[maxNames];
64 static bool secondMeshIsTensor[maxNames];
65 static label nSecondMeshVariables = 0;
68 // Finite area mesh global data
69 static faMesh* faMeshPtr = 0;
70 static word faScalarName = "areaScalarField";
71 static word faVectorName = "areaVectorField";
72 static word faTensorName = "areaTensorField";
73 static char faMeshName[] = "faCells";
74 static List<word> faMeshFieldNames;
75 static label faMeshVar2field[maxNames];
76 static bool faMeshIsScalar[maxNames];
77 static bool faMeshIsVector[maxNames];
78 static bool faMeshIsTensor[maxNames];
79 static label nFaMeshVariables = 0;
80 static label secondMeshPartNum = 0;
84 static float scalingFactor = 1.0;