MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / dev

Function dev

src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H:302–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300//- Return the deviatoric part of a tensor
301template<class Cmpt>
302inline 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

Callers

nothing calls this directly

Calls 1

trFunction · 0.70

Tested by

no test coverage detected