Alimea
(Ali)
October 23, 2024, 3:09am
1
Hi
I found that Paraview calculates a volSymmTensorFields Magnitude via the following relation:
tau_tot = (tau_xx^2 + tau_yy^2 + tau_zz^2 + tau_xy^2 + tau_xz^2 + tau_yz^2)^0.5
However, we know that the correct form of that is:
tau_tot = (tau_xx^2 + tau_yy^2 + tau_zz^2 + 2*tau_xy^2 + 2*tau_xz^2 + 2*tau_yz^2)^0.5
To check you can set the initial values of a volSymmTensorFields as (1 1 1 1 1 1). the mag of this tensor is 3. Now see its magnitude in paraview. You will see that it gives 2.45, not 3!
Could you please explain the reason?
mwestphal
(Mathieu Westphal (Kitware))
October 23, 2024, 9:55am
2
Ali:
volSymmTensorFields
Which filter compute this volSymmTensorFields
?
Alimea
(Ali)
October 23, 2024, 10:06am
3
Alimea:
volSymmTensorFields
Actually, I computed volSymmTensorFields
in OpenFOAM and I just wanted to see the results in paraView.
mwestphal
(Mathieu Westphal (Kitware))
October 23, 2024, 10:16am
4
ParaView compute the magnitude of any n-component array using the same formula, there is no specific case for symmetric tensors I’m afraid.
You can compute anything you want using the calculator though.
Alimea
(Ali)
October 23, 2024, 10:19am
5
Yes. I think this is from OpenFOAM nad is not related to paraView.