Skip to content

Integral of solution on (sub)domains #1148

Answered by kinnala
fewagner asked this question in Q&A
Discussion options

You must be logged in to vote

The basic idea is described here: https://scikit-fem.readthedocs.io/en/latest/howto.html#postprocessing-the-solution

To integrate over subdomain, you tag the respective elements using Mesh.with_subdomains or using external mesh generator and initialize intbasis=Basis(mesh, elem, elements='yourtag') to use together with Functional wrapper.

To integrate over facets you use FacetBasis. I am now on mobile phone so cannot answer in more detail.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@fewagner
Comment options

Answer selected by fewagner
Comment options

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

@fewagner
Comment options

@kinnala
Comment options

@fewagner
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