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:                 bange...@colostate.edu
                            www: http://www.math.colostate.edu/~bangerth/

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/44754883-4c99-17a5-a77b-f8db9d666a6d%40colostate.edu.

Reply via email to