PostprocessData update

Modifications on fieldsDataBase to work both during simulation and post-simulation
Some bug fixes and changes to the code based
Correction for region volume
This commit is contained in:
Hamidreza
2025-04-18 15:32:53 +03:30
parent 61be8c60fb
commit d69203168e
44 changed files with 1065 additions and 383 deletions

View File

@ -23,6 +23,7 @@ Licence:
#include "PostprocessComponent.hpp"
#include "GaussianDistribution.hpp"
#include "numericConstants.hpp"
namespace pFlow
{
@ -51,15 +52,20 @@ public:
auto d = this->regPoints().eqDiameters();
auto c = this->regPoints().centers();
auto& regs = this->regionProecessMethod();
auto& volFactor = this->volumeFactor();
const uint32 n = d.size();
for(uint32 i=0; i<n; i++)
{
regs[i] = GaussianDistribution(c[i], pow(d[i],2));
auto r = d[i]/2;
regs[i] = GaussianDistribution(c[i], pow(r/3.0,2));
volFactor[i] = 0.677683 / (4.0/3.0*Pi*r);
}
}
// add the virtual constructor
add_vCtor(
add_vCtor
(
postprocessComponent,
PostprocessComponentGaussian,
dictionary