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
b0a1a3fd
Commit
b0a1a3fd
authored
Jul 24, 2019
by
Andrew Heather
Browse files
BUG: quaternion - corrected construction from rotation tensor. Fixes
#1348
parent
c07ab245
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/quaternion/quaternionI.H
View file @
b0a1a3fd
...
@@ -259,7 +259,7 @@ inline Foam::quaternion::quaternion
...
@@ -259,7 +259,7 @@ inline Foam::quaternion::quaternion
-
rotationTensor
.
zz
()
-
rotationTensor
.
zz
()
);
);
w_
=
(
rotationTensor
.
xz
()
-
rotationTensor
.
x
z
())
/
s
;
w_
=
(
rotationTensor
.
xz
()
-
rotationTensor
.
z
x
())
/
s
;
v_
[
0
]
=
(
rotationTensor
.
xy
()
+
rotationTensor
.
yx
())
/
s
;
v_
[
0
]
=
(
rotationTensor
.
xy
()
+
rotationTensor
.
yx
())
/
s
;
v_
[
1
]
=
0
.
25
*
s
;
v_
[
1
]
=
0
.
25
*
s
;
v_
[
2
]
=
(
rotationTensor
.
yz
()
+
rotationTensor
.
zy
())
/
s
;
v_
[
2
]
=
(
rotationTensor
.
yz
()
+
rotationTensor
.
zy
())
/
s
;
...
...
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