VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Filters
ParallelGeometry
Testing
Cxx
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 "
vtkMPIUtilities.h
"
20
#include "
vtkMathUtilities.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
39
static
vtkUnstructuredGrid
*
Grid
;
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
(
vtkUnstructuredGrid
* grid,
const
std::string& file);
55
56
//------------------------------------------------------------------------------
57
void
GetPoint
(
const
int
i,
const
int
j,
const
int
k,
double
pnt[3]);
58
59
void
GenerateDataSet
();
60
61
#endif
/* UNSTRUCTUREDGHOSTZONESCOMMON_H_ */
SetXYZNodeField
void SetXYZNodeField()
SetXYZCellField
void SetXYZCellField()
GetPoint
void GetPoint(const int i, const int j, const int k, double pnt[3])
CheckGrid
int CheckGrid(vtkUnstructuredGrid *ghostGrid, const int iteration)
WriteDataSet
void WriteDataSet(vtkUnstructuredGrid *grid, const std::string &file)
GenerateDataSet
void GenerateDataSet()
UpdateGrid
void UpdateGrid(const int iteration)
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition:
vtkUnstructuredGrid.h:204
global
Definition:
UnstructuredGhostZonesCommon.h:31
global::Spacing
static double Spacing[3]
Definition:
UnstructuredGhostZonesCommon.h:33
global::Dims
static int Dims[3]
Definition:
UnstructuredGhostZonesCommon.h:34
global::NRanks
static int NRanks
Definition:
UnstructuredGhostZonesCommon.h:37
global::Origin
static double Origin[3]
Definition:
UnstructuredGhostZonesCommon.h:32
global::Grid
static vtkUnstructuredGrid * Grid
Definition:
UnstructuredGhostZonesCommon.h:39
global::Rank
static int Rank
Definition:
UnstructuredGhostZonesCommon.h:36
vtkMPIUtilities.h
vtkMathUtilities.h
Generated on Fri Apr 21 2023 10:28:48 for VTK by
1.9.6