API

This page details the models, classes, and methods provided by the zandbak package.

Simply supported beams.

clamped_clamped_beam_under_point_force(position_from_left_end, load_intensity, load_position_from_left_end, span_length, flexural_stiffness)

Reference: Figure 25; https://www.awc.org/pdf/codes-standards/publications/design-aids/AWC-DA6-BeamFormulas-0710.pdf

Parameters
  • position_from_left_end (Union[int, float, Iterable, numpy.ndarray]) – position(s) from the hinged end where the internal forces and displacements are calculated, can be a scalar and vector as well (m elements).

  • load_intensity (Union[int, float]) – point load intensity.

  • load_position_from_left_end (Union[int, float]) – point load position from the hinged end.

  • span_length (Union[int, float]) – span length.

  • flexural_stiffness (Union[int, float, Iterable, numpy.ndarray]) – elastic modulus * second moment of area, can be a scalar and vector as well (n elements).

Returns

vertical translation, 2d numpy array of n x m.

rotation, 2d numpy array of n x m.

bending moment, 2d numpy array of n x m.

Structural responses at position_from_left_end.

hinged_clamped_beam_under_point_force(position_from_left_end, load_intensity, load_position_from_hinged_end, span_length, flexural_stiffness)

Reference: Figure 17; https://www.awc.org/pdf/codes-standards/publications/design-aids/AWC-DA6-BeamFormulas-0710.pdf

Parameters
  • position_from_left_end (Union[int, float, Iterable, numpy.ndarray]) – position(s) from the hinged end where the internal forces and displacements are calculated, can be a scalar and vector as well (m elements).

  • load_intensity (Union[int, float]) – point load intensity.

  • load_position_from_hinged_end (Union[int, float]) – point load position from the hinged end.

  • span_length (Union[int, float]) – span length.

  • flexural_stiffness (Union[int, float, Iterable, numpy.ndarray]) – elastic modulus * second moment of area, can be a scalar and vector as well (n elements).

Returns

vertical translation, 2d numpy array of n x m.

rotation, 2d numpy array of n x m.

bending moment, 2d numpy array of n x m.

Return type

Tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray]

Structural responses at position_from_left_end.

hinged_hinged_beam_under_end_moment(position_from_left_end, loaded_end, load_intensity, span_length, flexural_stiffness)

Reference: https://mechanicalc.com/reference/beam-deflection-tables

Parameters
  • position_from_left_end (Union[int, float, Iterable, numpy.ndarray]) – position(s) from the hinged end where the internal forces and displacements are calculated, can be a scalar and vector as well (m elements).

  • load_intensity (Union[int, float]) – point load (moment) intensity.

  • loaded_end (str) – “left” or “right”.

  • span_length (Union[int, float]) – span length.

  • flexural_stiffness (Union[int, float, Iterable, numpy.ndarray]) – elastic modulus * second moment of area, can be a scalar and vector as well (n elements).

Returns

vertical translation, 2d numpy array of n x m.

rotation, 2d numpy array of n x m.

bending moment, 2d numpy array of n x m.

Return type

Tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray]

Structural responses at position_from_left_end.

hinged_hinged_beam_under_point_force(position_from_left_end, load_intensity, load_position_from_left_end, span_length, flexural_stiffness)

Deflection, rotation, and bending moment of a hinged-hinged single span beam with a single concentrated force.

Reference: Figure 8; https://www.awc.org/pdf/codes-standards/publications/design-aids/AWC-DA6-BeamFormulas-0710.pdf

Parameters
  • position_from_left_end (Union[int, float, Iterable, numpy.ndarray]) – position(s) from the hinged end where the internal forces and displacements are calculated, can be a scalar and vector as well (m elements).

  • load_intensity (Union[int, float]) – point load intensity.

  • load_position_from_left_end (Union[int, float]) – point load position from the hinged end.

  • span_length (Union[int, float]) – span length.

  • flexural_stiffness (Union[int, float, Iterable, numpy.ndarray]) – elastic modulus * second moment of area, can be a scalar and vector as well (n elements).

Returns

vertical translation, 2d numpy array of n x m.

rotation, 2d numpy array of n x m.

bending moment, 2d numpy array of n x m.

Return type

Tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray]

Structural responses at position_from_left_end.