Forget distance for JFM

This commit is contained in:
James E McClure
2015-11-14 12:02:41 -05:00
parent 4c0d22170d
commit b4991caece
3 changed files with 6 additions and 7 deletions

View File

@@ -180,7 +180,7 @@ void TwoPhase::ColorToSignedDistance(double Beta, DoubleArray &ColorData, Double
double factor,temp,value;
factor=0.5/Beta;
// Initialize to -1,1 (segmentation)
for (int k=0; k<Nz; k++){
/* for (int k=0; k<Nz; k++){
for (int j=0; j<Ny; j++){
for (int i=0; i<Nx; i++){
value = ColorData(i,j,k);
@@ -210,11 +210,11 @@ void TwoPhase::ColorToSignedDistance(double Beta, DoubleArray &ColorData, Double
for (int k=0; k<Nz; k++){
for (int j=0; j<Ny; j++){
for (int i=0; i<Nx; i++){
DistData(i,j,k) += 2.5;
DistData(i,j,k) += 1.5;
}
}
}
/*
*/
for (int k=0; k<Nz; k++){
for (int j=0; j<Ny; j++){
for (int i=0; i<Nx; i++){
@@ -222,7 +222,7 @@ void TwoPhase::ColorToSignedDistance(double Beta, DoubleArray &ColorData, Double
}
}
}
*/
//
// for (int n=0; n<Nx*Ny*Nz; n++) DistData[n] = ColorData[n];
}