5.1. Design Diagrams
The diagrams module is used to work with bending moment and shear force diagrams. The design diagram class contains tools for linear interpolation
5.1.1. DesignDiagram
- class DesignDiagram(xyIn, lUnit='m')[source]
Bases:
objectRepresents a bending moment or shear force diagram.
- Parameters
xyIn (np.ndarray) – The xy points in.
lUnit (TYPE, optional) – The input units used for length. The default is ‘m’.
- Return type
None.
- convertDiagramTo(outputUnit: str)[source]
Converst the diagram to use the input unit for it’s x values.
- Parameters
outputUnit (str) – The unit to change the x value of the diagram to.
- Return type
None.
- getForceAtx(x: float | list)[source]
A function that can be used to calcualte the y values at a set of input x points. Linear interpolation is used to determine y where a x point does conencide exactly with a x value in the array.
- Parameters
x (float|list) – The points to calcualte y values at.
- Returns
x – The y values for each input x.
- Return type
np.ndarray
- getIntersectionCoords()[source]
Returns the x points where y intersections occur in the bmd
- Returns
The output array/list of points.
- Return type
np.ndarray