matan.tensile.values [source]

module matan.tensile.values

Classes

matan.tensile.values.engineering_values [source]

class engineering_values(standard_module, name: str)

Methods

matan.tensile.values.engineering_values.calculate [source]

method engineering_values.calculate(elongation_array, elongation_units: str, force_array, force_units: str, initial_length: float, width: float, height: float, initial_stress: float = 0)

method to calculate engineering stress and strain values

to calculate engineering stress and strain elongation and force arrays are used.

Parameters

  • elongation_array : array — array of elongation values, later translated into numpy array

  • elongation_units : str — units used to measure elongation

  • force_array : array — array of forces during tensile test, later translated into numpy array

  • force_units : str — force units used in tensile test

  • initial_length : float — inital length of the specimen, used to calculate strain values

  • width : float — width of the specimen used to calculate the area for stress array

  • height : float — height of the speciment's intersection

Raises

  • ValueError — Exception used for non implemented units

Examples

FIXME: Add docs.

matan.tensile.values.engineering_values.set [source]

method engineering_values.set(stress_array, stress_units: str, strain_array, strain_units: str)

method to set stress and strain array

this method to set the strain and stress arrays, it is used in both engineering and real value parameter as it is inherited from engineering_values class by real_values class

Parameters

  • stress_array : array — stress array, to be translated into numpy array

  • stress_units : str — units used in stress array

  • strain_array : array — strain array

  • strain_units : str — units used for strain array

Examples

FIXME: Add docs.

matan.tensile.values.engineering_values.calculate_parameters [source]

method engineering_values.calculate_parameters()

method to generate tensile test parameters values

this method calculates proper tensile test properties from previously set real stress and strain values, or if these values are not calculated or set, this metod try to calculate real values from elongation/force arrays

Examples

FIXME: Add docs.

matan.tensile.values.engineering_values.calculate_modulus [source]

method engineering_values.calculate_modulus(lower_limit=None, upper_limit=None)

this method calculate Young's modulus named also tensile modulus, according to given standard

Parameters

  • lower_limit : float — lower limit of the strain array to calculate tensile modulus

  • upper_limit : float — upper limit of the strain array to calculate tensile modulus

Examples

FIXME: Add docs.

matan.tensile.values.engineering_values.calculate_at_break [source]

method engineering_values.calculate_at_break()

calculate stress and strain values at break moment, according to choosen standard

Examples

FIXME: Add docs.

matan.tensile.values.engineering_values.calculate_strength [source]

method engineering_values.calculate_strength()

matan.tensile.values.engineering_values.calculate_yield_strength [source]

method engineering_values.calculate_yield_strength()

matan.tensile.values.real_values [source]

class real_values(engineering_values_vals_obj: engineering_values, _name: str)

Bases : engineering_values

initialization of real_values method

Parameters

  • engineering_values_vals_obj : engineering_values — engineering_values

  • _name : str — private variable passed from engineering_values

Examples

FIXME: Add docs.

Methods

matan.tensile.values.real_values.calculate [source]

method real_values.calculate()

overrode calculate method of engineering_values class to calculate real values

this method allows calculation of real stress and strain from engineering stress and strain

Examples

FIXME: Add docs.