def test_stress_principal(self): expected_principal = (-178.0076, -194.0749, -468.9075, 145.4499) from femresult.resulttools import calculate_principal_stress as pr prin = pr(self.get_stress_values()) rounded_prin = (round(prin[0], 4), round(prin[1], 4), round(prin[2], 4), round(prin[3], 4)) # fcc_print(rounded_prin) self.assertEqual(rounded_prin, expected_principal, "Calculated principal stresses are not the expected values.")
def purge_results(self): """Remove all result objects and result meshes from an analysis group """ from femresult.resulttools import purge_results as pr pr(self.analysis)
def purge_results(self): from femresult.resulttools import purge_results as pr pr(self.analysis)