On 11/13/23 03:05, Lance Zhang wrote:
>
> I wonder whether the stiffness matrix could be converted to a matrix
> with rows = cell_numbers and columns = cell_numbers.
Lance:
I think I mentioned this before: You can't. The entries of the stiffness
matrix are sums over contributions from different cells. So, in 2d with
Q1 elements for example, every matrix entry A_{ij} has the form
A_{ij} = a+b+c+d
where a...d are the contributions of the four cells adjacent to vertex i
(or j). Once you add these four numbers together, you can no longer
determine what the four numbers were. If you need the contributions of
individual cells, you need to store them before you add them together.
Best
W.