calc_damping_from_param#
- PySeismoSoil.helper_site_response.calc_damping_from_param(param: dict[str, float], strain_in_unit_1: ndarray, func_stress: Callable[[Any, ...], Any]) ndarray [source]#
Calculate damping values from HH or MKZ parameters.
- Parameters:
param (dict[str, float]) – Soil model parameters.
strain_in_unit_1 (np.ndarray) – An 1D array of strain values. Unit: 1 (not percent).
func_stress (Callable[[Any, ...], Any]) – The function to calculate stress from
strain_in_unit_1
andparam
- Returns:
damping – Damping values corresponding to each strain values, in the unit of “1”.
- Return type:
np.ndarray
- Raises:
TypeError – The type of the input parameter is incorrect