mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Standardized cell, patch and face loop index names
This commit is contained in:
@ -52,11 +52,11 @@ bool Foam::surfaceIntersection::excludeEdgeHit
|
||||
(
|
||||
const triSurface& surf,
|
||||
const label edgeI,
|
||||
const label faceI,
|
||||
const label facei,
|
||||
const scalar
|
||||
)
|
||||
{
|
||||
const triSurface::FaceType& f = surf.localFaces()[faceI];
|
||||
const triSurface::FaceType& f = surf.localFaces()[facei];
|
||||
const edge& e = surf.edges()[edgeI];
|
||||
|
||||
forAll(f, fp)
|
||||
@ -72,7 +72,7 @@ bool Foam::surfaceIntersection::excludeEdgeHit
|
||||
// vector eVec = e.vec(surf.localPoints());
|
||||
// eVec /= mag(eVec) + VSMALL;
|
||||
//
|
||||
// const labelList& eLabels = surf.faceEdges()[faceI];
|
||||
// const labelList& eLabels = surf.faceEdges()[facei];
|
||||
//
|
||||
// // Get edge vector of 0th edge of face
|
||||
// vector e0Vec = surf.edges()[eLabels[0]].vec(surf.localPoints());
|
||||
@ -97,12 +97,12 @@ bool Foam::surfaceIntersection::excludeEdgeHit
|
||||
// }
|
||||
//
|
||||
// // Check if same as faceNormal
|
||||
// if (mag(n & surf.faceNormals()[faceI]) > 1-tol)
|
||||
// if (mag(n & surf.faceNormals()[facei]) > 1-tol)
|
||||
// {
|
||||
//
|
||||
// Pout<< "edge:" << e << " face:" << faceI
|
||||
// Pout<< "edge:" << e << " face:" << facei
|
||||
// << " e0Vec:" << e0Vec << " n:" << n
|
||||
// << " normalComponent:" << (n & surf.faceNormals()[faceI])
|
||||
// << " normalComponent:" << (n & surf.faceNormals()[facei])
|
||||
// << " tol:" << tol << endl;
|
||||
//
|
||||
// return true;
|
||||
|
||||
@ -130,7 +130,7 @@ class surfaceIntersection
|
||||
static label getEdge
|
||||
(
|
||||
const triSurface& surf,
|
||||
const label faceI,
|
||||
const label facei,
|
||||
const label fp
|
||||
);
|
||||
|
||||
@ -154,7 +154,7 @@ class surfaceIntersection
|
||||
(
|
||||
const triSurface& surf,
|
||||
const label edgeI,
|
||||
const label faceI,
|
||||
const label facei,
|
||||
const scalar tol
|
||||
);
|
||||
|
||||
|
||||
@ -82,17 +82,17 @@ Foam::scalar Foam::surfaceIntersection::minEdgeLen
|
||||
}
|
||||
|
||||
|
||||
// Get edge between fp and fp+1 on faceI.
|
||||
// Get edge between fp and fp+1 on facei.
|
||||
Foam::label Foam::surfaceIntersection::getEdge
|
||||
(
|
||||
const triSurface& surf,
|
||||
const label faceI,
|
||||
const label facei,
|
||||
const label fp
|
||||
)
|
||||
{
|
||||
const edge faceEdge = surf.localFaces()[faceI].faceEdge(fp);
|
||||
const edge faceEdge = surf.localFaces()[facei].faceEdge(fp);
|
||||
|
||||
const labelList& eLabels = surf.faceEdges()[faceI];
|
||||
const labelList& eLabels = surf.faceEdges()[facei];
|
||||
|
||||
forAll(eLabels, eI)
|
||||
{
|
||||
@ -106,7 +106,7 @@ Foam::label Foam::surfaceIntersection::getEdge
|
||||
|
||||
FatalErrorInFunction
|
||||
<< "Problem:: Cannot find edge with vertices " << faceEdge
|
||||
<< " in face " << faceI
|
||||
<< " in face " << facei
|
||||
<< abort(FatalError);
|
||||
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user