pfh.glidersim.extras.plots#

Utility functions for generating visualizations.

Functions

plot_airfoil_coef(coefficients, coef[, ai, ...])

Parameters

plot_airfoil_geo(foil_geo[, N_points])

plot_foil(foil[, s, ai, N_points, surface, ...])

Plot a FoilGeometry in 3D.

plot_foil_topdown(foil[, s, flatten, rotate, ax])

Plot a 3D foil in topdown projection.

pfh.glidersim.extras.plots.plot_airfoil_geo(foil_geo: AirfoilGeometry, N_points: int = 200) None#
pfh.glidersim.extras.plots.plot_airfoil_coef(coefficients: AirfoilCoefficientsInterpolator, coef: str, ai: float = 0, clamp: bool = False, N: int = 100) None#
Parameters
coefficientsAirfoilCoefficientsInterpolator

The airfoil coefficients to plot.

coef{‘cl’, ‘cl_alpha’, ‘cd’, ‘cm’}

The airfoil coefficient to plot. Case-insensitive.

aifloat

Airfoil index

clampbool

FIXME: docstring

Ninteger

The number of sample points per dimension

pfh.glidersim.extras.plots.plot_foil(foil, s=51, ai=0, N_points: int = 50, surface: str = 'airfoil', flatten: bool = False, ax=None)#

Plot a FoilGeometry in 3D.

pfh.glidersim.extras.plots.plot_foil_topdown(foil, s=51, flatten: bool = False, rotate: float = 0, ax=None)#

Plot a 3D foil in topdown projection.

Parameters
foilFoilGeometry
sinteger or array of float, shape (K,)

The number of sections or an explicit list of section indices to plot.

flattenbool

Whether to flatten the arch (ignore dihedral).

rotatefloat [degrees]

Rotation angle about the y-axis. Possibly useful if some manufacturers use Theta_eq for the specs?

axmatplotlib.axes

An existing subplot. Useful for layering or animation.

FIXME: assumes all airfoil indices are zero