Using distance function for phase average in common/TwoPhase.h
This commit is contained in:
parent
0c8a8fc769
commit
b8d49001c3
@ -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(){
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user