calc_damping_from_stress_strain#
- PySeismoSoil.helper_site_response.calc_damping_from_stress_strain(strain_in_unit_1: ndarray, stress: ndarray, Gmax: float) ndarray [source]#
Calculate the damping curve from the given stress-strain curve.
- Parameters:
strain_in_unit_1 (np.ndarray) – Strain array in the unit of 1. 1D numpy array.
stress (np.ndarray) – Stress. 1D numpy array
Gmax (float) – Maximum shear modulus, whose unit needs to be identical to that of the stress curve.
- Returns:
damping – A 1D numpy array of damping ratios, in the unit of “1”.
- Return type:
np.ndarray