mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user