def test_sigma_d_comp(self): m = GMS() material = test_material() mode = 'compression' processes = ['dislocation', 'dorn'] outputs = ['byerlee', 'dislocation', 'dorn'] target = { 'dsigma_max': -1452181.9550299197, 'byerlee': -311173200.0, 'dislocation': -1452181.9550299197, 'dorn': -182170257.3512531 } result = m.sigma_d(material, depth, temp, strain_rate=strain_rate, compute=processes, mode=mode, output=outputs) self.assertEqual(result, target)
def test_sigma_d_fail_z(self): m = GMS() material = test_material() with self.assertRaises(ValueError): m.sigma_d(material, -100, temp)