tecmul |
October 28, 2020 10:58 |
Why are the rotational transformation tensors in transform.H transposed?
Hi all,
The rotational transformation tensors in transform.H seem to be the transpose of the actual transformation tensors.
For example:
Code:
//- Rotational transformation tensor about the z-axis by omega radians
inline tensor Rz(const scalar& omega)
{
const scalar s = sin(omega);
const scalar c = cos(omega);
return tensor
(
c, s, 0,
-s, c, 0,
0, 0, 1
);
}
This is the rotational transformation tensor around the z-axis.
I checked multiple versions of OpenFoam and they all do the same thing. Why is this?
|