m_n_kappa.SingleSpan#

class m_n_kappa.SingleSpan(length, loads=None, uniform_load=None)#

Bases: ABCSingleSpan

Compute a single-span-beam either with uniform-load or :py:class:`~m_n_kappa.SingleSpan`s.

New in version 0.1.0.

Parameters:
  • length (float) – length of the beam

  • loads (list[SingleLoad]) – list of single-loads applied onto the beam

  • uniform_load (float) – line load that is applied on the beam over the hole length

See also

SingleSpanSingleLoads

single-span with a number of single loads

SingleSpanUniformLoad

single-span with uniform loading

Examples

For computation of the internal forces of a single span girder under a uniform load SingleSpan has to be initialized as follows.

>>> from m_n_kappa import SingleSpan, SingleLoad
>>> uniform_loading = SingleSpan(length=8000, uniform_load=10)

The total loading from the uniform loading may be derived as follows.

>>> uniform_loading.loading
80000.0

The maximum moment is returned by attribute maximum_moment.

>>> uniform_loading.maximum_moment
80000000.0

Similar moment is computed by using positions_of_maximum_moment() and pass the resulting value moment().

>>> uniform_max_loading_position = uniform_loading.positions_of_maximum_moment()
>>> uniform_loading.moment(at_position=uniform_max_loading_position[0])
80000000.0

The resulting transversal shear loads at the support are computed as follows.

>>> uniform_loading.transversal_shear_support_left, uniform_loading.transversal_shear_support_right
(40000.0, -40000.0)

Using the corresponding transversal_shear()-method gives us at the position of maximum moment a value of 0.0, as expected.

>>> uniform_loading.transversal_shear(at_position=uniform_max_loading_position[0])
0.0

Methods

load_by(moment, at_position)

load that leads to given moment at the given position

load_distribution_factor()

factor showing how the moment is distributed

moment(at_position)

moment at the given position along the beam

position_of_maximum_deformation()

positions-value of the maximum-deformation

positions_of_maximum_moment()

positions of maximum moment

transversal_shear(at_position)

transversal shear at the given position along the beam

Attributes

beam

length

length of the beam

loading

sum of vertical loading

maximum_moment

maximum moment

positions

position-points along the beam

transversal_shear_support_left

transversal shear load of the left support

transversal_shear_support_right

transversal shear load of the right support

load_by(moment, at_position)#

load that leads to given moment at the given position

Parameters:
  • moment (float) – desired moment-value

  • at_position (float) – position-value

Returns:

load-value leading to the desired moment at the given position

Return type:

float

load_distribution_factor()#

factor showing how the moment is distributed

Return type:

float

moment(at_position)#

moment at the given position along the beam

Parameters:

at_position (float) – position along the beam

Returns:

moment at the given position within the beam

Return type:

float

position_of_maximum_deformation()#

positions-value of the maximum-deformation

Return type:

float

positions_of_maximum_moment()#

positions of maximum moment

Return type:

list[float]

transversal_shear(at_position)#

transversal shear at the given position along the beam

Parameters:

at_position (float) – position along the beam

Returns:

transversal shear at the given position within the beam

Return type:

float

property length: float#

length of the beam

property loading: float#

sum of vertical loading

property maximum_moment: float#

maximum moment

property positions: list[float]#

position-points along the beam

property transversal_shear_support_left: float#

transversal shear load of the left support

property transversal_shear_support_right: float#

transversal shear load of the right support