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

Function det

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

Source from the content-addressed store, hash-verified

578//- Return the determinant of a tensor
579template<class Cmpt>
580inline Cmpt det(const Tensor<Cmpt>& t)
581{
582 return
583 (
584 t.xx()*t.yy()*t.zz() + t.xy()*t.yz()*t.zx()
585 + t.xz()*t.yx()*t.zy() - t.xx()*t.yz()*t.zy()
586 - t.xy()*t.yx()*t.zz() - t.xz()*t.yy()*t.zx()
587 );
588}
589
590
591//- Return the cofactor tensor of a tensor

Callers 11

invFunction · 0.70
invariantIIIFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
initialiseMoleculesFunction · 0.50
checkCellDeterminantFunction · 0.50
pointToBarycentricMethod · 0.50
checkCellDeterminantFunction · 0.50

Calls 1

xyMethod · 0.80

Tested by 2

mainFunction · 0.40
mainFunction · 0.40