mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
HashSet gets additional operators
- operator+= : add in the listed keys - operator-= : remove the listed keys - operator&= : intersection of keys - added xfer constructor (just in case) - moved labelHashSet typedef to HashSet.H, for consistency with the wordHashSet typedef being there and since it is used so often
This commit is contained in:
@ -27,7 +27,7 @@ License
|
||||
#include "inverseDistanceDiffusivity.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "patchWave.H"
|
||||
#include "labelHashSet.H"
|
||||
#include "HashSet.H"
|
||||
#include "surfaceInterpolate.H"
|
||||
#include "zeroGradientFvPatchFields.H"
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ License
|
||||
|
||||
#include "inverseFaceDistanceDiffusivity.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "labelHashSet.H"
|
||||
#include "HashSet.H"
|
||||
#include "wallPoint.H"
|
||||
#include "MeshWave.H"
|
||||
|
||||
@ -98,7 +98,7 @@ void Foam::inverseFaceDistanceDiffusivity::correct()
|
||||
const polyPatch& patch = bdry[iter.key()];
|
||||
|
||||
const vectorField::subField fc = patch.faceCentres();
|
||||
|
||||
|
||||
forAll(fc, patchFaceI)
|
||||
{
|
||||
changedFaces[nPatchFaces] = patch.start() + patchFaceI;
|
||||
@ -134,7 +134,7 @@ void Foam::inverseFaceDistanceDiffusivity::correct()
|
||||
fvsPatchScalarField& bfld = faceDiffusivity_.boundaryField()[patchI];
|
||||
|
||||
const unallocLabelList& faceCells = bfld.patch().faceCells();
|
||||
|
||||
|
||||
if (patchSet.found(patchI))
|
||||
{
|
||||
forAll(bfld, i)
|
||||
|
||||
@ -26,7 +26,7 @@ License
|
||||
|
||||
#include "inversePointDistanceDiffusivity.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "labelHashSet.H"
|
||||
#include "HashSet.H"
|
||||
#include "pointEdgePoint.H"
|
||||
#include "PointEdgeWave.H"
|
||||
|
||||
@ -133,7 +133,7 @@ void Foam::inversePointDistanceDiffusivity::correct()
|
||||
mesh,
|
||||
seedPoints,
|
||||
seedInfo,
|
||||
|
||||
|
||||
pointWallDist,
|
||||
edgeWallDist,
|
||||
mesh.globalData().nTotalPoints() // max iterations
|
||||
@ -167,7 +167,7 @@ void Foam::inversePointDistanceDiffusivity::correct()
|
||||
forAll(bfld, i)
|
||||
{
|
||||
const cell& ownFaces = mesh.cells()[faceCells[i]];
|
||||
|
||||
|
||||
labelHashSet cPoints(4*ownFaces.size());
|
||||
|
||||
scalar dist = 0;
|
||||
@ -185,7 +185,7 @@ void Foam::inversePointDistanceDiffusivity::correct()
|
||||
}
|
||||
}
|
||||
dist /= cPoints.size();
|
||||
|
||||
|
||||
bfld[i] = 1.0/dist;
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ License
|
||||
#include "inverseVolumeDiffusivity.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "patchWave.H"
|
||||
#include "labelHashSet.H"
|
||||
#include "HashSet.H"
|
||||
#include "surfaceInterpolate.H"
|
||||
#include "zeroGradientFvPatchFields.H"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user