This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Is there a way to define a tensor contraction like C[ijkl]*e[ij]*e[kl] as Expression?

0 votes

I want to evaluate a tensor contraction like elastic energy and interpolate it on the FunctionSpace to solve an evolution equation. Assume that I have defined the tensors appropriately. Is there a way to define a tensor contraction as an expression?
Expression (" C[ijkl]e[ij]e[kl]") ?

asked Jun 6, 2014 by Navid Mozaffari FEniCS Novice (510 points)

1 Answer

0 votes

Try $C : ( e \otimes e)$

inner( C , outer( e,e) )

answered Jun 9, 2014 by HS.Sheng FEniCS Novice (570 points)
...