VTK  9.1.0
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 (vtkMultiProcessController *ctrl)
 
 ~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 GetSimulationTime (int step)
 
double GetCycleIndex (int step)
 
double GetPIOFileIndex (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

int parsePIOFile (const char *DumpDescFile)
 
int collectMetaData (const char *DumpDescFile)
 
void collectVariableMetaData ()
 
std::string trimString (const std::string &str)
 
void create_tracer_UG (vtkMultiBlockDataSet *grid)
 
void create_amr_UG (vtkMultiBlockDataSet *grid)
 
void create_amr_UG_1D (vtkMultiBlockDataSet *grid, int numberOfCells, int *cell_level, int64_t *cell_daughter, double *cell_center[1])
 
void create_amr_UG_2D (vtkMultiBlockDataSet *grid, int numberOfCells, int *cell_level, int64_t *cell_daughter, double *cell_center[2])
 
void create_amr_UG_3D (vtkMultiBlockDataSet *grid, int numberOfCells, int *cell_level, int64_t *cell_daughter, double *cell_center[3])
 
void create_amr_HTG (vtkMultiBlockDataSet *grid)
 
int count_hypertree (int64_t curIndex, int64_t *daughter)
 
void build_hypertree (vtkHyperTreeGridNonOrientedCursor *treeCursor, int64_t curIndex, int64_t *daughter)
 
void load_variable_data_UG (vtkMultiBlockDataSet *grid, vtkDataArraySelection *cellSelection)
 
void add_amr_UG_scalar (vtkMultiBlockDataSet *grid, vtkStdString varName, int64_t *daughter, double *data[], int numberOfCells, int numberOfComponents)
 
void load_variable_data_HTG (vtkMultiBlockDataSet *grid, vtkDataArraySelection *cellSelection)
 
void add_amr_HTG_scalar (vtkMultiBlockDataSet *grid, vtkStdString varName, double *data[], int numberOfComponents)
 

Protected Attributes

vtkMultiProcessControllerController
 
int Rank
 
int TotalRank
 
PIO_DATApioData
 
std::list< std::string > fieldsToRead
 
std::string descFileName
 
std::string dumpBaseName
 
std::vector< std::string > dumpDirectory
 
std::vector< std::string > dumpFileName
 
std::vector< double > CycleIndex
 
std::vector< double > SimulationTime
 
std::vector< double > PIOFileIndex
 
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 28 of file PIOAdaptor.h.

Constructor & Destructor Documentation

◆ PIOAdaptor()

PIOAdaptor::PIOAdaptor ( vtkMultiProcessController ctrl)

◆ ~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 41 of file PIOAdaptor.h.

◆ GetSimulationTime()

double PIOAdaptor::GetSimulationTime ( int  step)
inline

Definition at line 42 of file PIOAdaptor.h.

◆ GetCycleIndex()

double PIOAdaptor::GetCycleIndex ( int  step)
inline

Definition at line 43 of file PIOAdaptor.h.

◆ GetPIOFileIndex()

double PIOAdaptor::GetPIOFileIndex ( int  step)
inline

Definition at line 44 of file PIOAdaptor.h.

◆ GetNumberOfVariables()

int PIOAdaptor::GetNumberOfVariables ( )
inline

Definition at line 46 of file PIOAdaptor.h.

◆ GetVariableName()

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

Definition at line 47 of file PIOAdaptor.h.

◆ GetNumberOfDefaultVariables()

int PIOAdaptor::GetNumberOfDefaultVariables ( )
inline

Definition at line 48 of file PIOAdaptor.h.

◆ GetVariableDefault()

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

Definition at line 49 of file PIOAdaptor.h.

◆ GetHyperTreeGrid()

bool PIOAdaptor::GetHyperTreeGrid ( )
inline

Definition at line 52 of file PIOAdaptor.h.

◆ SetHyperTreeGrid()

void PIOAdaptor::SetHyperTreeGrid ( bool  val)
inline

Definition at line 53 of file PIOAdaptor.h.

◆ GetTracers()

bool PIOAdaptor::GetTracers ( )
inline

Definition at line 56 of file PIOAdaptor.h.

◆ SetTracers()

void PIOAdaptor::SetTracers ( bool  val)
inline

Definition at line 57 of file PIOAdaptor.h.

◆ GetFloat64()

bool PIOAdaptor::GetFloat64 ( )
inline

Definition at line 60 of file PIOAdaptor.h.

◆ SetFloat64()

void PIOAdaptor::SetFloat64 ( bool  val)
inline

Definition at line 61 of file PIOAdaptor.h.

◆ parsePIOFile()

int PIOAdaptor::parsePIOFile ( const char *  DumpDescFile)
protected

◆ collectMetaData()

int PIOAdaptor::collectMetaData ( const char *  DumpDescFile)
protected

◆ collectVariableMetaData()

void PIOAdaptor::collectVariableMetaData ( )
protected

◆ trimString()

std::string PIOAdaptor::trimString ( const std::string &  str)
protected

◆ create_tracer_UG()

void PIOAdaptor::create_tracer_UG ( vtkMultiBlockDataSet grid)
protected

◆ create_amr_UG()

void PIOAdaptor::create_amr_UG ( vtkMultiBlockDataSet grid)
protected

◆ create_amr_UG_1D()

void PIOAdaptor::create_amr_UG_1D ( vtkMultiBlockDataSet grid,
int  numberOfCells,
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  numberOfCells,
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  numberOfCells,
int *  cell_level,
int64_t *  cell_daughter,
double *  cell_center[3] 
)
protected

◆ create_amr_HTG()

void PIOAdaptor::create_amr_HTG ( vtkMultiBlockDataSet grid)
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

◆ load_variable_data_UG()

void PIOAdaptor::load_variable_data_UG ( vtkMultiBlockDataSet grid,
vtkDataArraySelection cellSelection 
)
protected

◆ add_amr_UG_scalar()

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

◆ load_variable_data_HTG()

void PIOAdaptor::load_variable_data_HTG ( vtkMultiBlockDataSet grid,
vtkDataArraySelection cellSelection 
)
protected

◆ add_amr_HTG_scalar()

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

Member Data Documentation

◆ Controller

vtkMultiProcessController* PIOAdaptor::Controller
protected

Definition at line 117 of file PIOAdaptor.h.

◆ Rank

int PIOAdaptor::Rank
protected

Definition at line 118 of file PIOAdaptor.h.

◆ TotalRank

int PIOAdaptor::TotalRank
protected

Definition at line 119 of file PIOAdaptor.h.

◆ pioData

PIO_DATA* PIOAdaptor::pioData
protected

Definition at line 122 of file PIOAdaptor.h.

◆ fieldsToRead

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

Definition at line 125 of file PIOAdaptor.h.

◆ descFileName

std::string PIOAdaptor::descFileName
protected

Definition at line 128 of file PIOAdaptor.h.

◆ dumpBaseName

std::string PIOAdaptor::dumpBaseName
protected

Definition at line 129 of file PIOAdaptor.h.

◆ dumpDirectory

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

Definition at line 130 of file PIOAdaptor.h.

◆ dumpFileName

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

Definition at line 131 of file PIOAdaptor.h.

◆ CycleIndex

std::vector<double> PIOAdaptor::CycleIndex
protected

Definition at line 134 of file PIOAdaptor.h.

◆ SimulationTime

std::vector<double> PIOAdaptor::SimulationTime
protected

Definition at line 135 of file PIOAdaptor.h.

◆ PIOFileIndex

std::vector<double> PIOAdaptor::PIOFileIndex
protected

Definition at line 136 of file PIOAdaptor.h.

◆ useHTG

bool PIOAdaptor::useHTG
protected

Definition at line 139 of file PIOAdaptor.h.

◆ useTracer

bool PIOAdaptor::useTracer
protected

Definition at line 140 of file PIOAdaptor.h.

◆ useFloat64

bool PIOAdaptor::useFloat64
protected

Definition at line 141 of file PIOAdaptor.h.

◆ hasTracers

bool PIOAdaptor::hasTracers
protected

Definition at line 142 of file PIOAdaptor.h.

◆ variableName

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

Definition at line 145 of file PIOAdaptor.h.

◆ variableDefault

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

Definition at line 146 of file PIOAdaptor.h.

◆ indexNodeLeaf

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

Definition at line 150 of file PIOAdaptor.h.


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