diff --git a/upscaling-mlmc/upscaling-mlmc.md b/upscaling-mlmc/upscaling-mlmc.md new file mode 100644 index 0000000..b538fdd --- /dev/null +++ b/upscaling-mlmc/upscaling-mlmc.md @@ -0,0 +1,61 @@ +# Upscaling + MLMC + +We propose an experiment that investigates whether MLMC applied to upscaling of reservoir simulations can reduce the computational cost of estimating certain ensemble statistics. + +## Upscaling + +The [MRST book](https://www.sintef.no/projectweb/mrst/publications/mrst-book/) defines upscaling as: + +"Upscaling (or homogenization) refers to the process of propagating properties and parameters from a model of a given resolution to a model of lower spatial resolution." + +Figure 15.1 from the same book illustrates upscaling of porosity. + +![alt text](upscaling_from_mrst_book.png) + +Additive properties such as porosity can be upscaled using simple volumetric averaging, while nonaditive properties such as permeability require more sophisticated methods. + +## MLMC + +Suppose the quantity of interest is expected cumulative oil production, $\mathbb{E}[Q_L]$, where $Q_L$ is the result at the finest grid resolution. +MLMC uses the telescoping identity + +$$ +\mathbb{E}[Q_L] = \mathbb{E}[Q_0] + \sum_{\ell=1}^{L} \mathbb{E}\left[Q_\ell - Q_{\ell-1}\right]. +$$ + +The potential saving comes from running the finest grid on fewer realizations. +Standard Monte Carlo uses fine-grid runs to estimate average production directly. +MLMC uses them to estimate the average change in production when you go from the next-coarsest grid to the finest grid. + +Take the 100 Drogon realizations and imagine there are just two grid levels. +Run all 100 on the coarse grid, then run a random subset on the fine grid. +For each realization in the subset, subtract its own coarse-grid result from its fine-grid result. +The estimate of the fine-grid ensemble mean is + +$$ +\underbrace{\text{mean coarse production over all 100}}_{\text{coarse runs}} ++ +\underbrace{\text{mean fine-minus-coarse difference on the subset}}_{\text{paired on the same realizations}}. +$$ + +Production might vary widely across realizations, while the coarse grid consistently overpredicts by roughly the same amount. +In that case, the coarse runs capture most of the variation, and a few fine runs can pin down the average correction. + +Karl Truong at NR has developed an example using MLMC with a simple porous-flow simulator as part of TRUST Project 80: +https://github.com/sintefmath/AgenticSimulationBasedInference/blob/main/MLMCReservoir/mlmc_reservoir.ipynb + +## Concrete potential experiment + +Start with the 100 fine-scale Drogon geological realizations. Upscale the reservoir properties of each realization onto grids at several coarser resolutions. + +MLMC could then combine many coarse-grid simulations with fewer paired simulations at progressively finer resolutions to estimate a fine-grid ensemble statistic, such as expected cumulative oil production. We could compare its accuracy and computational cost with standard Monte Carlo, in which the sampled realizations are simulated only at the finest resolution. + +## Existing work + +[A.. Alkhatib; M.. Babaei (2016)](https://onepetro.org/SJ/article-abstract/21/04/1192/206484/Applying-the-Multilevel-Monte-Carlo-Method-for?redirectedFrom=fulltext) have applied MLMC in a reservoir setting: + +"This method comprises performing a small number of expensive simulations on the fine-scale model and a large number of less-expensive simulations on coarser upscaled models, and then combining the results to produce the quantities of interest. " + +"The results show that it is possible to robustly quantify spatial uncertainty for a surfactant/polymer EOR process while greatly reducing the computational requirement, up to two orders of magnitude compared with traditional Monte Carlo for both the Gaussian and non-Gaussian reservoir models." + +[Sandve et al. (2024)](https://doi.org/10.3997/2214-4609.202437071) already showed that coarse Drogon models can speed up a history-matching and optimization workflow. The question here is whether they also work as paired corrections for a forecast mean. diff --git a/upscaling-mlmc/upscaling_from_mrst_book.png b/upscaling-mlmc/upscaling_from_mrst_book.png new file mode 100644 index 0000000..88f0280 Binary files /dev/null and b/upscaling-mlmc/upscaling_from_mrst_book.png differ