def setUp(self): self.stresses = [damage.VonMisesEffectiveStress(), damage.MaxPrincipalEffectiveStress()] self.weights = [0.37, 1.0-0.37] self.es = damage.SumSeveralEffectiveStress(self.stresses, self.weights) self.stress = np.array([100,-50.0,300.0,-99,50.0,125.0])
def setUp(self): self.es = damage.MaxSeveralEffectiveStress([ damage.VonMisesEffectiveStress(), damage.MaxPrincipalEffectiveStress() ]) self.stress = np.array([100, -50.0, 300.0, -99, 50.0, 125.0])
def effective_model(self): return damage.MaxSeveralEffectiveStress([ damage.VonMisesEffectiveStress(), damage.MaxPrincipalEffectiveStress()])
def effective_model(self): return damage.MaxPrincipalEffectiveStress()
def setUp(self): self.es = damage.MaxPrincipalEffectiveStress() self.stress = np.array([100,-50.0,300.0,-99,50.0,125.0])