I just wrote a code for rank 2 tensors, maybe it's useful for someone: template<int dim> void SolidMechanics<dim>::print_tensor (const SymmetricTensor<2, dim>& tensor, char* name) { pcout << std::endl << name << std::endl; for (unsigned int i = 0; i < dim; ++i) { for (unsigned int j = 0; j < dim; ++j) pcout << tensor[i][j] << " "; pcout << std::endl; } pcout << std::endl; }
For the rank 4 tensor I will try something similar, but for large problems this is not suited. It's just for simple problems to check their correctness. BR Seyed Ali Mohseni -- 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.