在ParaView中如何将多组工况的仿真结果绘制在一幅图中进行参数敏感性分析,同时与实验结果做对比?

本文详细介绍了如何在ParaView软件中,从三个不同的VTK文件中提取Cp数据并绘制在同一张图上,同时加入实验数据进行对比的方法。首先,通过使用Calculator过滤器为每个VTK文件创建名为Cp1、Cp2和Cp3的Cp数组。接着,应用AppendAttributes过滤器合并这些数据集。最后,通过PlotData过滤器将仿真数据与CSV格式的实验数据在一张图表中展示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题背景

假如你用三种湍流模型仿真了翼型绕流算例,并将结果保存为了VTK格式,现在想要在同一幅图中绘制Cp沿翼型的分布曲线,然后将实验数据也绘制在这张图里,这应该怎样做呢?

在同一幅图中绘制三组仿真结果的Cp曲线的步骤为:

  1. Have the 3 VTK files open in the same ParaView.
  2. Apply one "Calculator" filter to each one of the VTK files on the "Pipeline Browser".
  3. On each "Calculator" filter, indicate that you want the Result array to be named "Cp1" for the first file, "Cp2" for the second file and "Cp3" for the third file. If you prefer, you can give it any other names to each one.
  4. And on each "Calculator" filter, indicate that you want the Expression to be always "Cp" or whichever name your field is.
  5. Click on the "Apply" button for each "Calculator" filter.
  6. Now select the 3 "Calculator" filters (keep the Ctrl key pressed down, while you click on each filter entry in the "Pipeline Browser").
  7. Now apply the filter "Append Attributes".
  8. Now apply the plot filter to the "Append Attributes" entry on the "Pipeline Browser".
  9. Change parameter and control the data sets to be plotted.

将实验数据加入进行比较的步骤为:

  1. Load the experimental data into ParaView. If you do not have any specific format, then use a CSV file: http://en.wikipedia.org/wiki/Comma-separated_values
  2. Now use the "Plot Data" filter on the experimental data, so that you can check if you're able to plot it in ParaView.
  3. Now, this may seem weird, but select the two plots in the "Pipeline Browser", namely the plot entry you have from the simulation data and the plot you've just done with the experimental data. And apply to this selection the "Append Attributes" filter.
  4. If it works well, it will give you a merged data set, with both the simulation and experimental data.
  5. Now apply the filter "Plot Data" onto the latest merged data, so that you can now plot all of the desired line plots.

 

 参考资料:

https://www.cfd-online.com/Forums/paraview/122612-2-datas-one-plot-2.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

_黄岛主_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值