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

问题描述

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

  XYZ 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

如何制作一个这个数据的规则三维网格(为了克里金方法的确定性)?我怎么才能做出一个轮廓/体积渲染?

解决方案

第一步是将数据读入ParaView。 ParaView可以以分隔文本文件的形式读取表格,这基本上就是您所拥有的。假设你的数据是在.txt文件中,你可以直接打开数据。默认情况下,读者假定你有一个逗号分隔符(即一个csv文件),但你可以改变它。在打开文件之后的属性面板中,将字段分隔符字符从逗号改为空格。此外,选中合并连续分隔符旁边的复选框。

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


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

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?

解决方案

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.

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体积数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 00:56