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

Function sph

src/OpenFOAM/primitives/Tensor/TensorI.H:509–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507//- Return the spherical part of a tensor
508template<class Cmpt>
509inline SphericalTensor<Cmpt> sph(const Tensor<Cmpt>& t)
510{
511 return (1.0/3.0)*tr(t);
512}
513
514
515//- Return the symmetric part of a tensor

Calls 1

trFunction · 0.70

Tested by

no test coverage detected