|
[Sponsors] |
June 7, 2017, 07:38 |
How to set an "active vector"?
|
#1 |
New Member
Join Date: Jan 2017
Location: Germany
Posts: 19
Rep Power: 9 |
Hi,
when applying the Transform filter, the vectors in the point/cell data are not transformed. That seems to be an old problem in ParaView. It is not known, which 3-tuples are vectors and which are not, so the Transform filter just transformes the "active" one. Here is one of the Threads I found to the topic: http://vtk.1045678.n5.nabble.com/Pos....html#a5739364 Intuitively, the solution should be to set an option in the transform filter about which vectors to transform and which not. I cannot find such an option. Since for my actual task I have only one vector which has to be transformed, it would be sufficient to set it as "active vector", as is mentioned in the solutions I found. But how to set an Array as the "active vector"? |
|
June 8, 2017, 06:03 |
|
#2 |
New Member
Join Date: Jan 2017
Location: Germany
Posts: 19
Rep Power: 9 |
Crazy Shit. There is no option to set the active vector. https://www.paraview.org/pipermail/p...ly/008620.html
The Voodoo to do it anyway is to apply a calculator before the transform filter and let the calculator just overwrite the vector with itself. Code:
# Voodoo to set a vector as "active vector" calculator1 = Calculator(Input=myDataToTransform) calculator1.AttributeMode = 'Cell Data' calculator1.ResultArrayName = 'MyArrayName' # overwrite the array... calculator1.Function = 'MyArrayName' # ...with itself # The vector 'MyArrayName' is now the "active vector". transform1 = Transform(Input=calculator1) ... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] ICEM Scripting Issues | tylerplowright | ANSYS Meshing & Geometry | 33 | September 27, 2021 16:35 |
Set surface normal component of a vector to zero | ChrisA | OpenFOAM Running, Solving & CFD | 0 | July 19, 2013 14:27 |
[ICEM] Question about the use of ICEM tcl scripting | lnk | ANSYS Meshing & Geometry | 9 | January 16, 2013 09:24 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 13:43 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 04:27 |