def test_integrated_strength_ext(self): m = GMS(testmodel, verbosity=-1) m.layer_add_var('T') m.set_rheology(strain_rate=strain_rate, rheologies=[test_material_dict], bodies=bodies) m.compute_integrated_strength(nz=10, mode='extension') target = -1873467598438.9 for val in m.integrated_strength[:, 2]: self.assertAlmostEqual(val, target, places=1)
def test_integrated_strength_comp(self): m = GMS(testmodel, verbosity=-1) m.layer_add_var('T') m.set_rheology(strain_rate=strain_rate, rheologies=[test_material_dict], bodies=bodies) m.compute_integrated_strength(nz=10, mode='compression') target = 3674238431772.26 for val in m.integrated_strength[:, 2]: self.assertAlmostEqual(val, target, places=1)