-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 📄 license Apache 2.0 -> BSD 3-Clause
Release-As: 0.9.0
- Loading branch information
Showing
3 changed files
with
57 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2024, Maksim Elizarev | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,10 @@ | |
|
||
Repository: [github.com/ImperialCollegeLondon/StrataTrapper](https://github.com/ImperialCollegeLondon/StrataTrapper) | ||
|
||
![build](https://github.com/ImperialCollegeLondon/StrataTrapper/actions/workflows/matlab-ci.yml/badge.svg) | ||
![GitHub Tag](https://img.shields.io/github/v/tag/ImperialCollegeLondon/StrataTrapper?sort=semver&style=flat&label=version) | ||
![GitHub Release Date](https://img.shields.io/github/release-date/ImperialCollegeLondon/StrataTrapper?display_date=published_at&style=flat&label=dated) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) | ||
![build](https://github.com/ImperialCollegeLondon/StrataTrapper/actions/workflows/matlab-ci.yml/badge.svg) | ||
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) | ||
|
||
* [The StrataTrapper codes](#the-stratatrapper-codes) | ||
* [Structure](#structure) | ||
|
@@ -20,15 +19,18 @@ Repository: [github.com/ImperialCollegeLondon/StrataTrapper](https://github.com/ | |
## The StrataTrapper codes | ||
|
||
This is the StrataTrapper **upscaling toolkit**. | ||
It can also generate heterogeneous fine-scale models with specific correlation lengths to re-upscale given coarse-scale two-phase flow models. | ||
It can also generate heterogeneous fine-scale models with specific correlation lengths | ||
to re-upscale given coarse-scale two-phase flow models. | ||
|
||
Another tool is the **reduced-physics model** [CO2GraVISim](https://github.com/ajobutler/CO2GraVISim). | ||
|
||
In [`StrataTrapper-models`](https://github.com/ImperialCollegeLondon/StrataTrapper-models) repository, we publish field-scale models upscaled with StrataTrapper. | ||
In [`StrataTrapper-models`](https://github.com/ImperialCollegeLondon/StrataTrapper-models) | ||
repository, we publish field-scale models upscaled with StrataTrapper. | ||
|
||
## Structure | ||
|
||
Top-level scripts and functions are in the repository root, and the rest is in [`src/`](src) folder. | ||
Top-level scripts and functions are in the repository root, | ||
and the rest is in [`src/`](src) folder. | ||
|
||
[`demo.m`](demo.m) script is an implementation of the running guideline below.\ | ||
Feel free to play with it and use as an example for your own scripts. | ||
|
@@ -41,17 +43,22 @@ Feel free to play with it and use as an example for your own scripts. | |
and input fine-scale porosity and permeability for each coarse block. | ||
3. Setup input rock-fluid properties and algorithm options represented by | ||
[`Params`](src/Params.m) and [`Options`](src/Options.m) classes. | ||
4. Create logical `mask` to filter out impermeable cells and/or define an arbitrary subset of cells to process. | ||
5. Run [`strata_trapper`](strata_trapper.m) function with arbitrary number of parallel workers | ||
4. Create logical `mask` to filter out impermeable cells | ||
and/or define an arbitrary subset of cells to process. | ||
5. Run [`strata_trapper`](strata_trapper.m) function | ||
with arbitrary number of parallel workers | ||
optionally enabling a UI progress bar. | ||
6. Visualise outputs with [`plot_result`](plot_result.m) function | ||
7. Export the outputs to [PFLOTRAN-OGS](https://docs.opengosim.com/)-compatible text files using [`ogs_export`](ogs_export.m) function. | ||
7. Export the outputs to [PFLOTRAN-OGS](https://docs.opengosim.com/)-compatible | ||
text files using [`ogs_export`](ogs_export.m) function. | ||
|
||
Tips: | ||
|
||
* Usually, MATLAB runs `startup.m` scripts automatically if they are in a startup folder. | ||
* The heaviest part of the algorithm is essentially parallel with no synchronisation.\ | ||
So, using several parallel workers usually results in a proportional performance boost. | ||
* Usually, MATLAB runs `startup.m` scripts automatically | ||
if they are in a startup folder. | ||
* The heaviest part of the algorithm is essentially parallel with no synchronisation. | ||
So, using several parallel workers usually results | ||
in a proportional performance boost. | ||
|
||
## Versions | ||
|
||
|
@@ -61,17 +68,23 @@ so it may worth attention as much as later versions. | |
|
||
[CHANGELOG.md](CHANGELOG.md) describes the version history and key changes. | ||
|
||
Other versions can be accessed via [tags](https://github.com/ImperialCollegeLondon/StrataTrapper/tags) and [releases](https://github.com/ImperialCollegeLondon/StrataTrapper/releases) sections of the repository. | ||
Other versions can be accessed via | ||
[tags](https://github.com/ImperialCollegeLondon/StrataTrapper/tags) and | ||
[releases](https://github.com/ImperialCollegeLondon/StrataTrapper/releases) | ||
sections of the repository. | ||
|
||
## Contributing | ||
|
||
Everyone is welcome to open [issues](https://github.com/ImperialCollegeLondon/StrataTrapper/issues) and [pull requests](https://github.com/ImperialCollegeLondon/StrataTrapper/pulls). | ||
Everyone is welcome to open [issues](https://github.com/ImperialCollegeLondon/StrataTrapper/issues) and | ||
Check failure on line 78 in README.md GitHub Actions / lintLine length
|
||
[pull requests](https://github.com/ImperialCollegeLondon/StrataTrapper/pulls). | ||
|
||
## References | ||
|
||
The StrataTrapper algorithm as well as motivation and theory behind it are in the paper: | ||
The StrataTrapper algorithm as well as motivation | ||
and theory behind it are in the paper: | ||
|
||
> Samuel J. Jackson, Samuel Krevor\ | ||
> **Small-Scale Capillary Heterogeneity Linked to Rapid Plume Migration During CO2 Storage**\ | ||
> **Small-Scale Capillary Heterogeneity** | ||
> **Linked to Rapid Plume Migration During CO2 Storage**\ | ||
> *Geophysical Research Letters* | 2020\ | ||
> <https://doi.org/10.1029/2020GL088616> |