plot_strain
- opsvis.plot_strain(strain_str, mesh_outline=1, cmap='turbo', levels=50, fig_wi_he=False, fig_lbrt=False, sfac=False, nu=0.0, ax=False)[source]
Plot strain distribution of the model.
- Parameters:
strain_str (string) – strain component. Available options are: ‘exx’, ‘eyy’, ‘exy’, ‘ezz’
mesh_outline (int) – 1 - mesh is plotted, 0 - no mesh plotted.
cmap (str) – Matplotlib color map (default is ‘turbo’)
levels (int) – number and positions of the contour lines / regions.
- Usage:
opsv.plot_strain('exx') plt.xlabel('x [m]') plt.ylabel('y [m]') plt.show()
See example Plot stress distribution of a plane stress quad model