VTK  9.4.20241124
Public Member Functions | Public Attributes | List of all members
PIO_DATA_PIO Class Reference

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

#include <PIODataPIO.h>

Inheritance diagram for PIO_DATA_PIO:
[legend]
Collaboration diagram for PIO_DATA_PIO:
[legend]

Public Member Functions

 PIO_DATA_PIO (const char *piofile=nullptr, const std::list< std::string > *fields_to_read=nullptr, bool _defer_read_data=true, const std::set< const char *, Cstring_less > *rdata=nullptr, const std::set< const char *, Cstring_less > *cdata=nullptr)
 
 ~PIO_DATA_PIO () override
 
bool GetPIOfileTime (const char *, double &)
 
void print (std::ostream &)
 
void print (const char *)
 
bool set_scalar_field (std::valarray< int > &, const char *) override
 
bool set_scalar_field (std::valarray< int64_t > &, const char *) override
 
bool set_scalar_field (std::valarray< double > &, const char *) override
 
bool set_vector_field (std::valarray< std::valarray< double > > &, const char *) override
 
bool good_read () override
 
const char * get_name () const
 
bool get_reverse_endian () const
 
int get_PIO_VERSION () const
 
int get_PIO_NAME_LENGTH () const
 
int get_PIO_HEADER_LENGTH () const
 
int get_PIO_INDEX_LENGTH () const
 
const char * get_pio_dandt () const
 
int get_pio_num () const override
 
int get_pio_num_with_size (int64_t n) const
 
int get_pio_signature () const
 
int get_cycle () override
 
double get_simtime () override
 
int get_dimension () override
 
bool get_gridsize (std::valarray< int > &) override
 
bool get_gridscale (std::valarray< double > &) override
 
bool get_gridorigin (std::valarray< double > &) override
 
std::string get_eap_version () override
 
std::string get_username () override
 
std::string get_problemname () override
 
bool get_material_names (std::valarray< std::string > &) override
 
bool get_tracer_variable_names (std::valarray< std::string > &) override
 
PIO_FIELDget_pio_field () const override
 
void GetPIOData (PIO_FIELD &, const double *&, const char *&)
 
void GetPIOData (PIO_FIELD &, const double *&)
 
void GetPIOData (PIO_FIELD &, const char *&)
 
const double * GetPIOData (PIO_FIELD &)
 
void GetPIOData (const char *, const double *&, const char *&)
 
void GetPIOData (const char *, const double *&)
 
void GetPIOData (const char *, const char *&)
 
const double * GetPIOData (const char *)
 
double GetPIOData (const char *, int)
 
bool reconstruct_chunk_field (int64_t numcell, std::valarray< double > &va, const char *prefix, const char *var, int materialId) override
 
int get_num_components (const char *) const override
 
int get_num_materials () const override
 
int64_t get_num_cells () override
 
bool has_field (const char *) override
 
void AddRealData (const char *_name)
 
void AddCharData (const char *_name)
 
void FreePIOData (PIO_FIELD &pio_field)
 
- Public Member Functions inherited from PIO_DATA
 PIO_DATA ()
 
virtual ~PIO_DATA ()=0
 
virtual bool good_read ()=0
 
virtual bool set_scalar_field (std::valarray< int > &, const char *)=0
 
virtual bool set_scalar_field (std::valarray< int64_t > &, const char *)=0
 
virtual bool set_scalar_field (std::valarray< double > &, const char *)=0
 
virtual bool set_vector_field (std::valarray< std::valarray< double > > &, const char *)=0
 
virtual int get_pio_num () const =0
 
virtual PIO_FIELDget_pio_field () const =0
 
virtual int get_num_components (const char *) const =0
 
virtual int get_num_materials () const =0
 
virtual int64_t get_num_cells ()=0
 
virtual int get_cycle ()=0
 
virtual double get_simtime ()=0
 
virtual int get_dimension ()=0
 
virtual bool get_gridsize (std::valarray< int > &)=0
 
virtual bool get_gridscale (std::valarray< double > &)=0
 
virtual bool get_gridorigin (std::valarray< double > &)=0
 
virtual std::string get_eap_version ()=0
 
virtual std::string get_username ()=0
 
virtual std::string get_problemname ()=0
 
