内容纲要
等值图(Contour),有时也称之为等高线图,是 CFD 后处理过程中用于显示空间物理量的一种常见的表现形式。本文以案例的形式描述在 ParaView 中创建等值图的基本方法。
1 导入数据
-
启动ParaView -
利用菜单 File → Open...
从安装文件夹中加载文件disk_out_ref.ex2
![](https://www.topcfd.cn/wp-content/uploads/2024/05/b74e868a2e0394b.png)
-
激活工具栏按钮 Apply changes to parameters automatically
![](https://www.topcfd.cn/wp-content/uploads/2024/05/b086e5fed9d3e08.png)
注:激活此按钮后,在面板中进行的任何操作都不需要再点击Apply按钮,软件会自动确认。
”
图形窗口如下图所示。
![](https://www.topcfd.cn/wp-content/uploads/2024/05/e6b1ef932116a13.png)
2 绘制等值图
-
选中管道浏览器节点 disk_out_ref.ex2
-
点击菜单 Filter → Common → Contour
或点击工具栏按钮Contour
添加过滤器
![](https://www.topcfd.cn/wp-content/uploads/2024/05/6647fe13b2a2c9b.png)
图形窗口如下图所示。
![](https://www.topcfd.cn/wp-content/uploads/2024/05/832f81c0c660317.png)
-
属性窗口中指定 Contour By
为变量Temp
,然后按下图所示顺序清除值显示范围,并添加新的值
![](https://www.topcfd.cn/wp-content/uploads/2024/05/4360a8c8d2cfb56.png)
-
在弹出窗口中指定温度范围
![](https://www.topcfd.cn/wp-content/uploads/2024/05/4b483c3a4ff8246.png)
-
指定温度显示为 Temp
,如下图所示
![](https://www.topcfd.cn/wp-content/uploads/2024/05/0a2581614f2aca2.png)
创建Clip将等值图剖分开便于观察。
-
选择管道浏览器节点 Contour1
,点击菜单Filters > Common > Clip
添加切片过滤器
![](https://www.topcfd.cn/wp-content/uploads/2024/05/91b23fb2207a34e.png)
-
属性窗口中指定切面为 X Normal
,如下图所示
![](https://www.topcfd.cn/wp-content/uploads/2024/05/526654007b15ad0.png)
选择合适的colormap,图形窗口如下图所示。
![](https://www.topcfd.cn/wp-content/uploads/2024/05/f6daac99f801464.png)
3 绘制等高线图
在ParaView中绘制带有标签的等值图不如Tecplot方便,但也是可以做的。
3.1 创建等高线图
-
删除前面创建的Contour1与Clip1
![](https://www.topcfd.cn/wp-content/uploads/2024/05/5d34160998b4a1a.png)
-
选中 disk_out_ref.ex2
,点击工具栏Slice
按钮
![](https://www.topcfd.cn/wp-content/uploads/2024/05/b02c0b3cc5af050.png)
-
如下图所示指定Slice面为 x面
![](https://www.topcfd.cn/wp-content/uploads/2024/05/656a2cb612fa621.png)
-
选中 Slice1
,点击工具栏按钮Contour
创建等高图
![](https://www.topcfd.cn/wp-content/uploads/2024/05/79dddb8133adb7b.png)
-
按下图所示顺序重新指定变量 Temp
的数据范围
![](https://www.topcfd.cn/wp-content/uploads/2024/05/b03cc66d949eb76.png)
-
如下图所示设置温度范围
![](https://www.topcfd.cn/wp-content/uploads/2024/05/a4bcc0b43cb8fff.png)
颜色显示指定为Temp
,此时图形窗口如图所示。
![](https://www.topcfd.cn/wp-content/uploads/2024/05/37a501b39e8872f.png)
3.2 添加Label
-
选中管道浏览器节点 Contour1
,点击工具栏Find Data
按钮,如下图所示
![](https://www.topcfd.cn/wp-content/uploads/2024/05/f8213b3ae463889.png)
-
在打开的 Find Data
面板中,指定Point Labels
为变量Temp
![](https://www.topcfd.cn/wp-content/uploads/2024/05/c9e3884eee8befc.png)
-
点击按钮 Edit Interactive Label Properties
打开属性设置对话框
![](https://www.topcfd.cn/wp-content/uploads/2024/05/55498a47c368b8f.png)
-
如下图所示指定 Point Label Format
为%.1f
,表示保留小数点后1位有效数字
![](https://www.topcfd.cn/wp-content/uploads/2024/05/3c4fc507ff63ccd.png)
-
选中图形窗口的工具栏中按钮 Interactive Select Points On
,在等高线上用鼠标点击
![](https://www.topcfd.cn/wp-content/uploads/2024/05/0a0f79682cf5353.png)
-
可以看到等高线上显示了数据
![](https://www.topcfd.cn/wp-content/uploads/2024/05/b98f3de2db13002.png)
-
将Slice显示为Temp,最终图形如下图所示。
![](https://www.topcfd.cn/wp-content/uploads/2024/05/4d82c9e22018cf7.png)
(完)
本篇文章来源于微信公众号: CFD之道
评论前必须登录!
注册