如何在 Paraview 中可视化存储在简单表格中的 XYZ+Field 体积数据? [英] How do I visualize XYZ+Field volume data, stored in a simple table, in Paraview?

查看:51
本文介绍了如何在 Paraview 中可视化存储在简单表格中的 XYZ+Field 体积数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很长一段时间以来,我一直在 Goldensoftware Surfer/Voxler 工作.在这个程序中,可视化表格数据非常容易.该方案如下所示:数据输入(在这一步我可以指定 x、y、z 和一个组件 - 一些物理场数据)->网格->轮廓/体积可视化.但是我找不到任何线索如何从表中加载数据,然后以某种方式对其进行网格化,然后在 Paraview 中进行轮廓/体积渲染.例如,我有一张桌子:

For rather long time I've used to work in Goldensoftware Surfer/Voxler. In this programs it's very easy to visualise table data. The scheme looks like this: data input (on this step I can specify x, y, z and a component - some physical field data)->gridding->contour/volume visualisation. But I can't find any clue how load data from table and then grid it in some way and then make a contour/volume render in Paraview. For example, I have a table:

X       Y       Z       Rho
-135.25 185.25  282.84  2284.442
-135.25 114.75  282.84  954.951
-100    100     282.84  6825.375
-64.75  114.75  282.84  3640.483
-50     150     282.84  3745.877
...
14.75   35.25   400.00  2822.855
14.75   -35.25  400.00  6876.960
50      -50     400.00  1375.617

如何制作这些数据的常规 3D 网格(为了通过克里金法确定)?然后我如何制作轮廓/体积渲染?

How can I make a regular 3D grid (for sake of definiteness by kriging method) of this data? And how can I then make a contour/volume render?

推荐答案

第一步是将数据读入 ParaView.ParaView 可以将分隔的文本文件作为表格读取,这基本上就是您所拥有的.假设您的数据在 .txt 文件中,您可以直接打开数据.默认情况下,阅读器假定您有逗号分隔符(即 csv 文件),但您可以更改它.打开文件后,在属性面板中,将 Field Delimiter Characters 从逗号更改为空格.另外,选中合并连续分隔符旁边的框.

The first step is reading your data into ParaView. ParaView can read in delimited text files as tables, which is essentially what you have. Assuming your data is in a .txt file, you can directly open the data. By default, the reader assumes that you have a comma delimiter (i.e. a csv file), but you can change it. In the properties panel after you have opened the file, change the Field Delimiter Characters from a comma to a space. Also, check the box next to Merge Consecutive Delimiters.

数据以表格结构加载,ParaView 最初将在电子表格视图中显示.您可以使用一对过滤器中的一个将其转换为 3D 网格.第一个过滤器是Table To Points.您只需选择 x、y 和 z 列,它将在空间中生成一组离散点.第二个过滤器是Table To Structured Grid.在此过滤器中,您可以指定 x、y 和 z 列以及网格的范围.然后它会根据表中的数据行构建一个曲线网格点.

The data are loaded in a table structure, and ParaView will initially show it in a spreadsheet view. You can convert it to a 3D grid with one of a pair of filters. The first filter is Table To Points. You just select the x, y, and z columns and it will generate a set of discrete points in space. The second filter is Table To Structured Grid. In this filter you specify both the x, y, and z columns as well as the extent of a grid. It will then build a curvilinear grid of points based on the rows of data in the table.

这篇关于如何在 Paraview 中可视化存储在简单表格中的 XYZ+Field 体积数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