CG  Version 25
ProbeInfo.h
Go to the documentation of this file.
1 #include "Overture.h"
2 #define KK_DEBUG
3 #include "DBase.hh"
4 using namespace DBase;
5 
6 #ifndef PROBE_INFO_H
7 #define PROBE_INFO_H "ProbeInfo.h"
8 
9 class Parameters;
10 class DialogData;
11 
12 
13 class ProbeInfo
14 {
15 public:
17 {
18  probeAtGridPoint, // probe is located at a grid point
19  probeAtLocation, // probe is located at a fixed position
20  probeBoundingBox, // save probe data on the boundary of a box (for subsequent sub-domain computations)
21  probeRegion // probe is some average or integral over a region
22 };
23 
24 ProbeInfo(Parameters & par);
25 ~ProbeInfo();
26 
27 
28 // define the properties of the probe:
29 int
30 update( CompositeGrid & cg, GenericGraphicsInterface & gi );
31 
32 int
33 buildRegionOptionsDialog(DialogData & dialog );
34 
35 int
36 getRegionOption(const aString & answer, DialogData & dialog );
37 
38 // data -- make public for now
40 int grid, iv[3]; // holds grid pt for probeAtGridPoint
41 real xv[3]; // holds coordinates for probeAtLocation
42 
43 FILE *file;
44 aString fileName;
45 
46 // Data for the bounding box probe file
47 int boundingBoxGrid, boundingBox[6], numberOfLayers; // for the probeBoundingBox
48 GenericDataBase *pdb;
50 RealArray *times; // solutions are saved at these times
51 
53 
54 // This database contains various parameters:
55 DataBase dbase;
56 
57 };
58 
59 #endif