ParaView
Public Member Functions | Static Public Member Functions
vtkAMRDualGridHelper Class Reference

Tools for processing AMR as a dual grid. More...

#include <vtkAMRDualGridHelper.h>

Inheritance diagram for vtkAMRDualGridHelper:
Inheritance graph
[legend]
Collaboration diagram for vtkAMRDualGridHelper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
int Initialize (vtkNonOverlappingAMR *input, const char *arrayName)
const doubleGetGlobalOrigin ()
const doubleGetRootSpacing ()
int GetNumberOfBlocks ()
int GetNumberOfLevels ()
int GetNumberOfBlocksInLevel (int level)
vtkAMRDualGridHelperBlockGetBlock (int level, int blockIdx)
vtkAMRDualGridHelperBlockGetBlock (int level, int xGrid, int yGrid, int zGrid)
void ProcessRegionRemoteCopyQueue (bool hackLevelFlag)
void ClearRegionRemoteCopyQueue ()
virtual int GetSkipGhostCopy ()
virtual void SetSkipGhostCopy (int)
virtual void SkipGhostCopyOn ()
virtual void SkipGhostCopyOff ()
virtual int GetEnableDegenerateCells ()
virtual void SetEnableDegenerateCells (int)
virtual void EnableDegenerateCellsOn ()
virtual void EnableDegenerateCellsOff ()
virtual int GetEnableAsynchronousCommunication ()
virtual void SetEnableAsynchronousCommunication (int)
virtual void EnableAsynchronousCommunicationOn ()
virtual void EnableAsynchronousCommunicationOff ()
virtual vtkMultiProcessControllerGetController ()
virtual void SetController (vtkMultiProcessController *)
void CopyDegenerateRegionBlockToBlock (int regionX, int regionY, int regionZ, vtkAMRDualGridHelperBlock *lowResBlock, vtkDataArray *lowResArray, vtkAMRDualGridHelperBlock *highResBlock, vtkDataArray *highResArray)
void QueueRegionRemoteCopy (int regionX, int regionY, int regionZ, vtkAMRDualGridHelperBlock *lowResBlock, vtkDataArray *lowResArray, vtkAMRDualGridHelperBlock *highResBlock, vtkDataArray *highResArray)
virtual char * GetArrayName ()

Static Public Member Functions

static vtkAMRDualGridHelperNew ()
static int IsTypeOf (const char *type)
static vtkAMRDualGridHelperSafeDownCast (vtkObject *o)

Detailed Description

Tools for processing AMR as a dual grid.

This helper object was developed to help the AMR dual grid connectivity and integration filter but I also want a dual grid iso surface filter so I mad it a separate class. The API needs to be improved to make it more generally useful.

Definition at line 42 of file vtkAMRDualGridHelper.h.


Member Function Documentation

static vtkAMRDualGridHelper* vtkAMRDualGridHelper::New ( ) [static]

Reimplemented from vtkObject.

virtual const char* vtkAMRDualGridHelper::GetClassName ( ) [virtual]

Reimplemented from vtkObject.

static int vtkAMRDualGridHelper::IsTypeOf ( const char *  type) [static]

Reimplemented from vtkObject.

virtual int vtkAMRDualGridHelper::IsA ( const char *  type) [virtual]

Reimplemented from vtkObject.

static vtkAMRDualGridHelper* vtkAMRDualGridHelper::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkObject.

void vtkAMRDualGridHelper::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkObject.

virtual int vtkAMRDualGridHelper::GetSkipGhostCopy ( ) [virtual]

An option to turn off copying ghost values across process boundaries. If the ghost values are already correct, then the extra communication is not necessary. If this assumption is wrong, this option will produce cracks / seams. This is off by default.

virtual void vtkAMRDualGridHelper::SetSkipGhostCopy ( int  ) [virtual]

An option to turn off copying ghost values across process boundaries. If the ghost values are already correct, then the extra communication is not necessary. If this assumption is wrong, this option will produce cracks / seams. This is off by default.

virtual void vtkAMRDualGridHelper::SkipGhostCopyOn ( ) [virtual]

An option to turn off copying ghost values across process boundaries. If the ghost values are already correct, then the extra communication is not necessary. If this assumption is wrong, this option will produce cracks / seams. This is off by default.

virtual void vtkAMRDualGridHelper::SkipGhostCopyOff ( ) [virtual]

An option to turn off copying ghost values across process boundaries. If the ghost values are already correct, then the extra communication is not necessary. If this assumption is wrong, this option will produce cracks / seams. This is off by default.

virtual int vtkAMRDualGridHelper::GetEnableDegenerateCells ( ) [virtual]

Turn on/off the ability to create meshing between levels in the grid. This is on by default. Set this before you call initialize.

