phipict.meshing.curves

Shapes of block edges.

As in blockMesh, a shape describes an edge between two given end points, so the end points always coincide with the block corners:

pm.Arc(center=(0, 0))            # circular arc around the origin
pm.Arc(through=(0.7, 0.7))       # circular arc through a point
pm.Polyline([(1, 0.2), (2, 0.1)])   # straight segments via interior points
pm.Spline([(1, 0.2), (2, 0.1)])     # Catmull-Rom spline via interior points
pm.Parametric(lambda t: ...)        # any curve c(t), t in [0, 1]
pm.Points(surface)                  # given vertex positions, used as they are

The vertices along an edge are placed by arc length, so a grading distributes them along the curve as it would along a straight edge. Points is the exception: it fixes the vertices themselves, e.g. those of a measured or precomputed surface, and with them the number of cells of the edge.

Classes

Arc(*[, through, center])

Circular arc, given by a point on it or by its centre.

BSpline(points)

Cubic B-spline with interior control points (blockMesh BSpline).

EdgeShape()

Shape of an edge between two end points.

Line()

Straight edge, the default.

Parametric(fn)

A curve given as a function of a parameter in [0, 1].

Points(points)

The vertices of an edge, given explicitly and used as they are.

Polyline(points)

Straight segments through interior points (blockMesh polyLine).

Sampled(points)

A densely sampled curve, e.g. an airfoil surface, including its end points.

Spline(points)

Catmull-Rom spline through interior points (blockMesh spline).