Simple container to keep together layer specific information. More...
Public Types | |
enum | layerSpecification { ILLEGAL, FIRST_AND_TOTAL, FIRST_AND_EXPANSION, FINAL_AND_TOTAL, FINAL_AND_EXPANSION, TOTAL_AND_EXPANSION } |
Enumeration defining the layer specification: More... | |
enum | mergeFace { no, ifOnMeshedPatch, yes } |
Enumeration defining whether to merge faces on a given patch. Read. More... | |
Public Member Functions | |
layerParameters (const dictionary &dict, const polyBoundaryMesh &) | |
Construct from dictionary. More... | |
layerParameters (const layerParameters &)=delete | |
Disallow default bitwise copy construction. More... | |
const dictionary & | dict () const |
const labelList & | numLayers () const |
How many layers to add: More... | |
bool | relativeSizes () const |
Are size parameters relative to inner cell size or. More... | |
const scalarField & | expansionRatio () const |
const scalarField & | finalLayerThickness () const |
Wanted thickness of the layer furthest away. More... | |
const scalarField & | firstLayerThickness () const |
Wanted thickness of the layer nearest to the wall. More... | |
const scalarField & | thickness () const |
Wanted overall thickness of all layers. More... | |
const scalarField & | minThickness () const |
Minimum overall thickness of cell layer. If for any reason layer. More... | |
const List< mergeFace > & | mergeFaces () const |
Whether to merge boundary faces of the same layer cell. More... | |
label | nLayerIter () const |
Number of overall layer addition iterations. More... | |
label | nRelaxedIter () const |
Number of iterations after which relaxed motion rules. More... | |
scalar | featureAngle () const |
scalar | concaveAngle () const |
label | nGrow () const |
If points get not extruded do nGrow layers of connected faces. More... | |
scalar | maxFaceThicknessRatio () const |
Stop layer growth on highly warped cells. More... | |
label | nBufferCellsNoExtrude () const |
Create buffer region for new layer terminations. More... | |
const Switch & | additionalReporting () const |
const word & | meshShrinker () const |
Type of mesh shrinker. More... | |
scalar | layerThickness (const label nLayers, const scalar firstLayerThickess, const scalar finalLayerThickess, const scalar totalThickness, const scalar expansionRatio) const |
Determine overall thickness. Uses two of the four parameters. More... | |
scalar | layerExpansionRatio (const label nLayers, const scalar firstLayerThickess, const scalar finalLayerThickess, const scalar totalThickness, const scalar expansionRatio) const |
Determine expansion ratio. Uses two of the four parameters. More... | |
scalar | firstLayerThickness (const label nLayers, const scalar firstLayerThickess, const scalar finalLayerThickess, const scalar totalThickness, const scalar expansionRatio) const |
Determine first layer (near-wall) thickness. Uses two of the. More... | |
scalar | finalLayerThicknessRatio (const label nLayers, const scalar expansionRatio) const |
Determine ratio of final layer thickness to. More... | |
void | operator= (const layerParameters &)=delete |
Disallow default bitwise assignment. More... | |
Simple container to keep together layer specific information.
Definition at line 55 of file layerParameters.H.
enum layerSpecification |
Enumeration defining the layer specification:
Enumerator | |
---|---|
ILLEGAL | |
FIRST_AND_TOTAL | |
FIRST_AND_EXPANSION | |
FINAL_AND_TOTAL | |
FINAL_AND_EXPANSION | |
TOTAL_AND_EXPANSION |
Definition at line 68 of file layerParameters.H.
|
strong |
Enumeration defining whether to merge faces on a given patch. Read.
as a boolean (no/yes). Defaults to merging only on patches which were meshed/snapped to (ifOnMeshedPatch).
Enumerator | |
---|---|
no | |
ifOnMeshedPatch | |
yes |
Definition at line 81 of file layerParameters.H.
layerParameters | ( | const dictionary & | dict, |
const polyBoundaryMesh & | boundaryMesh | ||
) |
Construct from dictionary.
Definition at line 99 of file layerParameters.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, layerParameters::FINAL_AND_EXPANSION, layerParameters::FINAL_AND_TOTAL, layerParameters::FIRST_AND_EXPANSION, layerParameters::FIRST_AND_TOTAL, forAllConstIter, dictionary::found(), layerParameters::ILLEGAL, Foam::Info, IOWarningInFunction, layerParameters::layerThickness(), dictionary::lookup(), polyBoundaryMesh::names(), Foam::nl, patchi, polyBoundaryMesh::patchSet(), dictionary::readIfPresent(), UPtrList< T >::size(), dictionary::subDict(), layerParameters::TOTAL_AND_EXPANSION, and layerParameters::yes.
|
delete |
Disallow default bitwise copy construction.
|
inline |
Definition at line 171 of file layerParameters.H.
References layerParameters::numLayers(), and layerParameters::relativeSizes().
Referenced by snappyLayerDriver::addLayers().
|
inline |
How many layers to add:
Definition at line 185 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), layerParameters::dict(), and snappyLayerDriver::doLayers().
|
inline |
Are size parameters relative to inner cell size or.
absolute distances.
Definition at line 192 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), and layerParameters::dict().
|
inline |
Definition at line 198 of file layerParameters.H.
References layerParameters::finalLayerThickness(), layerParameters::firstLayerThickness(), layerParameters::minThickness(), and layerParameters::thickness().
Referenced by layerParameters::finalLayerThicknessRatio(), layerParameters::layerExpansionRatio(), layerParameters::layerThickness(), and layerParameters::meshShrinker().
|
inline |
Wanted thickness of the layer furthest away.
from the wall (i.e. nearest the original mesh). If relativeSize() this number is relative to undistorted size of the cell outside layer.
Definition at line 207 of file layerParameters.H.
Referenced by layerParameters::expansionRatio().
|
inline |
Wanted thickness of the layer nearest to the wall.
If relativeSize() this number is relative to undistorted size of the cell outside layer.
Definition at line 215 of file layerParameters.H.
Referenced by layerParameters::expansionRatio(), layerParameters::firstLayerThickness(), layerParameters::layerExpansionRatio(), and layerParameters::meshShrinker().
|
inline |
Wanted overall thickness of all layers.
If relativeSize() this number is relative to undistorted size of the cell outside layer.
Definition at line 223 of file layerParameters.H.
Referenced by layerParameters::expansionRatio().
|
inline |
Minimum overall thickness of cell layer. If for any reason layer.
cannot be above minThickness do not add layer. If relativeSize() this number is relative to undistorted size of the cell outside layer.
Definition at line 232 of file layerParameters.H.
Referenced by layerParameters::expansionRatio().
Whether to merge boundary faces of the same layer cell.
Definition at line 238 of file layerParameters.H.
Referenced by snappyLayerDriver::mergePatchFacesUndo().
|
inline |
Number of overall layer addition iterations.
Definition at line 247 of file layerParameters.H.
References layerParameters::nRelaxedIter().
Referenced by snappyLayerDriver::addLayers().
|
inline |
Number of iterations after which relaxed motion rules.
are to be used.
Definition at line 254 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), and layerParameters::nLayerIter().
|
inline |
Definition at line 262 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), and snappyLayerDriver::mergePatchFacesUndo().
|
inline |
Definition at line 267 of file layerParameters.H.
References layerParameters::nGrow().
Referenced by snappyLayerDriver::mergePatchFacesUndo().
|
inline |
If points get not extruded do nGrow layers of connected faces.
that are not grown. Is used to not do layers at all close to features.
Definition at line 275 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), and layerParameters::concaveAngle().
|
inline |
Stop layer growth on highly warped cells.
Definition at line 281 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Create buffer region for new layer terminations.
Definition at line 287 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Definition at line 292 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Type of mesh shrinker.
Definition at line 298 of file layerParameters.H.
References layerParameters::expansionRatio(), layerParameters::finalLayerThicknessRatio(), layerParameters::firstLayerThickness(), layerParameters::layerThickness(), and layerParameters::operator=().
Referenced by snappyLayerDriver::addLayers().
Foam::scalar layerThickness | ( | const label | nLayers, |
const scalar | firstLayerThickess, | ||
const scalar | finalLayerThickess, | ||
const scalar | totalThickness, | ||
const scalar | expansionRatio | ||
) | const |
Determine overall thickness. Uses two of the four parameters.
according to the layerSpecification
Definition at line 393 of file layerParameters.C.
References Foam::exit(), layerParameters::expansionRatio(), Foam::FatalError, FatalErrorInFunction, layerParameters::FINAL_AND_EXPANSION, layerParameters::FINAL_AND_TOTAL, layerParameters::FIRST_AND_EXPANSION, layerParameters::FIRST_AND_TOTAL, Foam::mag(), Foam::pow(), and layerParameters::TOTAL_AND_EXPANSION.
Referenced by layerParameters::layerParameters(), and layerParameters::meshShrinker().
Foam::scalar layerExpansionRatio | ( | const label | nLayers, |
const scalar | firstLayerThickess, | ||
const scalar | finalLayerThickess, | ||
const scalar | totalThickness, | ||
const scalar | expansionRatio | ||
) | const |
Determine expansion ratio. Uses two of the four parameters.
according to the layerSpecification
Definition at line 454 of file layerParameters.C.
References Foam::exit(), layerParameters::expansionRatio(), Foam::FatalError, FatalErrorInFunction, layerParameters::FINAL_AND_EXPANSION, layerParameters::FINAL_AND_TOTAL, layerParameters::FIRST_AND_EXPANSION, layerParameters::FIRST_AND_TOTAL, layerParameters::firstLayerThickness(), and layerParameters::TOTAL_AND_EXPANSION.
Foam::scalar firstLayerThickness | ( | const label | nLayers, |
const scalar | firstLayerThickess, | ||
const scalar | finalLayerThickess, | ||
const scalar | totalThickness, | ||
const scalar | expansionRatio | ||
) | const |
Determine first layer (near-wall) thickness. Uses two of the.
four parameters according to the layerSpecification
Definition at line 505 of file layerParameters.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, layerParameters::FINAL_AND_EXPANSION, layerParameters::FINAL_AND_TOTAL, layerParameters::finalLayerThicknessRatio(), layerParameters::FIRST_AND_EXPANSION, layerParameters::FIRST_AND_TOTAL, layerParameters::firstLayerThickness(), Foam::pow(), and layerParameters::TOTAL_AND_EXPANSION.
Foam::scalar finalLayerThicknessRatio | ( | const label | nLayers, |
const scalar | expansionRatio | ||
) | const |
Determine ratio of final layer thickness to.
overall layer thickness
Definition at line 567 of file layerParameters.C.
References layerParameters::expansionRatio(), Foam::mag(), and Foam::pow().
Referenced by snappyLayerDriver::addLayers(), layerParameters::firstLayerThickness(), and layerParameters::meshShrinker().
|
delete |
Disallow default bitwise assignment.
Referenced by layerParameters::meshShrinker().