A set of 3 variables that can be used for vector variables. More...
Public Member Functions | |
TripleTypeInfoNV (T) | |
Type info for triple. More... | |
INLINE_FUNCTION_HD | triple ()=default |
Initilize to zero. More... | |
INLINE_FUNCTION_HD | ~triple ()=default |
INLINE_FUNCTION_HD | triple (const T &x, const T &y, const T &z) |
Construct from x, y, z. More... | |
INLINE_FUNCTION_HD | triple (const T &v) |
Construct from v. More... | |
template<typename T2 > | |
INLINE_FUNCTION_HD triple< T > & | operator= (const triple< T2 > &rhs) |
Type conversion trough assignment. More... | |
template<typename T2 > | |
INLINE_FUNCTION_HD | triple (const triple< T2 > &src) |
Type casting through copy constructor. More... | |
INLINE_FUNCTION_HD | triple (const triple< T > &src)=default |
Copy construct. More... | |
INLINE_FUNCTION_HD | triple (triple< T > &&src)=default |
Move construct. More... | |
INLINE_FUNCTION_HD triple< T > & | operator= (const triple< T > &src)=default |
copy assignment More... | |
INLINE_FUNCTION_HD triple< T > & | operator= (triple< T > &&src)=default |
move assignment More... | |
INLINE_FUNCTION uniquePtr< triple< T > > | clone () const |
clone More... | |
INLINE_FUNCTION triple< T > * | clonePtr () const |
INLINE_FUNCTION_HD T & | x () |
access component More... | |
const INLINE_FUNCTION_HD T & | x () const |
access component More... | |
INLINE_FUNCTION_HD T & | y () |
access component More... | |
const INLINE_FUNCTION_HD T & | y () const |
access component More... | |
INLINE_FUNCTION_HD T & | z () |
access component More... | |
const INLINE_FUNCTION_HD T & | z () const |
access component More... | |
INLINE_FUNCTION_HD T & | comp1 () |
access component More... | |
const INLINE_FUNCTION_HD T & | comp1 () const |
access component More... | |
INLINE_FUNCTION_HD T & | comp2 () |
access component More... | |
const INLINE_FUNCTION_HD T & | comp2 () const |
access component More... | |
INLINE_FUNCTION_HD T & | comp3 () |
access component More... | |
const INLINE_FUNCTION_HD T & | comp3 () const |
access component More... | |
INLINE_FUNCTION_HD T | length () const |
Length of the vector. More... | |
INLINE_FUNCTION_HD void | normalize () |
Normalize the vector. More... | |
INLINE_FUNCTION_HD void | operator+= (const triple &oprnd2) |
INLINE_FUNCTION_HD void | operator-= (const triple &oprnd2) |
INLINE_FUNCTION_HD void | operator*= (const triple &oprnd2) |
INLINE_FUNCTION_HD void | operator/= (const triple &oprnd2) |
INLINE_FUNCTION_HD triple | operator- () const |
unary negate operator More... | |
INLINE_FUNCTION_HD triple | operator+ () const |
unary plus operator More... | |
Public Attributes | |
T | x_ |
data members More... | |
T | y_ |
T | z_ |
Friends | |
FUNCTION_HD T | dot (const triple< T > &oprnd1, const triple< T > &oprnd2) |
Dot product of two vectors. More... | |
FUNCTION_HD triple< T > | cross (const triple< T > &v1, const triple< T > &v2) |
Cross product of two vectors. More... | |
FUNCTION_HD triple< T > | operator+ (const triple< T > &oprnd1, const triple< T > &oprnd2) |
FUNCTION_HD triple< T > | operator+ (const triple< T > &oprnd1, const T &oprnd2) |
FUNCTION_HD triple< T > | operator+ (const T &oprnd1, const triple< T > &oprnd2) |
FUNCTION_HD triple< T > | operator- (const triple< T > &oprnd1, const triple< T > &oprnd2) |
FUNCTION_HD triple< T > | operator- (const triple< T > &oprnd1, const T &oprnd2) |
FUNCTION_HD triple< T > | operator- (const T &oprnd1, const triple< T > &oprnd2) |
FUNCTION_HD triple< T > | operator* (const triple< T > &oprnd1, const triple< T > &oprnd2) |
FUNCTION_HD triple< T > | operator* (const triple< T > &oprnd1, const T &oprnd2) |
FUNCTION_HD triple< T > | operator* (const T &oprnd1, const triple< T > &oprnd2) |
FUNCTION_HD triple< T > | operator/ (const triple< T > &oprnd1, const triple< T > &oprnd2) |
/ operators More... | |
FUNCTION_HD triple< T > | operator/ (const triple< T > &oprnd1, const T &oprnd2) |
FUNCTION_HD triple< T > | operator/ (const T &oprnd1, const triple< T > &oprnd2) |
FUNCTION_HD bool | operator== (const triple< T > &opr1, const triple< T > &opr2) |
FUNCTION_HD bool | operator (const triple< T > &opr1, const triple< T > &opr2) |
FUNCTION_HD bool | operator> (const triple< T > &opr1, const triple< T > &opr2) |
FUNCTION_HD bool | operator>= (const triple< T > &opr1, const triple< T > &opr2) |
FUNCTION_HD bool | operator (const triple< T > &opr1, const triple< T > &opr2) |
iOstream & | operator (iOstream &str, const triple< T > &ov) |
<< operator More... | |
iIstream & | operator>> (iIstream &str, triple< T > &iv) |
More... | |
void | readIstream (iIstream &str, triple< T > &iv) |
same as >> operator, but faster, good for mass read More... | |
A set of 3 variables that can be used for vector variables.
The template parameter should be numeric type only.
Definition at line 36 of file triple.hpp.
|
default |
Initilize to zero.
|
default |
|
inline |
Construct from x, y, z.
Definition at line 67 of file triple.hpp.
|
inline |
Construct from v.
Definition at line 76 of file triple.hpp.
|
inline |
Type casting through copy constructor.
Definition at line 93 of file triple.hpp.
|
default |
Copy construct.
|
default |
Move construct.
TripleTypeInfoNV | ( | T | ) |
Type info for triple.
|
inline |
Type conversion trough assignment.
Definition at line 83 of file triple.hpp.
|
default |
copy assignment
|
default |
move assignment
|
inline |
clone
Definition at line 118 of file triple.hpp.
|
inline |
Definition at line 124 of file triple.hpp.
|
inline |
access component
Definition at line 132 of file triple.hpp.
Referenced by pFlow::PFtoVTK::addRealx3PointField(), pFlow::PFtoVTK::addUndstrcuturedGridField(), cells::bound(), pFlow::boxExtent(), cellMapper::build(), pFlow::equal(), cellsWallLevel0::findPairsElementRangeCount(), cells::inCellRange(), pFlow::indexToCell(), rectangleMesh::nx(), cells::nx(), cuboidWall::readcuboidWall(), stlFile::readFacet(), pFlow::rotate(), cells::totalCells(), zAxis::transferBackZ(), pFlow::TSFtoVTK::triSurfaceToVTK(), and stlFile::writeFacet().
|
inline |
access component
Definition at line 138 of file triple.hpp.
|
inline |
access component
Definition at line 144 of file triple.hpp.
Referenced by pFlow::PFtoVTK::addRealx3PointField(), pFlow::PFtoVTK::addUndstrcuturedGridField(), cells::bound(), pFlow::boxExtent(), cellMapper::build(), pFlow::equal(), cellsWallLevel0::findPairsElementRangeCount(), cells::inCellRange(), pFlow::indexToCell(), rectangleMesh::ny(), cells::ny(), cuboidWall::readcuboidWall(), stlFile::readFacet(), pFlow::rotate(), cells::totalCells(), zAxis::transferBackZ(), pFlow::TSFtoVTK::triSurfaceToVTK(), and stlFile::writeFacet().
|
inline |
access component
Definition at line 150 of file triple.hpp.
|
inline |
access component
Definition at line 156 of file triple.hpp.
Referenced by pFlow::PFtoVTK::addRealx3PointField(), pFlow::PFtoVTK::addUndstrcuturedGridField(), cells::bound(), pFlow::boxExtent(), cellMapper::build(), pFlow::equal(), cellsWallLevel0::findPairsElementRangeCount(), cells::inCellRange(), pFlow::indexToCell(), rectangleMesh::nz(), cells::nz(), cuboidWall::readcuboidWall(), stlFile::readFacet(), pFlow::rotate(), cells::totalCells(), zAxis::transferBackZ(), pFlow::TSFtoVTK::triSurfaceToVTK(), and stlFile::writeFacet().
|
inline |
access component
Definition at line 162 of file triple.hpp.
|
inline |
access component
Definition at line 168 of file triple.hpp.
Referenced by pFlow::convertToTriSurfaceComponents().
|
inline |
access component
Definition at line 174 of file triple.hpp.
|
inline |
access component
Definition at line 180 of file triple.hpp.
Referenced by pFlow::convertToTriSurfaceComponents().
|
inline |
access component
Definition at line 186 of file triple.hpp.
|
inline |
access component
Definition at line 192 of file triple.hpp.
Referenced by pFlow::convertToTriSurfaceComponents().
|
inline |
access component
Definition at line 198 of file triple.hpp.
INLINE_FUNCTION_HD T length |
Length of the vector.
Definition at line 56 of file tripleI.hpp.
Referenced by Wall::checkTrianlge().
INLINE_FUNCTION_HD void normalize |
Normalize the vector.
Definition at line 63 of file tripleI.hpp.
INLINE_FUNCTION_HD void operator+= | ( | const triple< T > & | oprnd2 | ) |
Definition at line 178 of file tripleI.hpp.
INLINE_FUNCTION_HD void operator-= | ( | const triple< T > & | oprnd2 | ) |
Definition at line 187 of file tripleI.hpp.
INLINE_FUNCTION_HD void operator*= | ( | const triple< T > & | oprnd2 | ) |
Definition at line 196 of file tripleI.hpp.
INLINE_FUNCTION_HD void operator/= | ( | const triple< T > & | oprnd2 | ) |
Definition at line 205 of file tripleI.hpp.
unary negate operator
Definition at line 214 of file tripleI.hpp.
unary plus operator
Definition at line 221 of file tripleI.hpp.
|
friend |
Dot product of two vectors.
|
friend |
Cross product of two vectors.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
/ operators
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
same as >> operator, but faster, good for mass read
T x_ |
data members
Definition at line 49 of file triple.hpp.
Referenced by rectangleMesh::cellVol(), triple< intType >::comp1(), pFlow::periodicBoundarySIKernels::grainGrainInteraction(), pFlow::grnTriInteraction::isGrainInContactBothSides(), pFlow::sphTriInteraction::isSphereInContactBothSides(), pFlow::max(), pFlow::min(), triWall::nearestPointOnWall(), ppInteractionFunctor< ContactForceModel, ContactListType >::operator()(), pwInteractionFunctor< ContactForceModel, ContactListType, TraingleAccessor, MotionModel >::operator()(), triple< intType >::operator*=(), triple< intType >::operator+=(), triple< intType >::operator-=(), triple< intType >::operator/=(), triple< intType >::operator=(), pFlow::pow(), pFlow::rotate(), rectangleMesh::size(), pFlow::periodicBoundarySIKernels::sphereSphereInteraction(), triWall::triWall(), and triple< intType >::x().
T y_ |
Definition at line 50 of file triple.hpp.
Referenced by rectangleMesh::cellVol(), triple< intType >::comp2(), pFlow::periodicBoundarySIKernels::grainGrainInteraction(), pFlow::grnTriInteraction::isGrainInContactBothSides(), pFlow::sphTriInteraction::isSphereInContactBothSides(), pFlow::max(), pFlow::min(), triWall::nearestPointOnWall(), ppInteractionFunctor< ContactForceModel, ContactListType >::operator()(), pwInteractionFunctor< ContactForceModel, ContactListType, TraingleAccessor, MotionModel >::operator()(), triple< intType >::operator*=(), triple< intType >::operator+=(), triple< intType >::operator-=(), triple< intType >::operator/=(), triple< intType >::operator=(), pFlow::pow(), pFlow::rotate(), rectangleMesh::size(), pFlow::periodicBoundarySIKernels::sphereSphereInteraction(), triWall::triWall(), and triple< intType >::y().
T z_ |
Definition at line 51 of file triple.hpp.
Referenced by rectangleMesh::cellVol(), triple< intType >::comp3(), pFlow::periodicBoundarySIKernels::grainGrainInteraction(), pFlow::grnTriInteraction::isGrainInContactBothSides(), pFlow::sphTriInteraction::isSphereInContactBothSides(), pFlow::max(), pFlow::min(), triWall::nearestPointOnWall(), ppInteractionFunctor< ContactForceModel, ContactListType >::operator()(), pwInteractionFunctor< ContactForceModel, ContactListType, TraingleAccessor, MotionModel >::operator()(), triple< intType >::operator*=(), triple< intType >::operator+=(), triple< intType >::operator-=(), triple< intType >::operator/=(), triple< intType >::operator=(), pFlow::pow(), pFlow::rotate(), rectangleMesh::size(), pFlow::periodicBoundarySIKernels::sphereSphereInteraction(), triWall::triWall(), and triple< intType >::z().