| 300 | //- Return the deviatoric part of a tensor |
| 301 | template<class Cmpt> |
| 302 | inline Tensor2D<Cmpt> dev(const Tensor2D<Cmpt>& t) |
| 303 | { |
| 304 | return t - SphericalTensor2D<Cmpt>::oneThirdI*tr(t); |
| 305 | } |
| 306 | |
| 307 | |
| 308 | //- Return the deviatoric part of a tensor |