ISSN 1000-3665 CN 11-2202/P

    OpenMP在CO2地质储存数值模拟并行计算中的应用

    Application of parallel computing with OpenMP in numerical simulation of CO2 geological storage

    • 摘要: 为减少CO2地质储存数值模拟计算时间和增强计算规模,文章提出基于OpenMP和动态内存分配的方式,重构TOUGH2-ECO2N数值模拟器。通过耗时评估可知,模拟器的主要耗时部分为状态方程计算、组建矩阵方程和方程求解。基于此,在遵循OpenMP并行化原则下,采用动态内存分配、处理跳转语句和算法内部的相关性,以及函数内部参数优化等措施,完成了多相流模拟器的并行化。计算试验结果表明,并行化模拟器算法正确、执行效率高,且具有加速效果良好的特点。针对中小规模的模型对比试验,4核的加速比可以达到2.28倍。

       

      Abstract: In order to decrease the simulating time and getting more scale of simulation model, this article implements a parallel TOUGH2-ECO2N on OpenMP. Through the time-consuming assessment, the main time-consuming part of this simulator is the thermophysical properties and phase diagnostics calculation, mass and energy balance equation setup and linear equations solving. Based on it, following the principle of OpenMP parallelism, the parallelization of multiphase flow simulator was accomplished by using dynamic memory allocation, handling jump statements and correlation within algorithm, internal parameters of function, and so on. The experimental results show that the parallelization simulator has the characteristics of correctness, high efficiency and improve the process of solving the multi-phase simulation model.For small and medium scale of simulation model comparison test, the speed was increased by 2.28 times.

       

    /

    返回文章
    返回