mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: layerParameters: added smoothing parameter
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -138,6 +138,7 @@ Foam::layerParameters::layerParameters
|
|||||||
readLabel(dict.lookup("nSmoothSurfaceNormals"))
|
readLabel(dict.lookup("nSmoothSurfaceNormals"))
|
||||||
),
|
),
|
||||||
nSmoothNormals_(readLabel(dict.lookup("nSmoothNormals"))),
|
nSmoothNormals_(readLabel(dict.lookup("nSmoothNormals"))),
|
||||||
|
nSmoothDisplacement_(dict.lookupOrDefault("nSmoothDisplacement", 0)),
|
||||||
nSmoothThickness_(readLabel(dict.lookup("nSmoothThickness"))),
|
nSmoothThickness_(readLabel(dict.lookup("nSmoothThickness"))),
|
||||||
maxFaceThicknessRatio_
|
maxFaceThicknessRatio_
|
||||||
(
|
(
|
||||||
@ -278,7 +279,7 @@ Foam::layerParameters::layerParameters
|
|||||||
const keyType& key = iter().keyword();
|
const keyType& key = iter().keyword();
|
||||||
const labelHashSet patchIDs
|
const labelHashSet patchIDs
|
||||||
(
|
(
|
||||||
boundaryMesh.patchSet(List<wordRe>(1, key))
|
boundaryMesh.patchSet(List<wordRe>(1, wordRe(key)))
|
||||||
);
|
);
|
||||||
|
|
||||||
if (patchIDs.size() == 0)
|
if (patchIDs.size() == 0)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -119,6 +119,8 @@ private:
|
|||||||
|
|
||||||
label nSmoothNormals_;
|
label nSmoothNormals_;
|
||||||
|
|
||||||
|
label nSmoothDisplacement_;
|
||||||
|
|
||||||
label nSmoothThickness_;
|
label nSmoothThickness_;
|
||||||
|
|
||||||
scalar maxFaceThicknessRatio_;
|
scalar maxFaceThicknessRatio_;
|
||||||
@ -275,6 +277,12 @@ public:
|
|||||||
return layerTerminationCos_;
|
return layerTerminationCos_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- Smooth internal displacement
|
||||||
|
label nSmoothDisplacement() const
|
||||||
|
{
|
||||||
|
return nSmoothDisplacement_;
|
||||||
|
}
|
||||||
|
|
||||||
//- Smooth layer thickness over surface patches
|
//- Smooth layer thickness over surface patches
|
||||||
label nSmoothThickness() const
|
label nSmoothThickness() const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user