Utility postProcess is modified to be used in Version 1.0

- counting dictionary is added to postProcess
- Code need to be modified to cleaned (fields in the repository should be removed onces postProcess is passed the next time step)
This commit is contained in:
HRN
2024-11-18 20:27:44 +03:30
parent d3ccf354b7
commit 75fba2710e
28 changed files with 959 additions and 216 deletions

View File

@ -0,0 +1,52 @@
#include "rectangleMesh.hpp"
pFlow::rectangleMesh::rectangleMesh
(
const box& mshBox,
int32 nx,
int32 ny,
int32 nz,
repository* rep
)
:
IOobject(
objectFile
(
"rectMesh",
"",
objectFile::READ_NEVER,
objectFile::WRITE_NEVER
),
IOPattern::MasterProcessorOnly,
rep
),
meshBox_(mshBox),
numCells_(nx, ny, nz)
{
if(mshBox.minPoint()>= mshBox.maxPoint())
{
fatalErrorInFunction<<"Lower corner point of mesh "<<mshBox.minPoint()<<
" confilicts with upper corner point of mesh "<<mshBox.maxPoint()<<endl;
fatalExit;
}
numCells_ = max( numCells_ , int32x3(1) );
dx_ = (mshBox.maxPoint() - mshBox.minPoint())/
realx3(numCells_.x_, numCells_.y_, numCells_.z_);
}
pFlow::rectangleMesh::rectangleMesh(const dictionary &dict, repository* rep)
:
rectangleMesh(
box(dict),
dict.getVal<int32>("nx"),
dict.getVal<int32>("ny"),
dict.getVal<int32>("nz"),
rep
)
{
}