简体   繁体   English

使用MPI用并行C ++编写VTK

[英]Write VTK in parallel C++ with MPI

I am new to C++ and I've just started to write a CFD (Computational Fluid Dynamics) code in parallel hybrid mode ( MPI + CUDA ). 我是C++新手,我刚开始以并行混合模式( MPI + CUDA )编写CFD (计算流体动力学)代码。 I would like to know if you have any references on how to write parallel VTK files using MPI ? 我想知道您是否有关于如何使用MPI编写并行VTK文件的参考?

Any suggestions will be much appreciated. 任何建议将不胜感激。

I think this is maybe the simplest way you can do it: 我认为可能是最简单的方法:

  1. Each process write its own .vts file (for unstructured grid it is .vtu). 每个进程都编写自己的.vts文件(对于非结构化网格,它是.vtu)。
  2. Master process writes a .pvts file which contains information of the whole domain. 主进程将写入一个.pvts文件,其中包含整个域的信息。
  3. Open the .pvts file in ParaView or other softwares. 在ParaView或其他软件中打开.pvts文件。

For details see the link . 有关详细信息,请参见链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM