def test_from_encn452_2013(): """ Values from HW#7 crib ENCN452 course 2013 """ length = 6.0 # actually a strip in width = 3.0 depth = 1.5 phi = 0.0 cohesion = 40.0 unit_dry_weight = 18.0 sl = geofound.create_soil(phi, cohesion, unit_dry_weight) fd = geofound.create_foundation(length, width, depth) geofound.capacity_terzaghi_1943(sl, fd, verbose=0) geofound.capacity_vesics_1975(sl, fd, verbose=0) assert np.isclose(fd.q_ult, 298.0, rtol=0.001)
def test_very_short_foundation_w_vesics(): length = 0.265 # actually a strip in width = 4.7 depth = 2.24 fd = geofound.create_foundation(length, width, depth) width = 0.265 length = 4.7 fdo = geofound.create_foundation(length, width, depth) phi = 32.0 cohesion = 0.0 unit_dry_weight = 14943.15 sl = geofound.create_soil(phi, cohesion, unit_dry_weight) q_ult = geofound.capacity_vesics_1975(sl, fd) q_ulto = geofound.capacity_vesics_1975(sl, fdo) assert np.isclose(q_ult, q_ulto, rtol=0.001)
def test_vesics(): """ values from: Gunaratne, Manjriker. 2006. "Spread Footings: Analysis and Design." """ length = 2 width = 2 depth = 1 phi = 35 cohesion = 0 unit_dry_weight = 17 sl = geofound.create_soil(phi, cohesion, unit_dry_weight) fd = geofound.create_foundation(length, width, depth) geofound.capacity_vesics_1975(sl, fd, verbose=0) assert np.isclose(fd.nc_factor, 46.1, rtol=0.001) assert np.isclose(fd.nq_factor, 33.3, rtol=0.001) assert np.isclose(fd.ng_factor, 48.0, rtol=0.001) assert np.isclose(fd.q_ult, 1574.8, rtol=0.001)