Simple container to keep together layer specific information. More...
#include <layerParameters.H>
Public Types | |
| enum | thicknessModelType { FIRST_AND_TOTAL , FIRST_AND_EXPANSION , FINAL_AND_TOTAL , FINAL_AND_EXPANSION , TOTAL_AND_EXPANSION , FIRST_AND_RELATIVE_FINAL } |
| Enumeration defining the layer specification: More... | |
Public Member Functions | |
| layerParameters (const dictionary &dict, const polyBoundaryMesh &, const bool dryRun=false) | |
| Construct from dictionary. | |
| const dictionary & | dict () const |
| const labelList & | numLayers () const |
| How many layers to add. | |
| const boolList & | relativeSizes () const |
| Are size parameters relative to inner cell size or. | |
| const List< thicknessModelType > & | layerModels () const |
| Specification of layer thickness. | |
| const scalarField & | expansionRatio () const |
| const scalarField & | finalLayerThickness () const |
| Wanted thickness of the layer furthest away. | |
| const scalarField & | firstLayerThickness () const |
| Wanted thickness of the layer nearest to the wall. | |
| const scalarField & | thickness () const |
| Wanted overall thickness of all layers. | |
| const scalarField & | minThickness () const |
| Minimum overall thickness of cell layer. If for any reason layer. | |
| label | nLayerIter () const |
| Number of overall layer addition iterations. | |
| label | nOuterIter () const |
| Outer loop to add layer by layer. Can be set to >= max layers. | |
| label | nRelaxedIter () const |
| Number of iterations after which relaxed motion rules. | |
| scalar | featureAngle () const |
| scalar | mergePatchFacesAngle () const |
| scalar | concaveAngle () const |
| label | nGrow () const |
| If points get not extruded do nGrow layers of connected faces. | |
| scalar | maxFaceThicknessRatio () const |
| Stop layer growth on highly warped cells. | |
| label | nBufferCellsNoExtrude () const |
| Create buffer region for new layer terminations. | |
| bool | additionalReporting () const |
| Any additional reporting requested? | |
| const word & | meshShrinker () const |
| Type of mesh shrinker. | |
Static Public Member Functions | |
| static scalar | layerThickness (const thicknessModelType, const label nLayers, const scalar firstLayerThickness, const scalar finalLayerThickness, const scalar totalThickness, const scalar expansionRatio) |
| Determine overall thickness. Uses two of the four parameters. | |
| static scalar | layerExpansionRatio (const thicknessModelType, const label nLayers, const scalar firstLayerThickness, const scalar finalLayerThickness, const scalar totalThickness, const scalar expansionRatio) |
| Determine expansion ratio. Uses two of the four parameters. | |
| static scalar | firstLayerThickness (const thicknessModelType, const label nLayers, const scalar firstLayerThickness, const scalar finalLayerThickness, const scalar totalThickness, const scalar expansionRatio) |
| Determine first layer (near-wall) thickness. Uses two of the. | |
| static scalar | finalLayerThicknessRatio (const label nLayers, const scalar expansionRatio) |
| Determine ratio of final layer thickness to. | |
| static scalar | layerThickness (const label nLayers, const scalar layerThickness, const scalar expansionRatio, const label layerStart, const label layerSize) |
| Determine overall thickness of a slice (usually 1 layer). | |
Simple container to keep together layer specific information.
Definition at line 54 of file layerParameters.H.
| enum thicknessModelType |
Enumeration defining the layer specification:
| Enumerator | |
|---|---|
| FIRST_AND_TOTAL | |
| FIRST_AND_EXPANSION | |
| FINAL_AND_TOTAL | |
| FINAL_AND_EXPANSION | |
| TOTAL_AND_EXPANSION | |
| FIRST_AND_RELATIVE_FINAL | |
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 332 of file layerParameters.C.
References dict(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, FINAL_AND_EXPANSION, FINAL_AND_TOTAL, FIRST_AND_EXPANSION, FIRST_AND_RELATIVE_FINAL, FIRST_AND_TOTAL, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, if(), Foam::labelMax, Foam::nl, and TOTAL_AND_EXPANSION.

|
inline |
Definition at line 228 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), and layerParameters().

|
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 244 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), snappyLayerDriver::addLayersSinglePass(), and snappyLayerDriver::doLayers().

