readme.md file is added for postprocessing

This commit is contained in:
Hamidreza
2025-04-23 00:47:03 +03:30
parent 8da8afbe63
commit 73f4b35fd4
4 changed files with 511 additions and 87 deletions

View File

@ -14,7 +14,7 @@ pFlow::lineRegionPoints::lineRegionPoints
selectedPoints_("selectedPoints")
{
const auto& lDict = dict.subDict("lineInfo");
uint32 nPoints = lDict.getValMax<uint32>("numPoints",2);
uint32 nSpheres = lDict.getValMax<uint32>("nSpheres",2);
realList raddi;
if( lDict.containsDataEntry("radii"))
@ -24,24 +24,24 @@ pFlow::lineRegionPoints::lineRegionPoints
else
{
auto r = lDict.getVal<real>("radius");
raddi = realList(nPoints, r);
raddi = realList(nSpheres, r);
}
if(raddi.size() != nPoints)
if(raddi.size() != nSpheres)
{
fatalErrorInFunction
<< "The number elements in of radii list should be equal to the "
<< "number of points"<<endl;
<< "The number of elements in the radii list should be equal to the "
<< "nSpheres"<<endl;
fatalExit;
}
sphereRegions_.resize(nPoints, sphere(realx3(0,0,0),1));
centerPoints_.resize(nPoints);
volumes_.resize(nPoints);
diameters_.resize(nPoints);
selectedPoints_.resize(nPoints);
real dt = 1.0/(nPoints-1);
for(uint32 i = 0; i < nPoints; ++i)
sphereRegions_.resize(nSpheres, sphere(realx3(0,0,0),1));
centerPoints_.resize(nSpheres);
volumes_.resize(nSpheres);
diameters_.resize(nSpheres);
selectedPoints_.resize(nSpheres);
real dt = 1.0/(nSpheres-1);
for(uint32 i = 0; i < nSpheres; ++i)
{
centerPoints_[i] = line_.point(i*dt);
sphereRegions_[i] = pFlow::sphere(centerPoints_[i], raddi[i]);