{"title":"Compressible Flow and Rapid Prototyping","authors":"","doi":"10.1017/9781108591416.010","DOIUrl":"https://doi.org/10.1017/9781108591416.010","url":null,"abstract":"In previous chapters we have outlined and explained in detail how to discretize and solve incompressible flow problems. This chapter will teach you how to discretize the basic equations for single-phase, compressible flow by use of the discrete differential and averaging operators that were introduced in Section 4.4.2. As briefly shown in Examples 4.4.2 and 4.4.3 in the same section, these discrete operators enable you to implement discretized flow equations in a compact form similar to the continuous mathematical description. Use of automatic differentiation (see Appendix A.5 for more details) then ensures that no analytical derivatives have to be programmed explicitly as long as the discrete flow equations and constitutive relationships are implemented as a sequence of algebraic operations. MRST makes it possible to combine discrete operators and automatic differentiation with a flexible grid structure, a highly vectorized and interactive scripting language, and a powerful graphical environment. This is in my opinion the main reason why the software has proved to be an efficient tool for developing new computational methods and workflow tools. In this chapter, I try to substantiate this claim by showing several examples of rapid prototyping. We first develop a compact and transparent solver for compressible flow and then extend the basic single-phase model to include pressure-dependent viscosity, nonNewtonian fluid behavior, and temperature effects. As usual, you can find complete scripts for all examples in a subdirectory (ad-1ph) of the book module.","PeriodicalId":218326,"journal":{"name":"An Introduction to Reservoir Simulation Using MATLAB/GNU Octave","volume":"50 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-08-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130207208","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Index","authors":"","doi":"10.1017/9781108591416.023","DOIUrl":"https://doi.org/10.1017/9781108591416.023","url":null,"abstract":"","PeriodicalId":218326,"journal":{"name":"An Introduction to Reservoir Simulation Using MATLAB/GNU Octave","volume":"28 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-08-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"126890613","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Mathematical Models for Multiphase Flow","authors":"","doi":"10.1017/9781108591416.012","DOIUrl":"https://doi.org/10.1017/9781108591416.012","url":null,"abstract":"","PeriodicalId":218326,"journal":{"name":"An Introduction to Reservoir Simulation Using MATLAB/GNU Octave","volume":"38 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-08-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114634184","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Incompressible Solvers for Single-Phase Flow","authors":"Knut-Andreas Lie","doi":"10.1017/9781108591416.008","DOIUrl":"https://doi.org/10.1017/9781108591416.008","url":null,"abstract":"This chapter explains how the mathematical models from Chapter 4 are implemented and integrated to form a full simulator. To this end, we introduce data structures to represent fluid behavior, the reservoir state, boundary conditions, source terms, and wells. We then explain in detail how the two-point flux approximation (TPFA) scheme is implemented in MRST for general unstructured grids. We also outline the basic solver used to compute time-of-flight and tracer partitions. We end the chapter by presenting a few examples that demonstrate how to set up simulations in MRST and set appropriate boundary conditions, source terms, or well models. The examples include the famous quarter-five spot problem, a corner-point grid with four intersecting faults, and a model of a shallow-marine reservoir (SAIGUP).","PeriodicalId":218326,"journal":{"name":"An Introduction to Reservoir Simulation Using MATLAB/GNU Octave","volume":"34 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127245650","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Compressible Multiphase Flow","authors":"J. Schwarzkopf, S. Balachandar, W. T. Buttler","doi":"10.1201/9781315371924-5","DOIUrl":"https://doi.org/10.1201/9781315371924-5","url":null,"abstract":"","PeriodicalId":218326,"journal":{"name":"An Introduction to Reservoir Simulation Using MATLAB/GNU Octave","volume":"16 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2016-10-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123668970","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Consistent Discretizations on Polyhedral Grids","authors":"","doi":"10.1017/9781108591416.009","DOIUrl":"https://doi.org/10.1017/9781108591416.009","url":null,"abstract":"The two-point flux-approximation (TPFA) scheme is robust in the sense that it generally gives a linear system that has a solution regardless of the variations in K and the geometrical and topological complexity of the grid. The resulting solutions will also be monotone, but the scheme is only consistent for certain combinations of grids and permeability tensors K. This implies that a TPFA solution will not necessarily approach the true solution when we increase the grid resolution. It also means that the scheme may produce different solutions depending upon how the grid is oriented relative to the main flow directions; we will discuss this in more detail in Chapter 10. In this chapter, we first explain the lack of consistency for TPFA, before we introduce a few consistent schemes implemented in MRST. If you have only limited interest in discretizations, my advice is that you read Sections 6.1 and 6.3 before continuing to Chapter 7.","PeriodicalId":218326,"journal":{"name":"An Introduction to Reservoir Simulation Using MATLAB/GNU Octave","volume":"7 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"128616022","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}