在 Paraview 中显示 Tensor6 单元格属性

Show a Tensor6 Cell Attribute in Paraview

我在 HDF5 文件中有一些数据,其中还包含每个细胞类型元素的应力和应变张量。我创建了一个 XDMF 文件来描述数据,部分内容如下所示:

 <Attribute Name="Displacement" AttributeType="Vector" Center="Node">
   <DataItem Dimensions="2673 3" Format="HDF" NumberType="Float" Precision="8" >
     cubetest2.h5:/Solution/Nodal displacements
   </DataItem>
 </Attribute>

 <Attribute Name="Force" AttributeType="Vector" Center="Node">
   <DataItem Dimensions="2673 3" Format="HDF" NumberType="Float" Precision="8" >
     cubetest2.h5:/Solution/Nodal forces
   </DataItem>
 </Attribute>

 <Attribute Name="eleStrain" AttributeType="Tensor6" Center="Cell">
   <DataItem Dimensions="2048 6" Format="HDF" NumberType="Float" Precision="8" >
       cubetest2.h5:/Solution/Element strain
   </DataItem>
 </Attribute>

 <Attribute Name="eleStress" AttributeType="Tensor6" Center="Cell">
   <DataItem Dimensions="2048 6" Format="HDF" NumberType="Float" Precision="8" >
       cubetest2.h5:/Solution/Element stress
   </DataItem>
 </Attribute>

虽然矢量值可以很好地读取,并且我可以创建矢量字形,但 "Tensor Glyph" 过滤器始终显示为灰色。 我怀疑 ParaView 创建了一个包含六个分量中的 9 个分量的张量,但是 documentation for Tensor Glyph 声明它需要六个值。

如何显示张量,即告诉 Paraview 不要创建完全对称的张量?

Tensor Glyph过滤器不支持单元格数据操作。

您应该首先使用 Cell Data To Point Data 过滤器将戴尔数据转换为点数据。