[vtkusers] Extracting component of vector field and exporting subset of arrays

David E DeMarle dave.demarle at kitware.com
Tue Jul 24 07:35:22 EDT 2012


1) Try "U.iHat" instead of "U.ihat"
2) Use a vtkPassArrays filter just before your writer to decide which
arrays to keep/remove.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Tue, Jul 24, 2012 at 5:13 AM, peterm <madapeti at gmail.com> wrote:
> Dear Forum members,
>
> I have a structured grid dataset with multiple point data arrays, a set of
> scalar fields and a vector field.
> I would like to achieve two goals:
>   1.) create a scalar field data array as a component of the vector field
>   2.) save the dataset into a file however only exporting a subset of the
> available arrays
>
> To be more specific I have data in this format from a CFD solver, and I need
> to export a scalar field and the three components of the vector field into
> MHD (single component) files.
>
> I would appreciate any help regarding the question.
>
> I am not very familiar with VTK, however I believe using vtkArrayCalculator
> may be a solution to 1.). I have tried to create the vector field component
> field using it, however it does not work. I used the following function
> "U.ihat" (dot product of vector field with the coordinate vector), however
> running the filter yields " An error occured when parsing the calculator's
> function. See previous errors."
>
> Thanks a lot,
> Peter
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Extracting-component-of-vector-field-and-exporting-subset-of-arrays-tp5714867.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list