mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-22 16:28:30 +00:00
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:
@ -26,7 +26,7 @@ Licence:
|
||||
#include "typeInfo.hpp"
|
||||
#include "types.hpp"
|
||||
#include "span.hpp"
|
||||
|
||||
#include "numericConstants.hpp"
|
||||
|
||||
namespace pFlow
|
||||
{
|
||||
@ -74,15 +74,15 @@ public:
|
||||
for(uint32 i=0; i<indices.size(); i++)
|
||||
{
|
||||
auto x = points[indices[i]]-center;
|
||||
auto f = exp(- dot(x,x)/(2*variance_));
|
||||
auto f = exp(- dot(x,x)/(2*variance_))/sqrt(2.0*Pi*variance_);
|
||||
weight_[i] = f;
|
||||
sum += f;
|
||||
}
|
||||
|
||||
for(auto& w: weight_)
|
||||
/*for(auto& w: weight_)
|
||||
{
|
||||
w /= sum;
|
||||
}
|
||||
} */
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user