phipict.meshing.grading
Cell distributions along a block edge.
A grading maps a number of cells to the normalised vertex positions along an
edge, n + 1 strictly increasing weights from 0 to 1:
pm.Simple(4.0).weights(8) # last cell 4x the first (OpenFOAM simpleGrading)
pm.Symmetric(10.0).weights(32) # fine at both ends, centre cells 10x larger
pm.FirstCell(1e-3).weights(64, length=2.0) # first cell height 1e-3
Wherever a grading is accepted, a bare number means Simple with that
ratio (the blockMesh idiom) and None means “not given”: Uniform, or the
grading of a connected block where a BlockMesh can infer it.
Functions
|
Normalise a grading shorthand. |
|
Number of uniform cells that comes closest to a target cell size. |
Classes
|
Blend of a sine (Chebyshev) mapping and uniform spacing. |
|
Where a grading puts its smallest cells. |
|
Cosine (Chebyshev-like) spacing. |
|
Given vertex weights. |
|
Geometric grading with a prescribed size of the smallest cell. |
|
Cells that grow by a constant factor from one cell to the next. |
|
Distribution of the vertices along an edge. |
|
Piecewise geometric grading, OpenFOAM's multi-grading. |
|
One segment of a |
|
Geometric growth with OpenFOAM's |
|
Geometric grading that is fine at both ends, e.g. between two walls. |
|
Hyperbolic tangent stretching. |
|
Equal cells. |