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
|
Circular arc, given by a point on it or by its centre. |
|
Cubic B-spline with interior control points (blockMesh |
|
Shape of an edge between two end points. |
|
Straight edge, the default. |
|
A curve given as a function of a parameter in [0, 1]. |
|
The vertices of an edge, given explicitly and used as they are. |
|
Straight segments through interior points (blockMesh |
|
A densely sampled curve, e.g. an airfoil surface, including its end points. |
|
Catmull-Rom spline through interior points (blockMesh |