num_int#

PySeismoSoil.helper_site_response.num_int(accel: ndarray) tuple[numpy.ndarray, numpy.ndarray][source]#

Perform numerical integration on acceleration to get velocity and displacement.

Parameters:

accel (np.ndarray) – Acceleration time history. Should have two columns. The 0th column is the time array, and the 1st column is the acceleration.

Returns:

  • v (np.ndarray) – Velocity time history. Same shape as the input.

  • u (np.ndarray) – Displacement time history. Same shape as the input.