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

Function dev2

src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2DI.H:269–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267//- Return the deviatoric part of a symmetric tensor
268template<class Cmpt>
269inline SymmTensor2D<Cmpt> dev2(const SymmTensor2D<Cmpt>& st)
270{
271 return st - SphericalTensor2D<Cmpt>::twoThirdsI*tr(st);
272}
273
274
275//- Return the determinant of a symmetric tensor

Callers

nothing calls this directly

Calls 1

trFunction · 0.70

Tested by

no test coverage detected