Re: [deal.II] Contraction between Tensor and SymmetricTensor

28 views
Skip to first unread message

Wolfgang Bangerth

unread,
Jul 12, 2021, 9:04:49 AM7/12/21
to dea...@googlegroups.com
On 7/12/21 1:08 AM, Lixing Zhu wrote:
>
> For the case (grad *w*, grad^s *u*), how should I carry out the contraction
> between a tensor and a symmetric tensor? It seems that operator * does not
> work here.

The scalar_product() function taking two Tensor arguments is what you are
looking for!

Best
W.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Lixing Zhu

unread,
Jul 20, 2021, 10:21:51 PM7/20/21
to deal.II User Group
This definitely works. Thanks a lot for this hint.
Reply all
Reply to author
Forward
0 new messages