Commit d62351f5 authored by Henry Weller's avatar Henry Weller
Browse files

Tensor: Added inv() member function

parent 0e1787e4
......@@ -158,9 +158,12 @@ public:
inline Vector<Cmpt> z() const;
inline Vector<Cmpt> vectorComponent(const direction) const;
//- Transpose
//- Return transpose
inline Tensor<Cmpt> T() const;
//- Return inverse
inline Tensor<Cmpt> inv() const;
// Member Operators
......@@ -587,6 +587,13 @@ inline Tensor<Cmpt> inv(const Tensor<Cmpt>& t)
template<class Cmpt>
inline Tensor<Cmpt> Tensor<Cmpt>::inv() const
return Foam::inv(*this);
//- Return the 1st invariant of a tensor
template<class Cmpt>
inline Cmpt invariantI(const Tensor<Cmpt>& t)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment