Autor: |
Andreas Lauser, Tor Harald Sandve, Atgeirr Flø Rasmussen, Halvor Møll Nilsen |
Rok vydání: |
2018 |
Předmět: |
|
Zdroj: |
Proceedings. |
ISSN: |
2214-4609 |
DOI: |
10.3997/2214-4609.201802153 |
Popis: |
Summary Local forward-mode automatic differentiation for high performance parallel pilot-level reservoir simulation. Robust reservoir simulation requires accurate linearization and involve complex property evaluations and dynamics. Handcoded Jacobian derivative calculations require significant resources to maintain and change, when taking into account all needed features for industrially relevant simulations. Automatic differentiation (AD) is a technique which gives machine precision accuracy of derivatives while requiring minimal extra effort, essentially only requiring the implementation of the residual equations. This makes extending the model simpler and less error-prone. The optimal use of AD techniques depend on the particular grid structures and discretizations used. Here we present how local forward-mode AD can be used with a discretization based on the Distributed Uniform Numerics Enviroment (DUNE) grid interface to achieve a high performance reservoir simulator. This paper discusses how one can exploit the structure of the full reservoir equations to obtain a dense data representation with only local evaluations in the AD framework, thereby avoiding excessive treatment of sparse sets or matrices. We highlight aspects of the C++ implementation which contribute to giving clean code, parallel performance and efficient use of modern microprocessors. Finally, the OPM Flow simulator is used to demonstrate the approach on field case examples. |
Databáze: |
OpenAIRE |
Externí odkaz: |
|