예제 #1
0
 def test_stress_von_mises(self):
     expected_mises = 283.2082
     from femresult.resulttools import calculate_von_mises as vm
     mises = vm(self.get_stress_values())
     # fcc_print(round(mises, 4))
     self.assertEqual(
         round(mises, 4), expected_mises,
         "Calculated von Mises stress is not the expected value.")
예제 #2
0
 def test_stress_von_mises(
     self
 ):
     expected_mises = 283.2082
     from femresult.resulttools import calculate_von_mises as vm
     mises = vm(self.get_stress_values())
     # fcc_print(round(mises, 4))
     self.assertEqual(
         round(mises, 4),
         expected_mises,
         "Calculated von Mises stress is not the expected value."
     )