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

Function sph

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

Source from the content-addressed store, hash-verified

235//- Return the spherical part of a symmetric tensor
236template<class Cmpt>
237inline SphericalTensor2D<Cmpt> sph(const SymmTensor2D<Cmpt>& st)
238{
239 return (1.0/2.0)*tr(st);
240}
241
242
243//- 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