Skip to content

Essential BC for mixed problem #3431

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

You must be logged in to vote

Hi @markusrenoldner,

You can call Operator::FormLinearSystem on the BlockOperator, where the list of essential DOFs indexes into the monolithic block vector. For example, this modification of example 5 solves the Darcy system on a unit square mesh with essential boundary conditions on part of the boundary, and natural boundary conditions on the remainder.

You can run the example with ./ex5 -m ../data/inline-quad.mesh.

(Note you can also do the elimination in the 2x2 system "by hand", e.g. by using FormLinearSystem, FormSystemMatrix, and FormRectangularSystemMatrix on the relevant blocks that need to have DOFs eliminated. You will need to ensure that you modify the RHS appropriately).

diff…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by markusrenoldner
Comment options

You must be logged in to vote
4 replies
@pazner
Comment options

@markusrenoldner
Comment options

@pazner
Comment options

@markusrenoldner
Comment options

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