On 5/3/19 2:07 PM, Hamed Babaei wrote:
> 
> $ *SymmetricTensor<6, dim> C; *
> 
> 
> The error is:
> 
> /home/hbabaei/deal.ii-candi/deal.II-v9.0.1/include/deal.II/base/symmetric_tensor.h:563:29:
>  
> error: incomplete type 
> ‘dealii::internal::SymmetricTensorAccessors::StorageType<6, 3, double>’ used 
> in nested name specifier
>     static const unsigned int n_independent_components
>                               ^
> /home/hbabaei/deal.ii-candi/deal.II-v9.0.1/include/deal.II/base/symmetric_tensor.h:1046:1:
>  
> error: size of array is not an integral constant-expression
>   SymmetricTensor<rank_,dim,Number>::SymmetricTensor (const Number (&array) 
> [n_independent_components])
>   ^
> /home/hbabaei/deal.ii-candi/deal.II-v9.0.1/include/deal.II/base/symmetric_tensor.h:1046:100:
>  
> error: size of array is not an integral constant-expression
>   SymmetricTensor<rank_,dim,Number>::SymmetricTensor (const Number (&array) 
> [n_independent_components])
>                                                                               
>  
>                        ^
> /home/hbabaei/deal.ii-candi/deal.II-v9.0.1/include/deal.II/base/symmetric_tensor.h:861:61:
>  
> error: invalid use of incomplete type ‘struct 
> dealii::internal::SymmetricTensorAccessors::StorageType<6, 3, double>’
>     typedef typename base_tensor_descriptor::base_tensor_type 
> base_tensor_type;
>                                                               ^
> /home/hbabaei/deal.ii-candi/deal.II-v9.0.1/include/deal.II/base/symmetric_tensor.h:188:12:
>  
> error: declaration of ‘struct 
> dealii::internal::SymmetricTensorAccessors::StorageType<6, 3, double>’
>       struct StorageType;
>              ^
> 
> It seems that I need to specify n_independent_components, but I do not know 
> how and where I can do so.
> 
> I appreciate it if you could give me any clue how to implement a rank-6 
> tensor 
> successfully.

Rank-6 are not currently implemented. The pieces that relate to storage are 
not available right now, and may other things as well. The way you define the 
symmetry of the tensors implies that you are thinking of a rank-6 tensor in a 
way so that it could be stored as a symmetric dxd matrix in which each element 
is a dxdxd tensor. This is consistent with a rank-2 symmetric tensor being a 
symmetric matrix of numbers (rank-0 tensors), and a rank-4 symmetric tensor as 
a symmetric matrix in which each element is a dxd (rank-2) tensor.

You will want to go through the implementation in the file and see which parts 
are missing for your case. In particular, we are missing how the 
base_tensor_type needs to be defined. It should not be very difficult for you 
to implement this if you want to!

As always, we're there to help!
Best
  Wolfgang


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

Reply via email to