|
2 | 2 | import numpy as np |
3 | 3 | import matplotlib.pyplot as plt |
4 | 4 | import matplotlib.colors as mcolors |
5 | | -from .support_soils import clay_profile, sand_profile |
| 5 | +from support_soils import clay_profile, sand_profile |
6 | 6 |
|
7 | 7 | def getCapacitySuction(profile_map, location_name, D, L, zlug, Ha, Va, thetalug=5, psilug=7.5, plot=False): |
8 | 8 | '''Calculate the inclined load capacity of a suction pile in sand or clay following S. Kay methodology. |
@@ -124,8 +124,8 @@ def vertical_cross(H, M, H_target): |
124 | 124 | # Calculate properties over clipped dz |
125 | 125 | z_vals = np.linspace(z_top_clip, z_bot_clip, npts) |
126 | 126 | Su_vals = f_Su(z_vals) |
127 | | - Su_total = np.trapezoid(Su_vals, z_vals) |
128 | | - Su_moment = np.trapezoid(Su_vals*z_vals, z_vals) |
| 127 | + Su_total = np.trapz(Su_vals, z_vals) |
| 128 | + Su_moment = np.trapz(Su_vals*z_vals, z_vals) |
129 | 129 |
|
130 | 130 | ez_layer = Su_moment/Su_total |
131 | 131 | Su_av_z = f_Su(ez_layer) |
@@ -354,7 +354,7 @@ def vertical_cross(H, M, H_target): |
354 | 354 | # Define colormap |
355 | 355 | cmap = plt.colormaps['Greys'] |
356 | 356 | norm = mcolors.Normalize(vmin=min(shrink_factors), vmax=max(shrink_factors)) |
357 | | - |
| 357 | + |
358 | 358 | for s_f in shrink_factors: |
359 | 359 | color = cmap(norm(s_f)) |
360 | 360 | x_ellipse = Hmax_final*s_f*np.cos(theta) |
@@ -509,7 +509,7 @@ def vertical_cross(H, M, H_target): |
509 | 509 | D, L, zlug, # Pile geometrical properties |
510 | 510 | Ha, Va, # Pile loading conditions |
511 | 511 | thetalug=theta, psilug=psi, # Pile misaligment tolerances |
512 | | - plot=True |
| 512 | + plot=False |
513 | 513 | ) |
514 | 514 |
|
515 | 515 | # print('\n--- Suction Pile Capacity Results ---') |
|
0 commit comments