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

cells

Cells along x and y; None to infer from neighbours.

Type:

tuple of int or None

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

name

Name of the block.

Type:

str

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

cells

edges

grading

interpolation

name

ndims

Number of spatial dimensions.

patches

corners