PhyStar  v0.0.0 thu24
fileio Namespace Reference

Classes

class  FluidCartRegularD
 fluid io for cartesian coordinates, double percision More...
 
struct  IOPData
 
class  PointParticleCartRegularD
 particle io for cartesian coordinates, double percision More...
 

Typedefs

using IOPData3DBasicD = IOPData< 16, double, 3, unsigned int >
 
using IOPData2DBasicD = IOPData< 9, double, 3, unsigned int >
 
using IOPData3DOnlyFluidD = IOPData< 12, double, 3, unsigned int >
 
using IOPData2DOnlyFluidD = IOPData< 6, double, 3, unsigned int >
 

Enumerations

enum class  FileTag { Default = 0 , WithoutGhost }
 
enum  FluidGroup {
  kFileProp = 0 , kGeoMesh , kPhysPara , kOtherInfo ,
  kField
}
 

Functions

const auto FileProps ("/0-FileProps")
 
const auto DataSpace ("/1-DataSpace")
 
const auto PhysParams ("/2-PhysParams")
 
const auto Others ("/3-Others")
 
const auto Fields ("/4-Fields")
 
template<typename T_real = double>
static auto CreateComplexCompound ()
 
static void DestroyCompound (hid_t mytypeid)
 
static auto CreatePointParticleCompound (auto &pdata)
 
std::string & strToUpper (std::string &str)
 
std::string & strToLower (std::string &str)
 
std::string intTostr (int i, int size=7)
 
void AddAttribute (const hid_t id, const std::string attrname, const std::string strattr)
 
void AddAttribute (const hid_t id, const std::string attrname, const int intdata[], const int n)
 
void AddAttribute (const hid_t id, const std::string attrname, const double data[], const int n)
 
void AddAttribute (const hid_t id, const std::string attrname, const double data)
 
void AddAttribute (const hid_t id, const std::string attrname, const int intdata)
 
void AddAttribute (const hid_t id, const std::string attrname, const hsize_t intdata)
 
void AddDataSet (const hid_t id, const std::string dataname, const int intdata[], const int n)
 
void AddDataSet (const hid_t id, const std::string dataname, const unsigned long long intdata[], const int n)
 
void AddDataSet (const hid_t id, const std::string dataname, const double data[], const int n)
 
void AddDataSet (const hid_t id, const std::string dataname, const int intdata[], const int n0, const int n1)
 
void AddDataSet (const hid_t id, const std::string dataname, const double data[], const int n0, const int n1)
 
void AddDataSet (const hid_t id, const std::string dataname, const int intdata[], const int n0, const int n1, const int n2)
 
void AddDataSet (const hid_t id, const std::string dataname, const double data[], const int n0, const int n1, const int n2)
 
template<typename T_real >
void AddDataSetCplx (const hid_t id, const std::string dataname, const std::complex< T_real > data[], const int n0, const int n1, const int n2)
 
template<typename T_real >
void AddDataSetCplx (const hid_t id, const std::string dataname, const std::complex< T_real > data[], const int n0, const int n1)
 
template<typename T_real >
void AddDataSetCplx (const hid_t id, const std::string dataname, const std::complex< T_real > data[], const int n0)
 
auto ReadStringAttribute (const hid_t id, const std::string attrname)
 
void ReadAttribute (const hid_t id, const std::string attrname, int intdata[])
 
void ReadAttribute (const hid_t id, const std::string attrname, double data[])
 
void ReadDataSet (const hid_t id, const std::string dataname, int intdata[])
 
void ReadDataSet (const hid_t id, const std::string dataname, unsigned long long intdata[])
 
void ReadDataSet (const hid_t id, const std::string dataname, double data[])
 
const auto PPFileProps ("/0-FileProps")
 
const auto PPTypes ("/1-PartTypes")
 
const auto PPOthers ("/2-Others")
 
const auto PPFields ("/3-Fields")
 

Typedef Documentation

◆ IOPData2DBasicD

using fileio::IOPData2DBasicD = typedef IOPData<9, double, 3, unsigned int>

◆ IOPData2DOnlyFluidD

using fileio::IOPData2DOnlyFluidD = typedef IOPData<6, double, 3, unsigned int>

◆ IOPData3DBasicD

using fileio::IOPData3DBasicD = typedef IOPData<16, double, 3, unsigned int>

◆ IOPData3DOnlyFluidD

using fileio::IOPData3DOnlyFluidD = typedef IOPData<12, double, 3, unsigned int>

Enumeration Type Documentation

◆ FileTag

enum fileio::FileTag
strong
Enumerator
Default 
WithoutGhost 

◆ FluidGroup

Enumerator
kFileProp 
kGeoMesh 
kPhysPara 
kOtherInfo 
kField 

Function Documentation

◆ AddAttribute() [1/6]

void fileio::AddAttribute ( const hid_t  id,
const std::string  attrname,
const double  data 
)
inline

◆ AddAttribute() [2/6]

void fileio::AddAttribute ( const hid_t  id,
const std::string  attrname,
const double  data[],
const int  n 
)
inline

◆ AddAttribute() [3/6]

void fileio::AddAttribute ( const hid_t  id,
const std::string  attrname,
const hsize_t  intdata 
)
inline

◆ AddAttribute() [4/6]

void fileio::AddAttribute ( const hid_t  id,
const std::string  attrname,
const int  intdata 
)
inline

◆ AddAttribute() [5/6]

