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

Function skew

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

Source from the content-addressed store, hash-verified

541//- Return the skew-symmetric part of a tensor
542template<class Cmpt>
543inline Tensor<Cmpt> skew(const Tensor<Cmpt>& t)
544{
545 return Tensor<Cmpt>
546 (
547 0.0, 0.5*(t.xy() - t.yx()), 0.5*(t.xz() - t.zx()),
548 0.5*(t.yx() - t.xy()), 0.0, 0.5*(t.yz() - t.zy()),
549 0.5*(t.zx() - t.xz()), 0.5*(t.zy() - t.yz()), 0.0
550 );
551}
552
553
554//- Return the skew-symmetric part of a symmetric tensor

Callers 6

mainFunction · 0.50
realizableKE.CFile · 0.50
fvcCurl.CFile · 0.50
calcFunction · 0.50
calcFunction · 0.50

Calls 1

xyMethod · 0.80

Tested by 1

mainFunction · 0.40