merge_curve_matrices#
- PySeismoSoil.helper_generic.merge_curve_matrices(GGmax_matrix: ndarray, xi_matrix: ndarray) ndarray [source]#
Merge G/Gmax curves matrix and damping curves matrix. Both matrices need to have the following format:
strain [%]
G/Gmax
strain [%]
damping [%]
strain [%]
G/Gmax
…
…
…
…
…
…
…
…
They need to have the same shape. This function will take the G/Gmax information from
GGmax_matrix
and the damping information fromxi_matrix
, and produce a new matrix.- Parameters:
GGmax_matrix (np.ndarray) – A 2D numpy array of the format above that contains G/Gmax information.
xi_matrix (np.ndarray) – A 2D numpy array of the format above that contains damping information.
- Returns:
merged – The merged 2D numpy array.
- Return type:
np.ndarray
- Raises:
ValueError – When the input has invalid values