On 12/15/24 08:40, Pratyusa Kar wrote:
> Also I checked with a 4 element mesh and 1 quadrature point. However, I see a
> noninvertible mass matrix. I do not understand what is missing in the code.
Pratyusa:
OK, so you already determined that the matrix is not invertible. The question
is why. What happens if you have only one cell? Or you look at the cell matrix
of a single cell?
I don't understand what you mean by "and 1 quadrature point". I checked with
your code, and if I understand correctly, you are using a Q1 element to
project the strain onto, and that you are using a 2x2 Gauss formula. That
seems appropriate.
I looked at your code, and I do not understand why fe_L2 is vector valued. You
are trying to project individual components of the strain onto a finite
element. The individual components are scalars. Why is fe_L2 not also a scalar?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/