Standardized cell, patch and face loop index names

This commit is contained in:
Henry Weller
2016-04-25 10:28:32 +01:00
parent 2d5ff31649
commit 43beb06018
849 changed files with 13266 additions and 13266 deletions

View File

@ -69,8 +69,8 @@ void Foam::channelIndex::walkOppositeFaces
DynamicList<label> frontFaces(startFaces);
forAll(frontFaces, i)
{
label faceI = frontFaces[i];
blockedFace[faceI] = true;
label facei = frontFaces[i];
blockedFace[facei] = true;
}
while (returnReduce(frontFaces.size(), sumOp<label>()) > 0)
@ -79,11 +79,11 @@ void Foam::channelIndex::walkOppositeFaces
boolList isFrontBndFace(nBnd, false);
forAll(frontFaces, i)
{
label faceI = frontFaces[i];
label facei = frontFaces[i];
if (!mesh.isInternalFace(faceI))
if (!mesh.isInternalFace(facei))
{
isFrontBndFace[faceI-mesh.nInternalFaces()] = true;
isFrontBndFace[facei-mesh.nInternalFaces()] = true;
}
}
syncTools::swapBoundaryFaceList(mesh, isFrontBndFace);
@ -91,11 +91,11 @@ void Foam::channelIndex::walkOppositeFaces
// Add
forAll(isFrontBndFace, i)
{
label faceI = mesh.nInternalFaces()+i;
if (isFrontBndFace[i] && !blockedFace[faceI])
label facei = mesh.nInternalFaces()+i;
if (isFrontBndFace[i] && !blockedFace[facei])
{
blockedFace[faceI] = true;
frontFaces.append(faceI);
blockedFace[facei] = true;
frontFaces.append(facei);
}
}
@ -104,17 +104,17 @@ void Foam::channelIndex::walkOppositeFaces
forAll(frontFaces, i)
{
label faceI = frontFaces[i];
label facei = frontFaces[i];
{
const cell& ownCell = cells[mesh.faceOwner()[faceI]];
const cell& ownCell = cells[mesh.faceOwner()[facei]];
label oppositeFaceI = ownCell.opposingFaceLabel(faceI, faces);
label oppositeFaceI = ownCell.opposingFaceLabel(facei, faces);
if (oppositeFaceI == -1)
{
FatalErrorInFunction
<< "Face:" << faceI << " owner cell:" << ownCell
<< "Face:" << facei << " owner cell:" << ownCell
<< " is not a hex?" << abort(FatalError);
}
else
@ -127,16 +127,16 @@ void Foam::channelIndex::walkOppositeFaces
}
}
if (mesh.isInternalFace(faceI))
if (mesh.isInternalFace(facei))
{
const cell& neiCell = mesh.cells()[mesh.faceNeighbour()[faceI]];
const cell& neiCell = mesh.cells()[mesh.faceNeighbour()[facei]];
label oppositeFaceI = neiCell.opposingFaceLabel(faceI, faces);
label oppositeFaceI = neiCell.opposingFaceLabel(facei, faces);
if (oppositeFaceI == -1)
{
FatalErrorInFunction
<< "Face:" << faceI << " neighbour cell:" << neiCell
<< "Face:" << facei << " neighbour cell:" << neiCell
<< " is not a hex?" << abort(FatalError);
}
else
@ -175,11 +175,11 @@ void Foam::channelIndex::calcLayeredRegions
{
OFstream str(mesh.time().path()/"blockedFaces.obj");
label vertI = 0;
forAll(blockedFace, faceI)
forAll(blockedFace, facei)
{
if (blockedFace[faceI])
if (blockedFace[facei])
{
const face& f = mesh.faces()[faceI];
const face& f = mesh.faces()[facei];
forAll(f, fp)
{
meshTools::writeOBJ(str, mesh.points()[f[fp]]);

View File

@ -32,9 +32,9 @@ Foam::Field<T> Foam::channelIndex::regionSum(const Field<T>& cellField) const
{
Field<T> regionField(cellRegion_().nRegions(), Zero);
forAll(cellRegion_(), cellI)
forAll(cellRegion_(), celli)
{
regionField[cellRegion_()[cellI]] += cellField[cellI];
regionField[cellRegion_()[celli]] += cellField[celli];
}
// Global sum