VTK
|
#include <vtkStructuredAMRGridConnectivity.h>
Public Types | |
typedef vtkAbstractGridConnectivity | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkStructuredAMRGridConnectivity * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | ComputeNeighbors () |
virtual void | CreateGhostLayers (const int N=1) |
int | GetNumberOfNeighbors (const int gridID) |
void | GetGhostedExtent (const int gridID, int ext[6]) |
vtkStructuredAMRNeighbor | GetNeighbor (const int gridID, const int nei) |
void | Initialize (const unsigned int NumberOfLevels, const unsigned int N, const int RefinementRatio=-1) |
virtual void | RegisterGrid (const int gridIdx, const int level, const int refinementRatio, int extents[6], vtkUnsignedCharArray *nodesGhostArray, vtkUnsignedCharArray *cellGhostArray, vtkPointData *pointData, vtkCellData *cellData, vtkPoints *gridNodes) |
virtual void | RegisterGrid (const int gridIdx, const int level, int extents[6], vtkUnsignedCharArray *nodesGhostArray, vtkUnsignedCharArray *cellGhostArray, vtkPointData *pointData, vtkCellData *cellData, vtkPoints *gridNodes) |
virtual void | SetBalancedRefinement (bool) |
virtual bool | GetBalancedRefinement () |
virtual void | SetNodeCentered (bool) |
virtual bool | GetNodeCentered () |
virtual void | SetCellCentered (bool) |
virtual bool | GetCellCentered () |
Static Public Member Functions | |
static vtkStructuredAMRGridConnectivity * | New () |
static int | IsTypeOf (const char *type) |
static vtkStructuredAMRGridConnectivity * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkStructuredAMRGridConnectivity () | |
virtual | ~vtkStructuredAMRGridConnectivity () |
virtual void | SetNumberOfGrids (const unsigned int N) |
void | CreateGhostedMaskArrays (const int gridID) |
void | CreateGhostedExtent (const int gridID, const int N) |
void | SetGhostedExtent (const int gridID, int ext[6]) |
void | GetGridExtent (const int gridIdx, int ext[6]) |
int | GetGridLevel (const int gridIdx) |
bool | LevelExists (const int level) |
void | InsertGridAtLevel (const int level, const int gridID) |
void | ComputeNeighborSendAndRcvExtent (const int gridID, const int N) |
void | ComputeWholeExtent () |
void | GetWholeExtentAtLevel (const int level, int ext[6]) |
void | EstablishNeighbors (const int i, const int j) |
bool | HasConstantRefinementRatio () |
void | SetRefinementRatioAtLevel (const int level, const int r) |
int | GetRefinementRatioAtLevel (const int level) |
bool | AreExtentsEqual (int ext1[6], int ext2[6]) |
void | SetBlockTopology (const int gridID) |
int | GetNumberOfConnectingBlockFaces (const int gridID) |
void | RemoveBlockConnection (const int gridID, const int blockDirection) |
void | AddBlockConnection (const int gridID, const int blockDirection) |
void | ClearBlockConnections (const int gridID) |
void | PrintExtent (std::ostream &os, int ext[6]) |
void | InitializeGhostData (const int gridID) |
void | TransferRegisteredDataToGhostedData (const int gridID) |
virtual void | TransferGhostDataFromNeighbors (const int gridID) |
void | GetCoarsenedExtent (const int gridIdx, int fromLevel, int toLevel, int ext[6]) |
void | GetRefinedExtent (const int gridIdx, int fromLevel, int toLevel, int ext[6]) |
void | RefineExtent (int orient[3], int ndim, int fromLevel, int toLevel, int ext[6]) |
void | GetCellRefinedExtent (int orient[3], int ndim, const int i, const int j, const int k, const int fromLevel, const int toLevel, int ext[6]) |
void | CoarsenExtent (int orient[3], int ndim, int fromLevel, int toLevel, int ext[6]) |
bool | IsNodeInterior (const int i, const int j, const int k, int ext[6]) |
bool | IsNodeWithinExtent (const int i, const int j, const int k, int ext[6]) |
bool | IsNodeOnSharedBoundary (const int i, const int j, const int k, const int gridId, int gridExt[6]) |
bool | IsNodeOnBoundaryOfExtent (const int i, const int j, const int k, int ext[6]) |
void | GetNodeOrientation (const int i, const int j, const int k, int gridExt[6], int nodeOrientation[3]) |
void | GetOrientationVector (const int dataDescription, int orient[3], int &ndim) |
bool | HasBlockConnection (const int gridID, const int blockDirection) |
virtual void | MarkNodeProperty (const int gridId, const int i, const int j, const int k, int gridExt[6], int wholeExt[6], unsigned char &p) |
virtual void | FillNodesGhostArray (const int gridId, vtkUnsignedCharArray *nodesArray) |
virtual void | FillCellsGhostArray (const int gridId, vtkUnsignedCharArray *cellArray) |
virtual void | FillGhostArrays (const int gridId, vtkUnsignedCharArray *nodesArray, vtkUnsignedCharArray *cellsArray) |
vtkStructuredAMRNeighbor | GetAMRNeighbor (const int i, const int iLevel, int next1[6], const int j, const int jLevel, int next2[6], const int normalizedLevel, const int levelDiff, vtkStructuredNeighbor &nei) |
void | ComputeAMRNeighborOverlapExtents (const int iLevel, const int jLevel, const int normalizedLevel, const vtkStructuredNeighbor &nei, int orient[3], int ndim, int gridOverlapExtent[6], int neiOverlapExtent[6]) |
int | Get1DOrientation (const int idx, const int ExtentLo, const int ExtentHi, const int OnLo, const int OnHi, const int NotOnBoundary) |
void | TransferLocalNodeCenteredNeighborData (const int gridID, vtkStructuredAMRNeighbor &nei) |
void | GetLocalCellCentersFromCoarserLevel (const int gridID, vtkStructuredAMRNeighbor &nei) |
void | GetLocalCellCentersFromFinerLevel (const int gridID, vtkStructuredAMRNeighbor &nei) |
void | GetLocalCellCentersAtSameLevel (const int gridID, vtkStructuredAMRNeighbor &nei) |
void | TransferLocalCellCenteredNeighborData (const int gridID, vtkStructuredAMRNeighbor &nei) |
void | TransferLocalNeighborData (const int gridID, vtkStructuredAMRNeighbor &nei) |
void | AverageFieldData (vtkFieldData *source, vtkIdType *sourceIds, const int N, vtkFieldData *target, vtkIdType targetIdx) |
void | CopyFieldData (vtkFieldData *source, vtkIdType sourceIdx, vtkFieldData *target, vtkIdType targetIdx) |
Protected Attributes | |
unsigned int | NumberOfLevels |
int | DataDimension |
int | DataDescription |
int | WholeExtent [6] |
int | MaxLevel |
int | RefinementRatio |
bool | NodeCentered |
bool | CellCentered |
bool | BalancedRefinement |
std::map< int, std::set< int > > | AMRHierarchy |
std::vector< int > | GridExtents |
std::vector< int > | GhostedExtents |
std::vector< unsigned char > | BlockTopology |
std::vector< int > | GridLevels |
std::vector< std::vector < vtkStructuredAMRNeighbor > > | Neighbors |
std::vector< std::vector< int > > | CellCenteredDonorLevel |
std::vector< int > | RefinementRatios |
grid connectivity.
A concrete instance of vtkAbstractGridConnectivity that implements functionality for computing the neighboring topology within a structured AMR grid, as well as, generating ghost-layers. Support is provided for 1-D, 2-D (XY,XZ,YZ) and 3-D cell-centered datasets. This implementation does not have any support for distributed data. For the parallel implementation see vtkPStructuredAMRGridConnectivity.
Definition at line 48 of file vtkStructuredAMRGridConnectivity.h.
Reimplemented from vtkAbstractGridConnectivity.
Definition at line 53 of file vtkStructuredAMRGridConnectivity.h.
virtual vtkStructuredAMRGridConnectivity::~vtkStructuredAMRGridConnectivity | ( | ) | [protected, virtual] |
static vtkStructuredAMRGridConnectivity* vtkStructuredAMRGridConnectivity::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
static int vtkStructuredAMRGridConnectivity::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAbstractGridConnectivity.
virtual int vtkStructuredAMRGridConnectivity::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAbstractGridConnectivity.
static vtkStructuredAMRGridConnectivity* vtkStructuredAMRGridConnectivity::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkAbstractGridConnectivity.
virtual vtkObjectBase* vtkStructuredAMRGridConnectivity::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkAbstractGridConnectivity.
Reimplemented from vtkAbstractGridConnectivity.
void vtkStructuredAMRGridConnectivity::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkAbstractGridConnectivity.
void vtkStructuredAMRGridConnectivity::Initialize | ( | const unsigned int | NumberOfLevels, |
const unsigned int | N, | ||
const int | RefinementRatio = -1 |
||
) |
Initializes this instance of vtkStructuredAMRGridConnectivity where N is the total number of grids in the AMR hierarchy. Optionally, if the AMR dataset has a constant refinement, it should be specified during initialization as the code optimizes for it. If a -1 or no refinement ratio is specified a varying refinement ratio is assumed.
virtual void vtkStructuredAMRGridConnectivity::ComputeNeighbors | ( | ) | [virtual] |
Computes neighboring information.
Implements vtkAbstractGridConnectivity.
virtual void vtkStructuredAMRGridConnectivity::CreateGhostLayers | ( | const int | N = 1 | ) | [virtual] |
Creates ghost layers.
Implements vtkAbstractGridConnectivity.
virtual void vtkStructuredAMRGridConnectivity::RegisterGrid | ( | const int | gridIdx, |
const int | level, | ||
const int | refinementRatio, | ||
int | extents[6], | ||
vtkUnsignedCharArray * | nodesGhostArray, | ||
vtkUnsignedCharArray * | cellGhostArray, | ||
vtkPointData * | pointData, | ||
vtkCellData * | cellData, | ||
vtkPoints * | gridNodes | ||
) | [virtual] |
Registers the AMR grid with the given global linear grid ID (starting numbering from 0) and level and refinement ratio. This method is to be used when the refinement ratio is not constant.
virtual void vtkStructuredAMRGridConnectivity::RegisterGrid | ( | const int | gridIdx, |
const int | level, | ||
int | extents[6], | ||
vtkUnsignedCharArray * | nodesGhostArray, | ||
vtkUnsignedCharArray * | cellGhostArray, | ||
vtkPointData * | pointData, | ||
vtkCellData * | cellData, | ||
vtkPoints * | gridNodes | ||
) | [virtual] |
Registers the AMR grid with the given global linear grid ID (starting numbering from 0) and level. The extents of the grid are expected to be global node extents.
virtual void vtkStructuredAMRGridConnectivity::SetBalancedRefinement | ( | bool | ) | [virtual] |
Get/Set macro for BalancedRefinement property, default is true. If the refinement is balanced, then, adjacent grids in the AMR hierarchy can only differ by one level. By default, a balanced refinement is assumed.
virtual bool vtkStructuredAMRGridConnectivity::GetBalancedRefinement | ( | ) | [virtual] |
Get/Set macro for BalancedRefinement property, default is true. If the refinement is balanced, then, adjacent grids in the AMR hierarchy can only differ by one level. By default, a balanced refinement is assumed.
virtual void vtkStructuredAMRGridConnectivity::SetNodeCentered | ( | bool | ) | [virtual] |
Get/Set macor NodeCentered property which indicates if the data is node-centered or cell-centered. By default, node-centered is set to false since AMR datasets are primarily cell-centered.
virtual bool vtkStructuredAMRGridConnectivity::GetNodeCentered | ( | ) | [virtual] |
Get/Set macor NodeCentered property which indicates if the data is node-centered or cell-centered. By default, node-centered is set to false since AMR datasets are primarily cell-centered.
virtual void vtkStructuredAMRGridConnectivity::SetCellCentered | ( | bool | ) | [virtual] |
Get/Set CellCentered property which indicates if the data is cell-centered By default, cell-centered is set to true.
virtual bool vtkStructuredAMRGridConnectivity::GetCellCentered | ( | ) | [virtual] |
Get/Set CellCentered property which indicates if the data is cell-centered By default, cell-centered is set to true.
int vtkStructuredAMRGridConnectivity::GetNumberOfNeighbors | ( | const int | gridID | ) | [inline] |
Returns the number of neighbors for the grid corresponding to the given grid ID.
Definition at line 513 of file vtkStructuredAMRGridConnectivity.h.
void vtkStructuredAMRGridConnectivity::GetGhostedExtent | ( | const int | gridID, |
int | ext[6] | ||
) |
Returns the ghost extend for the grid corresponding to the given grid ID.
vtkStructuredAMRNeighbor vtkStructuredAMRGridConnectivity::GetNeighbor | ( | const int | gridID, |
const int | nei | ||
) | [inline] |
Returns the AMR neighbor for the patch with the corresponding grid ID.
Definition at line 525 of file vtkStructuredAMRGridConnectivity.h.
virtual void vtkStructuredAMRGridConnectivity::SetNumberOfGrids | ( | const unsigned int | N | ) | [protected, virtual] |
Sets the total number of grids(blocks) in the AMR hierarchy
Implements vtkAbstractGridConnectivity.
void vtkStructuredAMRGridConnectivity::CreateGhostedMaskArrays | ( | const int | gridID | ) | [protected] |
Creates the ghosted mask arrays
void vtkStructuredAMRGridConnectivity::CreateGhostedExtent | ( | const int | gridID, |
const int | N | ||
) | [protected] |
Creates the ghosted extent of the given grid
void vtkStructuredAMRGridConnectivity::SetGhostedExtent | ( | const int | gridID, |
int | ext[6] | ||
) | [protected] |
Sets the ghost extent for the grid corresponding to the given grid ID.
void vtkStructuredAMRGridConnectivity::GetCoarsenedExtent | ( | const int | gridIdx, |
int | fromLevel, | ||
int | toLevel, | ||
int | ext[6] | ||
) | [protected] |
Gets the coarsened extent for the grid with the given grid index.
void vtkStructuredAMRGridConnectivity::GetRefinedExtent | ( | const int | gridIdx, |
int | fromLevel, | ||
int | toLevel, | ||
int | ext[6] | ||
) | [protected] |
Gets the refined extent fro the grid with the given grid index.
void vtkStructuredAMRGridConnectivity::RefineExtent | ( | int | orient[3], |
int | ndim, | ||
int | fromLevel, | ||
int | toLevel, | ||
int | ext[6] | ||
) | [protected] |
Refines the given extent.
void vtkStructuredAMRGridConnectivity::GetCellRefinedExtent | ( | int | orient[3], |
int | ndim, | ||
const int | i, | ||
const int | j, | ||
const int | k, | ||
const int | fromLevel, | ||
const int | toLevel, | ||
int | ext[6] | ||
) | [protected] |
Given the global i,j,k index of a cell at a coarse level, fromLevel, this method computes the range of cells on the refined grid.
void vtkStructuredAMRGridConnectivity::CoarsenExtent | ( | int | orient[3], |
int | ndim, | ||
int | fromLevel, | ||
int | toLevel, | ||
int | ext[6] | ||
) | [protected] |
Coarsens the given extent.
void vtkStructuredAMRGridConnectivity::GetGridExtent | ( | const int | gridIdx, |
int | ext[6] | ||
) | [inline, protected] |
Gets the grid extent for the grid with the given grid ID.
Definition at line 704 of file vtkStructuredAMRGridConnectivity.h.
int vtkStructuredAMRGridConnectivity::GetGridLevel | ( | const int | gridIdx | ) | [inline, protected] |
Returns the level of the grid with the corresponding grid ID.
Definition at line 652 of file vtkStructuredAMRGridConnectivity.h.
bool vtkStructuredAMRGridConnectivity::LevelExists | ( | const int | level | ) | [inline, protected] |
Checks if the given level has been registered
Definition at line 718 of file vtkStructuredAMRGridConnectivity.h.
bool vtkStructuredAMRGridConnectivity::IsNodeInterior | ( | const int | i, |
const int | j, | ||
const int | k, | ||
int | ext[6] | ||
) | [protected] |
Checks if the node is an interior node in the given extent.
bool vtkStructuredAMRGridConnectivity::IsNodeWithinExtent | ( | const int | i, |
const int | j, | ||
const int | k, | ||
int | ext[6] | ||
) | [protected] |
Checks if the node is within the extent.
bool vtkStructuredAMRGridConnectivity::IsNodeOnSharedBoundary | ( | const int | i, |
const int | j, | ||
const int | k, | ||
const int | gridId, | ||
int | gridExt[6] | ||
) | [protected] |
Checks if the node is on a shared boundary.
bool vtkStructuredAMRGridConnectivity::IsNodeOnBoundaryOfExtent | ( | const int | i, |
const int | j, | ||
const int | k, | ||
int | ext[6] | ||
) | [protected] |
Checks if the node is on the boundary of the given extent.
void vtkStructuredAMRGridConnectivity::InsertGridAtLevel | ( | const int | level, |
const int | gridID | ||
) | [inline, protected] |
Inserts the grid corresponding to the given ID at the prescribed level.
Definition at line 729 of file vtkStructuredAMRGridConnectivity.h.
void vtkStructuredAMRGridConnectivity::ComputeNeighborSendAndRcvExtent | ( | const int | gridID, |
const int | N | ||
) | [protected] |
Loops through the neighbors of this grid and computes the send and rcv extents for the N requested ghost layers.
void vtkStructuredAMRGridConnectivity::ComputeWholeExtent | ( | ) | [protected] |
Computes the whole extent w.r.t. level 0 as well as the AMR dataset description and dimension.
void vtkStructuredAMRGridConnectivity::GetWholeExtentAtLevel | ( | const int | level, |
int | ext[6] | ||
) | [protected] |
Gets the whole extent with respect to the given level. NOTE: This method assument that the whole extent has been computed.
void vtkStructuredAMRGridConnectivity::EstablishNeighbors | ( | const int | i, |
const int | j | ||
) | [protected] |
Establishes neighboring relationship between grids i,j wheren i,j are global indices.
void vtkStructuredAMRGridConnectivity::GetNodeOrientation | ( | const int | i, |
const int | j, | ||
const int | k, | ||
int | gridExt[6], | ||
int | nodeOrientation[3] | ||
) | [protected] |
Computes the node orientation tuple for the given i,j,k node.
void vtkStructuredAMRGridConnectivity::GetOrientationVector | ( | const int | dataDescription, |
int | orient[3], | ||
int & | ndim | ||
) | [protected] |
Establishes the orientation vector and dimension based on the computed data description. The orientation vector is a 3-tuple, which encodes the dimensions that are used. For example, let's say that we want to define the orientation to be in the XZ plane, then, the orient array would be constructed as follows: {0,2 -1}, where -1 indicates a NIL value.
bool vtkStructuredAMRGridConnectivity::HasConstantRefinementRatio | ( | ) | [inline, protected] |
Checks if a constant refinement ratio has been specified.
Definition at line 694 of file vtkStructuredAMRGridConnectivity.h.
void vtkStructuredAMRGridConnectivity::SetRefinementRatioAtLevel | ( | const int | level, |
const int | r | ||
) | [inline, protected] |
Sets the refinement ratio at the given level.
Definition at line 663 of file vtkStructuredAMRGridConnectivity.h.
int vtkStructuredAMRGridConnectivity::GetRefinementRatioAtLevel | ( | const int | level | ) | [inline, protected] |
Returns the refinement ratio at the given level.
Definition at line 678 of file vtkStructuredAMRGridConnectivity.h.
bool vtkStructuredAMRGridConnectivity::AreExtentsEqual | ( | int | ext1[6], |
int | ext2[6] | ||
) | [inline, protected] |
Checks if the extent ext1 and ext2 are equal.
Definition at line 624 of file vtkStructuredAMRGridConnectivity.h.
void vtkStructuredAMRGridConnectivity::SetBlockTopology | ( | const int | gridID | ) | [protected] |
Constructs the block topology for the given grid.
int vtkStructuredAMRGridConnectivity::GetNumberOfConnectingBlockFaces | ( | const int | gridID | ) | [inline, protected] |
Returns the number of faces of the block corresponding to the given grid ID that are adjacent to at least one other block. Note, this is not the total number of neighbors for the block. This method simply checks how many out of the 6 block faces have connections. Thus, the return value has an upper-bound of 6.
Definition at line 557 of file vtkStructuredAMRGridConnectivity.h.
bool vtkStructuredAMRGridConnectivity::HasBlockConnection | ( | const int | gridID, |
const int | blockDirection | ||
) | [inline, protected] |
Checks if the block corresponding to the given grid ID has a block adjacent to it in the given block direction. NOTE: The block direction is essentially one of the 6 faces of the block defined as follows:
Definition at line 289 of file vtkStructuredAMRGridConnectivity.h.
void vtkStructuredAMRGridConnectivity::RemoveBlockConnection | ( | const int | gridID, |
const int | blockDirection | ||
) | [inline, protected] |
Removes a block connection along the given direction for the block corresponding to the given gridID. NOTE: The block direction is essentially one of the 6 faces of the block defined as follows:
Definition at line 579 of file vtkStructuredAMRGridConnectivity.h.
void vtkStructuredAMRGridConnectivity::AddBlockConnection | ( | const int | gridID, |
const int | blockDirection | ||
) | [inline, protected] |
Adds a block connection along the given direction for the block corresponding to the given gridID. NOTE: The block direction is essentially one of the 6 faces of the block defined as follows:
Definition at line 594 of file vtkStructuredAMRGridConnectivity.h.
void vtkStructuredAMRGridConnectivity::ClearBlockConnections | ( | const int | gridID | ) | [inline, protected] |
Clears all block connections for the block corresponding to the given grid ID.
Definition at line 608 of file vtkStructuredAMRGridConnectivity.h.
virtual void vtkStructuredAMRGridConnectivity::MarkNodeProperty | ( | const int | gridId, |
const int | i, | ||
const int | j, | ||
const int | k, | ||
int | gridExt[6], | ||
int | wholeExt[6], | ||
unsigned char & | p | ||
) | [protected, virtual] |
Marks the ghost property for the given node.
virtual void vtkStructuredAMRGridConnectivity::FillNodesGhostArray | ( | const int | gridId, |
vtkUnsignedCharArray * | nodesArray | ||
) | [protected, virtual] |
Fills the node ghost arrays for the given grid
virtual void vtkStructuredAMRGridConnectivity::FillCellsGhostArray | ( | const int | gridId, |
vtkUnsignedCharArray * | cellArray | ||
) | [protected, virtual] |
Fills the cell ghost arrays for the given grid
virtual void vtkStructuredAMRGridConnectivity::FillGhostArrays | ( | const int | gridId, |
vtkUnsignedCharArray * | nodesArray, | ||
vtkUnsignedCharArray * | cellsArray | ||
) | [protected, virtual] |
Fills ghost arrays.
Implements vtkAbstractGridConnectivity.
vtkStructuredAMRNeighbor vtkStructuredAMRGridConnectivity::GetAMRNeighbor | ( | const int | i, |
const int | iLevel, | ||
int | next1[6], | ||
const int | j, | ||
const int | jLevel, | ||
int | next2[6], | ||
const int | normalizedLevel, | ||
const int | levelDiff, | ||
vtkStructuredNeighbor & | nei | ||
) | [protected] |
Compute the AMR neighbor of grid "i" and its neighbor grid "j". Given the structured neighbors computed in normalized space (i.e., at the same level) between the two grids, this method computes the corresponding AMR neighbor which essentially adds other bits of information, such as level, relationship type, etc. NOTE: The extents next1 and next2 for each grid are the normalized extents
void vtkStructuredAMRGridConnectivity::ComputeAMRNeighborOverlapExtents | ( | const int | iLevel, |
const int | jLevel, | ||
const int | normalizedLevel, | ||
const vtkStructuredNeighbor & | nei, | ||
int | orient[3], | ||
int | ndim, | ||
int | gridOverlapExtent[6], | ||
int | neiOverlapExtent[6] | ||
) | [protected] |
A Helper method to compute the AMR neighbor overlap extents. The method coarsens/refines the gridOverlap and neiOverlap extents accordingly s.t. they are w.r.t. to the level of the grid they refer to.
int vtkStructuredAMRGridConnectivity::Get1DOrientation | ( | const int | idx, |
const int | ExtentLo, | ||
const int | ExtentHi, | ||
const int | OnLo, | ||
const int | OnHi, | ||
const int | NotOnBoundary | ||
) | [inline, protected] |
Get 1-D orientation.
Definition at line 540 of file vtkStructuredAMRGridConnectivity.h.
void vtkStructuredAMRGridConnectivity::PrintExtent | ( | std::ostream & | os, |
int | ext[6] | ||
) | [inline, protected] |
Prints the extent
Definition at line 639 of file vtkStructuredAMRGridConnectivity.h.
void vtkStructuredAMRGridConnectivity::InitializeGhostData | ( | const int | gridID | ) | [protected] |
Initializes the ghost data-structures
void vtkStructuredAMRGridConnectivity::TransferRegisteredDataToGhostedData | ( | const int | gridID | ) | [protected] |
Transfers the data of the registered grid, to the ghosted data-structures.
void vtkStructuredAMRGridConnectivity::TransferLocalNodeCenteredNeighborData | ( | const int | gridID, |
vtkStructuredAMRNeighbor & | nei | ||
) | [protected] |
Transfers local node-centered neighbor data
void vtkStructuredAMRGridConnectivity::GetLocalCellCentersFromCoarserLevel | ( | const int | gridID, |
vtkStructuredAMRNeighbor & | nei | ||
) | [protected] |
Copy cell center value from a coarser level by direct-injection, i.e., the values within the coarse cell is assumed to be constant.
void vtkStructuredAMRGridConnectivity::GetLocalCellCentersFromFinerLevel | ( | const int | gridID, |
vtkStructuredAMRNeighbor & | nei | ||
) | [protected] |
Copy cell center values from a finer level by cell averaging.
void vtkStructuredAMRGridConnectivity::GetLocalCellCentersAtSameLevel | ( | const int | gridID, |
vtkStructuredAMRNeighbor & | nei | ||
) | [protected] |
Copy cell center values to fill in the ghost levels from a neighbor at the same level as the grid corresponding to the given grid ID.
void vtkStructuredAMRGridConnectivity::TransferLocalCellCenteredNeighborData | ( | const int | gridID, |
vtkStructuredAMRNeighbor & | nei | ||
) | [protected] |
Transfers local cell-centered neighbor data
void vtkStructuredAMRGridConnectivity::TransferLocalNeighborData | ( | const int | gridID, |
vtkStructuredAMRNeighbor & | nei | ||
) | [protected] |
Transfers local neighbor data
virtual void vtkStructuredAMRGridConnectivity::TransferGhostDataFromNeighbors | ( | const int | gridID | ) | [protected, virtual] |
Fills in the ghost data from the neighbors
void vtkStructuredAMRGridConnectivity::AverageFieldData | ( | vtkFieldData * | source, |
vtkIdType * | sourceIds, | ||
const int | N, | ||
vtkFieldData * | target, | ||
vtkIdType | targetIdx | ||
) | [protected] |
Loops through all arrays and computes the average of the supplied source indices and stores the corresponding average
void vtkStructuredAMRGridConnectivity::CopyFieldData | ( | vtkFieldData * | source, |
vtkIdType | sourceIdx, | ||
vtkFieldData * | target, | ||
vtkIdType | targetIdx | ||
) | [protected] |
Loops through all arrays in the source and for each array, it copies the tuples from sourceIdx to the target at targetIdx. This method assumes that the source and target have a one-to-one array correspondance, that is array i in the source corresponds to array i in the target.
unsigned int vtkStructuredAMRGridConnectivity::NumberOfLevels [protected] |
Definition at line 463 of file vtkStructuredAMRGridConnectivity.h.
int vtkStructuredAMRGridConnectivity::DataDimension [protected] |
Definition at line 464 of file vtkStructuredAMRGridConnectivity.h.
int vtkStructuredAMRGridConnectivity::DataDescription [protected] |
Definition at line 465 of file vtkStructuredAMRGridConnectivity.h.
int vtkStructuredAMRGridConnectivity::WholeExtent[6] [protected] |
Definition at line 466 of file vtkStructuredAMRGridConnectivity.h.
int vtkStructuredAMRGridConnectivity::MaxLevel [protected] |
Definition at line 467 of file vtkStructuredAMRGridConnectivity.h.
int vtkStructuredAMRGridConnectivity::RefinementRatio [protected] |
Definition at line 468 of file vtkStructuredAMRGridConnectivity.h.
bool vtkStructuredAMRGridConnectivity::NodeCentered [protected] |
Definition at line 473 of file vtkStructuredAMRGridConnectivity.h.
bool vtkStructuredAMRGridConnectivity::CellCentered [protected] |
Definition at line 474 of file vtkStructuredAMRGridConnectivity.h.
bool vtkStructuredAMRGridConnectivity::BalancedRefinement [protected] |
Definition at line 476 of file vtkStructuredAMRGridConnectivity.h.
std::map< int, std::set<int> > vtkStructuredAMRGridConnectivity::AMRHierarchy [protected] |
Definition at line 482 of file vtkStructuredAMRGridConnectivity.h.
std::vector< int > vtkStructuredAMRGridConnectivity::GridExtents [protected] |
Definition at line 485 of file vtkStructuredAMRGridConnectivity.h.
std::vector< int > vtkStructuredAMRGridConnectivity::GhostedExtents [protected] |
Definition at line 486 of file vtkStructuredAMRGridConnectivity.h.
std::vector< unsigned char > vtkStructuredAMRGridConnectivity::BlockTopology [protected] |
Definition at line 487 of file vtkStructuredAMRGridConnectivity.h.
std::vector< int > vtkStructuredAMRGridConnectivity::GridLevels [protected] |
Definition at line 488 of file vtkStructuredAMRGridConnectivity.h.
std::vector< std::vector<vtkStructuredAMRNeighbor> > vtkStructuredAMRGridConnectivity::Neighbors [protected] |
Definition at line 489 of file vtkStructuredAMRGridConnectivity.h.
std::vector< std::vector<int> > vtkStructuredAMRGridConnectivity::CellCenteredDonorLevel [protected] |
Definition at line 494 of file vtkStructuredAMRGridConnectivity.h.
std::vector< int > vtkStructuredAMRGridConnectivity::RefinementRatios [protected] |
Definition at line 499 of file vtkStructuredAMRGridConnectivity.h.