visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
438 stars 116 forks source link

Symmetric tensor + blueprint #4637

Open corbett5 opened 4 years ago

corbett5 commented 4 years ago

When plotting a symmetric tensor from a blueprint file I got the following message

The Tensor plot of variable "mesh_Region2-cb1/shale-quadrature-averaged-stress" yielded no data.

I found the following in A.engine_ser.5.vlog

mesh name and topology name: mesh Region2-cb1
mesh  Region2-cb1 is a standard mesh
BlueprintVTK::MeshToVTKDataSet Begin
BlueprintVTK::MeshToVTKDataSet UnstructuredTopologyToVTKUnstructuredGrid
BlueprintVTK::MeshToVTKDataSet End
avtBlueprintFileFormat::GetMesh Done
GetVar: mesh_Region2-cb1/shale-quadrature-averaged-stress [domain 0]
ReadBlueprintField: mesh_Region2-cb1/shale-quadrature-averaged-stress [domain 0]
field mesh_Region2-cb1/shale-quadrature-averaged-stress is defined on mesh mesh_Region2-cb1

{
  "number_of_components": 6,
  "topology": "Region2-cb1",
  "association": "element",
  "path": "mesh/fields/shale-quadrature-averaged-stress"
}
tree cache read domain 0 : /mesh/fields/shale-quadrature-averaged-stress
Blueprint Tree Cache Size (Post fetch of domain: 0 sub path: mesh/fields/shale-quadrature-averaged-stress) = 144002 bytes
done loading conduit data for mesh_Region2-cb1/shale-quadrature-averaged-stress [domain 0]
Creating VTKDataArray from Node
VTKDataArray num_tuples = 1000  num_comps = 6
Warning: In /nfs/tmp2/brugger/buildvisit/VTK-6.1.0/Common/DataModel/vtkDataSetAttributes.cxx, line 1271
vtkCellData (0x105e630): Can not set attribute Tensors. Incorrect number of components.
...
ERROR: In /usr/tmp/brugger/quartz/visitbuild/visit2.13.3/src/visit_vtk/full/vtkTensorReduceFilter.C, line 129
vtkTensorReduceFilter (0xfbabc0): No tensors to reduce

After doing some digging through VTK 6.1.0 it seems that a VTK tensor must have exactly nine components.

I used Visit 2.13.3 on Quartz.

cyrush commented 4 years ago

thanks @corbett5 !