SpatialVector: Added cross-product and dual cross-product operators

SpatialTensor: Added SpatialVector cross-product and dual cross-product -> SpatialTensor operators
This commit is contained in:
Henry Weller
2016-03-18 21:52:27 +00:00
parent e3bbe40748
commit e809171540
3 changed files with 147 additions and 1 deletions

View File

@ -71,6 +71,21 @@ public:
enum components { WX, WY, WZ, LX, LY, LZ };
//- Class to represent the dual spatial vector
class dual
{
const SpatialVector& v_;
public:
//- Construct the dual of the given SpatialVector
inline dual(const SpatialVector& v);
//- Return the parent SpatialVector
inline const SpatialVector& v() const;
};
// Constructors
//- Construct null
@ -137,6 +152,9 @@ public:
// Member Operators
inline void operator=(const Foam::zero);
//- Return the dual spatial vector
inline dual operator*() const;
};