Muhammad,
> When we get the solution of Helmoltz equation using the function
> UltrasoundProblem<dim>::solve ()
> [...]
>
> The output solution will be alpha and Beta from the function
> UltrasoundProblem<dim>::solve (). It will become of the input of the class
> class ComputeIntensity : public DataPostprocessorScalar
> <
https://www.dealii.org/8.3.0/doxygen/deal.II/classDataPostprocessorScalar.html><dim>.
> Using this class we will calculate the uh, duh, dduh etc.
> Anyone can explain to me how it is calculating the uh? I don't understand what
> is the input to this class after calculating the coeeficients Alpha nad Beta
> in the tutorial.
The input uh to ComputeIntensity::compute_derived_quantities_vector() *is* the
solution at the points where we want to create output. You don't need to
compute it.
uh is of type std::vector<Vector<double> >. Specifically, the outer vector is
over all of the points on one cell where we want to create output; the inner
vector will, in your case, have size 2 and contain the pairs {alpha, beta} at
the output point.
I hope this makes it clear why the implementation of the function makes sense!
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/