Forget distance for JFM
This commit is contained in:
parent
4c0d22170d
commit
b4991caece
@ -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];
|
||||
}
|
||||
|
||||
|
@ -910,13 +910,13 @@ int main(int argc, char **argv)
|
||||
*/
|
||||
|
||||
/* Averages->WriteSurfaces(0);
|
||||
*/
|
||||
|
||||
sprintf(LocalRankFilename,"%s%s","Phase.",LocalRankString);
|
||||
FILE *PHASE;
|
||||
PHASE = fopen(LocalRankFilename,"wb");
|
||||
fwrite(Averages->SDn.get(),8,N,PHASE);
|
||||
fclose(PHASE);
|
||||
/**/
|
||||
*/
|
||||
|
||||
/* sprintf(LocalRankFilename,"%s%s","Pressure.",LocalRankString);
|
||||
FILE *PRESS;
|
||||
|
@ -164,7 +164,6 @@ private:
|
||||
fillHalo<double>& fillData;
|
||||
};
|
||||
|
||||
|
||||
// Helper class to run the analysis from within a thread
|
||||
// Note: Averages will be modified after the constructor is called
|
||||
class AnalysisWorkItem: public ThreadPool::WorkItem
|
||||
|
Loading…
Reference in New Issue
Block a user