mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Tensor: Added inv() member function
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user