mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
spatialTransform: Added the "&&" operator to transform positions
This commit is contained in:
@ -178,6 +178,10 @@ public:
|
|||||||
// X.v = (E . vw, E . (vl - r^vw))
|
// X.v = (E . vw, E . (vl - r^vw))
|
||||||
inline spatialVector operator&(const spatialVector& v) const;
|
inline spatialVector operator&(const spatialVector& v) const;
|
||||||
|
|
||||||
|
//- Transform position p
|
||||||
|
// X:p = (E . pw, E . (vl - r))
|
||||||
|
inline spatialVector operator&&(const spatialVector& v) const;
|
||||||
|
|
||||||
|
|
||||||
// IOstream Operators
|
// IOstream Operators
|
||||||
|
|
||||||
|
|||||||
@ -154,6 +154,19 @@ inline Foam::spatialVector Foam::spatialTransform::operator&
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline Foam::spatialVector Foam::spatialTransform::operator&&
|
||||||
|
(
|
||||||
|
const spatialVector& v
|
||||||
|
) const
|
||||||
|
{
|
||||||
|
return spatialVector
|
||||||
|
(
|
||||||
|
E_ & v.w(),
|
||||||
|
E_ & (v.l() - r_)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Foam::spatialTransform::transpose::operator spatialTensor() const
|
inline Foam::spatialTransform::transpose::operator spatialTensor() const
|
||||||
{
|
{
|
||||||
return spatialTensor
|
return spatialTensor
|
||||||
|
|||||||
Reference in New Issue
Block a user