integration over subdomain

Asked by Hossein Nili

Hi

I am solving an equation in one of two subdomains (in the other I set the value of the variable identical to a constant) and now want to find the average value of the solution over the subdomain (which has a sine-shaped outer boundary).

Is there particular syntax for integration over a subdomain. As far as I understood from the FEniCS book, the ds element and subsequent assemble command would integrate over the whole problem domain. Can we make this specific to a given subdomain?

Many thanks,

Question information

Language:
English Edit question
Status:
Answered
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johannes Ring (johannr) said :
#1

FEniCS no longer uses Launchpad for Questions & Answers. Please consult the documentation on the FEniCS web page for where and how to (re)post your question: http://fenicsproject.org/support/

Can you help with this problem?

Provide an answer of your own, or ask Hossein Nili for more information if necessary.

To post a message you must log in.