Try to prevent identification fo isolated blobs near the solid

This commit is contained in:
James E McClure 2015-09-17 15:36:48 -04:00
parent de8467c9ef
commit 3ed9afd03e
2 changed files with 2 additions and 3 deletions

View File

@ -145,7 +145,7 @@ int ComputeLocalBlobIDs( const DoubleArray& Phase, const DoubleArray& SignDist,
Array<bool> isPhase(Nx,Ny,Nz);
memset(isPhase.get(),0,Nx*Ny*Nz*sizeof(bool));
for (size_t i=0; i<N; i++) {
if ( SignDist(i) < 0.0) {
if ( SignDist(i) <= vS) {
// Solid phase
LocalBlobID(i) = -2;
} else {

View File

@ -56,7 +56,7 @@ public:
MPI_Comm newcomm;
MPI_Comm_dup(MPI_COMM_WORLD,&newcomm);
double vF = 0.0;
double vS = 0.0;
double vS = -1.0; // one voxel buffer region around solid
IntArray& ids = new_index->second;
new_index->first = ComputeGlobalBlobIDs(Nx-2,Ny-2,Nz-2,rank_info,*phase,dist,vF,vS,ids,newcomm);
MPI_Comm_free(&newcomm);
@ -168,7 +168,6 @@ private:
double beta;
};
// Function to start the analysis
void run_analysis( int timestep, int restart_interval,
const RankInfoStruct& rank_info, TwoPhase& Averages,