calc_GGmax_from_stress_strain#
- PySeismoSoil.helper_site_response.calc_GGmax_from_stress_strain(strain_in_unit_1: ndarray, stress: ndarray, Gmax: float | None = None) ndarray [source]#
Calculate G/Gmax curve from stress-strain curve.
- Parameters:
strain_in_unit_1 (np.ndarray) – Strain array (a 1D numpy array). Unit: 1.
stress (np.ndarray) – Stress array. Its unit can be arbitrary.
Gmax (float | None) – Maximum shear modulus, whose unit needs to be identical to that of the stress curve. If not provided, it is automatically calculated from the stress-strain curve.
- Returns:
GGmax – A 1D numpy array of G/Gmax.
- Return type:
np.ndarray
- Raises:
ValueError – The value of the input parameter is incorrect