Skip to content

How to use DiagonalPolicy to set essential BC in mixed Blocksystem #3544

Answered by mlstowell
markusrenoldner asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@markusrenoldner
Comment options

@v-dobrev
Comment options

@markusrenoldner
Comment options

@v-dobrev
Comment options

@markusrenoldner
Comment options

Answer selected by markusrenoldner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants