23 return sp.eye(self.
dim)
26 standard = sp.Matrix([
28 [sp.Rational(1, 2), sp.sqrt(3) / 2]
31 standard = sp.Matrix([
33 [sp.Rational(1, 2), sp.sqrt(3) / 2, 0],
35 sp.Rational(1, 2) / sp.sqrt(3), sp.sqrt(sp.Rational(2, 3))]
37 standard = standard.inv().T
41 def eval(self, p, t, el_id, def_grad):
42 det_exponent = sp.Rational(2, self.
dim)
47 def_grad = def_grad @ standard
54 powJ = det**det_exponent