The stresssignal module

class pylife.stress.stresssignal.CyclicStressAccessor(pandas_obj)[source]

DataFrame accessor class for cyclic stress data

Raises:AttributeError – if there is no stress amplitide sigma_a key in the data

Notes

Base class to access pandas.DataFrame objects containing cyclic stress data consisting of at least a stress amplitude using the key sigma_a. Optionally an value for the stress ratio R or for meanstress sigma_m can be supplied. If neither R nor sigma_a are supplied a mean stress of zero i.e. R=-1 is assumed.

Todo

Handle also input data with lower and upper stress.

constant_R(R)[source]

Sets sigma_m in a way that R is a constant value.

Parameters:R (float) – The value for R.
Returns:the accessed DataFrame
Return type:pandas.DataFrame
class pylife.stress.stresssignal.StressTensorVoigtAccessor(pandas_obj)[source]

DataFrame accessor class for Voigt noted stress tensors

Raises:AttributeError – if at least one of the needed columns is missing.

Notes

Base class to access pandas.DataFrame objects containing Voigt noted stress tensors. The stress tensor components are assumed to be in the columns S11, S22, S33, S12, S13, S23.

Examples

For an example see equistress.StressTensorEquistressAccessor.