www.cemf.ir
tripleFwd.hpp
Go to the documentation of this file.
1 /*------------------------------- phasicFlow ---------------------------------
2  O C enter of
3  O O E ngineering and
4  O O M ultiscale modeling of
5  OOOOOOO F luid flow
6 ------------------------------------------------------------------------------
7  Copyright (C): www.cemf.ir
8  email: hamid.r.norouzi AT gmail.com
9 ------------------------------------------------------------------------------
10 Licence:
11  This file is part of phasicFlow code. It is a free software for simulating
12  granular and multiphase flows. You can redistribute it and/or modify it under
13  the terms of GNU General Public License v3 or any other later versions.
14 
15  phasicFlow is distributed to help others in their research in the field of
16  granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 -----------------------------------------------------------------------------*/
20 
21 template<typename T>
23 dot(const triple<T>& oprnd1, const triple<T>& oprnd2);
24 
25 template<typename T>
26 INLINE_FUNCTION_HD triple<T>
27  cross(const triple<T>& v1, const triple<T>& v2);
28 
29 template<typename T>
31 length(const triple<T>& v1);
32 
33 template<typename T>
34 INLINE_FUNCTION_HD triple<T>
35  normalize(const triple<T>& v1);
36 
37 template<typename T>
38 INLINE_FUNCTION_HD triple<T>
39  operator+(const triple<T>& oprnd1, const triple<T>& oprnd2);
40 
41 template<typename T>
42 INLINE_FUNCTION_HD triple<T>
43  operator+(const triple<T>& oprnd1, const T& oprnd2);
44 
45 template<typename T>
46 INLINE_FUNCTION_HD triple<T>
47  operator+(const T& oprnd2, const triple<T>& oprnd1);
48 
49 template<typename T>
50 INLINE_FUNCTION_HD triple<T>
51  operator-(const triple<T>& oprnd1, const triple<T>& oprnd2);
52 
53 template<typename T>
54 INLINE_FUNCTION_HD triple<T>
55  operator-(const triple<T>& oprnd1, const T& oprnd2);
56 
57 template<typename T>
58 INLINE_FUNCTION_HD triple<T>
59  operator-(const T& oprnd1, const triple<T>& oprnd2);
60 
61 template<typename T>
62 INLINE_FUNCTION_HD triple<T>
63  operator*(const triple<T>& oprnd1, const triple<T>& oprnd2);
64 
65 template<typename T>
66 INLINE_FUNCTION_HD triple<T>
67  operator*(const triple<T>& oprnd1, const T& oprnd2);
68 
69 template<typename T>
70 INLINE_FUNCTION_HD triple<T>
71  operator*(const T& oprnd1, const triple<T>& oprnd2);
72 
73 template<typename T>
74 INLINE_FUNCTION_HD triple<T>
75  operator/(const triple<T>& oprnd1, const triple<T>& oprnd2);
76 
77 template<typename T>
78 INLINE_FUNCTION_HD triple<T>
79  operator/(const triple<T>& oprnd1, const T& oprnd2);
80 
81 template<typename T>
82 INLINE_FUNCTION_HD triple<T>
83  operator/(const T& oprnd1, const triple<T>& oprnd2);
84 
85 template<typename T>
87 operator==(const triple<T>& opr1, const triple<T>& opr2);
88 
89 template<typename T>
91 operator>(const triple<T>& opr1, const triple<T>& opr2);
92 
93 template<typename T>
95 operator<(const triple<T>& opr1, const triple<T>& opr2);
96 
97 template<typename T>
99 operator<=(const triple<T>& opr1, const triple<T>& opr2);
100 
101 template<typename T>
103 operator>=(const triple<T>& opr1, const triple<T>& opr2);
104 
105 template<typename T>
106 INLINE_FUNCTION iOstream&
107 operator<<(iOstream& str, const triple<T>& ov);
108 
109 template<typename T>
110 INLINE_FUNCTION iIstream&
111 operator>>(iIstream& str, triple<T>& iv);
112 
113 template<typename T>
114 INLINE_FUNCTION void
115 readIstream(iIstream& str, triple<T>& iv);
normalize
INLINE_FUNCTION_HD triple< T > normalize(const triple< T > &v1)
INLINE_FUNCTION
#define INLINE_FUNCTION
Definition: pFlowMacros.hpp:66
operator<<
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const triple< T > &ov)
operator*
INLINE_FUNCTION_HD triple< T > operator*(const triple< T > &oprnd1, const triple< T > &oprnd2)
operator<
INLINE_FUNCTION_HD bool operator<(const triple< T > &opr1, const triple< T > &opr2)
operator/
INLINE_FUNCTION_HD triple< T > operator/(const triple< T > &oprnd1, const triple< T > &oprnd2)
operator<=
INLINE_FUNCTION_HD bool operator<=(const triple< T > &opr1, const triple< T > &opr2)
operator+
INLINE_FUNCTION_HD triple< T > operator+(const triple< T > &oprnd1, const triple< T > &oprnd2)
operator-
INLINE_FUNCTION_HD triple< T > operator-(const triple< T > &oprnd1, const triple< T > &oprnd2)
dot
INLINE_FUNCTION_HD T dot(const triple< T > &oprnd1, const triple< T > &oprnd2)
cross
INLINE_FUNCTION_HD triple< T > cross(const triple< T > &v1, const triple< T > &v2)
length
INLINE_FUNCTION_HD T length(const triple< T > &v1)
operator>
INLINE_FUNCTION_HD bool operator>(const triple< T > &opr1, const triple< T > &opr2)
operator>>
INLINE_FUNCTION iIstream & operator>>(iIstream &str, triple< T > &iv)
operator>=
INLINE_FUNCTION_HD bool operator>=(const triple< T > &opr1, const triple< T > &opr2)
operator==
INLINE_FUNCTION_HD bool operator==(const triple< T > &opr1, const triple< T > &opr2)
INLINE_FUNCTION_HD
#define INLINE_FUNCTION_HD
Definition: pFlowMacros.hpp:55
readIstream
INLINE_FUNCTION void readIstream(iIstream &str, triple< T > &iv)