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

Tensor product expressions

+1 vote

Dear all,

I have a question about tensor product.

I am new to Fenics and really don't know how to express the following expressions in Fenics.

Sigma(ij) = Cijkl*eps(kl)?

asked Sep 30, 2014 by Wilhelm FEniCS Novice (410 points)
edited Oct 11, 2014 by Wilhelm

I have solved this problem:

sigma = as_tensor(C[i,j,k,l]*eps[k,l],(i,j))

1 Answer

+1 vote
 
Best answer

I have solved this problem:

sigma = as_tensor(C[i,j,k,l]*eps[k,l],(i,j))

answered Oct 4, 2014 by Wilhelm FEniCS Novice (410 points)
selected Oct 12, 2014 by Wilhelm
...