在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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章