VTK
UnstructuredGhostZonesCommon.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPStructuredGridConnectivity.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14  =========================================================================*/
15 #ifndef UNSTRUCTUREDGHOSTZONESCOMMON_H_
16 #define UNSTRUCTUREDGHOSTZONESCOMMON_H_
17 
18 // VTK includes
19 #include "vtkMathUtilities.h"
20 #include "vtkMPIUtilities.h"
21 
22 // C/C++ includes
23 #include <cmath>
24 #include <iomanip>
25 #include <sstream>
26 
27 //------------------------------------------------------------------------------
28 // G L O B A L D A T A
29 //------------------------------------------------------------------------------
30 struct global
31 {
32  static double Origin[3];
33  static double Spacing[3];
34  static int Dims[3];
35 
36  static int Rank;
37  static int NRanks;
38 
40 };
41 
42 int CheckGrid(vtkUnstructuredGrid* ghostGrid, const int iteration);
43 
44 //------------------------------------------------------------------------------
45 void UpdateGrid(const int iteration);
46 
47 //------------------------------------------------------------------------------
48 void SetXYZCellField();
49 
50 //------------------------------------------------------------------------------
51 void SetXYZNodeField();
52 
53 //------------------------------------------------------------------------------
54 void WriteDataSet(
55  vtkUnstructuredGrid* grid, const std::string& file);
56 
57 //------------------------------------------------------------------------------
58 void GetPoint(
59  const int i, const int j, const int k,double pnt[3]);
60 
61 void GenerateDataSet();
62 
63 #endif /* UNSTRUCTUREDGHOSTZONESCOMMON_H_ */
void SetXYZCellField()
void SetXYZNodeField()
static vtkUnstructuredGrid * Grid
static int Dims[3]
static double Spacing[3]
void GetPoint(const int i, const int j, const int k, double pnt[3])
static double Origin[3]
void UpdateGrid(const int iteration)
dataset represents arbitrary combinations of all possible cell types
void WriteDataSet(vtkUnstructuredGrid *grid, const std::string &file)
int CheckGrid(vtkUnstructuredGrid *ghostGrid, const int iteration)
void GenerateDataSet()