grains.simulation.hallpetch_plot¶
-
grains.simulation.
hallpetch_plot
(sigma_y, d, units=('MPa', 'mm'))[source]¶ Plots the Hall-Petch formula for given grain sizes and yield stresses.
- Parameters
sigma_y (ndarray) – Yield stresses.
d (ndarray) – Grain diameters.
units (2-tuple of str, optional) – Units for the yield stress and the grain diameters. The default is (“MPa”,”mm”).
- Returns
fig (matplotlib.figure.Figure) – The figure object is returned in case further manipulations are necessary.