Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
957f8d9d
Commit
957f8d9d
authored
Dec 15, 2010
by
mattijs
Browse files
COMP: transform : split off operations
parent
9293486d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/transform/transform.H
View file @
957f8d9d
...
...
@@ -48,9 +48,11 @@ inline tensor rotationTensor
const
vector
&
n2
)
{
const
scalar
s
=
n1
&
n2
;
const
vector
n3
=
n1
^
n2
;
return
(
n1
&
n2
)
*
I
+
(
1
-
(
n1
&
n2
)
)
*
sqr
(
n
1
^
n2
)
/
(
magSqr
(
n
1
^
n2
)
+
VSMALL
)
s
*
I
+
(
1
-
s
)
*
sqr
(
n
3
)
/
(
magSqr
(
n
3
)
+
VSMALL
)
+
(
n2
*
n1
-
n1
*
n2
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment