mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge remote branch 'OpenCFD/master' into olesenm
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
globalIndex.C
|
||||
globalIndexTest.C
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/globalIndexTest
|
||||
|
||||
@ -108,13 +108,17 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
List<wallPoint> allFaceInfo(mesh.nFaces());
|
||||
List<wallPoint> allCellInfo(mesh.nCells());
|
||||
|
||||
MeshWave<wallPoint> wallDistCalc
|
||||
FaceCellWave<wallPoint> wallDistCalc
|
||||
(
|
||||
mesh,
|
||||
changedFaces,
|
||||
faceDist,
|
||||
0 // max iterations
|
||||
allFaceInfo,
|
||||
allCellInfo,
|
||||
0 // max iterations
|
||||
);
|
||||
|
||||
Info<< "\nStarting time loop\n" << endl;
|
||||
@ -148,16 +152,13 @@ int main(int argc, char *argv[])
|
||||
// Copy face and cell values into field
|
||||
//
|
||||
|
||||
const List<wallPoint>& cellInfo = wallDistCalc.allCellInfo();
|
||||
const List<wallPoint>& faceInfo = wallDistCalc.allFaceInfo();
|
||||
|
||||
label nIllegal = 0;
|
||||
|
||||
// Copy cell values
|
||||
forAll(cellInfo, cellI)
|
||||
forAll(allCellInfo, cellI)
|
||||
{
|
||||
scalar dist = cellInfo[cellI].distSqr();
|
||||
if (cellInfo[cellI].valid())
|
||||
scalar dist = allCellInfo[cellI].distSqr();
|
||||
if (allCellInfo[cellI].valid())
|
||||
{
|
||||
wallDistUncorrected[cellI] = Foam::sqrt(dist);
|
||||
}
|
||||
@ -178,8 +179,8 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
const label meshFaceI = patchField.patch().start() + patchFaceI;
|
||||
|
||||
scalar dist = faceInfo[meshFaceI].distSqr();
|
||||
if (faceInfo[meshFaceI].valid())
|
||||
scalar dist = allFaceInfo[meshFaceI].distSqr();
|
||||
if (allFaceInfo[meshFaceI].valid())
|
||||
{
|
||||
patchField[patchFaceI] = Foam::sqrt(dist);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user