diff --git a/applications/solvers/combustion/PDRFoam/PDRFoamAutoRefine.C b/applications/solvers/combustion/PDRFoam/PDRFoamAutoRefine.C index 4e561052fd..c84a311423 100644 --- a/applications/solvers/combustion/PDRFoam/PDRFoamAutoRefine.C +++ b/applications/solvers/combustion/PDRFoam/PDRFoamAutoRefine.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -131,11 +131,11 @@ int main(int argc, char *argv[]) protectedCell = 0; } - forAll(betav, cellI) + forAll(betav, celli) { - if (betav[cellI] < 0.99) + if (betav[celli] < 0.99) { - protectedCell[cellI] = 1; + protectedCell[celli] = 1; } } diff --git a/applications/solvers/multiphase/reactingEulerFoam/interfacialCompositionModels/interfaceCompositionModels/InterfaceCompositionModel/InterfaceCompositionModel.C b/applications/solvers/multiphase/reactingEulerFoam/interfacialCompositionModels/interfaceCompositionModels/InterfaceCompositionModel/InterfaceCompositionModel.C index ff5d3e5a6e..c33df3cf5c 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/interfacialCompositionModels/interfaceCompositionModels/InterfaceCompositionModel/InterfaceCompositionModel.C +++ b/applications/solvers/multiphase/reactingEulerFoam/interfacialCompositionModels/interfaceCompositionModels/InterfaceCompositionModel/InterfaceCompositionModel.C @@ -155,11 +155,11 @@ Foam::InterfaceCompositionModel::D volScalarField& D(tmpD.ref()); - forAll(p, cellI) + forAll(p, celli) { - D[cellI] = - localThermo.alphah(p[cellI], T[cellI]) - /localThermo.rho(p[cellI], T[cellI]); + D[celli] = + localThermo.alphah(p[celli], T[celli]) + /localThermo.rho(p[celli], T[celli]); } D /= Le_; @@ -209,11 +209,11 @@ Foam::InterfaceCompositionModel::L volScalarField& L(tmpL.ref()); - forAll(p, cellI) + forAll(p, celli) { - L[cellI] = - localThermo.Ha(p[cellI], Tf[cellI]) - - otherLocalThermo.Ha(otherP[cellI], Tf[cellI]); + L[celli] = + localThermo.Ha(p[celli], Tf[celli]) + - otherLocalThermo.Ha(otherP[celli], Tf[celli]); } return tmpL; diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/derivedFvPatchFields/alphatPhaseChangeJayatillekeWallFunction/alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/derivedFvPatchFields/alphatPhaseChangeJayatillekeWallFunction/alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C index 996f96cecf..46de9ec4f1 100755 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/derivedFvPatchFields/alphatPhaseChangeJayatillekeWallFunction/alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/derivedFvPatchFields/alphatPhaseChangeJayatillekeWallFunction/alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.C @@ -85,23 +85,23 @@ alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::yPlusTherm tmp typsf(new scalarField(this->size())); scalarField& ypsf = typsf.ref(); - forAll(ypsf, faceI) + forAll(ypsf, facei) { scalar ypt = 11.0; for (int i=0; i> stencilWeights(stencil.size()); -// // forAll(stencil, faceI) +// // forAll(stencil, facei) // // { -// // const labelList& fStencil = stencil[faceI]; +// // const labelList& fStencil = stencil[facei]; // // // // if (fStencil.size() > 0) // // { // // // Uniform weights -// // stencilWeights[faceI] = scalarList +// // stencilWeights[facei] = scalarList // // ( // // fStencil.size(), // // 1.0/fStencil.size() @@ -230,15 +230,15 @@ int main(int argc, char *argv[]) // stencilPoints // ); // -// forAll(stencilPoints, faceI) +// forAll(stencilPoints, facei) // { -// if (stencilPoints[faceI].size() >= 15) +// if (stencilPoints[facei].size() >= 15) // { // writeStencilOBJ // ( -// runTime.path()/"centredFace" + Foam::name(faceI) + ".obj", -// mesh.faceCentres()[faceI], -// stencilPoints[faceI] +// runTime.path()/"centredFace" + Foam::name(facei) + ".obj", +// mesh.faceCentres()[facei], +// stencilPoints[facei] // ); // } // } @@ -267,13 +267,13 @@ int main(int argc, char *argv[]) // // stencilPoints // //); // // -// //forAll(stencilPoints, faceI) +// //forAll(stencilPoints, facei) // //{ // // writeStencilOBJ // // ( -// // runTime.path()/"centredPoint" + Foam::name(faceI) + ".obj", -// // mesh.faceCentres()[faceI], -// // stencilPoints[faceI] +// // runTime.path()/"centredPoint" + Foam::name(facei) + ".obj", +// // mesh.faceCentres()[facei], +// // stencilPoints[facei] // // ); // //} // } @@ -302,13 +302,13 @@ int main(int argc, char *argv[]) // // stencilPoints // //); // // -// //forAll(stencilPoints, faceI) +// //forAll(stencilPoints, facei) // //{ // // writeStencilOBJ // // ( -// // runTime.path()/"centredEdge" + Foam::name(faceI) + ".obj", -// // mesh.faceCentres()[faceI], -// // stencilPoints[faceI] +// // runTime.path()/"centredEdge" + Foam::name(facei) + ".obj", +// // mesh.faceCentres()[facei], +// // stencilPoints[facei] // // ); // //} // } @@ -340,13 +340,13 @@ int main(int argc, char *argv[]) // ownPoints // ); // - // forAll(ownPoints, faceI) + // forAll(ownPoints, facei) // { // writeStencilOBJ // ( - // runTime.path()/"ownFEC" + Foam::name(faceI) + ".obj", - // mesh.faceCentres()[faceI], - // ownPoints[faceI] + // runTime.path()/"ownFEC" + Foam::name(facei) + ".obj", + // mesh.faceCentres()[facei], + // ownPoints[facei] // ); // } // } @@ -361,13 +361,13 @@ int main(int argc, char *argv[]) // neiPoints // ); // - // forAll(neiPoints, faceI) + // forAll(neiPoints, facei) // { // writeStencilOBJ // ( - // runTime.path()/"neiFEC" + Foam::name(faceI) + ".obj", - // mesh.faceCentres()[faceI], - // neiPoints[faceI] + // runTime.path()/"neiFEC" + Foam::name(facei) + ".obj", + // mesh.faceCentres()[facei], + // neiPoints[facei] // ); // } // } @@ -400,13 +400,13 @@ int main(int argc, char *argv[]) // ownPoints // ); // - // forAll(ownPoints, faceI) + // forAll(ownPoints, facei) // { // writeStencilOBJ // ( - // runTime.path()/"ownCFC" + Foam::name(faceI) + ".obj", - // mesh.faceCentres()[faceI], - // ownPoints[faceI] + // runTime.path()/"ownCFC" + Foam::name(facei) + ".obj", + // mesh.faceCentres()[facei], + // ownPoints[facei] // ); // } // } @@ -421,13 +421,13 @@ int main(int argc, char *argv[]) // neiPoints // ); // - // forAll(neiPoints, faceI) + // forAll(neiPoints, facei) // { // writeStencilOBJ // ( - // runTime.path()/"neiCFC" + Foam::name(faceI) + ".obj", - // mesh.faceCentres()[faceI], - // neiPoints[faceI] + // runTime.path()/"neiCFC" + Foam::name(facei) + ".obj", + // mesh.faceCentres()[facei], + // neiPoints[facei] // ); // } // } @@ -458,13 +458,13 @@ int main(int argc, char *argv[]) stencilPoints ); - forAll(stencilPoints, cellI) + forAll(stencilPoints, celli) { writeStencilOBJ ( - runTime.path()/"centredCECCell" + Foam::name(cellI) + ".obj", - mesh.cellCentres()[cellI], - stencilPoints[cellI] + runTime.path()/"centredCECCell" + Foam::name(celli) + ".obj", + mesh.cellCentres()[celli], + stencilPoints[celli] ); } } @@ -486,13 +486,13 @@ int main(int argc, char *argv[]) stencilPoints ); - forAll(stencilPoints, cellI) + forAll(stencilPoints, celli) { writeStencilOBJ ( - runTime.path()/"centredCPCCell" + Foam::name(cellI) + ".obj", - mesh.cellCentres()[cellI], - stencilPoints[cellI] + runTime.path()/"centredCPCCell" + Foam::name(celli) + ".obj", + mesh.cellCentres()[celli], + stencilPoints[celli] ); } } @@ -514,13 +514,13 @@ int main(int argc, char *argv[]) stencilPoints ); - forAll(stencilPoints, cellI) + forAll(stencilPoints, celli) { writeStencilOBJ ( - runTime.path()/"centredCFCCell" + Foam::name(cellI) + ".obj", - mesh.cellCentres()[cellI], - stencilPoints[cellI] + runTime.path()/"centredCFCCell" + Foam::name(celli) + ".obj", + mesh.cellCentres()[celli], + stencilPoints[celli] ); } } @@ -538,12 +538,12 @@ int main(int argc, char *argv[]) // ); // for (label faci = 0; faci < mesh.nInternalFaces(); faci++) // { -// const scalarList& stData = stencilData[faceI]; -// const scalarList& stWeight = fit[faceI]; +// const scalarList& stData = stencilData[facei]; +// const scalarList& stWeight = fit[facei]; // // forAll(stData, i) // { -// sf[faceI] += stWeight[i]*stData[i]; +// sf[facei] += stWeight[i]*stData[i]; // } // } // See finiteVolume/lnInclude/leastSquaresGrad.C diff --git a/applications/test/extendedStencil/Test-ExtendedStencil2.C b/applications/test/extendedStencil/Test-ExtendedStencil2.C index b1928bc6d2..8b6e6ac279 100644 --- a/applications/test/extendedStencil/Test-ExtendedStencil2.C +++ b/applications/test/extendedStencil/Test-ExtendedStencil2.C @@ -150,9 +150,9 @@ int main(int argc, char *argv[]) List compactFld(map.constructSize(), Zero); // Insert my internal values - forAll(fld, cellI) + forAll(fld, celli) { - compactFld[cellI] = fld[cellI]; + compactFld[celli] = fld[celli]; } // Insert my boundary values label nCompact = fld.size(); @@ -172,27 +172,27 @@ int main(int argc, char *argv[]) // 2. Pull to stencil stencilPoints.setSize(stencil.size()); - forAll(stencil, cellI) + forAll(stencil, celli) { - const labelList& compactCells = stencil[cellI]; + const labelList& compactCells = stencil[celli]; - stencilPoints[cellI].setSize(compactCells.size()); + stencilPoints[celli].setSize(compactCells.size()); forAll(compactCells, i) { - stencilPoints[cellI][i] = compactFld[compactCells[i]]; + stencilPoints[celli][i] = compactFld[compactCells[i]]; } } } - forAll(stencilPoints, cellI) + forAll(stencilPoints, celli) { writeStencilOBJ ( - runTime.path()/"centredCell" + Foam::name(cellI) + ".obj", - mesh.cellCentres()[cellI], - stencilPoints[cellI] + runTime.path()/"centredCell" + Foam::name(celli) + ".obj", + mesh.cellCentres()[celli], + stencilPoints[celli] ); } } diff --git a/applications/test/globalIndex/Test-globalIndex.C b/applications/test/globalIndex/Test-globalIndex.C index 0de4f04b3c..0a93b9756c 100644 --- a/applications/test/globalIndex/Test-globalIndex.C +++ b/applications/test/globalIndex/Test-globalIndex.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -66,26 +66,26 @@ int main(int argc, char *argv[]) } // convert from local to global and back. - for (label cellI = 0; cellI < mesh.nCells(); cellI++) + for (label celli = 0; celli < mesh.nCells(); celli++) { // to global index - label globalCellI = globalNumbering.toGlobal(cellI); + label globalCellI = globalNumbering.toGlobal(celli); // and back label procI = globalNumbering.whichProcID(globalCellI); label localCellI = globalNumbering.toLocal(globalCellI); - if (procI != Pstream::myProcNo() || localCellI != cellI) + if (procI != Pstream::myProcNo() || localCellI != celli) { FatalErrorInFunction - << "Problem. cellI:" << cellI << " localCellI:" << localCellI + << "Problem. celli:" << celli << " localCellI:" << localCellI << " procI:" << procI << abort(FatalError); } if (!globalNumbering.isLocal(globalCellI)) { FatalErrorInFunction - << "Problem. cellI:" << cellI << " globalCellI:" << globalCellI + << "Problem. celli:" << celli << " globalCellI:" << globalCellI << " not local" << abort(FatalError); } } diff --git a/applications/test/momentOfInertia/Test-momentOfInertia.C b/applications/test/momentOfInertia/Test-momentOfInertia.C index 726454e3a1..5abba3d382 100644 --- a/applications/test/momentOfInertia/Test-momentOfInertia.C +++ b/applications/test/momentOfInertia/Test-momentOfInertia.C @@ -196,16 +196,16 @@ int main(int argc, char *argv[]) } { - const label cellI = args.optionLookupOrDefault("cell", 0); + const label celli = args.optionLookupOrDefault("cell", 0); tensorField mI(momentOfInertia::meshInertia(mesh)); - tensor& J = mI[cellI]; + tensor& J = mI[celli]; vector eVal = eigenValues(J); Info<< nl - << "Inertia tensor of cell " << cellI << " " << J << nl + << "Inertia tensor of cell " << celli << " " << J << nl << "eigenValues (principal moments) " << eVal << endl; J /= cmptMax(eVal); @@ -215,16 +215,16 @@ int main(int argc, char *argv[]) Info<< "eigenVectors (principal axes, from normalised inertia) " << eVec << endl; - OFstream str("cell_" + name(cellI) + "_inertia.obj"); + OFstream str("cell_" + name(celli) + "_inertia.obj"); - Info<< nl << "Writing scaled principal axes of cell " << cellI << " to " + Info<< nl << "Writing scaled principal axes of cell " << celli << " to " << str.name() << endl; - const point& cC = mesh.cellCentres()[cellI]; + const point& cC = mesh.cellCentres()[celli]; scalar scale = mag ( - (cC - mesh.faceCentres()[mesh.cells()[cellI][0]]) + (cC - mesh.faceCentres()[mesh.cells()[celli][0]]) /eVal.component(findMin(eVal)) ); diff --git a/applications/test/patchRegion/Test-patchRegion.C b/applications/test/patchRegion/Test-patchRegion.C index d25573fe76..44099ec8a6 100644 --- a/applications/test/patchRegion/Test-patchRegion.C +++ b/applications/test/patchRegion/Test-patchRegion.C @@ -76,11 +76,11 @@ int main(int argc, char *argv[]) DynamicList