BladeAD.utils.plot
Module Contents
Functions
|
Generate polar plots for quantities that vary azimuthally and radially. |
- BladeAD.utils.plot.make_polarplot(data: csdl_alpha.Variable, radius: Union[csdl_alpha.Variable, float, int, None] = None, norm_hub_radius: Union[float] = 0.2, quantity_name: list[str] = ['quantity'], plot_contours: bool = True, num_contours: int = 15, plot_min_max: bool = True, azimuthal_offset: Union[float, int, None] = None, fig_size: tuple = (10, 8), cmap: str = 'viridis', vmin=None, vmax=None)
Generate polar plots for quantities that vary azimuthally and radially.
If radius is not provided, plot between normalized hub radius and 1.
Works for multiple evaluations (i.e., num_nodes>1)
- Parameters
- datacsdl.Variable
Data to be plotted; must be of shape (num_nodes, num_radial, num_azimuthal)
- radiusUnion[csdl.Variable, float, int, None], optional
rotor radius; if None, plot between hub radius and 1, by default None
- norm_hub_radiusfloat, optional
fraction of radius, by default 0.2
- quantity_namestr, optional
name of the quantity to be plotted, by default ‘quantity’
- plot_contoursbool, optional
flag for plotting contours, by default True
- num_contoursint, optional
number of contours, by default 10
- plot_min_maxbool, optional
flag for plotting min/max values
- azimuthal_offsetUnion[float, int, None], optional
rotate the polar plot counter clockwise (in degrees), by default None
- fig_sizetuple, optional
by default (10, 8)
- cmapstr, optional
string for matplotlib colormaps, by default ‘viridis’