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

Function tr

src/OpenFOAM/primitives/SymmTensor/SymmTensorI.H:290–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288//- Return the trace of a symmetric tensor
289template<class Cmpt>
290inline Cmpt tr(const SymmTensor<Cmpt>& st)
291{
292 return st.xx() + st.yy() + st.zz();
293}
294
295
296//- Return the spherical part of a symmetric tensor

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected