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: object

Represents 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

getMaxForceInRange(x1, x2)[source]

Determines the absolute maximum y value within a range x1 -> x2

Parameters
  • x1 (float) – The start of the range.

  • x2 (float) – The end of the range. Must be greater than x1.

Returns

The maximum value within the range.

Return type

float

lConvert(outputUnit: str)[source]

Get the conversion factor from the current unit to the output unit for length units.

Parameters

outputUnit (str) – The unit to convert the current units to.

Returns

The output unit.

Return type

float