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

Function sph

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

Source from the content-addressed store, hash-verified

258//- Return the spherical part of a tensor
259template<class Cmpt>
260inline SphericalTensor2D<Cmpt> sph(const Tensor2D<Cmpt>& t)
261{
262 return 0.5*tr(t);
263}
264
265
266//- Return the symmetric part of a tensor

Callers

nothing calls this directly

Calls 1

trFunction · 0.70

Tested by

no test coverage detected