virtual bool get_material_names (std::valarray< std::string > &)=0
 
virtual bool get_tracer_variable_names (std::valarray< std::string > &)=0
 
virtual bool has_field (const char *)=0
 
virtual bool reconstruct_chunk_field (int64_t numcell, std::valarray< double > &va, const char *prefix, const char *var, int materialId)=0
 

Public Attributes

bool verbose
 
- Public Attributes inherited from PIO_DATA
VAR_MAP VarMMap
 

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 36 of file PIODataPIO.h.

Constructor & Destructor Documentation

◆ PIO_DATA_PIO()

PIO_DATA_PIO::PIO_DATA_PIO ( const char *  piofile = nullptr,
const std::list< std::string > *  fields_to_read = nullptr,
bool  _defer_read_data = true,
const std::set< const char *, Cstring_less > *  rdata = nullptr,
const std::set< const char *, Cstring_less > *  cdata = nullptr 
)

◆ ~PIO_DATA_PIO()

PIO_DATA_PIO::~PIO_DATA_PIO ( )
override

Member Function Documentation

◆ GetPIOfileTime()

bool PIO_DATA_PIO::GetPIOfileTime ( const char *  ,
double &   
)

◆ print() [1/2]

void PIO_DATA_PIO::print ( std::ostream &  )

◆ print() [2/2]

void PIO_DATA_PIO::print ( const char *  )

◆ set_scalar_field() [1/3]

bool PIO_DATA_PIO::set_scalar_field ( std::valarray< int > &  ,
const char *   
)
overridevirtual

Implements PIO_DATA.

◆ set_scalar_field() [2/3]

bool PIO_DATA_PIO::set_scalar_field ( std::valarray< int64_t > &  ,
const char *   
)
overridevirtual

Implements PIO_DATA.

◆ set_scalar_field() [3/3]

bool PIO_DATA_PIO::set_scalar_field ( std::valarray< double > &  ,
const char *   
)
overridevirtual

Implements PIO_DATA.

◆ set_vector_field()

bool PIO_DATA_PIO::set_vector_field ( std::valarray< std::valarray< double > > &  ,
const char *   
)
overridevirtual

Implements PIO_DATA.

◆ good_read()

bool PIO_DATA_PIO::good_read ( )
inlineoverridevirtual

Implements PIO_DATA.

Definition at line 51 of file PIODataPIO.h.

◆ get_name()

const char * PIO_DATA_PIO::get_name ( ) const
inline

Definition at line 52 of file PIODataPIO.h.

◆ get_reverse_endian()

bool PIO_DATA_PIO::get_reverse_endian ( ) const
inline

Definition at line 53 of file PIODataPIO.h.

◆ get_PIO_VERSION()

int PIO_DATA_PIO::get_PIO_VERSION ( ) const
inline

Definition at line 54 of file PIODataPIO.h.

◆ get_PIO_NAME_LENGTH()

int PIO_DATA_PIO::get_PIO_NAME_LENGTH ( ) const
inline

Definition at line 55 of file PIODataPIO.h.

◆ get_PIO_HEADER_LENGTH()

int PIO_DATA_PIO::get_PIO_HEADER_LENGTH ( ) const
inline

Definition at line 56 of file PIODataPIO.h.

◆ get_PIO_INDEX_LENGTH()

int PIO_DATA_PIO::get_PIO_INDEX_LENGTH ( ) const
inline

Definition at line 57 of file PIODataPIO.h.

◆ get_pio_dandt()

const char * PIO_DATA_PIO::get_pio_dandt ( ) const
inline

Definition at line 58 of file PIODataPIO.h.

◆ get_pio_num()

int PIO_DATA_PIO::get_pio_num ( ) const
overridevirtual

Implements PIO_DATA.

◆ get_pio_num_with_size()

int PIO_DATA_PIO::get_pio_num_with_size ( int64_t  n) const

◆ get_pio_signature()

int PIO_DATA_PIO::get_pio_signature ( ) const
inline

Definition at line 61 of file PIODataPIO.h.

◆ get_cycle()

int PIO_DATA_PIO::get_cycle ( )
overridevirtual

Implements PIO_DATA.

◆ get_simtime()

