How to use DiagonalPolicy to set essential BC in mixed Blocksystem #3544
-
Dear community, we are currently implementing a Dirichlet problem that involves multiple function spaces and results in a blockmatrixsystem. We did not understand how Suppose i want to solve the following LSE: so the matrix
where The solution is now
that influences how the command |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hello, @markusrenoldner, Unfortunately, I think this may be a poorly chosen test matrix. If you make it symmetric by adding a '1' in the upper right entry your example should work fine. When applying Dirichlet constraints in a FEM context we remove the rows and columns of the matrix which correspond to Dirichlet entries and we modify the right hand side vector so that the solution has the desired Dirichlet values in the proper locations. The |
Beta Was this translation helpful? Give feedback.
Hello, @markusrenoldner,
Unfortunately, I think this may be a poorly chosen test matrix. If you make it symmetric by adding a '1' in the upper right entry your example should work fine.
When applying Dirichlet constraints in a FEM context we remove the rows and columns of the matrix which correspond to Dirichlet entries and we modify the right hand side vector so that the solution has the desired Dirichlet values in the proper locations. The
DiagonalPolicy
controls how the diagonal entries of the matrix are replaced on these Dirichlet rows and columns. The standard way to do this is to place a '1' on the diagonal and place the desired Dirichlet value in the right hand side (this is the de…