diff --git a/tests/BlobAnalysis.cpp b/tests/BlobAnalysis.cpp index 548fd230..630c6174 100644 --- a/tests/BlobAnalysis.cpp +++ b/tests/BlobAnalysis.cpp @@ -159,6 +159,10 @@ inline void ReadFromRank(char *FILENAME, DoubleArray &Phase, DoubleArray &Pressu int main(int argc, char **argv) { + printf("----------------------------------------------------------\n"); + printf("COMPUTING TCAT ANALYSIS FOR NON-WETTING PHASE FEATURES \n"); + printf("----------------------------------------------------------\n"); + //....................................................................... int nprocx,nprocy,nprocz,nprocs; int Nx, Ny, Nz; @@ -184,6 +188,10 @@ int main(int argc, char **argv) domain >> Lz; //....................................................................... + nx+=2; + ny+=2; + nz+=2; + nprocs = nprocx*nprocy*nprocz; printf("Number of MPI ranks: %i \n", nprocs); Nx = (nx-2)*nprocx; @@ -229,6 +237,18 @@ int main(int argc, char **argv) +(1.0*k-0.7*Nz)*(1.0*k-0.7*Nz))-0.2*Nx; } + if (sqrt((1.0*i-0.2*Nx)*(1.0*i-0.2*Nx)+(1.0*j-0.7*Ny)*(1.0*j-0.7*Ny) + +(1.0*k-0.6*Nz)*(1.0*k-0.6*Nz))-0.13*Nx < minValue){ + minValue = sqrt((1.0*i-0.2*Nx)*(1.0*i-0.2*Nx)+(1.0*j-0.7*Ny)*(1.0*j-0.7*Ny) + +(1.0*k-0.6*Nz)*(1.0*k-0.6*Nz))-0.13*Nx; + } + + if (sqrt((1.0*i-0.7*Nx)*(1.0*i-0.7*Nx)+(1.0*j-0.3*Ny)*(1.0*j-0.3*Ny) + +(1.0*k-0.7*Nz)*(1.0*k-0.7*Nz))-0.17*Nx < minValue){ + minValue = sqrt((1.0*i-0.7*Nx)*(1.0*i-0.7*Nx)+(1.0*j-0.3*Ny)*(1.0*j-0.3*Ny) + +(1.0*k-0.7*Nz)*(1.0*k-0.7*Nz))-0.17*Nx; + } + if (minValue < -1.0) Phase(i,j,k) = 1.0; else if (minValue < 1.0) Phase(i,j,k) = -minValue; else Phase(i,j,k) = -1.0; @@ -426,7 +446,7 @@ int main(int argc, char **argv) if (ncubes > 0){ b(nblobs) = number; // BlobList.push_back[number]; - printf("Number of blobs is: %i \n",nblobs); + printf("Number of non-wetting phase blobs is: %i \n",nblobs-1); nblobs++; } for (k=0;k