virtual void vtkAMRDualGridHelper::SetEnableDegenerateCells ( int  ) [virtual]

Turn on/off the ability to create meshing between levels in the grid. This is on by default. Set this before you call initialize.

virtual void vtkAMRDualGridHelper::EnableDegenerateCellsOn ( ) [virtual]

Turn on/off the ability to create meshing between levels in the grid. This is on by default. Set this before you call initialize.

virtual void vtkAMRDualGridHelper::EnableDegenerateCellsOff ( ) [virtual]

Turn on/off the ability to create meshing between levels in the grid. This is on by default. Set this before you call initialize.

virtual int vtkAMRDualGridHelper::GetEnableAsynchronousCommunication ( ) [virtual]

When this option is on (the default) and a controller that supports asynchronous communication (like MPI) is detected, use asynchronous communication where appropriate. This can prevent processes from blocking while waiting for communication in other processes to finish.

virtual void vtkAMRDualGridHelper::SetEnableAsynchronousCommunication ( int  ) [virtual]

When this option is on (the default) and a controller that supports asynchronous communication (like MPI) is detected, use asynchronous communication where appropriate. This can prevent processes from blocking while waiting for communication in other processes to finish.

virtual void vtkAMRDualGridHelper::EnableAsynchronousCommunicationOn ( ) [virtual]

When this option is on (the default) and a controller that supports asynchronous communication (like MPI) is detected, use asynchronous communication where appropriate. This can prevent processes from blocking while waiting for communication in other processes to finish.

virtual void vtkAMRDualGridHelper::EnableAsynchronousCommunicationOff ( ) [virtual]

When this option is on (the default) and a controller that supports asynchronous communication (like MPI) is detected, use asynchronous communication where appropriate. This can prevent processes from blocking while waiting for communication in other processes to finish.

virtual vtkMultiProcessController* vtkAMRDualGridHelper::GetController ( ) [virtual]

The controller to use for communication.

virtual void vtkAMRDualGridHelper::SetController ( vtkMultiProcessController ) [virtual]

The controller to use for communication.

int vtkAMRDualGridHelper::Initialize ( vtkNonOverlappingAMR input,
const char *  arrayName 
)
const double* vtkAMRDualGridHelper::GetGlobalOrigin ( ) [inline]

Definition at line 86 of file vtkAMRDualGridHelper.h.

const double* vtkAMRDualGridHelper::GetRootSpacing ( ) [inline]

Definition at line 87 of file vtkAMRDualGridHelper.h.

int vtkAMRDualGridHelper::GetNumberOfBlocks ( ) [inline]

Definition at line 88 of file vtkAMRDualGridHelper.h.

int vtkAMRDualGridHelper::GetNumberOfLevels ( ) [inline]

Definition at line 89 of file vtkAMRDualGridHelper.h.

int vtkAMRDualGridHelper::GetNumberOfBlocksInLevel ( int  level)
vtkAMRDualGridHelperBlock* vtkAMRDualGridHelper::GetBlock ( int  level,
int  blockIdx 
)
vtkAMRDualGridHelperBlock* vtkAMRDualGridHelper::GetBlock ( int  level,
int  xGrid,
int  yGrid,
int  zGrid 
)
void vtkAMRDualGridHelper::CopyDegenerateRegionBlockToBlock ( int  regionX,
int  regionY,
int  regionZ,
vtkAMRDualGridHelperBlock lowResBlock,
vtkDataArray lowResArray,
vtkAMRDualGridHelperBlock highResBlock,
vtkDataArray highResArray 
)

I am generalizing the code that copies lowres blocks to highres ghost regions. I need to do this for the clip filter (level mask). For transitions between levels, degeneracy works well to create and contour wedges and pyramids, but the volume fraction values in the high-level blocks ghost cells need to be the same as the closest cell in the low resolution block. These methods copy low values to high.

void vtkAMRDualGridHelper::QueueRegionRemoteCopy ( int  regionX,
int  regionY,
int  regionZ,
vtkAMRDualGridHelperBlock lowResBlock,
vtkDataArray lowResArray,
vtkAMRDualGridHelperBlock highResBlock,
vtkDataArray highResArray 
)

This queues up either a copy from a remote process to this process or a copy from this process to a remote process. Only the local block needs an array. LowRes block is the source.

void vtkAMRDualGridHelper::ProcessRegionRemoteCopyQueue ( bool  hackLevelFlag)

This should be called on every process. It processes the queue of region copies. It sends and copies the regions into blocks.

void vtkAMRDualGridHelper::ClearRegionRemoteCopyQueue ( )

Call this before adding regions to the queue. It clears the queue.

virtual char* vtkAMRDualGridHelper::GetArrayName ( ) [virtual]

It is convenient to get this here.


The documentation for this class was generated from the following file: