Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
251
template<class Cmpt>
252
inline 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
sph
Function · 0.70
dev
Function · 0.70
dev2
Function · 0.70
invariantI
Function · 0.70
invariantII
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected