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

Function tr

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

Source from the content-addressed store, hash-verified

227//- Return the trace of a symmetric tensor
228template<class Cmpt>
229inline Cmpt tr(const SymmTensor2D<Cmpt>& st)
230{
231 return st.xx() + st.yy();
232}
233
234
235//- Return the spherical part of a symmetric 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