sajou.postprocessing module

Postprocessing module.

class sajou.postprocessing.Postprocess(result)

Bases: object

Class for managing the postprocessing of results.

calc_all_deflections(n=11)

Compute the deflections of every element in the model. The number of points at whicn the deflections are calculated is specified in the variable ‘n’ (default n=11).

Parameters:n – number of points at which the deflections are copmuted
Returns:TODO
calc_all_internal_forces(n=11)

Compute the internal forces at every element of the model.

The number of points on which the internal forces are evaluated in each element are set by the variable ‘n’ (default n=11).

Parameters:n (int) – number of points at which the internal forces are evaluated. Must grater than 2 (n>=2)
Returns:ndarray
Return type:array with internal forces
calc_axial_at(pos, element, unit_length=False)

Calculate the axial force of element at position x.

Parameters:
  • pos (float) – position where to compute the axial force
  • element (Element instance) – The element for which the axial force should be computed
  • unit_length (bool) – Defines whether the range is [0, 1] or [0, Le] (default)
Returns:

float

Return type:

value of the axila force at the specified position

calc_internal_force_element(element, pos, component, unit_length=False)

Compute the internal forces of a given element.

The variable ‘pos’ defines te position where the internal force is calculated. It can also be an array, specifying different positions at which the internal forces are needed.

Parameters:
  • element (Beam instance) – the element for which the internal forces are to be computed
  • pos (float) – position of evaluation
  • component (str) –

    Defines the component that is going to be computed:

    • ‘moment’
    • ‘shear’
    • ‘axial’
  • unit_length (bool) – Sets wheather the local coordinate ‘x’ of the beam move between [0,1] or [0,Le]
Returns:

ndarray

Return type:

internal force specified

calc_moment_at(pos, element, unit_length=False)

Calculate the moment of element at position x.

Parameters:
  • pos (float) – position where to compute the moment
  • element (Element instance) – The element for which the moment should be computed
  • unit_length (bool) – Defines whether the range is [0, 1] or [0, Le] (default)
Returns:

float

Return type:

value of the moment at the specified position

calc_node_new_coord()

Calculate the new coordinates of the nodes in the deformed state :returns: TODO

calc_shear_at(pos, element, unit_length=False)

Calculate the shear force of element at position x.

Parameters:
  • pos (float) – position where to compute the shear force
  • element (Element instance) – The element for which the shear force should be computed
  • unit_length (bool) – Defines whether the range is [0, 1] or [0, Le] (default)
Returns:

float

Return type:

value of the shear force at the specified position