Commit 1e2a6b5e authored by mattijs's avatar mattijs
Browse files

BUG: polyMeshTools: volume ratio caclulation

parent 958091d4
......@@ -264,7 +264,7 @@ Foam::tmp<Foam::scalarField> Foam::polyMeshTools::volRatio
scalar volOwn = vol[own[faceI]];
scalar volNei = vol[nei[faceI]];
ratio[faceI] = min(volOwn,volNei)/(volOwn+volNei+VSMALL);
ratio[faceI] = min(volOwn,volNei)/(max(volOwn, volNei)+VSMALL);
}
......@@ -286,7 +286,7 @@ Foam::tmp<Foam::scalarField> Foam::polyMeshTools::volRatio
scalar volOwn = vol[own[faceI]];
scalar volNei = neiVol[bFaceI];
ratio[faceI] = min(volOwn,volNei)/(volOwn+volNei+VSMALL);
ratio[faceI] = min(volOwn,volNei)/(max(volOwn, volNei)+VSMALL);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment