Utils Module#
- pynumad.utils.affinetrans.rotation(axis, angle)#
Designed to replace matlab’s makehgtform
- pynumad.utils.interpolation.interpolator_wrap(x, v, xq, method='linear', axis=0, extrapolation=None)#
This function is designed to emulate the arg structure and output of matlabs interp1d function.
- Parameters:
x (array)
v (array)
xq (array)
method (str) – Defaults to ‘linear’.
axis (int) – Defaults to 0.
extrapolation (bool) – Defaults to None.
- Returns:
array
- pynumad.utils.misc_utils.full_keys_from_substrings(key_list, subtring_list, ignore_case=True)#
Example Usage: subString = [‘B1N3TDx’] res=full_keys_from_substrings(df.keys(),subString)
output: [‘B1N3TDxr_[m]’]
Example Usage: subString = [‘B2’,’TDx’] res=full_keys_from_substrings(df.keys(),subString)
output: [‘B2N1TDxr_[m]’, ‘B2N2TDxr_[m]’, ‘B2N3TDxr_[m]’, ‘B2N4TDxr_[m]’, ‘B2N5TDxr_[m]’, ‘B2N6TDxr_[m]’, ‘B2N7TDxr_[m]’, ‘B2N8TDxr_[m]’, ‘B2N9TDxr_[m]’, ‘B2TipTDxr_[m]’]
- pynumad.utils.misc_utils.LARCetaT(alp0)#
Compute the coefficient of transverse influence required for Larc failure criteria.
“In the absence of biaxial test data, ?L can be estimated from the longitudinal and transverse shear strengths.” Failure Criteria for FRP Laminates in Plane Stress Carlos G. Dávila, Pedro P. Camanho
- Parameters:
alp0 – Material fracture angle, degrees
- Returns:
etaT
- pynumad.utils.misc_utils.LARCetaL(SL, YC, alp0)#
Compute the coefficient of longitudinal influence required for Larc failure criteria.
“In the absence of biaxial test data, ?L can be estimated from the longitudinal and transverse shear strengths.” Failure Criteria for FRP Laminates in Plane Stress Carlos G. Dávila, Pedro P. Camanho
- Parameters:
SL – Lateral shear strength
YC – Transverse compressive strength
alp0 – Material fracture angle, degrees
- Returns:
etaL