VTK  9.2.6
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 ()
 
void collectMaterialVariableMetaData ()
 
void addMaterialVariable (vtkStdString &pioFieldName, std::vector< std::string > matident)
 
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::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
 
int64_t numCells
 
std::vector< int > indexNodeLeaf
 
std::map< std::string, PIOMaterialVariable * > matVariables
 
int numMaterials
 
AdaptorImpl * Impl
 

Detailed Description

Definition at line 42 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 55 of file PIOAdaptor.h.

◆ GetSimulationTime()

double PIOAdaptor::GetSimulationTime ( int step)
inline

Definition at line 56 of file PIOAdaptor.h.

◆ GetCycleIndex()

double PIOAdaptor::GetCycleIndex ( int step)
inline

Definition at line 57 of file PIOAdaptor.h.

◆ GetPIOFileIndex()

double PIOAdaptor::GetPIOFileIndex ( int step)
inline

Definition at line 58 of file PIOAdaptor.h.

◆ GetNumberOfVariables()

int PIOAdaptor::GetNumberOfVariables ( )
inline

Definition at line 60 of file PIOAdaptor.h.

◆ GetVariableName()

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

Definition at line 61 of file PIOAdaptor.h.

◆ GetNumberOfDefaultVariables()

int PIOAdaptor::GetNumberOfDefaultVariables ( )
inline

Definition at line 62 of file PIOAdaptor.h.

◆ GetVariableDefault()

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

Definition at line 63 of file PIOAdaptor.h.

◆ GetHyperTreeGrid()

bool PIOAdaptor::GetHyperTreeGrid ( )
inline

Definition at line 66 of file PIOAdaptor.h.

◆ SetHyperTreeGrid()

void PIOAdaptor::SetHyperTreeGrid ( bool val)
inline

Definition at line 67 of file PIOAdaptor.h.

◆ GetTracers()

bool PIOAdaptor::GetTracers ( )
inline

Definition at line 70 of file PIOAdaptor.h.

◆ SetTracers()

void PIOAdaptor::SetTracers ( bool val)
inline

Definition at line 71 of file PIOAdaptor.h.

◆ GetFloat64()

bool PIOAdaptor::GetFloat64 ( )
inline

Definition at line 74 of file PIOAdaptor.h.

◆ SetFloat64()

void PIOAdaptor::SetFloat64 ( bool val)
inline

Definition at line 75 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

◆ collectMaterialVariableMetaData()

void PIOAdaptor::collectMaterialVariableMetaData ( )
protected

◆ addMaterialVariable()

void PIOAdaptor::addMaterialVariable ( vtkStdString & pioFieldName,
std::vector< std::string > matident )
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 133 of file PIOAdaptor.h.

◆ Rank

int PIOAdaptor::Rank
protected

Definition at line 134 of file PIOAdaptor.h.

◆ TotalRank

int PIOAdaptor::TotalRank
protected

Definition at line 135 of file PIOAdaptor.h.

◆ pioData

PIO_DATA* PIOAdaptor::pioData
protected

Definition at line 138 of file PIOAdaptor.h.

◆ descFileName

std::string PIOAdaptor::descFileName
protected

Definition at line 141 of file PIOAdaptor.h.

◆ dumpBaseName

std::string PIOAdaptor::dumpBaseName
protected

Definition at line 142 of file PIOAdaptor.h.

◆ dumpDirectory

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

Definition at line 143 of file PIOAdaptor.h.

◆ dumpFileName

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

Definition at line 144 of file PIOAdaptor.h.

◆ CycleIndex

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

Definition at line 147 of file PIOAdaptor.h.

◆ SimulationTime

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

Definition at line 148 of file PIOAdaptor.h.

◆ PIOFileIndex

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

Definition at line 149 of file PIOAdaptor.h.

◆ useHTG

bool PIOAdaptor::useHTG
protected

Definition at line 152 of file PIOAdaptor.h.

◆ useTracer

bool PIOAdaptor::useTracer
protected

Definition at line 153 of file PIOAdaptor.h.

◆ useFloat64

bool PIOAdaptor::useFloat64
protected

Definition at line 154 of file PIOAdaptor.h.

◆ hasTracers

bool PIOAdaptor::hasTracers
protected

Definition at line 155 of file PIOAdaptor.h.

◆ variableName

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

Definition at line 158 of file PIOAdaptor.h.

◆ variableDefault

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

Definition at line 159 of file PIOAdaptor.h.

◆ numCells

int64_t PIOAdaptor::numCells
protected

Definition at line 163 of file PIOAdaptor.h.

◆ indexNodeLeaf

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

Definition at line 167 of file PIOAdaptor.h.

◆ matVariables

std::map<std::string, PIOMaterialVariable*> PIOAdaptor::matVariables
protected

Definition at line 170 of file PIOAdaptor.h.

◆ numMaterials

int PIOAdaptor::numMaterials
protected

Definition at line 171 of file PIOAdaptor.h.

◆ Impl

AdaptorImpl* PIOAdaptor::Impl
protected

Definition at line 174 of file PIOAdaptor.h.


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