m_n_kappa.Section#

class m_n_kappa.Section(geometry, material)#

Bases: object

Combines material and geometric entity

New in version 0.1.0.

Parameters:

Examples

A section may be created in two ways. In both cases a Material and a Geometry instance is needed.

>>> from m_n_kappa import Steel, Rectangle
>>> steel = Steel(f_y=355.0)
>>> rectangle = Rectangle(top_edge=0.0, bottom_edge=10, width=10.0)

The first way is by simply adding the steel (Material instance) and a rectangle (Geometry instance).

>>> section_top = steel + rectangle
>>> section_top
Section(geometry=Rectangle(top_edge=0.00, bottom_edge=10.00, width=10.00, left_edge=-5.00, right_edge=5.00), material=Steel(f_y=355.0, f_u=None, failure_strain=None, E_a=210000.0))

Alternatively a section is created by passing rectangle and steel as arguments to Section.

>>> from m_n_kappa import Section
>>> section_bottom = Section(geometry=rectangle, material=steel)
>>> section_bottom
Section(geometry=Rectangle(top_edge=0.00, bottom_edge=10.00, width=10.00, left_edge=-5.00, right_edge=5.00), material=Steel(f_y=355.0, f_u=None, failure_strain=None, E_a=210000.0))

Methods

material_strains()

strains of the associated material-model

maximum_negative_strain()

maximum negative strain from associated material-model

maximum_negative_strain_position()

maximum negative strain from associated material-model

maximum_positive_strain()

maximum positive strain from associated material-model

maximum_positive_strain_position()

maximum positive strain from associated material-model

section_strains()

strains of the associated material-model

strain_positions([strain_1, strain_2, ...])

collect all strain-positions between strain_1 and strain_2 (if given)

Attributes

bottom_edge_maximum_strain

StrainPosition with maximum strain on bottom edge of section

bottom_edge_minimum_strain

StrainPosition with minimum strain on bottom edge of section

geometry

Geometry of the section

material

Material of the section

section_type

top_edge_maximum_strain

StrainPosition with maximum strain on top edge of section

top_edge_minimum_strain

StrainPosition with minimum strain on top edge of section

material_strains()#

strains of the associated material-model

Return type:

list[float]

maximum_negative_strain()#

maximum negative strain from associated material-model

Return type:

float

maximum_negative_strain_position()#

maximum negative strain from associated material-model

New in version 0.2.0.

Return type:

StrainPosition

maximum_positive_strain()#

maximum positive strain from associated material-model

Return type:

float

maximum_positive_strain_position()#

maximum positive strain from associated material-model

New in version 0.2.0.

Return type:

StrainPosition

section_strains()#

strains of the associated material-model

Return type:

list[dict]

strain_positions(strain_1=None, strain_2=None, include_strains=False)#

collect all strain-positions between strain_1 and strain_2 (if given)

New in version 0.2.0.

Parameters:
  • strain_1 (float) – first strain border (Default: None)

  • strain_2 (float) – second strain border (Default: None)

  • include_strains (bool) – includes the boundary strain values (Default: False)

Returns:

collected :py:class:`~m_n_kappa.StrainPosition

Return type:

list[StrainPosition]

property bottom_edge_maximum_strain: StrainPosition#

StrainPosition with maximum strain on bottom edge of section

property bottom_edge_minimum_strain: StrainPosition#

StrainPosition with minimum strain on bottom edge of section

property geometry#

Geometry of the section

property material#

Material of the section

property top_edge_maximum_strain: StrainPosition#

StrainPosition with maximum strain on top edge of section

property top_edge_minimum_strain: StrainPosition#

StrainPosition with minimum strain on top edge of section