double PIO_DATA_PIO::get_simtime ( )
overridevirtual

Implements PIO_DATA.

◆ get_dimension()

int PIO_DATA_PIO::get_dimension ( )
overridevirtual

Implements PIO_DATA.

◆ get_gridsize()

bool PIO_DATA_PIO::get_gridsize ( std::valarray< int > &  )
overridevirtual

Implements PIO_DATA.

◆ get_gridscale()

bool PIO_DATA_PIO::get_gridscale ( std::valarray< double > &  )
overridevirtual

Implements PIO_DATA.

◆ get_gridorigin()

bool PIO_DATA_PIO::get_gridorigin ( std::valarray< double > &  )
overridevirtual

Implements PIO_DATA.

◆ get_eap_version()

std::string PIO_DATA_PIO::get_eap_version ( )
overridevirtual

Implements PIO_DATA.

◆ get_username()

std::string PIO_DATA_PIO::get_username ( )
overridevirtual

Implements PIO_DATA.

◆ get_problemname()

std::string PIO_DATA_PIO::get_problemname ( )
overridevirtual

Implements PIO_DATA.

◆ get_material_names()

bool PIO_DATA_PIO::get_material_names ( std::valarray< std::string > &  )
overridevirtual

Implements PIO_DATA.

◆ get_tracer_variable_names()

bool PIO_DATA_PIO::get_tracer_variable_names ( std::valarray< std::string > &  )
overridevirtual

Implements PIO_DATA.

◆ get_pio_field()

PIO_FIELD * PIO_DATA_PIO::get_pio_field ( ) const
overridevirtual

Implements PIO_DATA.

◆ GetPIOData() [1/9]

void PIO_DATA_PIO::GetPIOData ( PIO_FIELD ,
const double *&  ,
const char *&   
)

◆ GetPIOData() [2/9]

void PIO_DATA_PIO::GetPIOData ( PIO_FIELD ,
const double *&   
)

◆ GetPIOData() [3/9]

void PIO_DATA_PIO::GetPIOData ( PIO_FIELD ,
const char *&   
)

◆ GetPIOData() [4/9]

const double * PIO_DATA_PIO::GetPIOData ( PIO_FIELD )

◆ GetPIOData() [5/9]

void PIO_DATA_PIO::GetPIOData ( const char *  ,
const double *&  ,
const char *&   
)

◆ GetPIOData() [6/9]

void PIO_DATA_PIO::GetPIOData ( const char *  ,
const double *&   
)

◆ GetPIOData() [7/9]

void PIO_DATA_PIO::GetPIOData ( const char *  ,
const char *&   
)

◆ GetPIOData() [8/9]

const double * PIO_DATA_PIO::GetPIOData ( const char *  )

◆ GetPIOData() [9/9]

double PIO_DATA_PIO::GetPIOData ( const char *  ,
int   
)

◆ reconstruct_chunk_field()

bool PIO_DATA_PIO::reconstruct_chunk_field ( int64_t  numcell,
std::valarray< double > &  va,
const char *  prefix,
const char *  var,
int  materialId 
)
overridevirtual

Implements PIO_DATA.

◆ get_num_components()

int PIO_DATA_PIO::get_num_components ( const char *  ) const
overridevirtual

Implements PIO_DATA.

◆ get_num_materials()

int PIO_DATA_PIO::get_num_materials ( ) const
overridevirtual

Implements PIO_DATA.

◆ get_num_cells()

int64_t PIO_DATA_PIO::get_num_cells ( )
overridevirtual

Implements PIO_DATA.

◆ has_field()

bool PIO_DATA_PIO::has_field ( const char *  )
overridevirtual

Implements PIO_DATA.

◆ AddRealData()

void PIO_DATA_PIO::AddRealData ( const char *  _name)
inline

Definition at line 91 of file PIODataPIO.h.

◆ AddCharData()

void PIO_DATA_PIO::AddCharData ( const char *  _name)
inline

Definition at line 96 of file PIODataPIO.h.

◆ FreePIOData()

void PIO_DATA_PIO::FreePIOData ( PIO_FIELD pio_field)

Member Data Documentation

◆ verbose

bool PIO_DATA_PIO::verbose

Definition at line 102 of file PIODataPIO.h.


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