Hi Jean

I have installed version 8.4 and it seems that the contract<0,1>(Tensor<2, 
dim>, Tensor<2, dim> ) is working.

Thanks,
Anup.

On Monday, June 13, 2016 at 1:15:33 AM UTC-5, Jean-Paul Pelteret wrote:
>
> Hi Anup,
>
> One must always be conscientious of the fact that different functionality 
> exists between different versions of deal.II. Between versions 8.3 and 8.4 
> the tensor class was updated, so the contract functions that I suggested to 
> you previously don't exist in your installed version of deal.II.
>
> Here's a link to the online documentation for deal.II 8.3
> https://www.dealii.org/8.3.0/index.html
> and the tensor class
> https://www.dealii.org/8.3.0/doxygen/deal.II/classTensor.html
>
> I'm sure that a quick look there will help you get to the solution that 
> you're looking for. For future reference, to find the documentation for 
> older versions of deal.II, you navigate to the home page, click the "All 
> versions" button at the top of the screen and go from there.
>
> J-P
>
> On Monday, June 13, 2016 at 12:57:27 AM UTC+2, Anup Basak wrote:
>>
>> Hi Jean,
>>
>> Thanks for your reply. I am using version 8.3.0 and installed in 
>> February, 2016.
>> Do you think in this version the problem is expected?
>>
>> Thanks,
>>
>> Anup.
>>
>> On Sun, Jun 12, 2016 at 5:05 PM, Jean-Paul Pelteret <> wrote:
>>
>>> Hi Anup,
>>>
>>> What version of deal.II are you using? In the documentation for version 
>>> 8.4.0 such a function certainly exists 
>>> <https://www.dealii.org/8.4.0/doxygen/deal.II/classTensor.html#a0923600f30b498c743cbef3d2eab4993>
>>> .
>>>
>>> Anyway, in this case its probably unnecessary to explicitly specify the 
>>> contraction indices. Since its just the inner indices that are summed over, 
>>> you can use the * operator 
>>> <https://www.dealii.org/8.4.0/doxygen/deal.II/classTensor.html#acff14b5a87224a20eb287ed06017c80f>
>>> .
>>> Tensor<2, dim> A = Tensor<2, dim>(B)*Tensor<2, dim>(C);
>>> or, if you think its sensible,
>>> SymmetricTensor<2, dim> A = symmetrize(Tensor<2, dim>(B)*Tensor<2, 
>>> dim>(C));
>>>
>>> J-P
>>>
>>>
>>> On Sunday, June 12, 2016 at 10:59:30 PM UTC+2, Anup Basak wrote:
>>>>
>>>> Hello all,
>>>>
>>>> I am trying to calculate the following tensor multiplication (I am 
>>>> using dealii 8.3.0. and installed in February, 2016):
>>>>
>>>> A_{ij} =  B_{ik} C_{kj}
>>>>
>>>> where B and C are both symmetric tensors.  Since using  B*C would lead 
>>>> to a scalar, I am trying to calculate using
>>>> 'contract' command. For that I have at first cast the tensors B and C 
>>>> into Tensor<2,dim>. The command I have used
>>>> is the following:
>>>>
>>>> Tensor<2, dim> A = contract<1, 0>(Tensor<2, dim>(B), Tensor<2, dim>(C));
>>>>
>>>> However, I get the following error massage (in blue)
>>>>
>>>> no matching function for call to ‘contract(dealii::Tensor<2, 3, 
>>>> double>, dealii::Tensor<2, 3, double>)’
>>>>         Tensor<2, dim> A = contract<1, 0>(Tensor<2, dim>(B), Tensor<2, 
>>>> dim>(C));
>>>>
>>>> Can anyone tell me where it is going wrong.
>>>>
>>>> Thanks and regards,
>>>> Anup.
>>>>
>>> -- 
>>> 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+un...@googlegroups.com <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to