first commit for post-processing

- the whole structure is ready.
- next step whould be execute methods and then write methods
- post-processing after simulation is not started yet.
This commit is contained in:
Hamidreza
2025-04-09 19:47:57 +03:30
parent c78ab398f6
commit ab7f700ead
39 changed files with 4413 additions and 0 deletions

View File

@ -0,0 +1,31 @@
#include "sphereRegionPoints.hpp"
#include "fieldsDataBase.hpp"
pFlow::sphereRegionPoints::sphereRegionPoints
(
const dictionary &dict,
fieldsDataBase &fieldsDataBase
)
:
regionPoints(dict, fieldsDataBase),
sphereRegion_(dict.subDict("sphereInfo")),
volume_(sphereRegion_.volume()),
diameter_(2*sphereRegion_.radius()),
selectedPoints_("selectedPoints")
{
}
bool pFlow::sphereRegionPoints::update()
{
const auto points = database().updatePoints();
selectedPoints_.clear();
for(uint32 i = 0; i < points.size(); ++i)
{
if( sphereRegion_.isInside(points[i]))
{
selectedPoints_.push_back(i);
}
}
return false;
}