plot_stress

opsvis.plot_stress(stress_str, mesh_outline=1, cmap='turbo', levels=50, fig_wi_he=False, fig_lbrt=False, sfac=False, nu=0.0, ax=False)[source]

Plot stress distribution of the model.

Parameters:
  • stress_str (string) – stress component. Available options are: ‘sxx’, ‘syy’, ‘sxy’, ‘vmis’, ‘s1’, ‘s2’, ‘alpha’

  • 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_stress('vmis')
plt.xlabel('x [m]')
plt.ylabel('y [m]')
plt.show()

See also:

sig_out_per_node

See example Plot stress distribution of a plane stress quad model