pymead.core.transformation.AirfoilTransformation#

class AirfoilTransformation(dx, dy, alf, c)[source]#

Bases: object

Convenience class for computing transformations of coordinate pairs \((x,y)\) to and from the airfoil-relative coordinate system.

__init__(dx, dy, alf, c)[source]#

Methods

transform_abs(coordinates)

Computes the transformation of the coordinates from the airfoil-relative coordinate system to the absolute coordinate system.

transform_rel(coordinates)

Computes the transformation of the coordinates from the absolute coordinate system to the airfoil-relative coordinate system.

transform_abs(coordinates: ndarray)[source]#

Computes the transformation of the coordinates from the airfoil-relative coordinate system to the absolute coordinate system.

Parameters:

coordinates (np.ndarray) – Size N x 2, where N is the number of coordinates. The columns represent \(x\) and \(y\).

transform_rel(coordinates: ndarray)[source]#

Computes the transformation of the coordinates from the absolute coordinate system to the airfoil-relative coordinate system.

Parameters:

coordinates (np.ndarray) – Size N x 2, where N is the number of coordinates. The columns represent \(x\) and \(y\).