VTK  9.0.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PIOAdaptor Class Reference

#include <PIOAdaptor.h>

Collaboration diagram for PIOAdaptor:
[legend]

Public Member Functions

 PIOAdaptor (int rank, int totalRank)
 
 ~PIOAdaptor ()
 
int initializeGlobal (const char *DumpDescFile)
 
int initializeDump (int timeStep)
 
void create_geometry (vtkMultiBlockDataSet *grid)
 
void load_variable_data (vtkMultiBlockDataSet *grid, vtkDataArraySelection *cellSelection)
 
int GetNumberOfTimeSteps ()
 
double GetTimeStep (int step)
 
int GetNumberOfVariables ()
 
const char * GetVariableName (int indx)
 
int GetNumberOfDefaultVariables ()
 
const char * GetVariableDefault (int indx)
 
bool GetHyperTreeGrid ()
 
void SetHyperTreeGrid (bool val)
 
bool GetTracers ()
 
void SetTracers (bool val)
 
bool GetFloat64 ()
 
void SetFloat64 (bool val)
 

Protected Member Functions

void create_tracer_UG (vtkMultiBlockDataSet *grid)
 
void create_amr_UG (vtkMultiBlockDataSet *grid, int numProc, int *global_numcell, int *cell_level, int64_t *cell_daughter, double **cell_center)
 
void create_amr_UG_1D (vtkMultiBlockDataSet *grid, int startCellIndx, int endCellIndx, int *cell_level, int64_t *cell_daughter, double *cell_center[1])
 
void create_amr_UG_2D (vtkMultiBlockDataSet *grid, int startCellIndx, int endCellIndx, int *cell_level, int64_t *cell_daughter, double *cell_center[2])
 
void create_amr_UG_3D (vtkMultiBlockDataSet *grid, int startCellIndx, int endCellIndx, int *cell_level, int64_t *cell_daughter, double *cell_center[3])
 
void create_amr_HTG (vtkMultiBlockDataSet *grid, int numberOfCells, int *cell_level, int64_t *cell_daughter, double *cell_center[3])
 
int count_hypertree (int64_t curIndex, int64_t *daughter)
 
void build_hypertree (vtkHyperTreeGridNonOrientedCursor *treeCursor, int64_t curIndex, int64_t *daughter)
 
void add_amr_UG_scalar (vtkMultiBlockDataSet *grid, vtkStdString varName, int64_t *daughter, double *data[], int numberOfComponents)
 
void add_amr_HTG_scalar (vtkMultiBlockDataSet *grid, vtkStdString varName, double *data[], int numberOfComponents)
 

Protected Attributes

int Rank
 
int TotalRank
 
PIO_DATApioData
 
std::list< std::string > fieldsToRead
 
std::string descFileName
 
std::string dumpDirectory
 
std::string dumpBaseName
 
std::vector< std::string > dumpFileName
 
int numberOfTimeSteps
 
double * timeSteps
 
bool useHTG
 
bool useTracer
 
bool useFloat64
 
bool hasTracers
 
std::vector< std::string > variableName
 
std::vector< std::string > variableDefault
 
std::vector< int > indexNodeLeaf
 

Detailed Description

Definition at line 26 of file PIOAdaptor.h.

Constructor & Destructor Documentation

◆ PIOAdaptor()

PIOAdaptor::PIOAdaptor ( int  rank,
int  totalRank 
)

◆ ~PIOAdaptor()

PIOAdaptor::~PIOAdaptor ( )

Member Function Documentation

◆ initializeGlobal()

int PIOAdaptor::initializeGlobal ( const char *  DumpDescFile)

◆ initializeDump()

int PIOAdaptor::initializeDump ( int  timeStep)

◆ create_geometry()

void PIOAdaptor::create_geometry ( vtkMultiBlockDataSet grid)

◆ load_variable_data()

void PIOAdaptor::load_variable_data ( vtkMultiBlockDataSet grid,
vtkDataArraySelection cellSelection 
)

◆ GetNumberOfTimeSteps()

int PIOAdaptor::GetNumberOfTimeSteps ( )
inline

Definition at line 39 of file PIOAdaptor.h.

◆ GetTimeStep()

double PIOAdaptor::GetTimeStep ( int  step)
inline

Definition at line 40 of file PIOAdaptor.h.

◆ GetNumberOfVariables()

int PIOAdaptor::GetNumberOfVariables ( )
inline

Definition at line 42 of file PIOAdaptor.h.

◆ GetVariableName()

const char* PIOAdaptor::GetVariableName ( int  indx)
inline

Definition at line 43 of file PIOAdaptor.h.

◆ GetNumberOfDefaultVariables()

int PIOAdaptor::GetNumberOfDefaultVariables ( )
inline

Definition at line 44 of file PIOAdaptor.h.

◆ GetVariableDefault()

const char* PIOAdaptor::GetVariableDefault ( int  indx)
inline

Definition at line 45 of file PIOAdaptor.h.

◆ GetHyperTreeGrid()

bool PIOAdaptor::GetHyperTreeGrid ( )
inline

Definition at line 48 of file PIOAdaptor.h.

◆ SetHyperTreeGrid()

void PIOAdaptor::SetHyperTreeGrid ( bool  val)
inline

Definition at line 49 of file PIOAdaptor.h.

