#include <vtkAMRUtilities.h>
Inherits vtkObject.
A concrete instance of vtkObject that employs a singleton design pattern and implements functionality for AMR specific operations.
- See Also
- vtkOverlappingAMR, vtkAMRBox
- Examples:
- vtkAMRUtilities (Examples)
- Tests:
- vtkAMRUtilities (Tests)
Definition at line 47 of file vtkAMRUtilities.h.
vtkAMRUtilities::vtkAMRUtilities |
( |
| ) |
|
|
inlineprotected |
vtkAMRUtilities::~vtkAMRUtilities |
( |
| ) |
|
|
inlineprotected |
static int vtkAMRUtilities::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkAMRUtilities::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkAMRUtilities::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkAMRUtilities::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
static void vtkAMRUtilities::StripGhostLayers |
( |
vtkOverlappingAMR * |
ghostedAMRData, |
|
|
vtkOverlappingAMR * |
strippedAMRData, |
|
|
vtkMultiProcessController * |
myController = NULL |
|
) |
| |
|
static |
This method detects and strips partially overlapping cells from a given AMR dataset. If ghost layers are detected, they are removed and new grid instances are created to represent the stripped data-set otherwise, each block is shallow-copied. .SECTION Assumptions 1) The ghosted AMR data must have complete metadata information.
static bool vtkAMRUtilities::HasPartiallyOverlappingGhostCells |
( |
vtkOverlappingAMR * |
amr | ) |
|
|
static |
A quick test of whether partially overlapping ghost cells exist. This test starts from the highest-res boxes and checks if they have partially overlapping cells. The code returns with true once partially overlapping cells are detected. Otherwise, false is returned.
static void vtkAMRUtilities::DistributeProcessInformation |
( |
vtkOverlappingAMR * |
amr, |
|
|
vtkMultiProcessController * |
myController, |
|
|
std::vector< int > & |
ProcessMap |
|
) |
| |
|
static |
Compute map from block indices to process ids
static void vtkAMRUtilities::BlankCells |
( |
vtkOverlappingAMR * |
amr, |
|
|
vtkMultiProcessController * |
myController |
|
) |
| |
|
static |
Blank cells in overlapping AMR
static void vtkAMRUtilities::CopyFieldsWithinRealExtent |
( |
int |
realExtent[6], |
|
|
vtkUniformGrid * |
ghostedGrid, |
|
|
vtkUniformGrid * |
strippedGrid |
|
) |
| |
|
staticprotected |
Given the real-extent w.r.t. the ghosted grid, this method copies the field data (point/cell) data on the stripped grid.
static void vtkAMRUtilities::CopyFieldData |
( |
vtkFieldData * |
target, |
|
|
vtkIdType |
targetIdx, |
|
|
vtkFieldData * |
source, |
|
|
vtkIdType |
sourceIdx |
|
) |
| |
|
staticprotected |
Copies the fields from the given source to the given target.
static vtkUniformGrid* vtkAMRUtilities::StripGhostLayersFromGrid |
( |
vtkUniformGrid * |
grid, |
|
|
int |
ghost[6] |
|
) |
| |
|
staticprotected |
Strips ghost layers from the given grid according to the given ghost vector which encodes the number of cells to remote from each of the 6 sides {imin,imax,jmin,jmax,kmin,kmax}. For example, a ghost vector of {0,2,0,2,0,0} would indicate that there exist 2 ghost cells on the imax and jmax side.
The documentation for this class was generated from the following file: