PhyStar  v0.0.0 thu24
fileio::PointParticleCartRegularD< N_dim > Class Template Reference

particle io for cartesian coordinates, double percision More...

#include <PointParticleIO.hpp>

Collaboration diagram for fileio::PointParticleCartRegularD< N_dim >:

Public Member Functions

 PointParticleCartRegularD ()
 Construct a new Fluid Cart Regular D object. More...
 
 ~PointParticleCartRegularD ()
 Destroy the Fluid Cart Regular D object. More...
 
auto & SetFileAttr (std::string name, std::string val)
 Set the File Attributes object not to create attribute, just set the standard attribute to the buffer in current object. More...
 
void Print ()
 Print the abstract of the current file attributes. More...
 
auto CreateFile (const int istep, const std::string ftype)
 Create a hdf5 File. More...
 
void CloseFile ()
 Close opened hdf5 file. More...
 
auto & AddPPField (const std::string fieldname, auto data[], long unsigned int len)
 
auto & AddPPField (const std::string fieldname, auto &vecdata)
 
auto OpenFile (const int istep, const std::string ftype)
 
auto & ReadPPField (const std::string fieldname, auto &vecdata)
 

Public Attributes

hid_t fileid
 handles of HDF5 More...
 
hid_t filepropid
 
hid_t parttypeid
 
hid_t otherinfoid
 
hid_t fieldid
 

Private Attributes

const int _dim = N_dim
 
std::string _casename = "default"
 
std::string _filestyle = "onestep"
 
std::string _filepath = "./"
 
std::string _filenameprefix = "ppfield"
 
int _numbernamelength = 7
 
long unsigned long * _count = nullptr
 
long unsigned long * _displacement = nullptr
 
int _proc = 1
 
int _rank = 0
 

Detailed Description

template<int N_dim>
class fileio::PointParticleCartRegularD< N_dim >

particle io for cartesian coordinates, double percision

Constructor & Destructor Documentation

◆ PointParticleCartRegularD()

template<int N_dim>
fileio::PointParticleCartRegularD< N_dim >::PointParticleCartRegularD ( )
inline

Construct a new Fluid Cart Regular D object.

◆ ~PointParticleCartRegularD()

Member Function Documentation

◆ AddPPField() [1/2]

template<int N_dim>
auto & fileio::PointParticleCartRegularD< N_dim >::AddPPField ( const std::string  fieldname,
auto &  vecdata 
)

◆ AddPPField() [2/2]

template<int N_dim>
auto & fileio::PointParticleCartRegularD< N_dim >::AddPPField ( const std::string  fieldname,
auto  data[],
long unsigned int  len 
)

References fileio::AddAttribute(), fileio::AddDataSet(), and fileio::DestroyCompound().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CloseFile()

template<int N_dim>
void fileio::PointParticleCartRegularD< N_dim >::CloseFile

Close opened hdf5 file.

Here is the caller graph for this function:

◆ CreateFile()

template<int N_dim>
auto fileio::PointParticleCartRegularD< N_dim >::CreateFile ( const int  istep,
const std::string  ftype 
)

Create a hdf5 File.

Parameters
istepcomputation step
ftypeselect a file style, onestep/mid
Returns
auto id of opened file

References fileio::AddAttribute(), fileio::intTostr(), fileio::PPFields(), fileio::PPFileProps(), fileio::PPOthers(), and fileio::PPTypes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OpenFile()

template<int N_dim>
auto fileio::PointParticleCartRegularD< N_dim >::OpenFile ( const int  istep,
const std::string  ftype 
)

References fileio::intTostr(), fileio::PPFields(), fileio::PPFileProps(), fileio::PPOthers(), fileio::PPTypes(), fileio::ReadAttribute(), and fileio::ReadStringAttribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Print()

template<int N_dim>
void fileio::PointParticleCartRegularD< N_dim >::Print

Print the abstract of the current file attributes.

References fileio::intTostr().

Here is the call graph for this function:

◆ ReadPPField()

template<int N_dim>
auto & fileio::PointParticleCartRegularD< N_dim >::ReadPPField ( const std::string  fieldname,
auto &  vecdata 
)

References fileio::ReadDataSet().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetFileAttr()

template<int N_dim>
auto& fileio::PointParticleCartRegularD< N_dim >::SetFileAttr ( std::string  name,
std::string  val 
)
inline

Set the File Attributes object not to create attribute, just set the standard attribute to the buffer in current object.

Parameters
nameattribute name
valattribute value
Returns
auto& *this

References fileio::PointParticleCartRegularD< N_dim >::_casename, fileio::PointParticleCartRegularD< N_dim >::_filenameprefix, fileio::PointParticleCartRegularD< N_dim >::_filepath, fileio::PointParticleCartRegularD< N_dim >::_filestyle, and fileio::strToLower().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _casename

template<int N_dim>
std::string fileio::PointParticleCartRegularD< N_dim >::_casename = "default"
private

◆ _count

template<int N_dim>
long unsigned long* fileio::PointParticleCartRegularD< N_dim >::_count = nullptr
private

◆ _dim

template<int N_dim>
const int fileio::PointParticleCartRegularD< N_dim >::_dim = N_dim
private

◆ _displacement

template<int N_dim>
long unsigned long* fileio::PointParticleCartRegularD< N_dim >::_displacement = nullptr
private

◆ _filenameprefix

template<int N_dim>
std::string fileio::PointParticleCartRegularD< N_dim >::_filenameprefix = "ppfield"
private

◆ _filepath

template<int N_dim>
std::string fileio::PointParticleCartRegularD< N_dim >::_filepath = "./"
private

◆ _filestyle

template<int N_dim>
std::string fileio::PointParticleCartRegularD< N_dim >::_filestyle = "onestep"
private

◆ _numbernamelength

template<int N_dim>
int fileio::PointParticleCartRegularD< N_dim >::_numbernamelength = 7
private

◆ _proc

template<int N_dim>
int fileio::PointParticleCartRegularD< N_dim >::_proc = 1
private

◆ _rank

template<int N_dim>
int fileio::PointParticleCartRegularD< N_dim >::_rank = 0
private

◆ fieldid

template<int N_dim>
hid_t fileio::PointParticleCartRegularD< N_dim >::fieldid

◆ fileid

template<int N_dim>
hid_t fileio::PointParticleCartRegularD< N_dim >::fileid

handles of HDF5

◆ filepropid

template<int N_dim>
hid_t fileio::PointParticleCartRegularD< N_dim >::filepropid

◆ otherinfoid

template<int N_dim>
hid_t fileio::PointParticleCartRegularD< N_dim >::otherinfoid

◆ parttypeid

template<int N_dim>
hid_t fileio::PointParticleCartRegularD< N_dim >::parttypeid

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