区域分解后polyMesh文件夹下的boundaryProcAddressing文件是什么含义?
-
如题,当我们执行decomposePar后,在constant/polyMesh文件下新产生了如下四个文件 1。boundaryProcAddressing
2。cellProcAddressing
3。faceProcAddressing
4。pointProcAddressing
其中,想请教一下大佬们,boundaryProcAddressing文件的含义是什么?
以cavity算例为例,分区数目为4,方法为simple,对网格进行均分,我发现每个处理器上的boundaryProcAddressing文件内容均相同,为下图
有没有大佬,解释下文件内容(也即 (0 1 2 -1 -1))的含义啊?谢谢! -
自挖自填,首先非常感谢 @bestucan 版主大佬 在另一篇帖子下的回答,答案在https://www.cfd-online.com/Forums/openfoam-programming-development/161366-global-index-cells-facess-parallel-computation.html网址下,其中九楼 解释了我的问题中 各个文件夹的用途,具体如下:
- boundaryProcAddresing - each element contains global index of patch that is present on current process, for "processor" boundaries this index is -1. Size of this array is equal to number of patches in global mesh plus number of "processor" patches in current processorj folder or processor.
- cellProcAddressing - each element contains global index of given local process cell. Size of this array is equal to number of cells in current processor
- faceProcAddressing - each element contains global index of given local process face. Size of this array is equal to number of face in current processor
- pointProcAddressing - each element contains global index of given local process point. Size of this array is equal to number of points in current processor
这样的话我在问题中展示的图片的含义就可以解释了。数组(0 1 2 -1 -1)的含义就是, 0 1 2代表全局网格中的3个patch。-1 -1 代表本地进程上有两个通信边界(interface)存在。
不过另一个问题来了,这样看来,这几个文件夹都是本地进程上的实体对应的全局索引,也就是说区域分解后的求解过程中,是需要利用上这些全局索引(信息)的,那么究竟要这些全局索引有什么用呢?或者说全局索引是怎么在通信中发挥作用的?有没有相关大佬能够解释下,或者指出对应的(拿着全局索引做事情的)代码也可以,谢谢大家!