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

Function sph

src/OpenFOAM/primitives/SymmTensor/SymmTensorI.H:298–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296//- Return the spherical part of a symmetric tensor
297template<class Cmpt>
298inline SphericalTensor<Cmpt> sph(const SymmTensor<Cmpt>& st)
299{
300 return (1.0/3.0)*tr(st);
301}
302
303
304//- Return the symmetric part of a symmetric tensor, i.e. itself

Callers

nothing calls this directly

Calls 1

trFunction · 0.70

Tested by

no test coverage detected