void fileio::AddAttribute ( const hid_t  id,
const std::string  attrname,
const int  intdata[],
const int  n 
)
inline

◆ AddAttribute() [6/6]

void fileio::AddAttribute ( const hid_t  id,
const std::string  attrname,
const std::string  strattr 
)
inline
Here is the caller graph for this function:

◆ AddDataSet() [1/7]

void fileio::AddDataSet ( const hid_t  id,
const std::string  dataname,
const double  data[],
const int  n 
)
inline

◆ AddDataSet() [2/7]

void fileio::AddDataSet ( const hid_t  id,
const std::string  dataname,
const double  data[],
const int  n0,
const int  n1 
)
inline

◆ AddDataSet() [3/7]

void fileio::AddDataSet ( const hid_t  id,
const std::string  dataname,
const double  data[],
const int  n0,
const int  n1,
const int  n2 
)
inline

◆ AddDataSet() [4/7]

void fileio::AddDataSet ( const hid_t  id,
const std::string  dataname,
const int  intdata[],
const int  n 
)
inline
Here is the caller graph for this function:

◆ AddDataSet() [5/7]

void fileio::AddDataSet ( const hid_t  id,
const std::string  dataname,
const int  intdata[],
const int  n0,
const int  n1 
)
inline

◆ AddDataSet() [6/7]

void fileio::AddDataSet ( const hid_t  id,
const std::string  dataname,
const int  intdata[],
const int  n0,
const int  n1,
const int  n2 
)
inline

◆ AddDataSet() [7/7]

void fileio::AddDataSet ( const hid_t  id,
const std::string  dataname,
const unsigned long long  intdata[],
const int  n 
)
inline

◆ AddDataSetCplx() [1/3]

template<typename T_real >
void fileio::AddDataSetCplx ( const hid_t  id,
const std::string  dataname,
const std::complex< T_real >  data[],
const int  n0 
)
inline

References DestroyCompound().

Here is the call graph for this function:

◆ AddDataSetCplx() [2/3]

template<typename T_real >
void fileio::AddDataSetCplx ( const hid_t  id,
const std::string  dataname,
const std::complex< T_real >  data[],
const int  n0,
const int  n1 
)
inline

References DestroyCompound().

Here is the call graph for this function:

◆ AddDataSetCplx() [3/3]

template<typename T_real >
void fileio::AddDataSetCplx ( const hid_t  id,
const std::string  dataname,
const std::complex< T_real >  data[],
const int  n0,
const int  n1,
const int  n2 
)
inline

References DestroyCompound().

Here is the call graph for this function:

◆ CreateComplexCompound()

template<typename T_real = double>
static auto fileio::CreateComplexCompound ( )
inlinestatic

◆ CreatePointParticleCompound()

static auto fileio::CreatePointParticleCompound ( auto &  pdata)
inlinestatic
Here is the caller graph for this function:

◆ DataSpace()

const auto fileio::DataSpace ( "/1-DataSpace"  )
Here is the caller graph for this function:

◆ DestroyCompound()

static void fileio::DestroyCompound ( hid_t  mytypeid)
inlinestatic
Here is the caller graph for this function:

◆ Fields()

const auto fileio::Fields ( "/4-Fields"  )
Here is the caller graph for this function:

◆ FileProps()

const auto fileio::FileProps ( "/0-FileProps"  )
Here is the caller graph for this function:

◆ intTostr()

std::string fileio::intTostr ( int  i,
int  size = 7 
)
inline
Here is the caller graph for this function:

◆ Others()

const auto fileio::Others ( "/3-Others"  )
Here is the caller graph for this function:

◆ PhysParams()

const auto fileio::PhysParams ( "/2-PhysParams"  )
Here is the caller graph for this function:

◆ PPFields()

const auto fileio::PPFields ( "/3-Fields"  )
Here is the caller graph for this function:

◆ PPFileProps()

const auto fileio::PPFileProps ( "/0-FileProps"  )
Here is the caller graph for this function:

◆ PPOthers()

const auto fileio::PPOthers ( "/2-Others"  )
Here is the caller graph for this function:

◆ PPTypes()

const auto fileio::PPTypes ( "/1-PartTypes"  )
Here is the caller graph for this function:

◆ ReadAttribute() [1/2]

void fileio::ReadAttribute ( const hid_t  id,
const std::string  attrname,
double  data[] 
)
inline

◆ ReadAttribute() [2/2]

void fileio::ReadAttribute ( const hid_t  id,
const std::string  attrname,
int  intdata[] 
)
inline
Here is the caller graph for this function:

◆ ReadDataSet() [1/3]

void fileio::ReadDataSet ( const hid_t  id,
const std::string  dataname,
double  data[] 
)
inline

◆ ReadDataSet() [2/3]

void fileio::ReadDataSet ( const hid_t  id,
const std::string  dataname,
int  intdata[] 
)
inline
Here is the caller graph for this function:

◆ ReadDataSet() [3/3]

void fileio::ReadDataSet ( const hid_t  id,
const std::string  dataname,
unsigned long long  intdata[] 
)
inline

◆ ReadStringAttribute()

auto fileio::ReadStringAttribute ( const hid_t  id,
const std::string  attrname 
)
inline
Here is the caller graph for this function:

◆ strToLower()

std::string& fileio::strToLower ( std::string &  str)
inline
Here is the caller graph for this function:

◆ strToUpper()

std::string& fileio::strToUpper ( std::string &  str)
inline