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

Function tr

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

Source from the content-addressed store, hash-verified

499//- Return the trace of a tensor
500template<class Cmpt>
501inline Cmpt tr(const Tensor<Cmpt>& t)
502{
503 return t.xx() + t.yy() + t.zz();
504}
505
506
507//- Return the spherical part of a tensor

Callers 15

sphFunction · 0.70
devFunction · 0.70
dev2Function · 0.70
invariantIFunction · 0.70
mainFunction · 0.50
createFields.HFile · 0.50
mainFunction · 0.50
createFields.HFile · 0.50
correctFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected