phipict.meshing.Quad
- class phipict.meshing.Quad(corners: Sequence[Sequence[float] | Tensor], cells: tuple[int | None, int | None] = (None, None), grading: Sequence[Grading | float | int | None] | Grading | float | int | None = None, edges: QuadEdges | None = None, patches: FacePatches | None = None, name: str = 'block', interpolation: Interpolation = Interpolation.TFI)[source]
A 2D block of a
BlockMesh.- corners
(-x-y, +x-y, -x+y, +x+y).- Type:
sequence of point
- grading
Grading per axis (or one for both); None to infer from neighbours.
- Type:
sequence or Grading or float or None
- edges
Curved edges or per-edge gradings.
- Type:
QuadEdges or None
- patches
Patches of the faces.
- Type:
FacePatches or None
- interpolation
Interpolation of the interior.
- Type:
Interpolation
- __init__(corners: Sequence[Sequence[float] | Tensor], cells: tuple[int | None, int | None] = (None, None), grading: Sequence[Grading | float | int | None] | Grading | float | int | None = None, edges: QuadEdges | None = None, patches: FacePatches | None = None, name: str = 'block', interpolation: Interpolation = Interpolation.TFI) None
Methods
__init__(corners[, cells, grading, edges, ...])edge_list()[axis][e]edges.Attributes
ndimsNumber of spatial dimensions.