m_n_kappa.SingleSpanSingleLoads#

class m_n_kappa.SingleSpanSingleLoads(length, loads)#

Bases: ABCSingleSpan

single span with single load(s)

New in version 0.1.0.

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

  • loads (list[SingleLoad]) – loads applied to the beam

See also

SingleSpanUniformLoad

single-span with uniform loading

Examples

For computation of the internal forces of a single span girder under a single load(s), before initializing SingleSpanSingleLoads at least one :py:class`~m_n_kappa.SingleLoad` is needed to define the position and its magnitude.

>>> from m_n_kappa import SingleSpanSingleLoads, SingleLoad
>>> single_load_middle = SingleLoad(position_in_beam=4000, value=10)
>>> single_loading = SingleSpanSingleLoads(length=8000, loads=[single_load_middle])

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

>>> single_loading.loading
10.0

The maximum moment is returned by attribute maximum_moment.

>>> single_loading.maximum_moment
20000.0

Similar moment is computed by using positions_of_maximum_moment() and pass the resulting value moment(). Of course, all positions along the beam may be passed to moment() to compute the corresponding moment.

>>> max_loading_position = single_loading.positions_of_maximum_moment()
>>> max_loading_position
[4000.0]
>>> single_loading.moment(at_position=max_loading_position[0])
20000.0

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

>>> single_loading.transversal_shear_support_left, single_loading.transversal_shear_support_right
(5.0, -5.0)

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

>>> single_loading.transversal_shear(at_position=max_loading_position[0])
0.0

Methods

load_by(moment, at_position)

load by the given moment at the given position

load_by_factor(moment, at_position)

load_distribution_factor()

factor showing how the moment is distributed depending on the loads

moment(at_position)

moment at the given position_value

moment_by(load, at_position)

moment at the given position by the given load

position_of_maximum_deformation()

positions-value of the maximum-deformation

positions_of_maximum_moment()

position_value of the maximum moment

single_loads_with_factor(factor)

single loads multiplied with the given factor

single_loads_with_value(value)

single loads plus given value

single_span_with_factor(factor)

single_span_with_value(value)

transversal_shear(at_position)

transversal shear at the given position_value

Attributes

length

length of the beam

loading

sum of all loads

loads

single loads applied to the beam

maximum_moment

maximum moment under the given moment

positions

position of the single loads 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 by the given moment at the given position

Parameters:
  • moment (float) – moment the load leads to

  • at_position (float) – position-value of the moment

Returns:

load by the moment at the position

Return type:

float

load_distribution_factor()#

factor showing how the moment is distributed depending on the loads

Return type:

float

moment(at_position)#

moment at the given position_value

Parameters:

at_position (float) – position_value where the moment needs to be computed at

Returns:

moment at the given position_value

Return type:

float

static moment_by(load, at_position)#

moment at the given position by the given load

Parameters:
  • load (SingleLoad) – load applied to th

  • at_position (float) –

Return type:

float

position_of_maximum_deformation()#

positions-value of the maximum-deformation

Return type:

float

positions_of_maximum_moment()#

position_value of the maximum moment

Return type:

list[float]

single_loads_with_factor(factor)#

single loads multiplied with the given factor

Parameters:

factor (float) –

Return type:

list[m_n_kappa.loading.SingleLoad]

single_loads_with_value(value)#

single loads plus given value

Parameters:

value (float) –

Return type:

list[m_n_kappa.loading.SingleLoad]

transversal_shear(at_position)#

transversal shear at the given position_value

Parameters:

at_position (float) – position_value where the transversal shear needs to be computed at

Returns:

transversal shear at the given position_value

Return type:

float

property length: float#

length of the beam

property loading: float#

sum of all loads

property loads: list[m_n_kappa.loading.SingleLoad]#

single loads applied to the beam

property maximum_moment: float#

maximum moment under the given moment

property positions: list[float]#

position of the single loads 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