AngleSection.plot_stress_distribution

AngleSection.plot_stress_distribution(N=0.0, Mx=0.0, My=0.0, Vx=0.0, Vy=0.0, nx=50, ny=50, cmap='coolwarm', show_tau=True)[source]

Visualize normal stress (σ) and optionally shear stresses (τ_x, τ_y) with the neutral axis.

Parameters:
Nfloat, optional

Axial force (default is 0.0).

Mxfloat, optional

Bending moment about the x-axis (default is 0.0).

Myfloat, optional

Bending moment about the y-axis (default is 0.0).

Vxfloat, optional

Shear force in the x-direction (default is 0.0).

Vyfloat, optional

Shear force in the y-direction (default is 0.0).

nxint, optional

Grid resolution in x direction (default is 50).

nyint, optional

Grid resolution in y direction (default is 50).

cmapstr, optional

Colormap for stress visualization (default is “coolwarm”).

show_taubool, optional

Whether to display separate plots for shear stresses (τ_x, τ_y) (default is True).