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

问题背景

假如你用三种湍流模型仿真了翼型绕流算例,并将结果保存为了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

你可能感兴趣的:(ParaView,CAE,CFD)