plot_stress_2d

opsvis.plot_stress_2d(nds_val, mesh_outline=1, cmap='turbo', levels=50)[source]

Plot stress distribution of a 2d elements of a 2d model.

Parameters:
  • nds_val (ndarray) – the values of a stress component, which can be extracted from sig_out array (see sig_out_per_node function)

  • mesh_outline (int) – 1 - mesh is plotted, 0 - no mesh plotted.

  • cmap (str) – Matplotlib color map (default is ‘turbo’)

Usage:

See demo_quads_4x4.py example.

See example Plot stress distribution of a plane stress quad model