Hi Antoine, For OPM Flow, the computational mesh is always generated based on the DATA file. We support both simple cartesian grids as you have observed, and more complex corner-point grids. There is a very brief explanation on page 277 of the OPM Flow reference manual (2020.04 version). (See the paper by Ponting https://www.earthdoc.org/content/papers/10.3997/2214-4609.201411305 for more information on that grid type.)
While it is currently not possible to use arbitrary meshes, the core of the simulator allows arbitrary unstructured topology. Therefore, it is possible to extend the simulator to support reading any type of mesh, but that would require some C++ work. There is a workaround however, that can be used: The NNC keyword (in the DATA file) allows us to set up arbitrary connections between cells. By combining a "fake" grid where no cells are connected in the usual manner, and explicitly making all connections using the NNC facility, this allows almost arbitrary setups. However, "converting" a mesh to such a thing would require a bit of work, and you also need to explicitly give the transmissibilities (for the Finite Volume two-point flux approximation scheme) connecting each pair of cells. You may find MRST (the MATLAB Reservoir Simulation Toolbox) of interest. It supports reading a wider range of input formats, you can simulate a wide variety of scenarios (including black oil and compositional), and there also exists tools to export grids to OPM by using the NNC "trick" described above. Good luck, Atgeirr ________________________________ From: Opm <opm-boun...@opm-project.org> on behalf of Antoine B Jacquey <ajacq...@mit.edu> Sent: 30 September 2020 00:13 To: opm@opm-project.org <opm@opm-project.org> Subject: [Opm] Use external mesh with Flow OPM and unstructured meshes Hi all, I am relatively new in using OPM and I am still exploring the capabilities of the Flow simulator. In the tutorial (SPE!CASE1), I saw that the mesh is generated “on the fly” based on input parameters given in the .DATA file. Is it possible to read a mesh file generated beforehand? If yes, could you point out an example of this? And second question: is it possible to use unstructured meshes with Flow? I would like to consider reservoir models with fractures/faults represented as lower dimensional elements. Is this supported by Flow yet? Thank you very much in advance. Best, Antoine _______________________________________________ Opm mailing list Opm@opm-project.org https://opm-project.org/cgi-bin/mailman/listinfo/opm