A new automatic differentiation approach for fully implicit compositional reservoir simulation

INTERNATIONAL JOURNAL OF OIL GAS AND COAL TECHNOLOGY(2023)

引用 0|浏览0
暂无评分
摘要
A new stand-alone object-oriented automatic differentiation (AD) tool for FORTRAN 95 codes is presented for facilitating the development of implicit solutions of PDEs. Five different AD approaches were implemented and tested: a forward mode (FM) with static allocation, an FM with dynamic allocation and memory stack, an expression-level reverse mode (RM) with memory stack, an expression-level RM with pointers, and a fully RM with pointers. The new tool is applied to an in-house chemical enhanced oil recovery simulator using three approaches: seed matrix, localised linearisation, and using AD only for computing gridblock properties. The FM AD with static allocation was the fastest AD approach but didn't have the flexibility for problems with variable gradient size. Among the AD coupling techniques, the localised linearisation presented a better performance for assembling the Jacobian when compared to the seed matrix scheme. The use of AD for computing properties only presented the smallest overhead. [Received: May 10, 2023; Accepted: June 1, 2023]
更多
查看译文
关键词
automatic differentiation, reservoir simulation, implicit methods, chemical flooding, operator overloading, expression-level reverse mode
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要