Re: [Paraview] Assemble Variables into Tensor

2017-11-30 Thread Utkarsh Ayachit
You're most welcome :). Utkarsh On Thu, Nov 30, 2017 at 10:20 AM, Nicholas Richmond wrote: > Hi Utkarsh, > > Using the script you wrote with the Programmable Filter does the job nicely! > Thanks so much for going above and beyond to help me assemble the arrays >

Re: [Paraview] Assemble Variables into Tensor

2017-11-30 Thread Nicholas Richmond
Hi Utkarsh, Using the script you wrote with the Programmable Filter does the job nicely! Thanks so much for going above and beyond to help me assemble the arrays into a tensor. Programmable Filter never occurred to me and I am now looking forward to exploring Chapter 13 of the Paraview Guide to

Re: [Paraview] Assemble Variables into Tensor

2017-11-29 Thread Utkarsh Ayachit
Nick, You can use the *Programmable Filter* instead with something like the following script as the *Script*: from paraview.vtk.numpy_interface import dataset_adapter as dsa import numpy def make_tensor(xx,yy,zz, xy, yz, xz): t = numpy.vstack([xx,yy,zz,xy, yz,