mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
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:
52
utilities/postprocessPhasicFlow/rectangleMesh.cpp
Normal file
52
utilities/postprocessPhasicFlow/rectangleMesh.cpp
Normal 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
|
||||
)
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user