CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] How to set an "active vector"?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2017, 07:38
Default How to set an "active vector"?
  #1
New Member
 
Join Date: Jan 2017
Location: Germany
Posts: 19
Rep Power: 9
beral is on a distinguished road
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"?
beral is offline   Reply With Quote

Old   June 8, 2017, 06:03
Default
  #2
New Member
 
Join Date: Jan 2017
Location: Germany
Posts: 19
Rep Power: 9
beral is on a distinguished road
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)
...
It's really crazy. For ten years people are asking for an option to specify the vector-arrays which should (should not) be transformed by the transform filter. The transform filter can do the transformation, but there is no way to use this potential of the filter. It's all about an optional parameter in the transform filter constructor.
beral is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 16:39.