On 10/8/19 6:43 AM, Yang Liu wrote:
>
> The DEAL.II software provides the function VectorTools::compute_mean_value()
> to integrate the solution over the whole domain.
>
> But now I would like to integrate the solution over a subdomain.
Doug Shi-Dong already outlined an idea. Can you elaborate what you mean by
"subdomain"? If it's just a subset of cells, then you simply have to change
the function you refer to (which you can find in
include/deal.II/numerics/vector_tools.templates.h) and in the loop over all
cells simply add another if-condition that checks whether you are inside or
outside the subdomain you care about.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/