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

Function dev

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

Source from the content-addressed store, hash-verified

259//- Return the deviatoric part of a symmetric tensor
260template<class Cmpt>
261inline SymmTensor2D<Cmpt> dev(const SymmTensor2D<Cmpt>& st)
262{
263 return st - SphericalTensor2D<Cmpt>::oneThirdI*tr(st);
264}
265
266
267//- Return the deviatoric part of a symmetric tensor

Callers

nothing calls this directly

Calls 1

trFunction · 0.70

Tested by

no test coverage detected