Using distance function for phase average in common/TwoPhase.h

This commit is contained in:
James E McClure 2015-02-01 10:59:06 -05:00
parent 0c8a8fc769
commit b8d49001c3
2 changed files with 4 additions and 4 deletions

View File

@ -218,12 +218,12 @@ public:
void TwoPhase::ColorToSignedDistance(double Beta, double *ColorData, double *DistData){
double temp=0.5/Beta;
/* for (int n=0; n<Nx*Ny*Nz; n++){
for (int n=0; n<Nx*Ny*Nz; n++){
double value = ColorData[n];
DistData[n] = temp*log((1.0+value)/(1.0-value));
}
*/
for (int n=0; n<Nx*Ny*Nz; n++) DistData[n] = ColorData[n];
// for (int n=0; n<Nx*Ny*Nz; n++) DistData[n] = ColorData[n];
}
void TwoPhase::ComputeDelPhi(){

View File

@ -512,7 +512,7 @@ int main(int argc, char **argv)
for (i=0; i<Dm.Nx*Dm.Ny*Dm.Nz; i++) Dm.id[i] = 1;
Dm.CommInit(MPI_COMM_WORLD);
// Set up MPI communication structurese
// Set up MPI communication structures
if (rank==0) printf ("Setting up communication control structures \n");
//......................................................................................
// Get the actual D3Q19 communication counts (based on location of solid phase)