DataArray with NumberOfComponents=2 not recongnized as vector

Here is un unstructured grid with a scalar field and its gradient, which is a vector field with two components. The data loads fine, and the vector data seems correct, but all filters that require a vector input are disabled, such as Glyph and Streamtracer. The only way I was able to get the vector field was to use the Calculator with grad_X*iHat+grad_Y+jHat, which is not necessary, because the vector data is already present.

Here is the paraview data collection to pinpoint the issue. Is there something missing in the XML such that paraview actually interprets the data as a vector, or is it a bug with paraview itself?

Thanks!

ParaView.tar.gz (6.4 KB)

A 2D vector is not a vector in ParaView world, 3 components vectors are needed. Indeed, a Calculator is the easiest way to workaround this, or you could fix your data to contains a 3 component vector instead.

1 Like

Ho gosh, that’s right! Works great with a vector of 3 components.

Thanks for the info!

1 Like