fluid io for cartesian coordinates, double percision More...
#include <FluidIO.hpp>
Public Member Functions | |
FluidCartRegularD () | |
Construct a new Fluid Cart Regular D object. More... | |
~FluidCartRegularD () | |
Destroy the Fluid Cart Regular D object. More... | |
auto & | SetMeshc (const int dim, const int N, const double meshc[]) |
Set the Mesh [center] object. More... | |
auto & | SetMeshf (int dim, int N, const double meshf[]) |
Set the Mesh [face] object. More... | |
auto & | SetGhostMesh (std::vector< int > gh_down, std::vector< int > gh_up={}) |
Set the Ghost Mesh object if gh_up={}, it means that gh_down and gh_up have the same size of ghost mesh if the size of gh_down n is below N_dim, the size of ghost mesh of gh_down[n] and gh_down[n+1]...gh_down[N_dim-1] should equal to gh_down[n-1];. More... | |
auto & | SetGhostMesh (std::vector< std::vector< int >> gh) |
auto & | SetGhostMesh (int gh_down, int gh_up=-1) |
Set the Ghost Mesh object if only input gh_down, it means that gh_up=gh_down. More... | |
auto & | SetDomain (std::vector< double > domain_down, std::vector< double > domain_up) |
Set the compuational Domain object if the size of domain_down/up n is below N_dim, the value of domain_down/up[n] ,[n+1]should equal to domain_down/up[n-1];. More... | |
auto & | SetDomain (std::vector< std::vector< double >> domain) |
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... | |
auto & | SetFileAttr (std::string name, double 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 & | AddAttributeTo (const FluidGroup &group, const std::string attrname, const std::string str) |
add extra attribute to different groups [string] More... | |
auto & | AddAttributeTo (const FluidGroup &group, const std::string attrname, const int intdata[], const int n) |
add extra attribute to different groups [int array] More... | |
auto & | AddAttributeTo (const FluidGroup &group, const std::string attrname, const double data[], const int n) |
add extra attribute to different groups [double array] More... | |
auto & | AddAttributeTo (const FluidGroup &group, const std::string attrname, const int intdata) |
add extra attribute to different groups [int] More... | |
auto & | AddAttributeTo (const FluidGroup &group, const std::string attrname, const double data) |
add extra attribute to different groups [double] More... | |
auto & | AddDataSetTo (const FluidGroup &group, const std::string dataname, const int intdata[], const int n0) |
add dataset to different groups [int array] one dimension More... | |
auto & | AddDataSetTo (const FluidGroup &group, const std::string dataname, const int intdata[], const int n0, const int n1) |
add dataset to different groups [int array] two dimension More... | |
auto & | AddDataSetTo (const FluidGroup &group, const std::string dataname, const int intdata[], const int n0, const int n1, const int n2) |
add dataset to different groups [int array] three dimension More... | |
auto & | AddDataSetTo (const FluidGroup &group, const std::string dataname, const double data[], const int n0) |
add dataset to different groups [double array] one dimension More... | |
auto & | AddDataSetTo (const FluidGroup &group, const std::string dataname, const double data[], const int n0, const int n1) |
add dataset to different groups [double array] two dimension More... | |
auto & | AddDataSetTo (const FluidGroup &group, const std::string dataname, const double data[], const int n0, const int n1, const int n2) |
add dataset to different groups [double array] three dimension More... | |
auto & | AddDataSetCplxTo (const FluidGroup &group, const std::string dataname, const std::complex< double > data[], const int n0, const int n1) |
auto & | AddField (const std::string fieldname, const double data[], const std::vector< int > shape, const std::vector< int > gridflag, const std::vector< int > shapetotal) |
add Field to Field group for mpi version, but it also supports serial version More... | |
auto & | AddFieldWithoutGhost (const std::string &fieldname, const double data[], const std::vector< int > &shape, const std::vector< int > &gridflag, const std::vector< int > &shapetotal) |
auto & | AddFieldDefault (const std::string &fieldname, const double data[], const std::vector< int > &shape, const std::vector< int > &gridflag, const std::vector< int > &shapetotal) |
auto & | AddCplxField (const std::string fieldname, const std::complex< double > data[], const std::vector< int > shape, const std::vector< int > gridflag, const std::vector< int > shapetotal) |
auto & | AddCplxFieldWithoutGhost (const std::string &fieldname, const std::complex< double > data[], const std::vector< int > &shape, const std::vector< int > &gridflag, const std::vector< int > &shapetotal) |
auto & | AddCplxFieldDefault (const std::string &fieldname, const std::complex< double > data[], const std::vector< int > &shape, const std::vector< int > &gridflag, const std::vector< int > &shapetotal) |
auto & | AddField (const std::string fieldname, double data[], std::vector< int > shape, std::vector< int > gridflag) |
add Field to Field group only support serial version More... | |
auto & | AddCplxField (const std::string fieldname, std::complex< double > data[], std::vector< int > shape, std::vector< int > gridflag) |
void | CalOffset (const std::vector< int > &shape, const std::vector< int > &gridflag, hsize_t offset[]) |
calculate offset for writing data by mpi More... | |
void | MemSlice (const auto *in, auto *out, const int shape[], hsize_t offset[], hsize_t count[]) |
auto | OpenFile (const int istep, const std::string ftype) |
Open a existed file. More... | |
auto & | ReadAttributeFrom (const FluidGroup &group, const std::string attrname, std::string &str) |
Read attribute from different groups[string]. More... | |
auto & | ReadAttributeFrom (const FluidGroup &group, const std::string attrname, int intdata[]) |
Read attribute from different groups [int array]. More... | |
auto & | ReadAttributeFrom (const FluidGroup &group, const std::string attrname, double data[]) |
Read attribute from different groups [double array]. More... | |
auto & | ReadDataSetFrom (const FluidGroup &group, const std::string dataname, int intdata[]) |
Read dataset from different groups [int array]. More... | |
auto & | ReadDataSetFrom (const FluidGroup &group, const std::string dataname, double data[]) |
Read dataset from different groups [double array]. More... | |
auto & | ReadField (const std::string fieldname, double data[], std::vector< int > shape, std::vector< int > gridflag, const std::vector< int > shapetotal) |
Read field from Field group for mpi verison, but it also supports serial version. More... | |
auto & | ReadFieldWithoutGhost (const std::string &fieldname, double data[], const std::vector< int > &shape, const std::vector< int > &gridflag, const std::vector< int > &shapetotal) |
auto & | ReadFieldDefault (const std::string &fieldname, double data[], const std::vector< int > &shape, const std::vector< int > &gridflag, const std::vector< int > &shapetotal) |
auto & | ReadCplxField (const std::string fieldname, std::complex< double > data[], std::vector< int > shape, std::vector< int > gridflag, const std::vector< int > shapetotal) |
auto & | ReadCplxFieldWithoutGhost (const std::string &fieldname, std::complex< double > data[], const std::vector< int > &shape, const std::vector< int > &gridflag, const std::vector< int > &shapetotal) |
auto & | ReadCplxFieldDefault (const std::string &fieldname, std::complex< double > data[], const std::vector< int > &shape, const std::vector< int > &gridflag, const std::vector< int > &shapetotal) |
auto & | ReadField (const std::string fieldname, double data[], std::vector< int > shape, std::vector< int > gridflag) |
Read field from Field group only support serial verison. More... | |
auto & | ReadCplxField (const std::string fieldname, std::complex< double > data[], std::vector< int > shape, std::vector< int > gridflag) |
Static Public Member Functions | |
static void | AllocateBuffer (const int &maxlength) |
static void | DeallocateBuffer () |
Public Attributes | |
hid_t | fileid |
handles of HDF5 More... | |
hid_t | filepropid |
hid_t | dataspaceid |
hid_t | physparaid |
hid_t | otherinfoid |
hid_t | fieldid |
Private Attributes | |
const int | _dim = N_dim |
std::string | _casename = "default" |
std::string | _space = "physical" |
std::string | _filestyle = "onestep" |
std::string | _storagestyle = "c-style" |
std::string | _dataspacestyle = "cartregular" |
std::string | _filepath = "./" |
std::string | _filenameprefix = "fluidfield" |
int | _meshnumc [N_dim] = {0} |
int | _meshnumf [N_dim] = {0} |
int | _gh_down [N_dim] = {0} |
int | _gh_up [N_dim] = {0} |
double * | _ptr_meshc [N_dim] |
double * | _ptr_meshf [N_dim] |
int | _numbernamelength = 7 |
double | _domain_down [N_dim] = {0} |
double | _domain_up [N_dim] = {0} |
double | _visc0 = 0. |
double | _rho0 = 0. |
int | _mpi_coord [N_dim] |
int | _mpi_proc [N_dim] |
Static Private Attributes | |
static double * | _rtemp = nullptr |
static std::complex< double > * | _ctemp = nullptr |
static int | _maxlength = 0 |
fluid io for cartesian coordinates, double percision
|
inline |
Construct a new Fluid Cart Regular D object.
References fileio::FluidCartRegularD< N_dim, FT >::_gh_down, fileio::FluidCartRegularD< N_dim, FT >::_gh_up, fileio::FluidCartRegularD< N_dim, FT >::_meshnumc, fileio::FluidCartRegularD< N_dim, FT >::_meshnumf, fileio::FluidCartRegularD< N_dim, FT >::_mpi_coord, fileio::FluidCartRegularD< N_dim, FT >::_mpi_proc, fileio::FluidCartRegularD< N_dim, FT >::_ptr_meshc, and fileio::FluidCartRegularD< N_dim, FT >::_ptr_meshf.
|
inline |
Destroy the Fluid Cart Regular D object.
References fileio::FluidCartRegularD< N_dim, FT >::_ptr_meshc, and fileio::FluidCartRegularD< N_dim, FT >::_ptr_meshf.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddAttributeTo | ( | const FluidGroup & | group, |
const std::string | attrname, | ||
const double | data | ||
) |
add extra attribute to different groups [double]
group | which group, an enum constant |
attrname | attribute name |
data | attribute, double |
References fileio::AddAttribute(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddAttributeTo | ( | const FluidGroup & | group, |
const std::string | attrname, | ||
const double | data[], | ||
const int | n | ||
) |
add extra attribute to different groups [double array]
group | which group, an enum constant |
attrname | attribute name |
data | attribute, double array |
n | size of double array |
References fileio::AddAttribute(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddAttributeTo | ( | const FluidGroup & | group, |
const std::string | attrname, | ||
const int | intdata | ||
) |
add extra attribute to different groups [int]
group | which group ,a enum constant |
attrname | attribute name |
intdata | attribute,int |
References fileio::AddAttribute(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddAttributeTo | ( | const FluidGroup & | group, |
const std::string | attrname, | ||
const int | intdata[], | ||
const int | n | ||
) |
add extra attribute to different groups [int array]
group | which group ,a enum constant |
attrname | attribute name |
intdata | attribute,int array |
n | size of int array |
References fileio::AddAttribute(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddAttributeTo | ( | const FluidGroup & | group, |
const std::string | attrname, | ||
const std::string | str | ||
) |
add extra attribute to different groups [string]
group | which group ,a enum constant |
attrname | attribute name |
str | attribute val |
References fileio::AddAttribute(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddCplxField | ( | const std::string | fieldname, |
const std::complex< double > | data[], | ||
const std::vector< int > | shape, | ||
const std::vector< int > | gridflag, | ||
const std::vector< int > | shapetotal | ||
) |
|
inline |
References fileio::FluidCartRegularD< N_dim, FT >::AddCplxField().
auto & fileio::FluidCartRegularD< N_dim, FT >::AddCplxFieldDefault | ( | const std::string & | fieldname, |
const std::complex< double > | data[], | ||
const std::vector< int > & | shape, | ||
const std::vector< int > & | gridflag, | ||
const std::vector< int > & | shapetotal | ||
) |
References fileio::AddAttribute(), and fileio::DestroyCompound().
auto & fileio::FluidCartRegularD< N_dim, FT >::AddCplxFieldWithoutGhost | ( | const std::string & | fieldname, |
const std::complex< double > | data[], | ||
const std::vector< int > & | shape, | ||
const std::vector< int > & | gridflag, | ||
const std::vector< int > & | shapetotal | ||
) |
References fileio::AddAttribute(), and fileio::DestroyCompound().
auto & fileio::FluidCartRegularD< N_dim, FT >::AddDataSetCplxTo | ( | const FluidGroup & | group, |
const std::string | dataname, | ||
const std::complex< double > | data[], | ||
const int | n0, | ||
const int | n1 | ||
) |
References fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddDataSetTo | ( | const FluidGroup & | group, |
const std::string | dataname, | ||
const double | data[], | ||
const int | n0 | ||
) |
add dataset to different groups [double array] one dimension
group | which group, an enum constant |
dataname | dataset name |
data | double array |
n0 | size of double array, 0-dimension |
References fileio::AddDataSet(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddDataSetTo | ( | const FluidGroup & | group, |
const std::string | dataname, | ||
const double | data[], | ||
const int | n0, | ||
const int | n1 | ||
) |
add dataset to different groups [double array] two dimension
group | which group, an enum constant |
dataname | dataset name |
data | double array |
n0 | size of double array, 0-dimension |
n1 | size of double array, 1-dimension |
References fileio::AddDataSet(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddDataSetTo | ( | const FluidGroup & | group, |
const std::string | dataname, | ||
const double | data[], | ||
const int | n0, | ||
const int | n1, | ||
const int | n2 | ||
) |
add dataset to different groups [double array] three dimension
group | which group, an enum constant |
dataname | dataset name |
data | double array |
n0 | size of int array, 0-dimension |
n1 | size of int array, 1-dimension |
n2 | size of int array, 2-dimension |
References fileio::AddDataSet(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddDataSetTo | ( | const FluidGroup & | group, |
const std::string | dataname, | ||
const int | intdata[], | ||
const int | n0 | ||
) |
add dataset to different groups [int array] one dimension
group | which group, an enum constant |
dataname | dataset name |
intdata | int array |
n0 | size of int array, 0-dimension |
References fileio::AddDataSet(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddDataSetTo | ( | const FluidGroup & | group, |
const std::string | dataname, | ||
const int | intdata[], | ||
const int | n0, | ||
const int | n1 | ||
) |
add dataset to different groups [int array] two dimension
group | which group, an enum constant |
dataname | dataset name |
intdata | int array |
n0 | size of int array, 0-dimension |
n1 | size of int array, 1-dimension |
n2 | size of int array, 2-dimension |
References fileio::AddDataSet(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddDataSetTo | ( | const FluidGroup & | group, |
const std::string | dataname, | ||
const int | intdata[], | ||
const int | n0, | ||
const int | n1, | ||
const int | n2 | ||
) |
add dataset to different groups [int array] three dimension
group | which group, an enum constant |
dataname | dataset name |
intdata | int array |
n0 | size of int array, 0-dimension |
n1 | size of int array, 1-dimension |
References fileio::AddDataSet(), fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, and fileio::kPhysPara.
auto & fileio::FluidCartRegularD< N_dim, FT >::AddField | ( | const std::string | fieldname, |
const double | data[], | ||
const std::vector< int > | shape, | ||
const std::vector< int > | gridflag, | ||
const std::vector< int > | shapetotal | ||
) |
add Field to Field group for mpi version, but it also supports serial version
fieldname | field name |
data | double data |
shape | shape of field at current proc |
gridflag | grid flag (1,0,1),(F,c,F) |
shapetotal | total shape of field |
References fileio::WithoutGhost.
|
inline |
add Field to Field group only support serial version
fieldname | field name |
data | double data |
shape | shape of field at current proc |
gridflag | grid flag (1,0,1),(F,c,F) |
References fileio::FluidCartRegularD< N_dim, FT >::AddField().
auto & fileio::FluidCartRegularD< N_dim, FT >::AddFieldDefault | ( | const std::string & | fieldname, |
const double | data[], | ||
const std::vector< int > & | shape, | ||
const std::vector< int > & | gridflag, | ||
const std::vector< int > & | shapetotal | ||
) |
auto & fileio::FluidCartRegularD< N_dim, FT >::AddFieldWithoutGhost | ( | const std::string & | fieldname, |
const double | data[], | ||
const std::vector< int > & | shape, | ||
const std::vector< int > & | gridflag, | ||
const std::vector< int > & | shapetotal | ||
) |
|
inlinestatic |
References fileio::FluidCartRegularD< N_dim, FT >::_ctemp, fileio::FluidCartRegularD< N_dim, FT >::_maxlength, fileio::FluidCartRegularD< N_dim, FT >::_rtemp, and fileio::WithoutGhost.
void fileio::FluidCartRegularD< N_dim, FT >::CalOffset | ( | const std::vector< int > & | shape, |
const std::vector< int > & | gridflag, | ||
hsize_t | offset[] | ||
) |
calculate offset for writing data by mpi
N_dim | |
FT | FileTag |
shape | array size of the current block |
gridflag | center or face |
offset |
void fileio::FluidCartRegularD< N_dim, FT >::CloseFile |
Close opened hdf5 file.
auto fileio::FluidCartRegularD< N_dim, FT >::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::AddDataSet(), fileio::DataSpace(), fileio::Fields(), fileio::FileProps(), fileio::intTostr(), fileio::Others(), fileio::PhysParams(), and fileio::WithoutGhost.
|
inlinestatic |
References fileio::FluidCartRegularD< N_dim, FT >::_ctemp, fileio::FluidCartRegularD< N_dim, FT >::_maxlength, fileio::FluidCartRegularD< N_dim, FT >::_rtemp, and fileio::WithoutGhost.
void fileio::FluidCartRegularD< N_dim, FT >::MemSlice | ( | const auto * | in, |
auto * | out, | ||
const int | shape[], | ||
hsize_t | offset[], | ||
hsize_t | count[] | ||
) |
References fileio::WithoutGhost.
auto fileio::FluidCartRegularD< N_dim, FT >::OpenFile | ( | const int | istep, |
const std::string | ftype | ||
) |
Open a existed file.
istep | computational step |
ftype | file style : onestep/mid |
References fileio::DataSpace(), fileio::Fields(), fileio::FileProps(), fileio::intTostr(), fileio::kFileProp, fileio::kGeoMesh, fileio::kPhysPara, fileio::Others(), fileio::PhysParams(), and fileio::WithoutGhost.
void fileio::FluidCartRegularD< N_dim, FT >::Print |
Print the abstract of the current file attributes.
References fileio::intTostr().
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadAttributeFrom | ( | const FluidGroup & | group, |
const std::string | attrname, | ||
double | data[] | ||
) |
Read attribute from different groups [double array].
[in] | group | which group, an enum constant |
[in] | attrname | attribute name |
[out] | data | attribute value,double array |
References fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, fileio::kPhysPara, and fileio::ReadAttribute().
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadAttributeFrom | ( | const FluidGroup & | group, |
const std::string | attrname, | ||
int | intdata[] | ||
) |
Read attribute from different groups [int array].
[in] | group | which group, an enum constant |
[in] | attrname | attribute name |
[out] | intdata | attribute value,int array |
References fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, fileio::kPhysPara, and fileio::ReadAttribute().
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadAttributeFrom | ( | const FluidGroup & | group, |
const std::string | attrname, | ||
std::string & | str | ||
) |
Read attribute from different groups[string].
[in] | group | which group, an enum constant |
[in] | attrname | attribute name |
[out] | str | attribute value |
References fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, fileio::kPhysPara, and fileio::ReadStringAttribute().
|
inline |
References fileio::FluidCartRegularD< N_dim, FT >::ReadCplxField().
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadCplxField | ( | const std::string | fieldname, |
std::complex< double > | data[], | ||
std::vector< int > | shape, | ||
std::vector< int > | gridflag, | ||
const std::vector< int > | shapetotal | ||
) |
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadCplxFieldDefault | ( | const std::string & | fieldname, |
std::complex< double > | data[], | ||
const std::vector< int > & | shape, | ||
const std::vector< int > & | gridflag, | ||
const std::vector< int > & | shapetotal | ||
) |
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadCplxFieldWithoutGhost | ( | const std::string & | fieldname, |
std::complex< double > | data[], | ||
const std::vector< int > & | shape, | ||
const std::vector< int > & | gridflag, | ||
const std::vector< int > & | shapetotal | ||
) |
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadDataSetFrom | ( | const FluidGroup & | group, |
const std::string | dataname, | ||
double | data[] | ||
) |
Read dataset from different groups [double array].
[in] | group | which group, an enum constant |
[in] | dataname | attribute name |
[out] | data | attribute value,int array |
References fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, fileio::kPhysPara, and fileio::ReadDataSet().
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadDataSetFrom | ( | const FluidGroup & | group, |
const std::string | dataname, | ||
int | intdata[] | ||
) |
Read dataset from different groups [int array].
[in] | group | which group, an enum constant |
[in] | dataname | attribute name |
[out] | intdata | attribute value,int array |
References fileio::kField, fileio::kFileProp, fileio::kGeoMesh, fileio::kOtherInfo, fileio::kPhysPara, and fileio::ReadDataSet().
|
inline |
Read field from Field group only support serial verison.
[in] | fieldname | field name |
[out] | data | field data |
[in] | shape | shape of field |
[in] | gridflag | grid flag, (1,0,1) means (Face,center,Face) |
References fileio::FluidCartRegularD< N_dim, FT >::ReadField().
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadField | ( | const std::string | fieldname, |
double | data[], | ||
std::vector< int > | shape, | ||
std::vector< int > | gridflag, | ||
const std::vector< int > | shapetotal | ||
) |
Read field from Field group for mpi verison, but it also supports serial version.
[in] | fieldname | field name |
[out] | data | field data |
[in] | shape | shape of field |
[in] | gridflag | grid flag, (1,0,1) means (Face,center,Face) |
References fileio::WithoutGhost.
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadFieldDefault | ( | const std::string & | fieldname, |
double | data[], | ||
const std::vector< int > & | shape, | ||
const std::vector< int > & | gridflag, | ||
const std::vector< int > & | shapetotal | ||
) |
auto & fileio::FluidCartRegularD< N_dim, FT >::ReadFieldWithoutGhost | ( | const std::string & | fieldname, |
double | data[], | ||
const std::vector< int > & | shape, | ||
const std::vector< int > & | gridflag, | ||
const std::vector< int > & | shapetotal | ||
) |
|
inline |
Set the compuational Domain object if the size of domain_down/up n is below N_dim, the value of domain_down/up[n] ,[n+1]should equal to domain_down/up[n-1];.
domain_down | the lower boundary of Domain |
domain_up | the upper boundary of domain |
References fileio::FluidCartRegularD< N_dim, FT >::_domain_down, and fileio::FluidCartRegularD< N_dim, FT >::_domain_up.
|
inline |
|
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::FluidCartRegularD< N_dim, FT >::_rho0, fileio::FluidCartRegularD< N_dim, FT >::_visc0, and fileio::strToLower().
|
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::FluidCartRegularD< N_dim, FT >::_casename, fileio::FluidCartRegularD< N_dim, FT >::_dataspacestyle, fileio::FluidCartRegularD< N_dim, FT >::_filenameprefix, fileio::FluidCartRegularD< N_dim, FT >::_filepath, fileio::FluidCartRegularD< N_dim, FT >::_filestyle, fileio::FluidCartRegularD< N_dim, FT >::_space, fileio::FluidCartRegularD< N_dim, FT >::_storagestyle, and fileio::strToLower().
|
inline |
Set the Ghost Mesh object if only input gh_down, it means that gh_up=gh_down.
gh_down | ghost mesh size of lower boudnary |
gh_up | ghost mesh size of upper boudnary |
References fileio::FluidCartRegularD< N_dim, FT >::_gh_down, and fileio::FluidCartRegularD< N_dim, FT >::_gh_up.
|
inline |
Set the Ghost Mesh object if gh_up={}, it means that gh_down and gh_up have the same size of ghost mesh if the size of gh_down n is below N_dim, the size of ghost mesh of gh_down[n] and gh_down[n+1]...gh_down[N_dim-1] should equal to gh_down[n-1];.
gh_down | ghost mesh size of lower boudnary |
gh_up | ghost mesh size of upper boudnary |
|
inline |
|
inline |
Set the Mesh [center] object.
dim | which dimension/direction |
N | size of mesh |
meshc | mesh [center] |
References fileio::FluidCartRegularD< N_dim, FT >::_meshnumc, and fileio::FluidCartRegularD< N_dim, FT >::_ptr_meshc.
|
inline |
Set the Mesh [face] object.
dim | which dimension/direction |
N | size of mesh |
meshf | mesh [face] |
References fileio::FluidCartRegularD< N_dim, FT >::_meshnumf, and fileio::FluidCartRegularD< N_dim, FT >::_ptr_meshf.
|
private |
|
inlinestaticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inlinestaticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inlinestaticprivate |
|
private |
|
private |
|
private |
hid_t fileio::FluidCartRegularD< N_dim, FT >::dataspaceid |
hid_t fileio::FluidCartRegularD< N_dim, FT >::fieldid |
hid_t fileio::FluidCartRegularD< N_dim, FT >::fileid |
handles of HDF5
hid_t fileio::FluidCartRegularD< N_dim, FT >::filepropid |
hid_t fileio::FluidCartRegularD< N_dim, FT >::otherinfoid |
hid_t fileio::FluidCartRegularD< N_dim, FT >::physparaid |