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

How to compute strain energy density using stress and strain tensor?

0 votes

I am novice working with FEniCS and FEM method.
Can you guide me how to compute element wise strain energy density knowing strain
\epsilon = 1/2 (F^T + F) - I, where F= grad(u),
Strain energy density U is given as
U = \lambda/2 (tr(\epsilon))^2 + mu tr(\epsilon^2) (Saint Venant–Kirchhoff model)

related to an answer for: Plot my Stress Tensor Components
asked Feb 18, 2014 by YP FEniCS Novice (180 points)

1 Answer

+4 votes
 
Best answer

Project your expression for the strain energy density onto a piecewise constant basis:

DG = FunctionSpace(mesh, "DG", 0)
elementwise_density = project(<your expression>, DG)
answered Feb 18, 2014 by logg FEniCS Expert (11,790 points)
selected Mar 7, 2014 by YP
...