snappyHexMesh: Corrected code documentation

Patch contributed by Bruno Santos
Resolves contribution request https://bugs.openfoam.org/view.php?id=3794
This commit is contained in:
Henry Weller
2022-01-27 11:14:15 +00:00
parent 4b914573eb
commit bc32409e6b
3 changed files with 19 additions and 19 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -707,7 +707,7 @@ Foam::label Foam::meshRefinement::markInternalDistanceToFeatureRefinement
const labelList& cellLevel = meshCutter_.cellLevel(); const labelList& cellLevel = meshCutter_.cellLevel();
const pointField& cellCentres = mesh_.cellCentres(); const pointField& cellCentres = mesh_.cellCentres();
// Detect if there are any distance shells // Detect if there are any distance features
if (features_.maxDistance() <= 0.0) if (features_.maxDistance() <= 0.0)
{ {
return 0; return 0;
@ -730,7 +730,7 @@ Foam::label Foam::meshRefinement::markInternalDistanceToFeatureRefinement
} }
} }
// Do test to see whether cells is inside/outside shell with higher level // Do test to see whether cells are in/near features with higher level
labelList maxLevel; labelList maxLevel;
features_.findHigherLevel(testCc, testLevels, maxLevel); features_.findHigherLevel(testCc, testLevels, maxLevel);
@ -2086,7 +2086,7 @@ Foam::labelList Foam::meshRefinement::refineCandidates
// Cells pierced by feature lines // Cells pierced by feature edges
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if (featureRefinement) if (featureRefinement)
@ -2104,12 +2104,12 @@ Foam::labelList Foam::meshRefinement::refineCandidates
<< ": " << nFeatures << " cells." << endl; << ": " << nFeatures << " cells." << endl;
} }
// Inside distance-to-feature shells // Inside distance-to-feature
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~
if (featureDistanceRefinement) if (featureDistanceRefinement)
{ {
const label nShell = markInternalDistanceToFeatureRefinement const label nCellsFeat = markInternalDistanceToFeatureRefinement
( (
nAllowRefine, nAllowRefine,
@ -2117,7 +2117,7 @@ Foam::labelList Foam::meshRefinement::refineCandidates
nRefine nRefine
); );
Info<< "Marked for refinement due to distance to explicit features " Info<< "Marked for refinement due to distance to explicit features "
": " << nShell << " cells." << endl; ": " << nCellsFeat << " cells." << endl;
} }
// Inside refinement shells // Inside refinement shells

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -295,7 +295,7 @@ void Foam::refinementFeatures::buildTrees(const label feati)
} }
// Find maximum level of a shell. // Find maximum level of a feature edge.
void Foam::refinementFeatures::findHigherLevel void Foam::refinementFeatures::findHigherLevel
( (
const pointField& pt, const pointField& pt,
@ -308,8 +308,8 @@ void Foam::refinementFeatures::findHigherLevel
const scalarField& distances = distances_[feati]; const scalarField& distances = distances_[feati];
// Collect all those points that have a current maxLevel less than // Collect all those points that have a current maxLevel less than
// (any of) the shell. Also collect the furthest distance allowable // (any of) the feature edge. Also collect the furthest distance allowable
// to any shell with a higher level. // to any feature edge with a higher level.
pointField candidates(pt.size()); pointField candidates(pt.size());
labelList candidateMap(pt.size()); labelList candidateMap(pt.size());
@ -361,7 +361,7 @@ void Foam::refinementFeatures::findHigherLevel
label pointi = candidateMap[candidatei]; label pointi = candidateMap[candidatei];
// pt is in between shell[minDistI] and shell[minDistI+1] // pt is in between feature[minDistI] and feature[minDistI+1]
maxLevel[pointi] = levels[minDistI+1]; maxLevel[pointi] = levels[minDistI+1];
} }
} }
@ -747,7 +747,7 @@ void Foam::refinementFeatures::findHigherLevel
labelList& maxLevel labelList& maxLevel
) const ) const
{ {
// Maximum level of any shell. Start off with level of point. // Maximum level of any feature edge. Start off with level of point.
maxLevel = ptLevel; maxLevel = ptLevel;
forAll(*this, feati) forAll(*this, feati)

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -55,10 +55,10 @@ class refinementFeatures
{ {
// Private Data // Private Data
//- Per shell the list of ranges //- Per feature the list of ranges
List<scalarField> distances_; List<scalarField> distances_;
//- Per shell per distance the refinement level //- Per feature per distance the refinement level
labelListList levels_; labelListList levels_;
//- Edge //- Edge
@ -80,7 +80,7 @@ class refinementFeatures
//- Build edge tree and feature point tree //- Build edge tree and feature point tree
void buildTrees(const label); void buildTrees(const label);
//- Find shell level higher than ptLevel //- Find feature level higher than ptLevel
void findHigherLevel void findHigherLevel
( (
const pointField& pt, const pointField& pt,
@ -184,7 +184,7 @@ public:
List<pointIndexHit>& nearInfo List<pointIndexHit>& nearInfo
) const; ) const;
//- Find shell level higher than ptLevel //- Find feature level higher than ptLevel
void findHigherLevel void findHigherLevel
( (
const pointField& pt, const pointField& pt,