rectMesh postProcess revisited

This commit is contained in:
Hamidreza
2025-07-01 18:18:53 +03:30
parent b7f051e099
commit c90f775156
14 changed files with 399 additions and 55 deletions

View File

@ -152,11 +152,25 @@ bool pFlow::postprocessData::PostprocessComponent<RegionType, ProcessMethodType>
}
else
{
notImplementedFunction;
return false;
}
word chNum = real2FixedStripZeros(database().time().currentTime() *1000000, 0);
fileSystem file = parDir + (name() +"-"+chNum+".vtk");
auto osPtr = makeUnique<oFstream>(file);
regPoints().write(osPtr());
for(auto& operation:operatios_)
{
if(!operation->write(osPtr()))
{
fatalErrorInFunction
<<"Error occurred in writing operation defined in dict "
<< operation->operationDict()
<<endl;
return false;
}
}
}
return true;
}

View File

@ -53,7 +53,7 @@ private:
regionField<real> volumeFactor_;
bool executed_{false};
bool executed_{false};
dictionaryList operationDicts_;
@ -122,8 +122,6 @@ public:
};
}
#include "PostprocessComponent.cpp"

View File

@ -47,8 +47,8 @@ public:
:
PostprocessComponent<RegionType,GaussianDistribution>(dict, fieldsDB, defaultTimeControl)
{
/// initializes the Gaussian distribution for all elements of region
//const uint32 n = this->regPoints().size();
this->regPoints().setRegionExtension(2);
auto d = this->regPoints().eqDiameters();
auto c = this->regPoints().centers();
auto& regs = this->regionProecessMethod();