RodElement module
Classes for failure analyisis of rod/bar/beam element.
Revision: 1.0.0 $Date: 24/01/2023 10:43$
History
1.0.0 - Initial Class Creation
To Do:
So many
- class RodElement.RodElem(mat, area, stress, length)[source]
Bases:
object
Class for failure analysis of rod elements
Examples:
Example of calculation of Margin of Safety.
>>> elem = RodElem(mat, aresa, stress, length) >>> elem.calc_ms() >>> elem.get_ms()
Documentation last updated: Jan. 24, 2023 - Shugo Date
- __init__(mat, area, stress, length)[source]
RodElem Class Initialization.
- Parameters
mat (dict) – dictionary of material properties
area (float) – area of cross-section
stress (pd.DataFrame) – stress
length (float) – length in longitudinal direction
- Returns
None
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms()[source]
Administrator of MS calculation.
Comment and uncomment lines depending on your case
- Parameters
None –
- Returns
None
Note
Selection of failure should be an input. Can someone please refactor it?
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms_compression()[source]
Calculate MS for compressive strength.
- Parameters
None –
- Returns
margin of safety
- Return type
ms (float)
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms_tension()[source]
Calculate MS for tensile strength.
- Parameters
None –
- Returns
margin of safety
- Return type
ms (float)
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms_buckling_e()[source]
Calculate MS for Euler buckling strength.
- Parameters
None –
- Returns
margin of safety
- Return type
ms (float)
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms_buckling_j()[source]
Calculate MS for Johnson buckling strength.
- Parameters
None –
- Returns
margin of safety
- Return type
ms (float)
Note
\(C\) represents yield stress in case of metal. The use of Johnson buckling and the selection of \(C\) are worthy of consideration. Currently, an industry is convinced with the use of compressive strength.
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms_strain_oht()[source]
Calculate MS for OHT strain criteria.
- Parameters
None –
- Returns
MS for OHT strain criteria
- Return type
ms (float)
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms_strain_ohc()[source]
Calculate MS for OHC strain criteria.
- Parameters
None –
- Returns
MS for OHC strain criteria
- Return type
ms (float)
Documentation last updated: Jan. 24, 2023 - Shugo Date
- class RodElement.BeamElem(mat, area, i11, i22, i12, j, stress, length)[source]
Bases:
object
Class for failure analysis of beam elements
Examples:
Example of calculation of Margin of Safety.
>>> elem = BeamElem(mat, aresa, i11, i22, i12, stress, length) >>> elem.calc_ms() >>> elem.get_ms()
Note
This class should inherit from the rod class.
Documentation last updated: Jan. 24, 2023 - Shugo Date
- __init__(mat, area, i11, i22, i12, j, stress, length)[source]
BeamElem Class Initialization.
- Parameters
mat (dict) – dictionary of material properties
area (float) – area of cross-section
i11 (float) – moment of inertia of area in strong axis
i22 (float) – moment of inertia of area in weak axis
i12 (float) – product of inertia of area
stress (pd.DataFrame) – stress
length (float) – length in longitudinal direction
- Returns
None
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms()[source]
Administrator of MS calculation.
Comment and uncomment lines depending on your case
- Parameters
None –
- Returns
None
Note
Selection of failure should be an input. Can someone please refactor it?
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms_compression()[source]
Calculate MS for compressive strength.
- Parameters
None –
- Returns
margin of safety
- Return type
ms (float)
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms_tension()[source]
Calculate MS for tensile strength.
- Parameters
None –
- Returns
margin of safety
- Return type
ms (float)
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms_buckling_e()[source]
Calculate MS for Euler buckling strength.
- Parameters
None –
- Returns
margin of safety
- Return type
ms (float)
Documentation last updated: Jan. 24, 2023 - Shugo Date
- calc_ms_buckling_j()[source]
Calculate MS for Johnson buckling strength.
- Parameters
None –
- Returns
margin of safety
- Return type
ms (float)
Note
\(C\) represents yield stress in case of metal. The use of Johnson buckling and the selection of \(C\) are worthy of consideration. Currently, an industry is convinced with the use of compressive strength.
Documentation last updated: Jan. 24, 2023 - Shugo Date