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
05fc4832
Commit
05fc4832
authored
Nov 25, 2008
by
mattijs
Browse files
transformation shortcut
parent
a3f0b52f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/fields/Fields/transformField/transformField.C
View file @
05fc4832
...
...
@@ -26,6 +26,7 @@ License
#include
"transformField.H"
#include
"FieldM.H"
#include
"diagTensor.H"
// * * * * * * * * * * * * * * * global functions * * * * * * * * * * * * * //
...
...
@@ -75,7 +76,8 @@ void Foam::transform
{
vector
T
=
tr
.
t
();
if
(
mag
(
tr
.
r
().
w
())
>
SMALL
)
// Check if any rotation
if
(
mag
(
tr
.
r
().
R
()
-
I
)
>
SMALL
)
{
transform
(
rtf
,
tr
.
r
(),
tf
);
...
...
@@ -90,6 +92,10 @@ void Foam::transform
{
TFOR_ALL_F_OP_S_OP_F
(
vector
,
rtf
,
=
,
vector
,
T
,
+
,
vector
,
tf
);
}
else
{
rtf
=
vector
::
zero
;
}
}
}
...
...
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