Good morning! Dr. Bangerth,
Thanks so much for your reply, this is wonderful!
Only approximation needs to do quadrature, analytical soln. only has 
quadrature points.
I will keep testing today.
Best,
Judy
On Wednesday, December 22, 2021 at 12:27:59 AM UTC-5 Wolfgang Bangerth 
wrote:

> On 12/21/21 8:59 AM, Judy Lee wrote:
> > 
> > Can I make an expression u(x) for 1D analytical solution, that can take 
> > *q_index* for evaluating u(@ *q_index*), while skip obtaining *q_index* 
> > locations/points value?
>
> What is 'q_index'? It's usually the index (an integer) of a quadrature 
> point 
> on a cell. But u(x) is a function of a spatial variable (a point in the 
> domain). You can't ask for u(q_index). You have to say what that point is 
> where you want to evaluate the function.
>
> If I understand right then all you need is the ability to evaluate the 
> exact 
> solution at the location of a quadrature point. There are many examples of 
> how 
> this is done in the example programs (just search for where a right hand 
> side 
> is evaluated, for example). For evaluating the error u-uh, you can also 
> take a 
> look at step-7.
>
> Best
> WB
>
> -- 
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: bang...@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/74e04ab2-9c01-4689-8ee6-a6b21f8ca787n%40googlegroups.com.

Reply via email to