m_n_kappa.curves_m_n_kappa.MNKappaCurvePoints#

class m_n_kappa.curves_m_n_kappa.MNKappaCurvePoints(points=None)#

Bases: object

Container for points on computed \(M\)-\(N\)-\(\kappa\)-Curve

New in version 0.2.0.

Parameters:

points (list[MNKappaCurvePoint]) – M-N-Kappa-Curve-Points are already available

Raises:

TypeError – In case the points are not of type MNKappaCurvePoint

Methods

add(moment, curvature, axial_force, ...[, ...])

add moment-curvature point to list

cross_section_axial_forces(positive_moment)

get axial-forces for 1st and 2nd cross-section considering the sign of the moment

curvature(by_moment, axial_force)

get curvature considering the given moment and axial_force

max(attribute)

determine maximum value of the given attribute in the points list

maximum_moment()

computes the maximum moment of the curve

min(attribute)

determine minimum value of the given attribute in the points list

moment(strain_difference, axial_force[, ...])

get the moment from the curve corresponding with the given axial_force and strain_difference.

print_points()

results_as_dict([moment_factor])

The moment-curvature points as descriptive Dictionary.

Attributes

axial_forces

axial forces of the Moment-Axial Force-Curvature-Curve

curvatures

computed curvatures of the Moment-Axial Force-Curvature-Curve

materials

materials the strain-position-points is obtained from that lead to moment-curvature pair

moments

computed moments of the Moment-Axial Force-Curvature-Curve

points

\(M\)-\(\kappa\)-curve points

positions

positions that lead to moment-curvature pair

strain_differences

strain differences of the Moment-Axial Force-Curvature-Curve

strains

strains that lead to moment-curvature pair

add(moment, curvature, axial_force, axial_force_cross_section_number, strain_difference, cross_section, strain_position, neutral_axis_1=None, neutral_axis_2=None)#

add moment-curvature point to list

Parameters:
  • moment (float) – computed moment of the point

  • curvature (float) – computed curvature of the point

  • axial_force (float) – axial_force between sub-cross-sections

  • axial_force_cross_section_number (int) –

  • strain_difference (float) – difference in strain between sub-cross-sections

  • cross_section (MKappaByStrainPosition) – computed cross-section

  • strain_position (StrainPosition) – strain and its position

  • neutral_axis_1 (float) – computed neutral-axis leading to equilibrium (after variation)

  • neutral_axis_2 (float) – computed neutral-axis leading to equilibrium (after variation)

Return type:

None

cross_section_axial_forces(positive_moment)#

get axial-forces for 1st and 2nd cross-section considering the sign of the moment

Parameters:

positive_moment (bool) –

Return type:

tuple[list[float], list[float]]

curvature(by_moment, axial_force)#

get curvature considering the given moment and axial_force

Parameters:
  • by_moment (float) – moment the curvature is to be computed from

  • axial_force (float) – axial-force to consider the moment

Returns:

curvature \(\kappa\) computed from the given moment and axial_force

Return type:

float

Raises:

ValueError – in case the moment is outside the computed moment-range

max(attribute)#

determine maximum value of the given attribute in the points list

Parameters:

attribute (str) –

Return type:

float

maximum_moment()#

computes the maximum moment of the curve

Return type:

float

min(attribute)#

determine minimum value of the given attribute in the points list

Parameters:

attribute (str) –

Return type:

float

moment(strain_difference, axial_force, moment_is_positive=True)#

get the moment from the curve corresponding with the given axial_force and strain_difference.

Parameters:
  • strain_difference (float) – strain-difference between the sub-cross-sections

  • axial_force (float) – axial-force

  • moment_is_positive (float) – checks only positive moments

Returns:

moment

Return type:

float

results_as_dict(moment_factor=1.0)#

The moment-curvature points as descriptive Dictionary.

Following keys are given with the corresponding lists:

  • 'Moment': computed moments of the Moment-Axial-Force-Curvature curve

  • 'Curvature': computed curvatures of the Moment-Axial-Force-Curvature curve

  • 'Axial-Force': computed axial-forces of the Moment-Axial-Force-Curvature curve

  • 'Strain-Difference': Differences between sub-cross-section of the Moment-Axial-Force-Curvature curve

  • 'Strain': strains that lead to the above given moment-curvature-pair

  • 'Position': position that corresponds to the above given strain

  • 'Material': material strain and position are obtained from

Parameters:

moment_factor (float) – factor to compute the moment (default: 1.0)

Returns:

moment-curvature points

Return type:

dict

property axial_forces: list[float]#

axial forces of the Moment-Axial Force-Curvature-Curve

property curvatures: list[float]#

computed curvatures of the Moment-Axial Force-Curvature-Curve

property materials: list[str]#

materials the strain-position-points is obtained from that lead to moment-curvature pair

property moments: list[float]#

computed moments of the Moment-Axial Force-Curvature-Curve

property points: list[m_n_kappa.curves_m_n_kappa.MNKappaCurvePoint]#

\(M\)-\(\kappa\)-curve points

property positions: list[float]#

positions that lead to moment-curvature pair

property strain_differences: list[float]#

strain differences of the Moment-Axial Force-Curvature-Curve

property strains: list[float]#

strains that lead to moment-curvature pair