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.
-
Keywords:
- parallel /
- CO2 geological storage /
- OpenMP /
- CO2 emission reduction /
- multiphase flow /
- TOUGH2
-
-
[1] [1]靖晶,苑艺林,杨艳林,等.地层倾角对 CO2地质封存的影响研究——以鄂尔多斯 CCS 工程为例[J]. 工程勘察, 2014(6): 39-44. [JING J, YUAN Y L, YANG Y L, et al. Influence of strata dip on CO2 geological storage-a case study of Erdos CCS project[J]. Geotechnical Investigation & Surveying, 2014(6): 39-44.(in Chinese)]
[2] [2]江怀友, 沈平平,罗金玲,等.世界二氧化碳埋存技术现状与展望[J]. 中国能源, 2010, 32(6): 28-32. [JIANG H Y, SHEN P P, LUO J L, et al. Current situation and prospect of carbon dioxide storage technology in the world[J]. Energy and Environment, 2010, 32(6): 28-32.(in Chinese)]
[3] [3]李小春,刘延锋,白冰,等.中国深部咸水含水层CO2储存优先区域选择[J]. 岩石力学与工程学报, 2006, 25(5): 963-968. [LI X C, LIU Y F, BAI B, et al. Ranking and screening of CO2 saline aquifer storage zones in China[J]. Chinese Journal of Rock Mechanics and Engineering,2006,25(5): 963-968.(in Chinese)]
[4] [4]张森琦,郭建强,刁玉杰,等.规模化深部咸水含水层CO2地质储存选址方法研究[J]. 中国地质, 2011, 38(6):1640-1651. [ZHANG S Q, GUO J Q,DIAO Y J, et al. Technical method for selection of CO2 geological storage project sites in deep saline aquifers[J]. Geology in China, 2011, 38(6):1640-1651.(in Chinese)]
[5] [5]刘延锋, 李小春, 白冰.中国CO2煤层储存容量初步评价[J]. 岩石力学与工程学报,2005,24(16): 2947-2952. [LIU Y F, LI X C, BAI B. Preliminary estimation of CO2 storage capacity of coalbeds in China[J]. Journal of Rock Mechanics and Engineering, 2005,24(16): 2947-2952.(in Chinese)]
[6] [6]万玉玉.鄂尔多斯盆地石千峰组咸水层CO2地质储存中CO2的迁移转化特征[D]. 长春:吉林大学,2012. [WAN Y Y. Migration and transformation of CO2 in CO2 geological sequestration process of Shiqianfeng saline aquifers in Ordos Basin[D]. Changchun: Jilin University,2012.(in Chinese)]
[7] [7]Pruess K,N Spycher. ECO2N – A fluid property module for the TOUGH2 code for studies of CO2 storage in saline aquifers[J]. Energy Conversion and Management, 2007, 48(6): 1761-1767.
[8] [8]Pruess K, J García. Multiphase flow dynamics during CO2 disposal into saline aquifers[J]. Environmental Geology, 2002,42(2/3): 282-295.
[9] [9]Bachu S, J J Adams. Sequestration of CO2 in geological media in response to climate change: capacity of deep saline aquifers to sequester CO2 in solution[J]. Energy Conversion and Management, 2003, 44(20): 3151-3175.
[10] [10]王亭亭.基于OpenMP和MPI的并行算法研究[D]. 长春:吉林大学,2011. [WANG T T.Research of parallel algorithm based on OpenMP and MPI[D]. Changchun: Jilin University,2011.(in Chinese)]
[11] [11]Mills R T. Simulating subsurface flow and transport on ultrascale computers using PFLOTRAN[J]. Journal of Physics: Conference Series, 2007, 78(1): 012051.
[12] [12]Zhang Keni, C Doughty, Wu Y S, et al. Efficient parallel simulation of CO2 geologic sequestration in saline aquifers[C]// Paper SPE 106026,Proceedings of the 2007 SPE Reservoir Simulation Symposium, Houston, 2007.
[13] [13]朱彤.基于GPU的TOUGHREACT并行化实现[D]. 长春:吉林大学,2012.[ZHU T. Parallel implementation of TOUGHREACT based on GPU[D]. Changchun: Jilin University,2012.(in Chinese)]
[14] [14]米东,施小清,张可霓,等. 基于MPI的TOUGH-REACT并行性能分析[J]. 水文地质工程地质,2016,43(1):34-40. [MI D, SHI X Q, ZHANG K N, et al. Performance analysis of a massively parallel version of the TOUGHREACT code[J]. Hydrogeology & Engineering Geology, 2016,43(1):34-40.(in Chinese)]
-
期刊类型引用(1)
1. 罗亚南,蒋坤卿,黄思浩,冯波,卜宪标. 地热水回灌耦合CO_2地质封存系统安全性分析. 地质科技通报. 2024(03): 59-67 . 百度学术
其他类型引用(3)
计量
- 文章访问数: 892
- HTML全文浏览量: 71
- PDF下载量: 479
- 被引次数: 4