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

class for reading PIO (Parallel Input Output) data files More...

#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)
 
PIO_DATAopenPIODataFile (const char *filename)
 
int collectMetaData (const char *DumpDescFile)
 
void collectVariableMetaData ()
 
void collectMaterialVariableMetaData ()
 
void addMaterialVariable (vtkStdString &pioFieldName, std::valarray< std::string > matident)
 
void addMaterialVariableEntries (std::string &prefix, std::string &baseVar, std::string &var, std::valarray< 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
 
bool knownFormat
 
bool isHDF5
 
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

class for reading PIO (Parallel Input Output) data files

This class reads in dump files generated from xRage, a LANL physics code. The PIO (Parallel Input Output) library is used to create the dump files.

Thanks:
Developed by Patricia Fasel at Los Alamos National Laboratory

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

◆ GetSimulationTime()

double PIOAdaptor::GetSimulationTime ( int  step)
inline

Definition at line 58 of file PIOAdaptor.h.

◆ GetCycleIndex()

double PIOAdaptor::GetCycleIndex ( int  step)
inline

Definition at line 59 of file PIOAdaptor.h.

◆ GetPIOFileIndex()

double PIOAdaptor::GetPIOFileIndex ( int  step)
inline

Definition at line 60 of file PIOAdaptor.h.

◆ GetNumberOfVariables()

int PIOAdaptor::GetNumberOfVariables ( )
inline

Definition at line 62 of file PIOAdaptor.h.

◆ GetVariableName()

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

Definition at line 63 of file PIOAdaptor.h.

◆ GetNumberOfDefaultVariables()

int PIOAdaptor::GetNumberOfDefaultVariables ( )
inline

Definition at line 64 of file PIOAdaptor.h.

◆ GetVariableDefault()

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

Definition at line 65 of file PIOAdaptor.h.

◆ GetHyperTreeGrid()

bool PIOAdaptor::GetHyperTreeGrid ( )
inline

Definition at line 68 of file PIOAdaptor.h.

◆ SetHyperTreeGrid()

void PIOAdaptor::SetHyperTreeGrid ( bool  val)
inline

Definition at line 69 of file PIOAdaptor.h.

◆ GetTracers()

bool PIOAdaptor::GetTracers ( )
inline

Definition at line 72 of file PIOAdaptor.h.

◆ SetTracers()

void PIOAdaptor::SetTracers ( bool  val)
inline

Definition at line 73 of file PIOAdaptor.h.

◆ GetFloat64()

bool PIOAdaptor::GetFloat64 ( )
inline

Definition at line 76 of file PIOAdaptor.h.

◆ SetFloat64()

void PIOAdaptor::SetFloat64 ( bool  val)
inline

Definition at line 77 of file PIOAdaptor.h.

◆ parsePIOFile()

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

◆ openPIODataFile()

PIO_DATA* PIOAdaptor::openPIODataFile ( const char *  filename)
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::valarray< std::string >  matident 
)
protected

◆ addMaterialVariableEntries()

void PIOAdaptor::addMaterialVariableEntries ( std::string &  prefix,
std::string &  baseVar,
std::string &  var,
std::valarray< 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 138 of file PIOAdaptor.h.

◆ Rank

int PIOAdaptor::Rank
protected

Definition at line 139 of file PIOAdaptor.h.

◆ TotalRank

int PIOAdaptor::TotalRank
protected

Definition at line 140 of file PIOAdaptor.h.

◆ pioData

PIO_DATA* PIOAdaptor::pioData
protected

Definition at line 143 of file PIOAdaptor.h.

◆ knownFormat

bool PIOAdaptor::knownFormat
protected

Definition at line 145 of file PIOAdaptor.h.

◆ isHDF5

bool PIOAdaptor::isHDF5
protected

Definition at line 146 of file PIOAdaptor.h.

◆ descFileName

std::string PIOAdaptor::descFileName
protected

Definition at line 149 of file PIOAdaptor.h.

◆ dumpBaseName

std::string PIOAdaptor::dumpBaseName
protected

Definition at line 150 of file PIOAdaptor.h.

◆ dumpDirectory

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

Definition at line 151 of file PIOAdaptor.h.

◆ dumpFileName

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

Definition at line 152 of file PIOAdaptor.h.

◆ CycleIndex

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

Definition at line 155 of file PIOAdaptor.h.

◆ SimulationTime

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

Definition at line 156 of file PIOAdaptor.h.

◆ PIOFileIndex

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

Definition at line 157 of file PIOAdaptor.h.

◆ useHTG

bool PIOAdaptor::useHTG
protected

Definition at line 160 of file PIOAdaptor.h.

◆ useTracer

bool PIOAdaptor::useTracer
protected

Definition at line 161 of file PIOAdaptor.h.

◆ useFloat64

bool PIOAdaptor::useFloat64
protected

Definition at line 162 of file PIOAdaptor.h.

◆ hasTracers

bool PIOAdaptor::hasTracers
protected

Definition at line 163 of file PIOAdaptor.h.

◆ variableName

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

Definition at line 166 of file PIOAdaptor.h.

◆ variableDefault

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

Definition at line 167 of file PIOAdaptor.h.

◆ numCells

int64_t PIOAdaptor::numCells
protected

Definition at line 171 of file PIOAdaptor.h.

◆ indexNodeLeaf

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

Definition at line 175 of file PIOAdaptor.h.

◆ matVariables

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

Definition at line 178 of file PIOAdaptor.h.

◆ numMaterials

int PIOAdaptor::numMaterials
protected

Definition at line 179 of file PIOAdaptor.h.

◆ Impl

AdaptorImpl* PIOAdaptor::Impl
protected

Definition at line 182 of file PIOAdaptor.h.


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