Thanks for the reply. 

I was under the impression that get_function_gradients calculates the 
gradient based on the \sum_j U_j that are on the face. 



On Monday, May 22, 2023 at 7:42:34 PM UTC+2 Wolfgang Bangerth wrote:

> On 5/22/23 06:21, Abbas Ballout wrote:
> > How does get_function_gradients calculateboth component gradient at a 
> face?
>
> Abbas,
> since
> u_h(x) = \sum_j U_j \varphi_j(x)
> you get the gradient as
> \nabla u_h(x) = \sum_j U_j \nabla\varphi_j(x)
> and the only other thing you need to know is that \varphi_j is defined by 
> mapping shape functions from the reference cell to the real cell.
>
> But I suspect that you have a reason to ask that question. What is it 
> really 
> that you are after?
>
> Best
> W.
>
> -- 
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: [email protected]
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/2f76aeac-0a44-489c-9927-4d35348bb003n%40googlegroups.com.

Reply via email to