|
inline |
Are size parameters relative to inner cell size or.
absolute distances.
Definition at line 254 of file layerParameters.H.
|
inline |
Specification of layer thickness.
Definition at line 262 of file layerParameters.H.
|
inline |
Definition at line 268 of file layerParameters.H.
Referenced by finalLayerThicknessRatio(), firstLayerThickness(), layerExpansionRatio(), layerThickness(), and layerThickness().

|
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 280 of file layerParameters.H.
Referenced by firstLayerThickness(), layerExpansionRatio(), and layerThickness().

|
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 291 of file layerParameters.H.
Referenced by firstLayerThickness(), layerExpansionRatio(), layerThickness(), and layerThickness().

|
inline |
Wanted overall thickness of all layers.
If relativeSize() this number is relative to undistorted size of the cell outside layer.
Definition at line 302 of file layerParameters.H.
Referenced by layerThickness().

|
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 314 of file layerParameters.H.
|
inline |
Number of overall layer addition iterations.
Definition at line 325 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), and snappyLayerDriver::addLayersSinglePass().

|
inline |
Outer loop to add layer by layer. Can be set to >= max layers.
in which case layers get added one at a time. This can help layer insertion since the newly added layers get included in the shrinking. Default is 1 -> add all layers in one go.
Definition at line 337 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), and snappyLayerDriver::doLayers().

|
inline |
Number of iterations after which relaxed motion rules.
are to be used.
Definition at line 347 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers(), and snappyLayerDriver::addLayersSinglePass().

|
inline |
Definition at line 355 of file layerParameters.H.
|
inline |
Definition at line 360 of file layerParameters.H.
Referenced by snappyLayerDriver::mergePatchFacesUndo().

|
inline |
Definition at line 365 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 376 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().

|
inline |
Stop layer growth on highly warped cells.
Definition at line 384 of file layerParameters.H.
|
inline |
Create buffer region for new layer terminations.
Definition at line 392 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().

|
inline |
Any additional reporting requested?
Definition at line 400 of file layerParameters.H.
Referenced by snappyLayerDriver::addLayers().

|
inline |
Type of mesh shrinker.
Definition at line 408 of file layerParameters.H.
|
static |
Determine overall thickness. Uses two of the four parameters.
according to the thicknessModel
Definition at line 740 of file layerParameters.C.
References Foam::exit(), expansionRatio(), Foam::FatalError, FatalErrorInFunction, FINAL_AND_EXPANSION, FINAL_AND_TOTAL, finalLayerThickness(), FIRST_AND_EXPANSION, FIRST_AND_RELATIVE_FINAL, FIRST_AND_TOTAL, firstLayerThickness(), Foam::mag(), Foam::pow(), and TOTAL_AND_EXPANSION.
Referenced by snappyLayerDriver::addLayers(), and layerThickness().


|
static |
Determine expansion ratio. Uses two of the four parameters.
according to the thicknessModel
Definition at line 833 of file layerParameters.C.
References Foam::exit(), expansionRatio(), Foam::FatalError, FatalErrorInFunction, FINAL_AND_EXPANSION, FINAL_AND_TOTAL, finalLayerThickness(), FIRST_AND_EXPANSION, FIRST_AND_RELATIVE_FINAL, FIRST_AND_TOTAL, firstLayerThickness(), Foam::pow(), and TOTAL_AND_EXPANSION.

|
static |
Determine first layer (near-wall) thickness. Uses two of the.
four parameters according to the thicknessModel
Definition at line 920 of file layerParameters.C.
References Foam::exit(), expansionRatio(), Foam::FatalError, FatalErrorInFunction, FINAL_AND_EXPANSION, FINAL_AND_TOTAL, finalLayerThickness(), finalLayerThicknessRatio(), FIRST_AND_EXPANSION, FIRST_AND_RELATIVE_FINAL, FIRST_AND_TOTAL, firstLayerThickness(), Foam::pow(), and TOTAL_AND_EXPANSION.

|
static |
Determine ratio of final layer thickness to.
overall layer thickness
Definition at line 990 of file layerParameters.C.
References expansionRatio(), Foam::mag(), and Foam::pow().
Referenced by snappyLayerDriver::addLayers(), firstLayerThickness(), and layerThickness().


|
static |
Determine overall thickness of a slice (usually 1 layer).
Definition at line 690 of file layerParameters.C.
References Foam::exit(), expansionRatio(), Foam::FatalError, FatalErrorInFunction, finalLayerThicknessRatio(), firstLayerThickness(), layerThickness(), Foam::mag(), Foam::pow(), and thickness().
