Skip to content
Discussion options

You must be logged in to vote

Hi @jjalora

you are right that there is an ongoing work on this topic. It should be ready for the next release in June (I hope).

The matrix K is computed in the addKToMatrix functions of all force fields. Unfortunately, the contributions are all summed up into a global matrix. You can extract the global matrix, but cannot retrieve K from it.

If you can't wait for the next release, you'll need to hack the C++ code to get the K matrix. Here is what I suggest:

  • In MatrixLinearSolver, create another member dedicated to the K matrix (Matrix kMatrix;).
  • Go to MatrixLinearSolver::setSystemMBKMatrix.
  • After mops.addMBK_ToMatrix, call it again but with mFactor set to 0, bFactor set to 0 and kFactor

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
6 replies
@jjalora
Comment options

@artXuRo
Comment options

@hugtalbot
Comment options

@artXuRo
Comment options

@alxbilger
Comment options

Answer selected by jjalora
Comment options

You must be logged in to vote
3 replies
@artXuRo
Comment options

@jjalora
Comment options

@alxbilger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants