phipict.grid.shapes
Generation and manipulation of structured grid coordinates.
Functions
|
Compute cell-center coordinates by averaging the vertices of each cell. |
|
Add linearly extrapolated vertex layers at the given boundaries. |
|
Extrude a 2D grid along z. |
|
Generate the vertices of a 2D block from its corners and borders. |
|
Get the boundary vertex layer together with a linearly extrapolated one. |
|
Build a grid of integer cell indices. |
|
Build a grid that is 1 inside a centered box and 0 elsewhere. |
|
Build a grid with a separable normal distribution over |
|
Evaluate a separable normal distribution on an orthogonal grid. |
|
Build a grid with alternating 0/1 values along the first axis. |
|
Interpolate inner grid vertices from the four border vertex lists. |
|
Mirror interpolation weights so the refinement is at the other end. |
|
Build a 2D rotation matrix. |
|
Build a 3D rotation matrix from a rotation vector. |
|
Build a sine-shaped rotation weighting for |
|
Build a half-cosine rotation weighting for |
|
Generate a 2D grid of a torus (annulus) segment. |
|
Generate an axis-aligned 2D grid with exponential refinement at walls. |
|
Create cell weights using the requested grading scheme. |
|
Create cell weights by blending the Chebyshev and identity transforms. |
|
Create interpolation weights with cosine spacing. |
|
Create interpolation weights with exponentially growing cell sizes. |
|
Create exponential weights from the ratio of the largest to smallest cell. |
|
Create uniform interpolation weights. |
|
Create cell weights using OpenFOAM-style simpleGrading cell expansion ratio. |
|
Create cell weights using the classical tanh transformation. |
|
Reconstruct vertex coordinates from orthogonal per-cell transforms. |
|
Rotate grid coordinates. |