Go to the documentation of this file.
21 #ifndef __rectangleMesh_hpp__
22 #define __rectangleMesh_hpp__
62 dict.getVal<
realx3>(
"min"),
63 dict.getVal<
realx3>(
"max")),
64 dict.getVal<
int32>(
"nx"),
65 dict.getVal<
int32>(
"ny"),
66 dict.getVal<
int32>(
"nz")
102 return domain().minPoint();
108 return domain().maxPoint();
123 os<<
"DATASET RECTILINEAR_GRID"<<
endl;
124 os<<
"DIMENSIONS "<<
nx()+1<<
" "<<
ny()+1 <<
" "<<
nz()+1 <<
endl;
127 auto [dx, dy, dz] = this->
cellSize();
129 os<<
"X_COORDINATES "<<
nx()+1 <<
" float\n";
136 os<<
"Y_COORDINATES "<<
ny()+1 <<
" float\n";
143 os<<
"Z_COORDINATES "<<
nz()+1 <<
" float\n";
162 #endif // __rectangleMesh_hpp__
INLINE_FUNCTION_HD int32 nz() const
INLINE_FUNCTION_H rectangleMesh(const dictionary &dict)
INLINE_FUNCTION_HD rectangleMesh & operator=(const rectangleMesh &)=default
INLINE_FUNCTION_HD rectangleMesh()
bool writeToVtk(iOstream &os) const
INLINE_FUNCTION_HD int32 nx() const
iOstream & endl(iOstream &os)
INLINE_FUNCTION_H auto minPoint() const
INLINE_FUNCTION_HD ~rectangleMesh()=default
const auto & domain() const
bool write(iOstream &os) const
#define INLINE_FUNCTION_H
INLINE_FUNCTION_HD real cellVol() const
INLINE_FUNCTION_HD rectangleMesh(const realx3 &minP, const realx3 &maxP, int32 nx, int32 ny, int32 nz)
TypeInfoNV("rectangleMesh")
INLINE_FUNCTION_HD int32 ny() const
INLINE_FUNCTION_HD realx3 cellSize() const
#define INLINE_FUNCTION_HD
INLINE_FUNCTION_HD int64 totalCells() const
INLINE_FUNCTION_HD int64 size() const
INLINE_FUNCTION_H auto maxPoint() const