mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Standardized cell, patch, face and processor loop index names
This commit is contained in:
@ -118,10 +118,10 @@ void Foam::meshStructure::correct
|
||||
// Start of changes
|
||||
labelList patchFaces(pp.size());
|
||||
List<topoDistanceData> patchData(pp.size());
|
||||
forAll(pp, patchFaceI)
|
||||
forAll(pp, patchFacei)
|
||||
{
|
||||
patchFaces[patchFaceI] = pp.addressing()[patchFaceI];
|
||||
patchData[patchFaceI] = topoDistanceData(patchFaceI, 0);
|
||||
patchFaces[patchFacei] = pp.addressing()[patchFacei];
|
||||
patchData[patchFacei] = topoDistanceData(patchFacei, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -161,7 +161,7 @@ void Foam::meshStructure::correct
|
||||
forAll(faceToPatchFaceAddressing_, facei)
|
||||
{
|
||||
label own = mesh.faceOwner()[facei];
|
||||
label patchFaceI = faceData[facei].data();
|
||||
label patchFacei = faceData[facei].data();
|
||||
label patchDist = faceData[facei].distance();
|
||||
|
||||
if (mesh.isInternalFace(facei))
|
||||
@ -177,14 +177,14 @@ void Foam::meshStructure::correct
|
||||
else if (cellData[own].distance() < cellData[nei].distance())
|
||||
{
|
||||
// unturned face
|
||||
faceToPatchFaceAddressing_[facei] = patchFaceI+1;
|
||||
faceToPatchFaceAddressing_[facei] = patchFacei+1;
|
||||
faceToPatchEdgeAddressing_[facei] = -1;
|
||||
faceLayer_[facei] = patchDist;
|
||||
}
|
||||
else
|
||||
{
|
||||
// turned face
|
||||
faceToPatchFaceAddressing_[facei] = -(patchFaceI+1);
|
||||
faceToPatchFaceAddressing_[facei] = -(patchFacei+1);
|
||||
faceToPatchEdgeAddressing_[facei] = -1;
|
||||
faceLayer_[facei] = patchDist;
|
||||
}
|
||||
@ -192,7 +192,7 @@ void Foam::meshStructure::correct
|
||||
else if (patchDist == cellData[own].distance())
|
||||
{
|
||||
// starting face
|
||||
faceToPatchFaceAddressing_[facei] = -(patchFaceI+1);
|
||||
faceToPatchFaceAddressing_[facei] = -(patchFacei+1);
|
||||
faceToPatchEdgeAddressing_[facei] = -1;
|
||||
faceLayer_[facei] = patchDist;
|
||||
}
|
||||
@ -290,11 +290,11 @@ void Foam::meshStructure::correct
|
||||
// << UIndirectList<pointTopoDistanceData>(pointData, f)
|
||||
// << endl;
|
||||
|
||||
label patchFaceI = faceData[facei].data();
|
||||
label patchFacei = faceData[facei].data();
|
||||
label patchDist = faceData[facei].distance();
|
||||
|
||||
faceToPatchEdgeAddressing_[facei] = -1;
|
||||
faceToPatchFaceAddressing_[facei] = patchFaceI+1;
|
||||
faceToPatchFaceAddressing_[facei] = patchFacei+1;
|
||||
faceLayer_[facei] = patchDist;
|
||||
}
|
||||
else
|
||||
@ -344,9 +344,9 @@ void Foam::meshStructure::correct
|
||||
{
|
||||
const labelList& lCells = layerToCells[layerI];
|
||||
|
||||
forAll(lCells, lCellI)
|
||||
forAll(lCells, lCelli)
|
||||
{
|
||||
label celli = lCells[lCellI];
|
||||
label celli = lCells[lCelli];
|
||||
|
||||
structured_ = isStructuredCell
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -116,7 +116,7 @@ public:
|
||||
(
|
||||
const polyMesh&,
|
||||
const polyPatch&,
|
||||
const label patchFaceI,
|
||||
const label patchFacei,
|
||||
const point& faceCentre,
|
||||
TrackingData& td
|
||||
);
|
||||
@ -127,7 +127,7 @@ public:
|
||||
(
|
||||
const polyMesh&,
|
||||
const polyPatch&,
|
||||
const label patchFaceI,
|
||||
const label patchFacei,
|
||||
const point& faceCentre,
|
||||
TrackingData& td
|
||||
);
|
||||
@ -146,8 +146,8 @@ public:
|
||||
inline bool updateCell
|
||||
(
|
||||
const polyMesh&,
|
||||
const label thisCellI,
|
||||
const label neighbourFaceI,
|
||||
const label thisCelli,
|
||||
const label neighbourFacei,
|
||||
const topoDistanceData& neighbourInfo,
|
||||
const scalar tol,
|
||||
TrackingData& td
|
||||
@ -158,8 +158,8 @@ public:
|
||||
inline bool updateFace
|
||||
(
|
||||
const polyMesh&,
|
||||
const label thisFaceI,
|
||||
const label neighbourCellI,
|
||||
const label thisFacei,
|
||||
const label neighbourCelli,
|
||||
const topoDistanceData& neighbourInfo,
|
||||
const scalar tol,
|
||||
TrackingData& td
|
||||
@ -170,7 +170,7 @@ public:
|
||||
inline bool updateFace
|
||||
(
|
||||
const polyMesh&,
|
||||
const label thisFaceI,
|
||||
const label thisFacei,
|
||||
const topoDistanceData& neighbourInfo,
|
||||
const scalar tol,
|
||||
TrackingData& td
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -79,7 +79,7 @@ inline void Foam::topoDistanceData::leaveDomain
|
||||
(
|
||||
const polyMesh&,
|
||||
const polyPatch& patch,
|
||||
const label patchFaceI,
|
||||
const label patchFacei,
|
||||
const point& faceCentre,
|
||||
TrackingData&
|
||||
)
|
||||
@ -103,7 +103,7 @@ inline void Foam::topoDistanceData::enterDomain
|
||||
(
|
||||
const polyMesh&,
|
||||
const polyPatch& patch,
|
||||
const label patchFaceI,
|
||||
const label patchFacei,
|
||||
const point& faceCentre,
|
||||
TrackingData&
|
||||
)
|
||||
@ -115,8 +115,8 @@ template<class TrackingData>
|
||||
inline bool Foam::topoDistanceData::updateCell
|
||||
(
|
||||
const polyMesh&,
|
||||
const label thisCellI,
|
||||
const label neighbourFaceI,
|
||||
const label thisCelli,
|
||||
const label neighbourFacei,
|
||||
const topoDistanceData& neighbourInfo,
|
||||
const scalar tol,
|
||||
TrackingData&
|
||||
@ -139,8 +139,8 @@ template<class TrackingData>
|
||||
inline bool Foam::topoDistanceData::updateFace
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const label thisFaceI,
|
||||
const label neighbourCellI,
|
||||
const label thisFacei,
|
||||
const label neighbourCelli,
|
||||
const topoDistanceData& neighbourInfo,
|
||||
const scalar tol,
|
||||
TrackingData&
|
||||
@ -166,7 +166,7 @@ template<class TrackingData>
|
||||
inline bool Foam::topoDistanceData::updateFace
|
||||
(
|
||||
const polyMesh&,
|
||||
const label thisFaceI,
|
||||
const label thisFacei,
|
||||
const topoDistanceData& neighbourInfo,
|
||||
const scalar tol,
|
||||
TrackingData&
|
||||
|
||||
Reference in New Issue
Block a user