I would like to evaluate the strain tensor (constant inside element) at each element. Then I want to output the strain tensor, corresponding element number, and the element volume. Does anyone have idea on how to achieve these in Fenics? Thanks.
See for instance: How to compute the strain & stress matrices? - #4 by bleyerj
For further information, a minimal reproducible example is required.
Thank you for pointing this out. I learnt from the post that I can evaluate the stain a any point. In my case, I would like to evaluate the stain at mid-point of each cell and then output them, and the corresponding cell id. Do you have more specific suggestions for that? Thank you.