Thanks for the suggestions. 
For the moment I will try to use the identity {uu}={u]{u}+0.25[u][u] and 
then I'll see what happens. 

On Friday, September 9, 2022 at 7:47:29 PM UTC+3 Wolfgang Bangerth wrote:

>
> Abbas,
> I have no specific suggestions to make this easy. The two options I 
> would explore are:
> * Build a tensor-valued (discontinuous) finite element, a DoFHandler for 
> it, and then interpolate the function u*u onto that finite element field 
> -- that is, build a finite element field representation of u*u. You can 
> then evaluate that via FEInterfaceValues.
> * Take a look at how FEInterfaceValues computes jump(u) and average(u) 
> (namely, by evaluating FEValues objects on both sides of the interface), 
> and write code that does something similar for u*u.
>
> The latter approach can be made more general, namely if you wanted to 
> evaluate the jump of average of an arbitrary function f(u). I suspect it 
> wouldn't be terribly hard to generalize the implementation of jump(u) 
> and average(u) to that case, and that might be interesting to others as 
> well if it were put into deal.II itself. If you'd like to explore this 
> and write a patch, let me know and I'll walk you through how one would 
> approach that!
>
> Best
> Wolfgang
>
>
> On 9/9/22 01:08, Abbas wrote:
> > *** Caution: EXTERNAL Sender ***
> > 
> > Yes
> > 
> > On Friday, September 9, 2022 at 12:06:23 AM UTC+3 Wolfgang Bangerth 
> wrote:
> > 
> > On 9/8/22 04:40, Abbas wrote:
> > >
> > > I want the average of (uu) which is = u1*u1/2 +u2*u2/2 but I
> > don't know
> > > how to get it.
> > 
> > Do I understand right that u1 and u2 are vectors, and when you say
> > u1 * u1
> > you mean the outer product of a vector with itself, forming a tensor?
> > 
> > Best
> > W.
> > 
> > -- 
> > ------------------------------------------------------------------------
> > 
> > Wolfgang Bangerth email: bang...@colostate.edu
> > www: http://www.math.colostate.edu/~bangerth/
> > <http://www.math.colostate.edu/~bangerth/>
> > 
> > -- 
> > The deal.II project is located at http://www.dealii.org/ 
> > <
> https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.dealii.org%2F&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7C0060db9985d343a0ac5c08da923214dd%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637983041060585432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=g9HAQL%2FlGBi7QI7%2BX9Pgv72TkrXMuHcgzMUpJ1yVW5o%3D&reserved=0
> >
> > For mailing list/forum options, see 
> > https://groups.google.com/d/forum/dealii?hl=en 
> > <
> https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fforum%2Fdealii%3Fhl%3Den&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7C0060db9985d343a0ac5c08da923214dd%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637983041060585432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=f0cuUMKC9ftoV6Crbmjr9GIiHXa%2BVkpFsgllUwlHrP4%3D&reserved=0
> >
> > ---
> > 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+un...@googlegroups.com 
> > <mailto:dealii+un...@googlegroups.com>.
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/dealii/b4f5197e-c700-422d-8a04-c776b834cfa2n%40googlegroups.com
>  
> > <
> https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fdealii%2Fb4f5197e-c700-422d-8a04-c776b834cfa2n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7C0060db9985d343a0ac5c08da923214dd%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637983041060585432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=m%2Fu8%2BxOxny0rygj6T1Q2GmJOiY0a0AH%2BfM1DHEXRtf0%3D&reserved=0
> >.
>
>
> -- 
> ------------------------------------------------------------------------
> 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/7c075865-7561-46d3-bea3-5a287297e7f2n%40googlegroups.com.

Reply via email to