mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-07-08 03:07:03 +00:00
readme.md file is added for postprocessing
This commit is contained in:
@ -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]);
|
||||
|
Reference in New Issue
Block a user