On 1/17/23 06:42, Wasim Niyaz Munshi ce21d400 wrote:
Hello everyone. I am trying to plot load displacement curves for an elasticity
problem.
For this I need to extract the non-zero elements of my sparse stiffness
matrix. I tried something like system_matrix[I][j] to extract the ij-th entry
but it seems this doesn't work for the SparseMatrix.
Can anyone help me with this?
Wasim -- yes, this is the wrong syntax to extract elements from a sparse
matrix. Fortunately, the documentation of the class offers a number of ways to
access matrix elements:
https://dealii.org/developer/doxygen/deal.II/classSparseMatrix.html
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/e0893936-5746-6b11-c709-6409405c657b%40colostate.edu.