◆ GetTracers()

bool PIOAdaptor::GetTracers ( )
inline

Definition at line 52 of file PIOAdaptor.h.

◆ SetTracers()

void PIOAdaptor::SetTracers ( bool  val)
inline

Definition at line 53 of file PIOAdaptor.h.

◆ GetFloat64()

bool PIOAdaptor::GetFloat64 ( )
inline

Definition at line 56 of file PIOAdaptor.h.

◆ SetFloat64()

void PIOAdaptor::SetFloat64 ( bool  val)
inline

Definition at line 57 of file PIOAdaptor.h.

◆ create_tracer_UG()

void PIOAdaptor::create_tracer_UG ( vtkMultiBlockDataSet grid)
protected

◆ create_amr_UG()

void PIOAdaptor::create_amr_UG ( vtkMultiBlockDataSet grid,
int  numProc,
int *  global_numcell,
int *  cell_level,
int64_t *  cell_daughter,
double **  cell_center 
)
protected

◆ create_amr_UG_1D()

void PIOAdaptor::create_amr_UG_1D ( vtkMultiBlockDataSet grid,
int  startCellIndx,
int  endCellIndx,
int *  cell_level,
int64_t *  cell_daughter,
double *  cell_center[1] 
)
protected

◆ create_amr_UG_2D()

void PIOAdaptor::create_amr_UG_2D ( vtkMultiBlockDataSet grid,
int  startCellIndx,
int  endCellIndx,
int *  cell_level,
int64_t *  cell_daughter,
double *  cell_center[2] 
)
protected

◆ create_amr_UG_3D()

void PIOAdaptor::create_amr_UG_3D ( vtkMultiBlockDataSet grid,
int  startCellIndx,
int  endCellIndx,
int *  cell_level,
int64_t *  cell_daughter,
double *  cell_center[3] 
)
protected

◆ create_amr_HTG()

void PIOAdaptor::create_amr_HTG ( vtkMultiBlockDataSet grid,
int  numberOfCells,
int *  cell_level,
int64_t *  cell_daughter,
double *  cell_center[3] 
)
protected

◆ count_hypertree()

int PIOAdaptor::count_hypertree ( int64_t  curIndex,
int64_t *  daughter 
)
protected

◆ build_hypertree()

void PIOAdaptor::build_hypertree ( vtkHyperTreeGridNonOrientedCursor treeCursor,
int64_t  curIndex,
int64_t *  daughter 
)
protected

◆ add_amr_UG_scalar()

void PIOAdaptor::add_amr_UG_scalar ( vtkMultiBlockDataSet grid,
vtkStdString  varName,
int64_t *  daughter,
double *  data[],
int  numberOfComponents 
)
protected

◆ add_amr_HTG_scalar()

void PIOAdaptor::add_amr_HTG_scalar ( vtkMultiBlockDataSet grid,
vtkStdString  varName,
double *  data[],
int  numberOfComponents 
)
protected

Member Data Documentation

◆ Rank

int PIOAdaptor::Rank
protected

Definition at line 114 of file PIOAdaptor.h.

◆ TotalRank

int PIOAdaptor::TotalRank
protected

Definition at line 115 of file PIOAdaptor.h.

◆ pioData

PIO_DATA* PIOAdaptor::pioData
protected

Definition at line 118 of file PIOAdaptor.h.

◆ fieldsToRead

std::list<std::string> PIOAdaptor::fieldsToRead
protected

Definition at line 121 of file PIOAdaptor.h.

◆ descFileName

std::string PIOAdaptor::descFileName
protected

Definition at line 124 of file PIOAdaptor.h.

◆ dumpDirectory

std::string PIOAdaptor::dumpDirectory
protected

Definition at line 125 of file PIOAdaptor.h.

◆ dumpBaseName

std::string PIOAdaptor::dumpBaseName
protected

Definition at line 126 of file PIOAdaptor.h.

◆ dumpFileName

std::vector<std::string> PIOAdaptor::dumpFileName
protected

Definition at line 128 of file PIOAdaptor.h.

◆ numberOfTimeSteps

int PIOAdaptor::numberOfTimeSteps
protected

Definition at line 129 of file PIOAdaptor.h.

◆ timeSteps

double* PIOAdaptor::timeSteps
protected

Definition at line 130 of file PIOAdaptor.h.

◆ useHTG

bool PIOAdaptor::useHTG
protected

Definition at line 133 of file PIOAdaptor.h.

◆ useTracer

bool PIOAdaptor::useTracer
protected

Definition at line 134 of file PIOAdaptor.h.

◆ useFloat64

bool PIOAdaptor::useFloat64
protected

Definition at line 135 of file PIOAdaptor.h.

◆ hasTracers

bool PIOAdaptor::hasTracers
protected

Definition at line 136 of file PIOAdaptor.h.

◆ variableName

std::vector<std::string> PIOAdaptor::variableName
protected

Definition at line 139 of file PIOAdaptor.h.

◆ variableDefault

std::vector<std::string> PIOAdaptor::variableDefault
protected

Definition at line 140 of file PIOAdaptor.h.

◆ indexNodeLeaf

std::vector<int> PIOAdaptor::indexNodeLeaf
protected

Definition at line 144 of file PIOAdaptor.h.


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