Why the mass and stiffness matrices extracted from SOFA do not match the right matrices extracted from COMSOL ? #5447
-
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
|
In this issue I only consider the shape of the matrix, not the detailed values!!! |
Beta Was this translation helpful? Give feedback.
-
|
Solution refers to #3134 |
Beta Was this translation helpful? Give feedback.
-
|
I assume that you use MeshMatrixMass. In MeshMatrixMass, the mass integration is distributed on vertices and edges. In a hexahedron, some vertices are not connected by edges. Therefore, this type of interaction is not taken into account in the mass matrix. And that is why, you see a lot more zeros in the matrix in SOFA. I guess you will have more accurate results with tetrahedra, where this situation does not happen. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for your prompt reply! Your suggestions will be very helpful to me! |
Beta Was this translation helpful? Give feedback.
-
|
Another question, If there are some ways to extract the Constraints Matrix and "Internal Force Vector and its Jacobian". Some simple examples would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
-
|
There is a work in progress to extract the constraint matrix. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for your reply! |
Beta Was this translation helpful? Give feedback.



I assume that you use MeshMatrixMass.
In MeshMatrixMass, the mass integration is distributed on vertices and edges. In a hexahedron, some vertices are not connected by edges. Therefore, this type of interaction is not taken into account in the mass matrix. And that is why, you see a lot more zeros in the matrix in SOFA.
I guess you will have more accurate results with tetrahedra, where this situation does not happen.