particle io for cartesian coordinates, double percision More...
#include <PointParticleIO.hpp>
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 |
particle io for cartesian coordinates, double percision
|
inline |
Construct a new Fluid Cart Regular D object.
|
inline |
Destroy the Fluid Cart Regular D object.
References fileio::PointParticleCartRegularD< N_dim >::_count, and fileio::PointParticleCartRegularD< N_dim >::_displacement.
auto & fileio::PointParticleCartRegularD< N_dim >::AddPPField | ( | const std::string | fieldname, |
auto & | vecdata | ||
) |
References fileio::AddAttribute(), fileio::AddDataSet(), fileio::CreatePointParticleCompound(), and fileio::DestroyCompound().
auto & fileio::PointParticleCartRegularD< N_dim >::AddPPField | ( | const std::string | fieldname, |
auto | data[], | ||
long unsigned int | len | ||
) |
References fileio::AddAttribute(), fileio::AddDataSet(), and fileio::DestroyCompound().
void fileio::PointParticleCartRegularD< N_dim >::CloseFile |
Close opened hdf5 file.
auto fileio::PointParticleCartRegularD< N_dim >::CreateFile | ( | const int | istep, |
const std::string | ftype | ||
) |
Create a hdf5 File.
istep | computation step |
ftype | select a file style, onestep/mid |
References fileio::AddAttribute(), fileio::intTostr(), fileio::PPFields(), fileio::PPFileProps(), fileio::PPOthers(), and fileio::PPTypes().
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().
void fileio::PointParticleCartRegularD< N_dim >::Print |
Print the abstract of the current file attributes.
References fileio::intTostr().
auto & fileio::PointParticleCartRegularD< N_dim >::ReadPPField | ( | const std::string | fieldname, |
auto & | vecdata | ||
) |
References fileio::ReadDataSet().
|
inline |
Set the File Attributes object not to create attribute, just set the standard attribute to the buffer in current object.
name | attribute name |
val | attribute value |
References fileio::PointParticleCartRegularD< N_dim >::_casename, fileio::PointParticleCartRegularD< N_dim >::_filenameprefix, fileio::PointParticleCartRegularD< N_dim >::_filepath, fileio::PointParticleCartRegularD< N_dim >::_filestyle, and fileio::strToLower().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
hid_t fileio::PointParticleCartRegularD< N_dim >::fieldid |
hid_t fileio::PointParticleCartRegularD< N_dim >::fileid |
handles of HDF5
hid_t fileio::PointParticleCartRegularD< N_dim >::filepropid |
hid_t fileio::PointParticleCartRegularD< N_dim >::otherinfoid |
hid_t fileio::PointParticleCartRegularD< N_dim >::parttypeid |