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

Function tr

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

Source from the content-addressed store, hash-verified

250//- Return the trace of a tensor
251template<class Cmpt>
252inline Cmpt tr(const Tensor2D<Cmpt>& t)
253{
254 return t.xx() + t.yy();
255}
256
257
258//- Return the spherical part of a tensor

Callers 5

sphFunction · 0.70
devFunction · 0.70
dev2Function · 0.70
invariantIFunction · 0.70
invariantIIFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected