ISection.plot_section_with_stress
- ISection.plot_section_with_stress(N=0.0, Mx=0.0, My=0.0, Vx=0.0, Vy=0.0, direction=(1, 0), point=None, nx=50, ny=50)[source]
Plot the section and overlay the stress distribution along a general direction.
- 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).
- directiontuple, optional
A 2D vector defining the direction of the line (default is (1, 0)).
- pointtuple or None, optional
A point on the line (defaults to the section centroid if None).
- nxint, optional
Grid resolution in x direction (default is 50).
- nyint, optional
Grid resolution in y direction (default is 50).
- Raises:
- ValueError
If the specified line does not pass through the section.