The invention discloses a heterogeneous
transplantation and
parallel optimization method for multiphase flow numerical
simulation software, and belongs to the technical field of heterogeneous parallel calculation of computational fluid
mechanics. According to the method, cross-language
adaptation is realized by establishing a cross-language calling interface, unifying an array storage access mode, adapting a function interface format and reconstructing a core calculation function module; computing deployment is completed through efficient management of a storage space of a device end, directional
copying and synchronization of data, optimization and definition of a kernel function,
thread scheduling optimization, result return and
parallel communication. In combination with a
grid management scheme of double-layer boundary expansion, grid data interaction efficiency is optimized; efficient
parallel scheduling and expansibility optimization are realized by dividing computational domains, allocating processes, cooperatively dividing tasks and formulating a weak expansibility optimization strategy.
Software seamless
transplantation and efficient
interoperation can be achieved, the single-step iteration
throughput rate and the speed-up ratio are improved, the communication transmission
bottleneck is relieved, and good expansibility and
engineering practicability are achieved.