The MATLAB Reservoir Simulation Toolbox (MRST) started out as an internal research tool in my research group but later developed into a community code used all over the world in both academia and industry. MRST consists of a small core module offering basic functionality plus a large set of add-on modules offering discretizations, solvers, physical models, and a wide variety of simulators and workflow tools. The modular structure makes it easy to add new or modify existing functionality, and many of the 60 currently released modules are authored entirely or in part at other institutions. I will outline key functionality for rapid prototyping, show a few application examples from geoenergy and battery modelling, and discuss some of the most recent features, including a high-performance backend written in Julia and C/C++.
In the last part of the talk, I will briefly discuss OPM Flow, which is an open-source reservoir simulator aimed at full industry use. OPM Flow is developed in collaboration with Equinor, NORCE, and others, to provide a platform for open innovation. A key requirement for the development has been that the new simulator should reproduce virtually identical simulation results as contemporary commercial tools both in hindcasting decades of production histories and in forecasting future production.