Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
4522ba35
Commit
4522ba35
authored
14 years ago
by
Henry
Browse files
Options
Downloads
Patches
Plain Diff
pointPatchField: Made the field algebra more consistent with that for other field types
parent
8027112f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchFieldFunctions.H
+16
-38
16 additions, 38 deletions
...intPatchFields/pointPatchField/pointPatchFieldFunctions.H
with
16 additions
and
38 deletions
src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchFieldFunctions.H
+
16
−
38
View file @
4522ba35
...
...
@@ -126,8 +126,6 @@ BINARY_FUNCTION(min)
BINARY_FUNCTION
(
cmptMultiply
)
BINARY_FUNCTION
(
cmptDivide
)
#undef BINARY_FUNCTION
/* * * * * * * * * * * * * * * * Global operators * * * * * * * * * * * * * */
...
...
@@ -143,10 +141,7 @@ inline void opFunc \
UNARY_OPERATOR
(
-
,
negate
)
#undef UNARY_OPERATOR
#define BINARY_OPERATOR_FF(Type1, Type2, op, opFunc) \
#define BINARY_OPERATOR(Type1, Type2, op, opFunc) \
\
template<class Type> \
inline void opFunc \
...
...
@@ -157,25 +152,11 @@ inline void opFunc \
) \
{}
#define BINARY_OPERATOR_R(Type1, Type2, op, opFunc) \
BINARY_OPERATOR_FF(Type1, Type2, op, opFunc)
BINARY_OPERATOR_R
(
Type
,
Type
,
+
,
add
)
BINARY_OPERATOR_R
(
Type
,
Type
,
-
,
subtract
)
BINARY_OPERATOR_FF
(
scalar
,
Type
,
*
,
multiply
)
BINARY_OPERATOR_FF
(
Type
,
scalar
,
/
,
divide
)
#undef BINARY_OPERATOR_R
#undef BINARY_OPERATOR_FF
#undef BINARY_OPERATOR_FTR
#undef BINARY_OPERATOR_TF
#undef BINARY_OPERATOR_TTR
#undef BINARY_OPERATOR_FT
#undef BINARY_OPERATOR_TRF
#undef BINARY_OPERATOR_TRT
BINARY_OPERATOR
(
scalar
,
Type
,
*
,
multiply
)
BINARY_OPERATOR
(
Type
,
scalar
,
*
,
multiply
)
BINARY_OPERATOR
(
Type
,
scalar
,
/
,
divide
)
#define BINARY_TYPE_OPERATOR_
T
F(TYPE, op, opFunc) \
#define BINARY_TYPE_OPERATOR_
S
F(TYPE, op, opFunc) \
\
template<class Type> \
inline void opFunc \
...
...
@@ -187,7 +168,7 @@ inline void opFunc \
{}
#define BINARY_TYPE_OPERATOR_F
T
(TYPE, op, opFunc) \
#define BINARY_TYPE_OPERATOR_F
S
(TYPE, op, opFunc) \
\
template<class Type> \
inline void opFunc \
...
...
@@ -199,19 +180,9 @@ inline void opFunc \
{}
#define BINARY_TYPE_OPERATOR(TYPE, op, opFunc) \
BINARY_TYPE_OPERATOR_TF(TYPE, op, opFunc) \
BINARY_TYPE_OPERATOR_FT(TYPE, op, opFunc)
BINARY_TYPE_OPERATOR
(
Type
,
+
,
add
)
BINARY_TYPE_OPERATOR
(
Type
,
-
,
subtract
)
BINARY_TYPE_OPERATOR
(
scalar
,
*
,
multiply
)
BINARY_TYPE_OPERATOR_FT
(
scalar
,
/
,
divide
)
#undef BINARY_TYPE_OPERATOR
#undef BINARY_TYPE_OPERATOR_TF
#undef BINARY_TYPE_OPERATOR_FT
BINARY_TYPE_OPERATOR_SF
(
scalar
,
*
,
multiply
)
BINARY_TYPE_OPERATOR_FS
(
scalar
,
*
,
multiply
)
BINARY_TYPE_OPERATOR_FS
(
scalar
,
/
,
divide
)
#define PRODUCT_OPERATOR(product, op, opFunc) \
...
...
@@ -262,6 +233,9 @@ inline void opFunc \
) \
{}
PRODUCT_OPERATOR
(
typeOfSum
,
+
,
add
)
PRODUCT_OPERATOR
(
typeOfSum
,
-
,
subtract
)
PRODUCT_OPERATOR
(
outerProduct
,
*
,
outer
)
PRODUCT_OPERATOR
(
crossProduct
,
^
,
cross
)
PRODUCT_OPERATOR
(
innerProduct
,
&
,
dot
)
...
...
@@ -367,3 +341,7 @@ inline void eigenVectors
}
// End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include
"undefFieldFunctionsM.H"
// ************************************************************************* //
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment