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... | |
Public Member Functions | |
layerParameters (const dictionary &dict, const polyBoundaryMesh &, const bool dryRun=false) | |
Construct from dictionary. 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... | |
bool | additionalReporting () const |
Any additional reporting requested? 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... | |
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 | mergePatchFacesAngle () 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 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... | |
Simple container to keep together layer specific information.
Definition at line 57 of file layerParameters.H.
enum layerSpecification |
Enumeration defining the layer specification:
first and expansion ratio specified
Enumerator | |
---|---|
ILLEGAL | |
FIRST_AND_TOTAL | |
FIRST_AND_EXPANSION | |
FINAL_AND_TOTAL | |
FINAL_AND_EXPANSION | |
TOTAL_AND_EXPANSION |
Definition at line 69 of file layerParameters.H.
layerParameters | ( | const dictionary & | dict, |
const polyBoundaryMesh & | boundaryMesh, | ||
const bool | dryRun = false |
||
) |
Construct from dictionary.
Definition at line 100 of file layerParameters.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::found(), dictionary::get(), Foam::Info, IOWarningInFunction, Foam::nl, dictionary::readIfPresent(), and meshRefinement::subDict().
|
inline |
Definition at line 173 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
How many layers to add.
-1 : no specification. Assume 0 layers but allow sliding to make layers 0 : specified to have 0 layers. No sliding allowed. >0 : number of layers
Definition at line 186 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), and snappyLayerDriver::doLayers().
|
inline |
Are size parameters relative to inner cell size or.
absolute distances.
Definition at line 193 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Any additional reporting requested?
Definition at line 199 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Definition at line 205 of file layerParameters.H.
|
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 214 of file layerParameters.H.
|
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 222 of file layerParameters.H.
|
inline |
Wanted overall thickness of all layers.
If relativeSize() this number is relative to undistorted size of the cell outside layer.
Definition at line 230 of file layerParameters.H.
|
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 239 of file layerParameters.H.
|
inline |
Number of overall layer addition iterations.
Definition at line 248 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Number of iterations after which relaxed motion rules.
are to be used.
Definition at line 255 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Definition at line 263 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Definition at line 268 of file layerParameters.H.
Referenced by snappyLayerDriver::mergePatchFacesUndo().
|
inline |
Definition at line 273 of file layerParameters.H.
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 281 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Stop layer growth on highly warped cells.
Definition at line 287 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Create buffer region for new layer terminations.
Definition at line 293 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().
|
inline |
Type of mesh shrinker.
Definition at line 299 of file layerParameters.H.
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 384 of file layerParameters.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), and Foam::pow().
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 444 of file layerParameters.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
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 495 of file layerParameters.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::pow().
Foam::scalar finalLayerThicknessRatio | ( | const label | nLayers, |
const scalar | expansionRatio | ||
) | const |
Determine ratio of final layer thickness to.
overall layer thickness
Definition at line 554 of file layerParameters.C.
References Foam::mag(), and Foam::pow().
Referenced by snappyLayerDriver::addLayers().