refactor TwoPhase analysis to respect multi-mineral convention
This commit is contained in:
parent
04623dddbe
commit
0f6fa3afa7
@ -394,7 +394,7 @@ void TwoPhase::UpdateMeshValues()
|
||||
for (j=0; j<Ny; j++){
|
||||
for (i=0; i<Nx; i++){
|
||||
n = k*Nx*Ny+j*Nx+i;
|
||||
if (Dm->id[n] == 0){
|
||||
if (!(Dm->id[n] > 0)){
|
||||
// Solid phase
|
||||
PhaseID(i,j,k) = 0;
|
||||
}
|
||||
@ -431,7 +431,7 @@ void TwoPhase::ComputeLocal()
|
||||
// Compute volume averages
|
||||
for (int p=0;p<8;p++){
|
||||
n = i+cube[p][0] + (j+cube[p][1])*Nx + (k+cube[p][2])*Nx*Ny;
|
||||
if ( Dm->id[n] != 0 ){
|
||||
if ( Dm->id[n] > 0 ){
|
||||
// 1-D index for this cube corner
|
||||
// compute the norm of the gradient of the phase indicator field
|
||||
// Compute the non-wetting phase volume contribution
|
||||
@ -624,7 +624,7 @@ void TwoPhase::ComponentAverages()
|
||||
// Compute volume averages
|
||||
for (int p=0;p<8;p++){
|
||||
n = i+cube[p][0] + (j+cube[p][1])*Nx + (k+cube[p][2])*Nx*Ny;
|
||||
if ( Dm->id[n] != 0 ){
|
||||
if ( Dm->id[n] > 0 ){
|
||||
// 1-D index for this cube corner
|
||||
// compute the norm of the gradient of the phase indicator field
|
||||
// Compute the non-wetting phase volume contribution
|
||||
|
Loading…
Reference in New Issue
Block a user