VTK
9.4.20241222
|
An internal, light-weight object used to store neighbor information for AMR grids. More...
#include <vtkStructuredAMRNeighbor.h>
Public Types | |
enum | NeighborRelationship { PARENT , PARTIALLY_OVERLAPPING_PARENT , CHILD , PARTIALLY_OVERLAPPING_CHILD , SAME_LEVEL_SIBLING , COARSE_TO_FINE_SIBLING , FINE_TO_COARSE_SIBLING , UNDEFINED } |
Public Types inherited from vtkStructuredNeighbor | |
enum | NeighborOrientation { SUBSET_LO = -2 , LO = -1 , ONE_TO_ONE = 0 , HI = 1 , SUBSET_HI = 2 , SUBSET_BOTH = 3 , SUPERSET = 4 , UNDEFINED = 5 } |
Public Member Functions | |
vtkStructuredAMRNeighbor () | |
Default constructor. | |
vtkStructuredAMRNeighbor (int gridLevel, int neiID, int neighborLevel, int gridOverlap[6], int neiOverlap[6], int orient[3], int relationShip) | |
Custom constructor. | |
vtkStructuredAMRNeighbor (const vtkStructuredAMRNeighbor &N) | |
Copy constructor. | |
~vtkStructuredAMRNeighbor () override=default | |
Destructor. | |
vtkStructuredAMRNeighbor & | operator= (const vtkStructuredAMRNeighbor &N) |
Overload assignment operator. | |
void | GetReceiveExtentOnGrid (int ng, int gridExtent[6], int ext[6]) |
Returns the receive extent w.r.t. | |
std::string | GetRelationShipString () |
Returns the neighbor relationship as a string (useful for debugging). | |
void | ComputeSendAndReceiveExtent (int gridRealExtent[6], int gridGhostedExtent[6], int neiRealExtent[6], int WholeExtent[6], int N) override |
Computes the SendExtent and RcvExtent for this neighbor. | |
Public Member Functions inherited from vtkStructuredNeighbor | |
vtkStructuredNeighbor () | |
Default Constructor. | |
vtkStructuredNeighbor (int NeiID, int overlap[6]) | |
Custom constructor. | |
vtkStructuredNeighbor (int NeiID, int overlap[6], int orient[3]) | |
Custom constructor. | |
vtkStructuredNeighbor (const vtkStructuredNeighbor &N) | |
Copy constructor. | |
virtual | ~vtkStructuredNeighbor () |
Default destructor. | |
vtkStructuredNeighbor & | operator= (const vtkStructuredNeighbor &N) |
Overload assignment operator. | |
Public Attributes | |
int | GridOverlapExtent [6] |
int | GridLevel |
int | NeighborLevel |
int | RelationShip |
Public Attributes inherited from vtkStructuredNeighbor | |
int | NeighborID |
int | OverlapExtent [6] |
int | SendExtent [6] |
int | RcvExtent [6] |
int | Orientation [3] |
An internal, light-weight object used to store neighbor information for AMR grids.
Definition at line 22 of file vtkStructuredAMRNeighbor.h.
Enumerator | |
---|---|
PARENT | |
PARTIALLY_OVERLAPPING_PARENT | |
CHILD | |
PARTIALLY_OVERLAPPING_CHILD | |
SAME_LEVEL_SIBLING | |
COARSE_TO_FINE_SIBLING | |
FINE_TO_COARSE_SIBLING | |
UNDEFINED |
Definition at line 26 of file vtkStructuredAMRNeighbor.h.
vtkStructuredAMRNeighbor::vtkStructuredAMRNeighbor | ( | ) |
Default constructor.
vtkStructuredAMRNeighbor::vtkStructuredAMRNeighbor | ( | int | gridLevel, |
int | neiID, | ||
int | neighborLevel, | ||
int | gridOverlap[6], | ||
int | neiOverlap[6], | ||
int | orient[3], | ||
int | relationShip | ||
) |
Custom constructor.
Creates an AMR neighbor for a grid (block) at level GridLevel with the neighboring block at NeiID, NeighborLevel. The two neighbors overlap at the pre-computed overlap extent which is given w.r.t to the current grid (i.e., not the neighboring grid).
|
inline |
Copy constructor.
Definition at line 62 of file vtkStructuredAMRNeighbor.h.
|
overridedefault |
Destructor.
vtkStructuredAMRNeighbor & vtkStructuredAMRNeighbor::operator= | ( | const vtkStructuredAMRNeighbor & | N | ) |
Overload assignment operator.
void vtkStructuredAMRNeighbor::GetReceiveExtentOnGrid | ( | int | ng, |
int | gridExtent[6], | ||
int | ext[6] | ||
) |
Returns the receive extent w.r.t.
the grid's level, i.e., not the neighbor's level.
std::string vtkStructuredAMRNeighbor::GetRelationShipString | ( | ) |
Returns the neighbor relationship as a string (useful for debugging).
|
overridevirtual |
Computes the SendExtent and RcvExtent for this neighbor.
The method assumes that the overlap extent and orientation are already computed. Using this information, the method grows the overlap extent to form the Send and Rcv extents for this neighbor instance.
Reimplemented from vtkStructuredNeighbor.
int vtkStructuredAMRNeighbor::GridOverlapExtent[6] |
Definition at line 40 of file vtkStructuredAMRNeighbor.h.
int vtkStructuredAMRNeighbor::GridLevel |
Definition at line 41 of file vtkStructuredAMRNeighbor.h.
int vtkStructuredAMRNeighbor::NeighborLevel |
Definition at line 42 of file vtkStructuredAMRNeighbor.h.
int vtkStructuredAMRNeighbor::RelationShip |
Definition at line 43 of file vtkStructuredAMRNeighbor.h.