PhasicFlow
v0.1
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>
22
INLINE_FUNCTION_HD
T
dot
23
(
24
const
triple<T> & oprnd1,
25
const
triple<T> & oprnd2
26
);
27
28
template
<
typename
T>
29
INLINE_FUNCTION_HD
triple<T>
cross
30
(
31
const
triple<T> & v1,
32
const
triple<T> & v2
33
);
34
35
template
<
typename
T>
36
INLINE_FUNCTION_HD
T
length
37
(
38
const
triple<T> & v1
39
);
40
41
template
<
typename
T>
42
INLINE_FUNCTION_HD
triple<T>
normalize
43
(
44
const
triple<T>& v1
45
);
46
47
48
template
<
typename
T>
49
INLINE_FUNCTION_HD
triple<T>
operator
+
50
(
51
const
triple<T> & oprnd1,
52
const
triple<T> & oprnd2
53
);
54
55
template
<
typename
T>
56
INLINE_FUNCTION_HD
triple<T>
operator
+
57
(
58
const
triple<T> & oprnd1,
59
const
T & oprnd2
60
);
61
62
63
template
<
typename
T>
64
INLINE_FUNCTION_HD
triple<T>
operator
+
65
(
66
const
T & oprnd2,
67
const
triple<T> & oprnd1
68
);
69
70
template
<
typename
T>
71
INLINE_FUNCTION_HD
triple<T>
operator
-
72
(
73
const
triple<T> & oprnd1,
74
const
triple<T> & oprnd2
75
);
76
77
template
<
typename
T>
78
INLINE_FUNCTION_HD
triple<T>
operator
-
79
(
80
const
triple<T> & oprnd1,
81
const
T & oprnd2
82
);
83
84
template
<
typename
T>
85
INLINE_FUNCTION_HD
triple<T>
operator
-
86
(
87
const
T & oprnd1,
88
const
triple<T> & oprnd2
89
);
90
91
template
<
typename
T>
92
INLINE_FUNCTION_HD
triple<T>
operator
*
93
(
94
const
triple<T> & oprnd1,
95
const
triple<T> & oprnd2
96
);
97
98
template
<
typename
T>
99
INLINE_FUNCTION_HD
triple<T>
operator
*
100
(
101
const
triple<T> & oprnd1,
102
const
T & oprnd2
103
);
104
105
template
<
typename
T>
106
INLINE_FUNCTION_HD
triple<T>
operator
*
107
(
108
const
T & oprnd1,
109
const
triple<T> & oprnd2
110
);
111
112
template
<
typename
T>
113
INLINE_FUNCTION_HD
triple<T>
operator
/
114
(
115
const
triple<T> & oprnd1,
116
const
triple<T> & oprnd2
117
);
118
119
template
<
typename
T>
120
INLINE_FUNCTION_HD
triple<T>
operator
/
121
(
122
const
triple<T> & oprnd1,
123
const
T & oprnd2
124
);
125
126
template
<
typename
T>
127
INLINE_FUNCTION_HD
triple<T>
operator
/
128
(
129
const
T & oprnd1,
130
const
triple<T> & oprnd2
131
);
132
133
template
<
typename
T>
134
INLINE_FUNCTION_HD
bool
operator
==
135
(
136
const
triple<T> &opr1,
137
const
triple<T> &opr2
138
);
139
140
template
<
typename
T>
141
INLINE_FUNCTION_HD
bool
operator
>
142
(
143
const
triple<T> &opr1,
144
const
triple<T> &opr2
145
);
146
147
template
<
typename
T>
148
INLINE_FUNCTION_HD
bool
operator
<
149
(
150
const
triple<T> &opr1,
151
const
triple<T> &opr2
152
);
153
154
155
template
<
typename
T>
156
INLINE_FUNCTION_HD
bool
operator
<=
157
(
158
const
triple<T> &opr1,
159
const
triple<T> &opr2
160
);
161
162
template
<
typename
T>
163
INLINE_FUNCTION_HD
bool
operator
>=
164
(
165
const
triple<T> &opr1,
166
const
triple<T> &opr2
167
);
168
169
template
<
typename
T>
170
INLINE_FUNCTION
iOstream&
operator
<<
171
(
172
iOstream& str,
173
const
triple<T> & ov
174
);
175
176
177
template
<
typename
T>
178
INLINE_FUNCTION
iIstream&
operator
>>
179
(
180
iIstream& str,
181
triple<T> & iv
182
);
183
184
template
<
typename
T>
185
INLINE_FUNCTION
void
readIstream
186
(
187
iIstream& str,
188
triple<T> & iv
189
);
normalize
INLINE_FUNCTION_HD triple< T > normalize(const triple< T > &v1)
INLINE_FUNCTION
#define INLINE_FUNCTION
Definition:
pFlowMacros.hpp:62
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)
INLINE_FUNCTION_HD
#define INLINE_FUNCTION_HD
Definition:
pFlowMacros.hpp:51
readIstream
INLINE_FUNCTION void readIstream(iIstream &str, triple< T > &iv)
src
phasicFlow
types
triple
tripleFwd.hpp
Generated by
1.8.17