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

Function symm

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

Source from the content-addressed store, hash-verified

515//- Return the symmetric part of a tensor
516template<class Cmpt>
517inline SymmTensor<Cmpt> symm(const Tensor<Cmpt>& t)
518{
519 return SymmTensor<Cmpt>
520 (
521 t.xx(), 0.5*(t.xy() + t.yx()), 0.5*(t.xz() + t.zx()),
522 t.yy(), 0.5*(t.yz() + t.zy()),
523 t.zz()
524 );
525}
526
527
528//- Return twice the symmetric part of a tensor

Callers 15

mainFunction · 0.50
mainFunction · 0.50
BinghamPlastic.CFile · 0.50
alphaEqn.HFile · 0.50
kMethod · 0.50
WALE.CFile · 0.50
ReynoldsStress.CFile · 0.50
LRR.CFile · 0.50
realizableKE.CFile · 0.50
kOmegaSSTBase.CFile · 0.50

Calls 1

xyMethod · 0.80

Tested by 2

mainFunction · 0.40
mainFunction · 0.40