Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenFOAM/OpenFOAM-dev
/ invariantI
Function
invariantI
src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2DI.H:316–319 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
314
//- Return the 1st invariant of a symmetric tensor
315
template<class Cmpt>
316
inline Cmpt invariantI(const SymmTensor2D<Cmpt>& st)
317
{
318
return tr(st);
319
}
320
321
322
//- Return the 2nd invariant of a symmetric tensor
Callers
nothing calls this directly
Calls
1
tr
Function · 0.70
Tested by
no test coverage detected