mooonpy.programs.regression_fringe_response module

mooonpy.programs.regression_fringe_response.RFR_tensile_analysis(strain: ndarray, stress: ndarray, trans_1: ndarray | None = None, trans_2: ndarray | None = None, min_xhi: Number | None = None, max_xhi: Number | None = None, wn: Number | str = 'PSD', order: Number = 2, qm: str = 'msr', log: list | None = None, plots: str | List = 'all') ProgramResults[source]

Implementation of the Regression Fringe Response Modulus Method Tensile Analysis.

Returns results in a Program object as attributes

Result Attributes
  • program_name: str

  • program_version: str

  • log: Log object

  • stress_wn: float. Cutoff used for stress filter

  • stress_qm: str. quadrant mirror setting used for stress filter

  • offset: float. Offset of stress after filtering

  • stress_filt: vector. Filtered stress signal

  • lox: float. Lower bound of linear region strain

  • loy: float. Lower bound of linear region stress

  • midx: float. First pass FBF strain

  • midy: float. First pass FBF stress

  • hix: float. Higher bound of linear region strain

  • hiy: float. Higher bound of linear region stress

  • lo_index: int. index of lower bound

  • hi_index: int. index of higher bound

  • x_intercept: float. Intercept of linear region

  • youngs_modulus: float. Young’s modulus from linear region

  • dstrain: vector. x values from derivative of fringe slope

  • dslopes1: vector. 1st derivative 2nd forward of fringe slope

  • dslopes2: vector. 2nd derivative 2nd forward of fringe slope

  • yield_index: int. index of yield. Falls back to linear region upper bound.

  • yield_x: float. yield strain, will be None if not found

  • yield_y: float. yield stress, will be None if not found

  • figs: dict. Dictionary of matplotlib fig objects.

  • axies: dict. Dictionary of matplotlib axes objects.

Parameters:
  • strain (np.ndarray) – Strain

  • stress (np.ndarray) – Stress

  • trans_1 (np.ndarray) – Transverse strain 1

  • trans_2 (np.ndarray) – Transverse strain 2

  • min_xhi (Number) – Minimum value of xhi, or the smallest span of the elastic region. default None -> min(strain)

  • max_xhi (Number | str) – Maximum value of xhi, considered for the elastic region. default None -> max(strain)

  • wn (Number) – Butterworth lowpass filter cutoff. default ‘PSD’ to use optimization method. may also be ‘off’ to disable.

  • order (Number) – Order of the Butterworth lowpass filter. default 2

  • qm (str) – Quadrant Mirror padding setting, as ‘1,1’ as outlined in extend_data. default ‘msr’ to use optimization method.

  • log (list) – Currently not implemented.

  • plots (str | list) – ‘all’ to plot all plots in individual frames, or ‘quad’ to plot 4 figures in one frame. lists of figure stings select which plots to use.

Returns:

Object containing results of Tensile Analysis

Return type:

ProgramResults

mooonpy.programs.regression_fringe_response.rfr_labeler(axies)[source]
mooonpy.programs.regression_fringe_response.rfr_plotter(plots='all')[source]