From c8f16f16fa4fb84b582553beb033eece3467e77f Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 6 Aug 2014 20:07:47 +0000 Subject: [PATCH] fixed bug in hill criterion --- processing/misc/yieldSurface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/misc/yieldSurface.py b/processing/misc/yieldSurface.py index cecda9157..87eafa99e 100755 --- a/processing/misc/yieldSurface.py +++ b/processing/misc/yieldSurface.py @@ -30,8 +30,8 @@ def asFullTensor(voigt): def Hill48(x, F,G,H,L,M,N): - a = F*(x[1]-x[2])**2 + G*(x[2]-x[0])**2 + H*(x[0]-x[1])** + \ - 2*L*x[4]**2 + 2*M*x[5]**2 + 2*N*x[3]**2 -1. + a = F*(x[1]-x[2])**2.0 + G*(x[2]-x[0])**2.0 + H*(x[0]-x[1])**2.0 + \ + 2.0*L*x[4]**2.0 + 2.0*M*x[5]**2.0 + 2.0*N*x[3]**2.0 -1.0 return a.ravel()