diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..3e54292 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,21 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "[BUG]" +labels: bug +assignees: daavid00 + +--- + +**Describe the bug and expected behaviour** +A clear and concise description of what the bug is and the expected behaviour. + +**To Reproduce** +Steps to reproduce the bug. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. macOS, Ubuntu] + - Version [e.g. Python 3.14, Octave 10.3.0] diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..232b0cf --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: "[ENHANCEMENT]" +labels: enhancement +assignees: daavid00 + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..6e48b38 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,10 @@ +## Description +Describe the changes made and why they were made. + +If applicable, include issue(s) this PR addresses (e.g., Closes #711). + +Remember to check: +- Code follows project style guidelines. +- Tests have been added or updated to cover the changes. +- Documentation has been updated if necessary. +- All CI/CD checks pass. diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index bf1807a..52832ca 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -35,6 +35,9 @@ jobs: sudo apt-get update sudo apt-get install mpi-default-bin sudo apt-get install libopm-simulators-bin + + - name: Install plotting (LaTeX) dependencies + run: | sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super - name: Install dependecies diff --git a/.gitignore b/.gitignore index 543eecc..bfe8441 100644 --- a/.gitignore +++ b/.gitignore @@ -167,6 +167,7 @@ reference_sgas_i,j,1_t90.png /tests/regional/OPERNUM_EXPRECCS.INC /tests/regional/REGIONAL.DBG /tests/regional/REGIONAL.EGRID +/tests/regional/REGIONAL.ESMRY /tests/regional/REGIONAL.INIT /tests/regional/REGIONAL.PRT /tests/regional/REGIONAL.SMSPEC @@ -174,6 +175,7 @@ reference_sgas_i,j,1_t90.png /tests/regional/REGIONAL.UNSMRY /tests/site/SITE.DBG /tests/site/SITE.EGRID +/tests/site/SITE.ESMRY /tests/site/SITE.INIT /tests/site/SITE.PRT /tests/site/SITE.SMSPEC diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000..21e806c --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,11 @@ +cff-version: "1.2.0" +message: "If you use this software, please cite it as below." +authors: +- family-names: Landa-Marbán + given-names: David + orcid: "https://orcid.org/0000-0002-3343-1005" +title: "expreccs: A Python framework using OPM Flow to simulate + regional and site reservoirs for CO2 storage" +year: 2024 +doi: 10.5281/zenodo.12100600 +url: "https://github.com/cssr-tools/expreccs" diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..0cd938e --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,89 @@ +# Contributor Covenant 3.0 Code of Conduct + +## Our Pledge + +We pledge to make our community welcoming, safe, and equitable for all. + +We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant. + + +## Encouraged Behaviors + +While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language. + +With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including: + +1. Respecting the **purpose of our community**, our activities, and our ways of gathering. +2. Engaging **kindly and honestly** with others. +3. Respecting **different viewpoints** and experiences. +4. **Taking responsibility** for our actions and contributions. +5. Gracefully giving and accepting **constructive feedback**. +6. Committing to **repairing harm** when it occurs. +7. Behaving in other ways that promote and sustain the **well-being of our community**. + + +## Restricted Behaviors + +We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct. + +1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop. +2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people. +3. **Stereotyping or discrimination.** Characterizing anyone’s personality or behavior on the basis of immutable identities or traits. +4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community. +5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission. +6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group. +7. Behaving in other ways that **threaten the well-being** of our community. + +### Other Restrictions + +1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions. +2. **Failing to credit sources.** Not properly crediting the sources of content you contribute. +3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community. +4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors. + + +## Reporting an Issue + +Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm. + +When an incident does occur, it is important to report it promptly. To report a possible violation, send an email to dmar@norceresearch.no. + +Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution. + + +## Addressing and Repairing Harm + +If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower rungs on the ladder may be skipped. + +1) Warning + 1) Event: A violation involving a single incident or series of incidents. + 2) Consequence: A private, written warning from the Community Moderators. + 3) Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations. +2) Temporarily Limited Activities + 1) Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation. + 2) Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members. + 3) Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over. +3) Temporary Suspension + 1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation. + 2) Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions. + 3) Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted. +4) Permanent Ban + 1) Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member. + 2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior. + 3) Repair: There is no possible repair in cases of this severity. + +This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community. + + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event. + + +## Attribution + +This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/). + +Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/) + +For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement ladder was inspired by the work of [Mozilla’s code of conduct team](https://github.com/mozilla/inclusion). diff --git a/README.md b/README.md index 22f1be5..6b9ed1b 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ pip install -e . pip install -r dev-requirements.txt ``` -See the [_installation_](https://cssr-tools.github.io/exprecss/installation.html) for further details on installing binaries or building OPM Flow from the master branches in Linux, Windows, and macOS, as well as the opm Python package and LaTeX dependencies. +See the [_installation_](https://cssr-tools.github.io/exprecss/installation.html) for further details on installing binaries or building OPM Flow from the master branches in Linux, Windows, and macOS, as well as the (optional) LaTeX dependencies. ## Running expreccs You can run _expreccs_ as a single command line: diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..d427535 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,40 @@ +# Security Policy + +## Supported Versions + +We only provide security updates for the following versions: + +* **Version 2025.10** (Current Stable) + +## Reporting a Vulnerability + +We take security vulnerabilities seriously and appreciate your efforts to responsibly disclose them. To report a vulnerability, please follow these steps: + +1. **Do not open a public GitHub issue.** This could expose the vulnerability to malicious actors before a fix is available. +2. **Email us directly at `dmar@norceresearch.no`**. +3. **Provide detailed information:** + * A clear description of the vulnerability. + * Steps to reproduce the vulnerability. + * The affected versions of the project. + * Any potential impact or exploit scenarios. + * Your contact information for follow-up. + +## Our Disclosure Policy + +Upon receiving a security bug report, we will: + +1. **Acknowledge receipt** within 24-72 hours. +2. **Confirm the problem** and determine affected versions. +3. **Work on a fix** for all supported releases. +4. **Coordinate a release** with the fix. +5. **Publicly acknowledge your contribution** (with your permission) after the fix is released. + +## Responsible Disclosure + +We kindly request that you: + +* **Do not publicly disclose the vulnerability** until we have released a fix. +* **Allow us a reasonable amount of time** to address the issue before public disclosure. +* **Do not engage in any actions** that could harm our users or systems during your research. + +Thank you for helping to keep our project secure. diff --git a/docs/_sources/installation.rst.txt b/docs/_sources/installation.rst.txt index cd1ef51..783711c 100644 --- a/docs/_sources/installation.rst.txt +++ b/docs/_sources/installation.rst.txt @@ -52,7 +52,7 @@ You also need to install: .. tip:: See the `CI.yml `_ script - for installation of OPM Flow (binary packages) and the expreccs package in Ubuntu. + for installation of OPM Flow (binary packages), LaTeX (optional) libraries, and the expreccs package in Ubuntu 24.04 and Python 3.11. Source build in Linux/Windows +++++++++++++++++++++++++++++ @@ -136,5 +136,4 @@ then building OPM Flow can be achieved with the following bash lines: This builds OPM Flow, and it exports the path to the flow executable (i.e., executing in the terminal **which flow** should print the path). -For macOS, the LaTeX dependency can be installed from https://www.tug.org/mactex/. If after installation you still face an error due to LaTeX -when executing expreccs, then add the flag **-latex 0** to expreccs. +For macOS, the (optional but recommended) LaTeX dependency can be installed from https://www.tug.org/mactex/. diff --git a/docs/_sources/introduction.rst.txt b/docs/_sources/introduction.rst.txt index d014dd4..2927f31 100644 --- a/docs/_sources/introduction.rst.txt +++ b/docs/_sources/introduction.rst.txt @@ -42,7 +42,6 @@ where -f Frequency to evaluate the boundary pressures on the site between report steps in the site. Write an array, e.g., '2,7,3', to set the frequency in each site report step ('1' by default). -a Exponential 'a' coefficient for the telescopic time-discretization for the given frequency '-f'. Write an array, e.g., '2.2,0,3.1', to set the coefficient in each site report step ('3.2' by default, use 0 for an equidistance partition). -w Set to 1 to print warnings ('0' by default). --l Set to 0 to not use LaTeX formatting ('1' by default). -e Set to 0 to write the pressure increase on the site bc from the regional values ('1' by default, i.e., the pressure values on the boundaries correspond to the explicit values on the regional simulations). -z Set to 1 to project the regional pressures per fipnum zones, i.e., the pressure maps to the site bcs are written for equal fipnum numbers in the whole xy layer ('0' by default, i.e., the projections include the z location offset between regional and site models). -s Set to 0 to not create the subfolders preprocessing, output, and postprocessing, i.e., to write all generated files in the output directory ('1' by default). diff --git a/docs/_sources/tccs-13.rst.txt b/docs/_sources/tccs-13.rst.txt index bd4d331..49eccb2 100644 --- a/docs/_sources/tccs-13.rst.txt +++ b/docs/_sources/tccs-13.rst.txt @@ -16,7 +16,7 @@ and adapt those files to the ones in the `tccs-13 folder `_ and `pycopm `_ are used, which can be installed by: +For the first figures, `plopm `_ and `pycopm `_ are used, which can be installed by: .. code-block:: bash @@ -24,7 +24,7 @@ For the first figures, `plopm `_ and `p pip install git+https://github.com/cssr-tools/pycopm.git To run the optimization, `Everest `_ is needed, -which is installed via `ert `_ when `pycopm `_ is installed with the command above. +which is installed via `ert `_ when pycopm is installed with the command above. .. note:: diff --git a/docs/installation.html b/docs/installation.html index 872b773..c1fde71 100644 --- a/docs/installation.html +++ b/docs/installation.html @@ -134,7 +134,7 @@

OPM Flow

Tip

See the CI.yml script -for installation of OPM Flow (binary packages) and the expreccs package in Ubuntu.

+for installation of OPM Flow (binary packages), LaTeX (optional) libraries, and the expreccs package in Ubuntu 24.04 and Python 3.11.

Source build in Linux/Windows

@@ -209,8 +209,7 @@

Source build in Linux/Windowshttps://www.tug.org/mactex/. If after installation you still face an error due to LaTeX -when executing expreccs, then add the flag -latex 0 to expreccs.

+

For macOS, the (optional but recommended) LaTeX dependency can be installed from https://www.tug.org/mactex/.

diff --git a/docs/introduction.html b/docs/introduction.html index dbd9394..25a3cbf 100644 --- a/docs/introduction.html +++ b/docs/introduction.html @@ -141,9 +141,6 @@

Concept
-w

Set to 1 to print warnings (‘0’ by default).

-
-l
-

Set to 0 to not use LaTeX formatting (‘1’ by default).

-
-e

Set to 0 to write the pressure increase on the site bc from the regional values (‘1’ by default, i.e., the pressure values on the boundaries correspond to the explicit values on the regional simulations).

diff --git a/docs/searchindex.js b/docs/searchindex.js index a5364d3..332ea33 100644 --- a/docs/searchindex.js +++ b/docs/searchindex.js @@ -1 +1 @@ -Search.setIndex({"alltitles":{"About expreccs":[[0,null]],"Concept":[[22,"concept"]],"Configuration file":[[2,null]],"Contribute to the software":[[3,"contribute-to-the-software"]],"Contributing":[[3,null]],"Examples":[[4,null]],"Ground Rules":[[3,"ground-rules"]],"Hello world":[[4,"hello-world"]],"Indices and tables":[[20,"indices-and-tables"]],"Installation":[[21,null]],"Introduction":[[22,null]],"Layered model":[[4,"layered-model"]],"Module contents":[[5,"module-expreccs"],[6,"module-expreccs.core"],[8,"module-expreccs.utils"],[16,"module-expreccs.visualization"]],"Non-regular boundaries":[[4,"non-regular-boundaries"]],"OPM Flow":[[21,"opm-flow"]],"Output folder":[[24,null]],"Overview":[[22,"overview"]],"Python package":[[21,"python-package"]],"Regular boundaries":[[4,"regular-boundaries"]],"Related":[[25,null]],"Reporting issues or problems":[[3,"reporting-issues-or-problems"]],"Reservoir-related parameters":[[2,"reservoir-related-parameters"]],"Rock-related parameters":[[2,"rock-related-parameters"]],"Seek support":[[3,"seek-support"]],"Simulation results":[[2,"simulation-results"]],"Source build in Linux/Windows":[[21,"source-build-in-linux-windows"]],"Source build in macOS":[[21,"source-build-in-macos"]],"Submodules":[[6,"submodules"],[8,"submodules"],[16,"submodules"]],"Subpackages":[[5,"subpackages"]],"TCCS-13":[[26,null]],"Via OPM Flow decks":[[4,"via-opm-flow-decks"],[24,"via-opm-flow-decks"]],"Via configuration files":[[4,"via-configuration-files"],[24,"via-configuration-files"]],"Welcome to the expreccs\u2019s documentation!":[[20,null]],"Well-related parameters":[[2,"well-related-parameters"]],"ad-micp":[[25,"ad-micp"]],"expreccs":[[1,"expreccs"],[23,null]],"expreccs Python API":[[1,null]],"expreccs package":[[5,null]],"expreccs.core package":[[6,null]],"expreccs.core.expreccs module":[[7,null]],"expreccs.utils package":[[8,null]],"expreccs.utils.backcoupling module":[[9,null]],"expreccs.utils.inputvalues module":[[10,null]],"expreccs.utils.mapboundaries module":[[11,null]],"expreccs.utils.mapproperties module":[[12,null]],"expreccs.utils.reg_sit_given_decks module":[[13,null]],"expreccs.utils.runs module":[[14,null]],"expreccs.utils.writefile module":[[15,null]],"expreccs.visualization package":[[16,null]],"expreccs.visualization.maps2d module":[[17,null]],"expreccs.visualization.plotting module":[[18,null]],"expreccs.visualization.reading module":[[19,null]],"plopm":[[25,"plopm"]],"pofff":[[25,"pofff"]],"pycopm":[[25,"pycopm"]],"pymm":[[25,"pymm"]],"pyopmnearwell":[[25,"pyopmnearwell"]],"pyopmspe11":[[25,"pyopmspe11"]]},"docnames":["about","api","configuration_file","contributing","examples","expreccs","expreccs.core","expreccs.core.expreccs","expreccs.utils","expreccs.utils.backcoupling","expreccs.utils.inputvalues","expreccs.utils.mapboundaries","expreccs.utils.mapproperties","expreccs.utils.reg_sit_given_decks","expreccs.utils.runs","expreccs.utils.writefile","expreccs.visualization","expreccs.visualization.maps2d","expreccs.visualization.plotting","expreccs.visualization.reading","index","installation","introduction","modules","output_folder","related","tccs-13"],"envversion":{"sphinx":65,"sphinx.domains.c":3,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":9,"sphinx.domains.index":1,"sphinx.domains.javascript":3,"sphinx.domains.math":2,"sphinx.domains.python":4,"sphinx.domains.rst":2,"sphinx.domains.std":2},"filenames":["about.rst","api.rst","configuration_file.rst","contributing.rst","examples.rst","expreccs.rst","expreccs.core.rst","expreccs.core.expreccs.rst","expreccs.utils.rst","expreccs.utils.backcoupling.rst","expreccs.utils.inputvalues.rst","expreccs.utils.mapboundaries.rst","expreccs.utils.mapproperties.rst","expreccs.utils.reg_sit_given_decks.rst","expreccs.utils.runs.rst","expreccs.utils.writefile.rst","expreccs.visualization.rst","expreccs.visualization.maps2d.rst","expreccs.visualization.plotting.rst","expreccs.visualization.reading.rst","index.rst","installation.rst","introduction.rst","modules.rst","output_folder.rst","related.rst","tccs-13.rst"],"indexentries":{},"objects":{"":[[5,0,0,"-","expreccs"]],"expreccs":[[6,0,0,"-","core"],[8,0,0,"-","utils"],[16,0,0,"-","visualization"]],"expreccs.core":[[7,0,0,"-","expreccs"]],"expreccs.core.expreccs":[[7,1,1,"","check_cmdargs"],[7,1,1,"","expreccs"],[7,1,1,"","load_parser"],[7,1,1,"","main"]],"expreccs.utils":[[9,0,0,"-","backcoupling"],[10,0,0,"-","inputvalues"],[11,0,0,"-","mapboundaries"],[12,0,0,"-","mapproperties"],[13,0,0,"-","reg_sit_given_decks"],[14,0,0,"-","runs"],[15,0,0,"-","writefile"]],"expreccs.utils.backcoupling":[[9,1,1,"","backcoupling"],[9,1,1,"","compute_multipliers"],[9,1,1,"","init_multipliers"],[9,1,1,"","write_folder_iter"]],"expreccs.utils.inputvalues":[[10,1,1,"","check_entries"],[10,1,1,"","process_input"],[10,1,1,"","process_tuning"]],"expreccs.utils.mapboundaries":[[11,1,1,"","aquaflux"],[11,1,1,"","handle_pressure_correction"],[11,1,1,"","handle_stencil"],[11,1,1,"","handle_stencil_2p"],[11,1,1,"","porv_projections"],[11,1,1,"","porv_regional_segmentation"],[11,1,1,"","temporal_interpolation_flux"],[11,1,1,"","temporal_interpolation_pressure"]],"expreccs.utils.mapproperties":[[12,1,1,"","mapping_properties"],[12,1,1,"","positions_reference"],[12,1,1,"","positions_regional"],[12,1,1,"","positions_rotation"],[12,1,1,"","positions_site"],[12,1,1,"","rotate_grid"]],"expreccs.utils.reg_sit_given_decks":[[13,1,1,"","check_intersection"],[13,1,1,"","check_regional_neighbours"],[13,1,1,"","create_deck"],[13,1,1,"","dynamic_interpolator"],[13,1,1,"","extract_site_borders"],[13,1,1,"","find_ij_orientation"],[13,1,1,"","find_regional_cells"],[13,1,1,"","get_bccon"],[13,1,1,"","get_xymaps"],[13,1,1,"","handle_grid_coord"],[13,1,1,"","project_pressures"],[13,1,1,"","site_contour"],[13,1,1,"","temporal_interpolation"],[13,1,1,"","write_files"]],"expreccs.utils.runs":[[14,1,1,"","plotting"],[14,1,1,"","run_models"],[14,1,1,"","simulations"]],"expreccs.utils.writefile":[[15,1,1,"","compact_format"],[15,1,1,"","write_files"],[15,1,1,"","write_folders"],[15,1,1,"","write_grid"],[15,1,1,"","write_properties"]],"expreccs.visualization":[[17,0,0,"-","maps2d"],[18,0,0,"-","plotting"],[19,0,0,"-","reading"]],"expreccs.visualization.maps2d":[[17,1,1,"","final_time_maps"],[17,1,1,"","final_time_maps_difference"],[17,1,1,"","geological_maps"],[17,1,1,"","manage_name"]],"expreccs.visualization.plotting":[[18,1,1,"","handle_labels_difference"],[18,1,1,"","handle_labels_distance"],[18,1,1,"","handle_site_summary"],[18,1,1,"","over_time_distance"],[18,1,1,"","over_time_max_difference"],[18,1,1,"","over_time_sensor"],[18,1,1,"","plot_results"],[18,1,1,"","plotting_settings"],[18,1,1,"","positions"],[18,1,1,"","summary_plot"],[18,1,1,"","summary_site"],[18,1,1,"","wells_site"]],"expreccs.visualization.reading":[[19,1,1,"","define_cases"],[19,1,1,"","make_arrays"],[19,1,1,"","manage_names"],[19,1,1,"","reading_simulations"]]},"objnames":{"0":["py","module","Python module"],"1":["py","function","Python function"]},"objtypes":{"0":"py:module","1":"py:function"},"terms":{"":[2,3,4,22,24,26],"0":[2,4,15,21,22,24,26],"001":26,"00e":2,"01":2,"01013":2,"02":[4,26],"04":3,"05e3":4,"0f":[4,26],"0pressur":26,"1":[2,4,21,22,26],"10":[2,21,26],"1000":2,"10000":2,"101":2,"1013":2,"10132":2,"10e3":4,"11":[3,21,26],"11000":2,"111":26,"112":26,"11377":2,"11423e":2,"116":26,"117":26,"11th":2,"12":[2,4,26],"126":26,"13":[3,20],"13140":26,"1324":2,"14":[2,21,26],"14518":2,"15":2,"15000":[2,4],"15e3":4,"16":[4,26],"160000":26,"17":21,"18000":2,"193531e":2,"199":4,"1d":18,"1e":[2,26],"1e0":26,"1e1":2,"1e2":2,"1e3":2,"1e4":2,"1e5":2,"1e6":2,"1e7":2,"1e8":2,"1f":[4,26],"2":[2,4,22,26],"20":[2,4],"20000":2,"202":2,"2025":[21,26],"203":26,"21180":2,"21583":2,"217":26,"21718":2,"22":2,"24":[3,4,26],"24081":2,"24200":2,"24886":26,"24e3":4,"25":[2,4,26],"26":[3,21],"2650":2,"27000":2,"2732":2,"28477":2,"2d":[17,18],"2e2":2,"2f":26,"3":[2,3,4,21,22,26],"30":[2,4,26],"3060":2,"3060e":2,"31":26,"31679":2,"319":4,"32":2,"324":2,"325":2,"336294":0,"33e3":4,"34":2,"365":2,"3870":2,"3b":26,"3e5":2,"4":[2,26],"41283":26,"417":4,"45":2,"450":26,"45000":2,"47":2,"48":26,"495000":26,"5":[2,4,26],"50":2,"500":4,"5000":2,"506":2,"50e3":4,"525":26,"55":2,"55e3":4,"56":26,"57":26,"5710":2,"5e6":2,"6":[2,4,26],"60":[2,26],"605e6":26,"60e3":4,"6120":2,"625":2,"63e":2,"65":[2,26],"650":2,"6625":2,"7":[2,22,26],"7068":2,"7122":2,"73":2,"7800":2,"8":[2,4,26],"80":26,"8000":2,"809":26,"80e3":4,"81":2,"8233":2,"8654":2,"8883":2,"9":[2,21,26],"92":2,"95":[4,26],"95000":26,"99e":2,"A":[9,25,26],"For":[0,2,3,4,21,26],"If":[2,4,21],"In":[2,3,4,21,22,24],"The":[0,1,2,3,4,21,22,24,26],"Then":[2,4,24,26],"To":[2,4,21,26],"_":[9,26],"_build":3,"_of_input_fil":22,"about":[3,20],"abov":[2,26],"accept":3,"achiev":[2,4,21],"action":3,"activ":[2,13,21,26],"actual":26,"ad":[2,9,10,20,22,26],"adapt":26,"add":[2,3,4,13,21,24],"addit":[1,2,3,4,21,24],"after":[4,12,21,24,26],"all":[2,3,4,21,22,26],"allow":[2,26],"along":[2,4,22],"also":[2,3,4,21,24],"altern":3,"an":[0,2,3,4,21,22,25],"anaconda":21,"analys":3,"ani":[2,3,4],"anim":4,"anoth":4,"answer":3,"api":20,"appl":21,"appli":4,"applic":4,"approach":[0,2,3,4,22,26],"apt":21,"aquaflux":[5,8,11],"aquif":[2,26],"ar":[0,2,3,4,9,13,21,22,24,25,26],"arg":[7,9,10,11,12,13,14,15,17,18,19],"argument":[2,7,22],"arrai":[2,13,19,22],"assess":2,"avail":[2,21],"averag":26,"avoid":2,"b":[22,26],"back":[9,19],"backcoupl":[5,8],"bar":[2,26],"base":[4,9,22,25],"bash":21,"bc":[2,4,11,13,15,22,24],"bccon":24,"becom":22,"befor":[3,26],"below":[4,25],"benchmark":25,"better":18,"between":[1,4,17,18,22],"bfebf2":26,"bhp":[2,4,18],"bin":[2,3,21],"binari":[3,13,21],"black":[3,26],"bool":19,"boost":21,"border":[13,18],"both":2,"bottom":[2,4],"boundari":[2,11,13,20,22,24],"box":2,"branch":21,"brew":21,"brg":26,"build":[2,3,4,13,20],"build_opm_mpi":21,"built":21,"c":[2,4,22,26],"calcit":25,"call":[4,24],"can":[2,3,4,21,24,26],"capabl":2,"capillari":2,"cardin":13,"carlson":2,"case":[4,15,19],"cbsfax":[4,26],"cd":21,"cell":[2,4,11,13,18,22,24,26],"cet_diverging_rainbow_bgymr_45_85_c67":26,"cfd":25,"cformat":[4,26],"chang":[2,3,4],"check":[7,10,13,25],"check_cmdarg":[5,6,7],"check_entri":[5,8,10],"check_intersect":[5,8,13],"check_regional_neighbour":[5,8,13],"checker":3,"checkout":21,"chosen":2,"ci":[3,21],"ci_pycopm_maco":3,"clabel":26,"clang":21,"clone":21,"close":2,"closest":[2,13,18],"cmake":21,"cmdarg":7,"cnum":26,"cnv":26,"co2":[2,4,22,25],"coarsen":26,"coarsened_improv":26,"coarsened_perm":26,"coarsened_tran":26,"coarser":2,"code":[3,5,21],"coeffici":22,"collabor":3,"color":18,"com":[4,21,22,26],"combin":7,"command":[2,4,7,21,26],"commit":3,"common":[21,26],"compact":15,"compact_format":[5,8,15],"compar":[2,4,22,24],"comparison":[1,4],"compens":9,"complet":[17,19],"complex":4,"compress":2,"comput":[2,9],"compute_multipli":[5,8,9],"concept":20,"condit":[2,4,22,24],"config":4,"configur":[1,10,20,22],"conform":22,"connect":[13,22,24],"conrour":13,"consid":[2,4],"contact":26,"contain":[1,3],"content":[1,3,20,23],"continu":2,"contour":[13,22],"contribut":[0,20,21],"control":[2,26],"cook":26,"coord":13,"coordin":[2,13,18],"copi":[3,21],"core":[1,5,21,23,26],"corner":[2,15,22],"correct":11,"correspond":[1,2,4,22,24],"could":[21,24,26],"council":0,"count":13,"counter":11,"coupl":[9,19],"cov":[3,4],"cp":2,"cpg":[2,22],"cpr_trueimp":26,"creat":[3,4,13,21,22,24],"create_deck":[5,8,13],"csp":[2,25],"cssr":[4,21,22,26],"curiou":4,"current":[9,18,21,22,26],"current_directori":21,"curv":2,"d":[2,4,26],"d_z":13,"dai":[2,4],"data":[4,19,26],"dcmake_build_typ":21,"dcmake_disable_find_package_mpi":21,"dcmake_prefix_path":21,"de":24,"deactiv":[2,21],"deck":[1,2,13,14,18,19,20,22,26],"default":[2,22],"defin":[2,4,22],"define_cas":[5,16,19],"definit":[2,24],"delax":[4,26],"demonstr":4,"depend":[3,21,26],"depth":[2,26],"describ":[2,3,22,26],"desir":2,"detail":0,"dev":[3,21],"develop":[21,22],"dic":[9,10,11,12,13,14,15,17,18,19],"dict":[7,9,10,11,12,13,14,15,17,18,19],"dictionari":[9,10,11,12,13,14,15,17,18,19],"differ":[1,2,4,9,11,12,17,18,22,24],"dimens":[2,26],"dir":[2,11,13],"dire":13,"direct":[2,4,13],"directli":24,"director":26,"directori":[3,22],"discret":[2,22],"distanc":[4,18],"dmar":2,"do":[4,21,22],"doc":3,"document":[2,3,22,24],"doe":4,"doi":26,"done":[9,21],"doplot":19,"due":21,"dune":21,"dunecontrol":21,"duse_mpi":21,"dwith_ndebug":21,"dynam":[2,4,22,24,25],"dynamic_interpol":[5,8,13],"e":[2,3,4,21,22,24,26],"each":[2,22],"echo":21,"edg":21,"ehystr":2,"els":21,"em":25,"email":3,"enabl":[2,26],"end":[2,4,26],"energi":0,"enter":2,"entri":[2,10,22],"environ":[3,21],"equal":[4,22],"equidist":22,"equinor":0,"error":[2,21],"ert":26,"evalu":[2,22],"everest":26,"exampl":[2,20,21,24],"example1":[2,4],"example1_porvproj":4,"example1_pr":4,"example1_wel":[2,4],"example2":4,"except":2,"execut":[1,2,3,4,7,21,22,24,26],"exisit":26,"exist":21,"exmapl":2,"explain":4,"explicit":22,"expon":2,"exponenti":22,"export":[3,21],"exprecc":[2,3,4,21,22,24,26],"expreccs_dpincreas":4,"expreccs_perfipnum":4,"expreccss":1,"extend":[2,3],"extract":[4,18],"extract_site_bord":[5,8,13],"f":[4,22,26],"face":[11,21],"fals":19,"familiar":3,"fault":[2,12,22,26],"fault_region":2,"fault_sit":2,"featur":[0,26],"few":26,"fi":21,"fig":26,"fig1":26,"fig10a":26,"fig10bc":26,"fig12a":26,"fig2":26,"fig3b":26,"fig5":26,"fig6a":26,"fig6b":26,"fig8low":26,"fig8upp":26,"fig9":26,"figur":[4,14,17,19,22,26],"fil":9,"file":[1,3,10,13,15,19,20,21,22,26],"final":[2,4,26],"final_time_map":[5,16,17],"final_time_maps_differ":[5,16,17],"find":[12,13],"find_ij_orient":[5,8,13],"find_regional_cel":[5,8,13],"fipnum":[4,13,22],"fipr":13,"first":[2,19,26],"five":2,"fix":3,"flag":[2,4,7,21,22,24],"flexibl":22,"float":13,"flow":[2,3,14,15,19,20,25,26],"flow_maco":3,"fluid":2,"fluidflow":25,"flux":[2,4,9,11],"flux_region":9,"flux_sit":9,"focus":22,"fol":[18,19],"folder":[1,2,3,4,9,15,17,18,19,20,21,22,26],"follow":[2,4,21,22,24,26],"fork":[0,3],"format":[3,22],"former":4,"fot":13,"fraction":[2,26],"framework":[2,22,25],"frequenc":22,"friend":4,"from":[2,3,4,9,10,11,13,18,19,21,22,25,26],"full":2,"function":[2,4,7,9,10,11,12,13,14,15],"fund":0,"further":[2,4],"g":[2,3,4,21,22,24],"ga":[2,4],"gasda":26,"gener":[1,2,3,4,14,22,24,25,26],"geolog":[1,2,4,9,14,15,22,25],"geological_map":[5,16,17],"geometri":21,"get":[3,13,21,26],"get_bccon":[5,8,13],"get_xymap":[5,8,13],"gif":25,"gind":13,"git":[4,21,26],"github":[3,4,21,22,26],"gitlab":21,"give":2,"given":[1,2,4,9,13,22,24],"global":[9,10,11,12,13,14,15,17,18,19,26],"gnuplot2":26,"grade":22,"grid":[2,4,12,13,15,21,22,26],"ground":20,"group":2,"h":[2,26],"ha":[2,26],"hand":13,"handl":[12,22],"handle_grid_coord":[5,8,13],"handle_labels_differ":[5,16,18],"handle_labels_dist":[5,16,18],"handle_pressure_correct":[5,8,11],"handle_site_summari":[5,16,18],"handle_stencil":[5,8,11],"handle_stencil_2p":[5,8,11],"handli":22,"harbour":0,"have":21,"height":2,"hello":[20,24],"hello_world":4,"hello_world_distance_from_bord":4,"hello_world_reference_watfluxi":4,"hello_world_regional_watfluxi":4,"hello_world_sensor_pressure_over_tim":4,"hello_world_site_flux_watfluxi":4,"hello_world_summary_bhp_site_refer":4,"help":[2,3],"here":[0,2,4,24,26],"heterogein":[2,22],"heterogen":4,"higher":2,"histori":25,"home":4,"homogen":26,"horizont":13,"host":22,"how":[4,26],"html":3,"http":[4,21,22,26],"hydrosta":13,"hysteresi":[2,22],"hystopt":2,"i":[0,1,2,3,4,9,11,13,18,21,22,24,26],"identifi":22,"ignor":3,"ij":4,"imag":[1,25],"imbibit":2,"imbnum":26,"implement":[2,22],"import":3,"improv":[18,22,26],"in_fil":10,"inact":[4,22],"inc":[4,24],"includ":[1,4,21,22],"increas":[4,22,26],"ind":13,"index":[13,18,20],"indic":[13,18],"induc":25,"init_multipli":[5,8,9],"initi":[2,9,13],"inj":2,"inject":[2,18],"injector":[2,4],"input":[1,2,4,9,10,14,22],"inputvalu":[5,8],"insid":[2,4,21],"instal":[3,4,20,26],"instead":2,"int":[9,11,13,18],"integr":2,"interest":[2,21,25],"interp":2,"interpol":[2,4,11,13,24],"introduct":[4,20],"invalid":7,"irregular":22,"issu":[0,20],"istl":21,"iter":[2,9,11,15,26],"iterativli":9,"j":[18,22],"j5":21,"johansen":26,"jump":2,"kept":2,"keyword":2,"kg":2,"killough":2,"km":[4,26],"kr":2,"krn":2,"krw":2,"kxy":2,"kz":2,"l":[4,21,22,26],"label":[4,18,24],"landa":26,"last":[17,19],"later":4,"latest":21,"latex":[21,22],"layer":[2,20,22],"leakag":25,"left":[2,4,13],"length":2,"librari":21,"lim":26,"limipr":26,"limit":[2,26],"line":[2,3,4,13,18,21],"linear":[2,26],"link":[0,21],"lint":21,"linux":20,"list":[13,15,18,19],"literatur":26,"load_pars":[5,6,7],"local":3,"locat":[1,2,4,11,12,18,22,26],"log":26,"look":[3,26],"lot":26,"lower":2,"m":[2,4,21,22,26],"machin":2,"maco":[3,20],"macport":21,"mactex":21,"main":[1,3,5,6,7],"maintain":3,"make":[3,15,21],"make_arrai":[5,16,19],"mako":[1,15],"mamba":21,"manag":[18,21],"manage_nam":[5,16,17,19],"managua_r":26,"mani":2,"mantain":3,"manual":2,"manuscript":4,"map":[4,11,12,13,17,18,22],"mapboundari":[5,8],"mapp":4,"mapping_properti":[5,8,12],"mapproperti":[5,8],"maps2d":[5,16],"marb\u00e1n":26,"mark":22,"master":21,"match":[25,26],"max":[2,18,26],"maximum":[2,26],"md":2,"merg":3,"metric":22,"micp":20,"microbi":25,"microsystem":25,"middel":4,"middl":[2,4],"might":[3,21,25,26],"min":[2,26],"miniforg":21,"minimum":4,"miss":[3,4],"mkdir":21,"model":[1,2,9,13,14,15,17,19,20,22,24,25,26],"modif":22,"modifi":[9,10,11,12,13,14,15,17,18,19,21,24],"modul":[1,20,21,23,25],"more":[0,3,4],"mpi":21,"mpirun":[2,26],"mt":2,"mult":9,"multipli":[2,9],"mypi":3,"n":[2,4,13,15,22],"name":[2,4,9,10,14,15,17,18,19,22],"ndeck":18,"necessari":[4,15],"need":[3,21,22,26],"neighbour":13,"new":[0,3,4,10],"newton":[2,26],"newtoniterationcount":26,"nfol":18,"nice":[3,21,22],"nkrn":2,"nkrw":2,"nnc":13,"non":[2,20],"none":[7,9,10,14,15,17,18,22],"norwai":0,"norwegian":26,"notat":15,"now":[2,4],"np":[2,26],"npen":2,"npoint":2,"nqua":18,"nquan":18,"nrst":18,"num":2,"number":[0,2,9,13,18,22,26],"numpi":15,"nwell":18,"nx":22,"ny":22,"o":[4,22,24],"observ":2,"offset":[4,13,22],"offshor":26,"one":[2,4,24],"ones":26,"onli":[2,4,19,21,22],"open":[2,25],"openbla":21,"oper":[2,22],"opernum":[4,24],"opernum_exprecc":[4,24],"opm":[1,2,3,14,15,18,19,20,25,26],"opmn":18,"optim":[4,26],"optimal_solut":26,"option":[2,7,22],"order":2,"org":[21,26],"orginin":26,"origen":2,"origin":26,"our":[3,4],"out":[17,19,25],"output":[2,15,18,19,20,22],"over":[2,13],"over_time_dist":[5,16,18],"over_time_max_differ":[5,16,18],"over_time_sensor":[5,16,18],"overlap":[4,13,24],"overpr":26,"overpressur":26,"overview":[2,20],"own":3,"p":[4,13,22,26],"packag":[1,3,4,20,23],"page":[3,4,20],"paper":26,"paper_2025":4,"parallel":26,"paramet":[10,20],"part":4,"partit":22,"path":[2,3,21,22],"path_to_the_regional_model":4,"path_to_the_site_model":4,"pc":2,"pcap":2,"pen":2,"per":[2,4,22],"period":2,"perm":[2,26],"permeabl":26,"phi":2,"pi":2,"pip":[3,4,21,26],"pleas":[0,3],"plopm":[4,20,24,26],"plot":[5,8,14,15,16,17,19,22,24],"plot_result":[5,16,18],"plotting_set":[5,16,18],"plume":4,"png":[1,4,25],"pofff":20,"point":[2,15,18,22],"pore":[2,4,11,26],"poro":26,"porv":[2,26],"porv_project":[5,8,11],"porv_regional_segment":[5,8,11],"porvproj":[2,4],"posit":[2,5,12,13,16,18],"positions_refer":[5,8,12],"positions_region":[5,8,12],"positions_rot":[5,8,12],"positions_sit":[5,8,12],"possibl":[2,3],"postprocess":[4,22,24,26],"powerpoint":26,"pr":3,"practic":2,"pre":[2,4,11],"precipit":25,"prefer":3,"prefix":15,"preprocess":[10,22,24],"prerequisit":21,"pres2p":2,"prescrib":4,"pressur":[1,2,4,11,13,18,22,24,26],"presur":2,"previou":[3,4,21],"print":[21,22],"problem":20,"proce":[2,4],"proceed":26,"process":[1,10,13],"process_input":[5,8,10],"process_tun":[5,8,10],"prod":2,"produc":[2,4],"project":[0,1,2,4,11,13,18,21,22,25],"project_pressur":[5,8,13],"prompt":26,"properti":[2,22,26],"pull":[0,3],"push":3,"pushd":3,"pv":[2,11,26],"pwd":21,"py":[4,24,26],"pycopm":[2,3,4,20,26],"pylint":3,"pymm":20,"pyopmnearwel":20,"pyopmspe11":[3,20],"pytest":[3,4],"python":[3,20,25,26],"python3":[21,26],"quantiti":[12,17,18,19],"quick":25,"quotat":22,"r":[2,3,4,21,26],"rais":[0,3],"rate":[2,18],"re":[17,18,19],"read":[5,11,16],"reading_simul":[5,16,19],"recommend":21,"record":2,"rectangl":[4,22],"refer":[1,2,4,12,14,15,17,18,22,24],"reference_x_n":2,"reference_y_n":2,"reference_z_n":2,"refin":[2,4,11],"reg":[11,13],"reg_sit_given_deck":[5,8],"regard":[2,4],"region":[1,2,4,9,11,13,14,18,22,24],"regional_bctyp":2,"regional_dim":2,"regional_sit":22,"regional_x_n":2,"regional_y_n":2,"regional_z_n":2,"regul":4,"regular":20,"rel":2,"relat":[3,15,20,24],"relax":[2,26],"releas":21,"remedi":25,"remov":26,"repit":15,"replac":3,"repo":[3,21],"report":[4,13,20,22],"repositori":[3,21],"reproduc":26,"request":[0,3],"requier":[4,12],"requir":[2,3,10,21],"requiri":10,"rerun":4,"research":0,"reservoir":[4,12,15,17,18,20],"residu":2,"resinsight":[2,4,24,26],"resourc":26,"respect":[2,4],"rest":26,"restart":[2,13],"result":[4,20,24,26],"return":[7,9,10,11,12,13,14,15,17,18,19],"review":3,"rg":26,"right":[2,13],"rise":3,"rock":[20,22],"rock_comp":2,"rotat":[4,12,22],"rotate_grid":[5,8,12],"routin":[1,15,18],"row":2,"rpr":4,"rst":[2,26],"rule":20,"run":[1,2,3,4,5,8,15,21,22,24,26],"run_model":[5,8,14],"safu":2,"salin":2,"same":[2,4,26],"sand":2,"sandv":26,"sandwich":4,"sat":2,"satur":[2,4,18],"save":[4,15,24,26],"schedul":[2,4,11,18,22],"screenshot":[2,24],"script":[1,3,7,11,13,17,18,19,21],"search":20,"second":2,"section":[2,4,22],"see":[2,3,4,21,22,24],"seek":20,"select":[4,24],"send":3,"sensor":[2,4,18,26],"sensor_coord":2,"set":[2,4,10,12,18,21,22,26],"set1_r":4,"setuptool":21,"sga":4,"sh":21,"share":2,"shell":0,"should":[21,26],"show":[1,2,4,24],"shut":2,"side":[2,11,13,22],"similar":26,"similarli":2,"simillarli":2,"simpl":4,"simpler":2,"simplic":4,"simplifi":22,"simul":[1,3,4,5,8,14,17,19,20,21,22,24,25],"sin":2,"sinc":[2,26],"singl":3,"sintef":26,"site":[1,2,4,9,11,12,13,14,17,18,22,24],"site_bctyp":2,"site_clos":[4,24],"site_contour":[5,8,13],"site_loc":2,"six":[2,3],"size":[2,4],"skip":[21,22,26],"sni":2,"so":21,"softwar":20,"solut":2,"solver":[24,26],"some":[4,15,24,25],"soon":3,"sourc":[3,20,25],"space":22,"spars":21,"spatial":13,"spe":2,"spe11":25,"specif":21,"speed":2,"squash":3,"src":3,"stage":[4,22],"start":[4,13],"statfjord":26,"static":[3,4],"step":[2,3,13,17,21,22,26],"still":21,"storag":[15,22],"str":[9,10,13,14,15,17,18,19],"string":2,"studi":[2,4,14,25,26],"style":18,"subfig":[4,26],"subfold":[22,24],"submit":26,"submodel":4,"submodul":[1,5,23],"subpackag":[1,20,23],"subsystem":21,"succe":3,"suit":21,"summari":18,"summary_plot":[5,16,18],"summary_sit":[5,16,18],"support":[2,20,21,22,26],"suptitl":[4,26],"surfac":[2,17,18],"sw":2,"swi":2,"system":[2,3],"t":[2,22,26],"tag":21,"taho":21,"tailor":25,"take":26,"tcc":20,"telescop":22,"temperatur":2,"templat":15,"temporal_interpol":[5,8,13],"temporal_interpolation_flux":[5,8,11],"temporal_interpolation_pressur":[5,8,11],"term":[3,4],"termin":[4,21],"test":[3,4,21,22],"test_2_generic_deck":4,"test_4_site_region":4,"test_generic_deck":24,"than":[0,3],"thei":4,"them":[0,2,22],"thi":[2,3,4,9,21,22,24,26],"thick":[2,13],"those":26,"three":[2,4],"threshold":2,"time":[2,11,13,17,22,26],"timestep":22,"toler":26,"toml":[2,4,10,22],"tool":[0,3,4,21,22,25,26],"top":[2,4,17,18],"total":26,"tracer":24,"tran":[2,26],"translat":26,"transmiss":26,"troll":26,"true":[2,19,26],"try":[3,21],"tsmaxz":2,"tug":21,"tune":[2,10],"turn":21,"tutori":[3,21],"two":[2,4,19,22],"txt":[3,21],"type":[4,21,25],"u":22,"ubuntu":[3,21],"until":2,"up":2,"updat":[9,21,22],"upgrad":21,"upper":2,"uprad":21,"us":[0,2,3,4,9,15,18,19,21,22,24,25,26],"user":[2,3,21],"util":[1,5,23],"utilii":[9,10,11,12,13,14,15],"v":[4,26],"v2":21,"v2025":21,"valid":22,"valu":[2,4,10,11,13,15,22,26],"variabl":[2,3,4,15],"veloc":4,"venv":21,"version":[5,21,26],"vertic":13,"vexprecc":21,"via":[2,20,21,26],"virtual":21,"visit":3,"visual":[1,2,4,5,23,24],"volum":[2,4,11,26],"vtk":25,"w":[2,4,22,26],"wa":[4,26],"warn":22,"water":[2,4],"we":[2,3,4,26],"weight":26,"welcom":[0,3],"well":[3,4,12,18,20,22,25,26],"well_coord":2,"wells_sit":[5,16,18],"wet":2,"wheel":21,"when":[21,26],"where":[2,4,22],"which":[2,4,21,22,26],"while":[2,4,21,26],"whole":22,"width":2,"window":20,"without":[2,15,24],"work":[3,21],"world":[20,24],"would":22,"write":[2,4,9,13,15,21,22],"write_fil":[5,8,13,15],"write_fold":[5,8,15],"write_folder_it":[5,8,9],"write_grid":[5,8,15],"write_properti":[5,8,15],"writefil":[5,8],"written":[4,22,26],"wsl":21,"www":21,"x":[2,4,9,13,15,18,26],"xf":2,"xformat":[4,26],"xi":2,"xlnum":[4,26],"xunit":[4,26],"xy":[13,22],"xypolygon":4,"y":[2,4,9,13,18,26],"ye":4,"year":26,"yf":2,"yformat":[4,26],"yi":2,"ylnum":[4,26],"yml":[3,21,26],"you":[3,4,21,26],"your":[2,3,21,26],"yournam":3,"yunit":[4,26],"z":[2,4,11,13,18,22,26],"z_xy":2,"zag":2,"zf":2,"zi":2,"zig":2,"zone":22},"titles":["About expreccs","expreccs Python API","Configuration file","Contributing","Examples","expreccs package","expreccs.core package","expreccs.core.expreccs module","expreccs.utils package","expreccs.utils.backcoupling module","expreccs.utils.inputvalues module","expreccs.utils.mapboundaries module","expreccs.utils.mapproperties module","expreccs.utils.reg_sit_given_decks module","expreccs.utils.runs module","expreccs.utils.writefile module","expreccs.visualization package","expreccs.visualization.maps2d module","expreccs.visualization.plotting module","expreccs.visualization.reading module","Welcome to the expreccs\u2019s documentation!","Installation","Introduction","expreccs","Output folder","Related","TCCS-13"],"titleterms":{"":20,"13":26,"about":0,"ad":25,"api":1,"backcoupl":9,"boundari":4,"build":21,"concept":22,"configur":[2,4,24],"content":[5,6,8,16],"contribut":3,"core":[6,7],"deck":[4,24],"document":20,"exampl":4,"exprecc":[0,1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,23],"file":[2,4,24],"flow":[4,21,24],"folder":24,"ground":3,"hello":4,"indic":20,"inputvalu":10,"instal":21,"introduct":22,"issu":3,"layer":4,"linux":21,"maco":21,"mapboundari":11,"mapproperti":12,"maps2d":17,"micp":25,"model":4,"modul":[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],"non":4,"opm":[4,21,24],"output":24,"overview":22,"packag":[5,6,8,16,21],"paramet":2,"plopm":25,"plot":18,"pofff":25,"problem":3,"pycopm":25,"pymm":25,"pyopmnearwel":25,"pyopmspe11":25,"python":[1,21],"read":19,"reg_sit_given_deck":13,"regular":4,"relat":[2,25],"report":3,"reservoir":2,"result":2,"rock":2,"rule":3,"run":14,"seek":3,"simul":2,"softwar":3,"sourc":21,"submodul":[6,8,16],"subpackag":5,"support":3,"tabl":20,"tcc":26,"util":[8,9,10,11,12,13,14,15],"via":[4,24],"visual":[16,17,18,19],"welcom":20,"well":2,"window":21,"world":4,"writefil":15}}) \ No newline at end of file +Search.setIndex({"alltitles":{"About expreccs":[[0,null]],"Concept":[[22,"concept"]],"Configuration file":[[2,null]],"Contribute to the software":[[3,"contribute-to-the-software"]],"Contributing":[[3,null]],"Examples":[[4,null]],"Ground Rules":[[3,"ground-rules"]],"Hello world":[[4,"hello-world"]],"Indices and tables":[[20,"indices-and-tables"]],"Installation":[[21,null]],"Introduction":[[22,null]],"Layered model":[[4,"layered-model"]],"Module contents":[[5,"module-expreccs"],[6,"module-expreccs.core"],[8,"module-expreccs.utils"],[16,"module-expreccs.visualization"]],"Non-regular boundaries":[[4,"non-regular-boundaries"]],"OPM Flow":[[21,"opm-flow"]],"Output folder":[[24,null]],"Overview":[[22,"overview"]],"Python package":[[21,"python-package"]],"Regular boundaries":[[4,"regular-boundaries"]],"Related":[[25,null]],"Reporting issues or problems":[[3,"reporting-issues-or-problems"]],"Reservoir-related parameters":[[2,"reservoir-related-parameters"]],"Rock-related parameters":[[2,"rock-related-parameters"]],"Seek support":[[3,"seek-support"]],"Simulation results":[[2,"simulation-results"]],"Source build in Linux/Windows":[[21,"source-build-in-linux-windows"]],"Source build in macOS":[[21,"source-build-in-macos"]],"Submodules":[[6,"submodules"],[8,"submodules"],[16,"submodules"]],"Subpackages":[[5,"subpackages"]],"TCCS-13":[[26,null]],"Via OPM Flow decks":[[4,"via-opm-flow-decks"],[24,"via-opm-flow-decks"]],"Via configuration files":[[4,"via-configuration-files"],[24,"via-configuration-files"]],"Welcome to the expreccs\u2019s documentation!":[[20,null]],"Well-related parameters":[[2,"well-related-parameters"]],"ad-micp":[[25,"ad-micp"]],"expreccs":[[1,"expreccs"],[23,null]],"expreccs Python API":[[1,null]],"expreccs package":[[5,null]],"expreccs.core package":[[6,null]],"expreccs.core.expreccs module":[[7,null]],"expreccs.utils package":[[8,null]],"expreccs.utils.backcoupling module":[[9,null]],"expreccs.utils.inputvalues module":[[10,null]],"expreccs.utils.mapboundaries module":[[11,null]],"expreccs.utils.mapproperties module":[[12,null]],"expreccs.utils.reg_sit_given_decks module":[[13,null]],"expreccs.utils.runs module":[[14,null]],"expreccs.utils.writefile module":[[15,null]],"expreccs.visualization package":[[16,null]],"expreccs.visualization.maps2d module":[[17,null]],"expreccs.visualization.plotting module":[[18,null]],"expreccs.visualization.reading module":[[19,null]],"plopm":[[25,"plopm"]],"pofff":[[25,"pofff"]],"pycopm":[[25,"pycopm"]],"pymm":[[25,"pymm"]],"pyopmnearwell":[[25,"pyopmnearwell"]],"pyopmspe11":[[25,"pyopmspe11"]]},"docnames":["about","api","configuration_file","contributing","examples","expreccs","expreccs.core","expreccs.core.expreccs","expreccs.utils","expreccs.utils.backcoupling","expreccs.utils.inputvalues","expreccs.utils.mapboundaries","expreccs.utils.mapproperties","expreccs.utils.reg_sit_given_decks","expreccs.utils.runs","expreccs.utils.writefile","expreccs.visualization","expreccs.visualization.maps2d","expreccs.visualization.plotting","expreccs.visualization.reading","index","installation","introduction","modules","output_folder","related","tccs-13"],"envversion":{"sphinx":65,"sphinx.domains.c":3,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":9,"sphinx.domains.index":1,"sphinx.domains.javascript":3,"sphinx.domains.math":2,"sphinx.domains.python":4,"sphinx.domains.rst":2,"sphinx.domains.std":2},"filenames":["about.rst","api.rst","configuration_file.rst","contributing.rst","examples.rst","expreccs.rst","expreccs.core.rst","expreccs.core.expreccs.rst","expreccs.utils.rst","expreccs.utils.backcoupling.rst","expreccs.utils.inputvalues.rst","expreccs.utils.mapboundaries.rst","expreccs.utils.mapproperties.rst","expreccs.utils.reg_sit_given_decks.rst","expreccs.utils.runs.rst","expreccs.utils.writefile.rst","expreccs.visualization.rst","expreccs.visualization.maps2d.rst","expreccs.visualization.plotting.rst","expreccs.visualization.reading.rst","index.rst","installation.rst","introduction.rst","modules.rst","output_folder.rst","related.rst","tccs-13.rst"],"indexentries":{},"objects":{"":[[5,0,0,"-","expreccs"]],"expreccs":[[6,0,0,"-","core"],[8,0,0,"-","utils"],[16,0,0,"-","visualization"]],"expreccs.core":[[7,0,0,"-","expreccs"]],"expreccs.core.expreccs":[[7,1,1,"","check_cmdargs"],[7,1,1,"","expreccs"],[7,1,1,"","load_parser"],[7,1,1,"","main"]],"expreccs.utils":[[9,0,0,"-","backcoupling"],[10,0,0,"-","inputvalues"],[11,0,0,"-","mapboundaries"],[12,0,0,"-","mapproperties"],[13,0,0,"-","reg_sit_given_decks"],[14,0,0,"-","runs"],[15,0,0,"-","writefile"]],"expreccs.utils.backcoupling":[[9,1,1,"","backcoupling"],[9,1,1,"","compute_multipliers"],[9,1,1,"","init_multipliers"],[9,1,1,"","write_folder_iter"]],"expreccs.utils.inputvalues":[[10,1,1,"","check_entries"],[10,1,1,"","process_input"],[10,1,1,"","process_tuning"]],"expreccs.utils.mapboundaries":[[11,1,1,"","aquaflux"],[11,1,1,"","handle_pressure_correction"],[11,1,1,"","handle_stencil"],[11,1,1,"","handle_stencil_2p"],[11,1,1,"","porv_projections"],[11,1,1,"","porv_regional_segmentation"],[11,1,1,"","temporal_interpolation_flux"],[11,1,1,"","temporal_interpolation_pressure"]],"expreccs.utils.mapproperties":[[12,1,1,"","mapping_properties"],[12,1,1,"","positions_reference"],[12,1,1,"","positions_regional"],[12,1,1,"","positions_rotation"],[12,1,1,"","positions_site"],[12,1,1,"","rotate_grid"]],"expreccs.utils.reg_sit_given_decks":[[13,1,1,"","check_intersection"],[13,1,1,"","check_regional_neighbours"],[13,1,1,"","create_deck"],[13,1,1,"","dynamic_interpolator"],[13,1,1,"","extract_site_borders"],[13,1,1,"","find_ij_orientation"],[13,1,1,"","find_regional_cells"],[13,1,1,"","get_bccon"],[13,1,1,"","get_xymaps"],[13,1,1,"","handle_grid_coord"],[13,1,1,"","project_pressures"],[13,1,1,"","site_contour"],[13,1,1,"","temporal_interpolation"],[13,1,1,"","write_files"]],"expreccs.utils.runs":[[14,1,1,"","plotting"],[14,1,1,"","run_models"],[14,1,1,"","simulations"]],"expreccs.utils.writefile":[[15,1,1,"","compact_format"],[15,1,1,"","write_files"],[15,1,1,"","write_folders"],[15,1,1,"","write_grid"],[15,1,1,"","write_properties"]],"expreccs.visualization":[[17,0,0,"-","maps2d"],[18,0,0,"-","plotting"],[19,0,0,"-","reading"]],"expreccs.visualization.maps2d":[[17,1,1,"","final_time_maps"],[17,1,1,"","final_time_maps_difference"],[17,1,1,"","geological_maps"],[17,1,1,"","manage_name"]],"expreccs.visualization.plotting":[[18,1,1,"","handle_labels_difference"],[18,1,1,"","handle_labels_distance"],[18,1,1,"","handle_site_summary"],[18,1,1,"","over_time_distance"],[18,1,1,"","over_time_max_difference"],[18,1,1,"","over_time_sensor"],[18,1,1,"","plot_results"],[18,1,1,"","plotting_settings"],[18,1,1,"","positions"],[18,1,1,"","summary_plot"],[18,1,1,"","summary_site"],[18,1,1,"","wells_site"]],"expreccs.visualization.reading":[[19,1,1,"","define_cases"],[19,1,1,"","make_arrays"],[19,1,1,"","manage_names"],[19,1,1,"","reading_simulations"]]},"objnames":{"0":["py","module","Python module"],"1":["py","function","Python function"]},"objtypes":{"0":"py:module","1":"py:function"},"terms":{"":[2,3,4,22,24,26],"0":[2,4,15,21,22,24,26],"001":26,"00e":2,"01":2,"01013":2,"02":[4,26],"04":[3,21],"05e3":4,"0f":[4,26],"0pressur":26,"1":[2,4,21,22,26],"10":[2,21,26],"1000":2,"10000":2,"101":2,"1013":2,"10132":2,"10e3":4,"11":[3,21,26],"11000":2,"111":26,"112":26,"11377":2,"11423e":2,"116":26,"117":26,"11th":2,"12":[2,4,26],"126":26,"13":[3,20],"13140":26,"1324":2,"14":[2,21,26],"14518":2,"15":2,"15000":[2,4],"15e3":4,"16":[4,26],"160000":26,"17":21,"18000":2,"193531e":2,"199":4,"1d":18,"1e":[2,26],"1e0":26,"1e1":2,"1e2":2,"1e3":2,"1e4":2,"1e5":2,"1e6":2,"1e7":2,"1e8":2,"1f":[4,26],"2":[2,4,22,26],"20":[2,4],"20000":2,"202":2,"2025":[21,26],"203":26,"21180":2,"21583":2,"217":26,"21718":2,"22":2,"24":[3,4,21,26],"24081":2,"24200":2,"24886":26,"24e3":4,"25":[2,4,26],"26":[3,21],"2650":2,"27000":2,"2732":2,"28477":2,"2d":[17,18],"2e2":2,"2f":26,"3":[2,3,4,21,22,26],"30":[2,4,26],"3060":2,"3060e":2,"31":26,"31679":2,"319":4,"32":2,"324":2,"325":2,"336294":0,"33e3":4,"34":2,"365":2,"3870":2,"3b":26,"3e5":2,"4":[2,26],"41283":26,"417":4,"45":2,"450":26,"45000":2,"47":2,"48":26,"495000":26,"5":[2,4,26],"50":2,"500":4,"5000":2,"506":2,"50e3":4,"525":26,"55":2,"55e3":4,"56":26,"57":26,"5710":2,"5e6":2,"6":[2,4,26],"60":[2,26],"605e6":26,"60e3":4,"6120":2,"625":2,"63e":2,"65":[2,26],"650":2,"6625":2,"7":[2,22,26],"7068":2,"7122":2,"73":2,"7800":2,"8":[2,4,26],"80":26,"8000":2,"809":26,"80e3":4,"81":2,"8233":2,"8654":2,"8883":2,"9":[2,21,26],"92":2,"95":[4,26],"95000":26,"99e":2,"A":[9,25,26],"For":[0,2,3,4,21,26],"If":[2,4,21],"In":[2,3,4,21,22,24],"The":[0,1,2,3,4,21,22,24,26],"Then":[2,4,24,26],"To":[2,4,21,26],"_":[9,26],"_build":3,"_of_input_fil":22,"about":[3,20],"abov":[2,26],"accept":3,"achiev":[2,4,21],"action":3,"activ":[2,13,21,26],"actual":26,"ad":[2,9,10,20,22,26],"adapt":26,"add":[2,3,4,13,24],"addit":[1,2,3,4,21,24],"after":[4,12,21,24,26],"all":[2,3,4,21,22,26],"allow":[2,26],"along":[2,4,22],"also":[2,3,4,21,24],"altern":3,"an":[0,2,3,4,21,22,25],"anaconda":21,"analys":3,"ani":[2,3,4],"anim":4,"anoth":4,"answer":3,"api":20,"appl":21,"appli":4,"applic":4,"approach":[0,2,3,4,22,26],"apt":21,"aquaflux":[5,8,11],"aquif":[2,26],"ar":[0,2,3,4,9,13,21,22,24,25,26],"arg":[7,9,10,11,12,13,14,15,17,18,19],"argument":[2,7,22],"arrai":[2,13,19,22],"assess":2,"avail":[2,21],"averag":26,"avoid":2,"b":[22,26],"back":[9,19],"backcoupl":[5,8],"bar":[2,26],"base":[4,9,22,25],"bash":21,"bc":[2,4,11,13,15,22,24],"bccon":24,"becom":22,"befor":[3,26],"below":[4,25],"benchmark":25,"better":18,"between":[1,4,17,18,22],"bfebf2":26,"bhp":[2,4,18],"bin":[2,3,21],"binari":[3,13,21],"black":[3,26],"bool":19,"boost":21,"border":[13,18],"both":2,"bottom":[2,4],"boundari":[2,11,13,20,22,24],"box":2,"branch":21,"brew":21,"brg":26,"build":[2,3,4,13,20],"build_opm_mpi":21,"built":21,"c":[2,4,22,26],"calcit":25,"call":[4,24],"can":[2,3,4,21,24,26],"capabl":2,"capillari":2,"cardin":13,"carlson":2,"case":[4,15,19],"cbsfax":[4,26],"cd":21,"cell":[2,4,11,13,18,22,24,26],"cet_diverging_rainbow_bgymr_45_85_c67":26,"cfd":25,"cformat":[4,26],"chang":[2,3,4],"check":[7,10,13,25],"check_cmdarg":[5,6,7],"check_entri":[5,8,10],"check_intersect":[5,8,13],"check_regional_neighbour":[5,8,13],"checker":3,"checkout":21,"chosen":2,"ci":[3,21],"ci_pycopm_maco":3,"clabel":26,"clang":21,"clone":21,"close":2,"closest":[2,13,18],"cmake":21,"cmdarg":7,"cnum":26,"cnv":26,"co2":[2,4,22,25],"coarsen":26,"coarsened_improv":26,"coarsened_perm":26,"coarsened_tran":26,"coarser":2,"code":[3,5,21],"coeffici":22,"collabor":3,"color":18,"com":[4,21,22,26],"combin":7,"command":[2,4,7,21,26],"commit":3,"common":[21,26],"compact":15,"compact_format":[5,8,15],"compar":[2,4,22,24],"comparison":[1,4],"compens":9,"complet":[17,19],"complex":4,"compress":2,"comput":[2,9],"compute_multipli":[5,8,9],"concept":20,"condit":[2,4,22,24],"config":4,"configur":[1,10,20,22],"conform":22,"connect":[13,22,24],"conrour":13,"consid":[2,4],"contact":26,"contain":[1,3],"content":[1,3,20,23],"continu":2,"contour":[13,22],"contribut":[0,20,21],"control":[2,26],"cook":26,"coord":13,"coordin":[2,13,18],"copi":[3,21],"core":[1,5,21,23,26],"corner":[2,15,22],"correct":11,"correspond":[1,2,4,22,24],"could":[21,24,26],"council":0,"count":13,"counter":11,"coupl":[9,19],"cov":[3,4],"cp":2,"cpg":[2,22],"cpr_trueimp":26,"creat":[3,4,13,21,22,24],"create_deck":[5,8,13],"csp":[2,25],"cssr":[4,21,22,26],"curiou":4,"current":[9,18,21,22,26],"current_directori":21,"curv":2,"d":[2,4,26],"d_z":13,"dai":[2,4],"data":[4,19,26],"dcmake_build_typ":21,"dcmake_disable_find_package_mpi":21,"dcmake_prefix_path":21,"de":24,"deactiv":[2,21],"deck":[1,2,13,14,18,19,20,22,26],"default":[2,22],"defin":[2,4,22],"define_cas":[5,16,19],"definit":[2,24],"delax":[4,26],"demonstr":4,"depend":[3,21,26],"depth":[2,26],"describ":[2,3,22,26],"desir":2,"detail":0,"dev":[3,21],"develop":[21,22],"dic":[9,10,11,12,13,14,15,17,18,19],"dict":[7,9,10,11,12,13,14,15,17,18,19],"dictionari":[9,10,11,12,13,14,15,17,18,19],"differ":[1,2,4,9,11,12,17,18,22,24],"dimens":[2,26],"dir":[2,11,13],"dire":13,"direct":[2,4,13],"directli":24,"director":26,"directori":[3,22],"discret":[2,22],"distanc":[4,18],"dmar":2,"do":[4,21,22],"doc":3,"document":[2,3,22,24],"doe":4,"doi":26,"done":[9,21],"doplot":19,"dune":21,"dunecontrol":21,"duse_mpi":21,"dwith_ndebug":21,"dynam":[2,4,22,24,25],"dynamic_interpol":[5,8,13],"e":[2,3,4,21,22,24,26],"each":[2,22],"echo":21,"edg":21,"ehystr":2,"els":21,"em":25,"email":3,"enabl":[2,26],"end":[2,4,26],"energi":0,"enter":2,"entri":[2,10,22],"environ":[3,21],"equal":[4,22],"equidist":22,"equinor":0,"error":2,"ert":26,"evalu":[2,22],"everest":26,"exampl":[2,20,21,24],"example1":[2,4],"example1_porvproj":4,"example1_pr":4,"example1_wel":[2,4],"example2":4,"except":2,"execut":[1,2,3,4,7,21,22,24,26],"exisit":26,"exist":21,"exmapl":2,"explain":4,"explicit":22,"expon":2,"exponenti":22,"export":[3,21],"exprecc":[2,3,4,21,22,24,26],"expreccs_dpincreas":4,"expreccs_perfipnum":4,"expreccss":1,"extend":[2,3],"extract":[4,18],"extract_site_bord":[5,8,13],"f":[4,22,26],"face":11,"fals":19,"familiar":3,"fault":[2,12,22,26],"fault_region":2,"fault_sit":2,"featur":[0,26],"few":26,"fi":21,"fig":26,"fig1":26,"fig10a":26,"fig10bc":26,"fig12a":26,"fig2":26,"fig3b":26,"fig5":26,"fig6a":26,"fig6b":26,"fig8low":26,"fig8upp":26,"fig9":26,"figur":[4,14,17,19,22,26],"fil":9,"file":[1,3,10,13,15,19,20,21,22,26],"final":[2,4,26],"final_time_map":[5,16,17],"final_time_maps_differ":[5,16,17],"find":[12,13],"find_ij_orient":[5,8,13],"find_regional_cel":[5,8,13],"fipnum":[4,13,22],"fipr":13,"first":[2,19,26],"five":2,"fix":3,"flag":[2,4,7,22,24],"flexibl":22,"float":13,"flow":[2,3,14,15,19,20,25,26],"flow_maco":3,"fluid":2,"fluidflow":25,"flux":[2,4,9,11],"flux_region":9,"flux_sit":9,"focus":22,"fol":[18,19],"folder":[1,2,3,4,9,15,17,18,19,20,21,22,26],"follow":[2,4,21,22,24,26],"fork":[0,3],"format":3,"former":4,"fot":13,"fraction":[2,26],"framework":[2,22,25],"frequenc":22,"friend":4,"from":[2,3,4,9,10,11,13,18,19,21,22,25,26],"full":2,"function":[2,4,7,9,10,11,12,13,14,15],"fund":0,"further":[2,4],"g":[2,3,4,21,22,24],"ga":[2,4],"gasda":26,"gener":[1,2,3,4,14,22,24,25,26],"geolog":[1,2,4,9,14,15,22,25],"geological_map":[5,16,17],"geometri":21,"get":[3,13,21,26],"get_bccon":[5,8,13],"get_xymap":[5,8,13],"gif":25,"gind":13,"git":[4,21,26],"github":[3,4,21,22,26],"gitlab":21,"give":2,"given":[1,2,4,9,13,22,24],"global":[9,10,11,12,13,14,15,17,18,19,26],"gnuplot2":26,"grade":22,"grid":[2,4,12,13,15,21,22,26],"ground":20,"group":2,"h":[2,26],"ha":[2,26],"hand":13,"handl":[12,22],"handle_grid_coord":[5,8,13],"handle_labels_differ":[5,16,18],"handle_labels_dist":[5,16,18],"handle_pressure_correct":[5,8,11],"handle_site_summari":[5,16,18],"handle_stencil":[5,8,11],"handle_stencil_2p":[5,8,11],"handli":22,"harbour":0,"have":21,"height":2,"hello":[20,24],"hello_world":4,"hello_world_distance_from_bord":4,"hello_world_reference_watfluxi":4,"hello_world_regional_watfluxi":4,"hello_world_sensor_pressure_over_tim":4,"hello_world_site_flux_watfluxi":4,"hello_world_summary_bhp_site_refer":4,"help":[2,3],"here":[0,2,4,24,26],"heterogein":[2,22],"heterogen":4,"higher":2,"histori":25,"home":4,"homogen":26,"horizont":13,"host":22,"how":[4,26],"html":3,"http":[4,21,22,26],"hydrosta":13,"hysteresi":[2,22],"hystopt":2,"i":[0,1,2,3,4,9,11,13,18,21,22,24,26],"identifi":22,"ignor":3,"ij":4,"imag":[1,25],"imbibit":2,"imbnum":26,"implement":[2,22],"import":3,"improv":[18,22,26],"in_fil":10,"inact":[4,22],"inc":[4,24],"includ":[1,4,21,22],"increas":[4,22,26],"ind":13,"index":[13,18,20],"indic":[13,18],"induc":25,"init_multipli":[5,8,9],"initi":[2,9,13],"inj":2,"inject":[2,18],"injector":[2,4],"input":[1,2,4,9,10,14,22],"inputvalu":[5,8],"insid":[2,4,21],"instal":[3,4,20,26],"instead":2,"int":[9,11,13,18],"integr":2,"interest":[2,21,25],"interp":2,"interpol":[2,4,11,13,24],"introduct":[4,20],"invalid":7,"irregular":22,"issu":[0,20],"istl":21,"iter":[2,9,11,15,26],"iterativli":9,"j":[18,22],"j5":21,"johansen":26,"jump":2,"kept":2,"keyword":2,"kg":2,"killough":2,"km":[4,26],"kr":2,"krn":2,"krw":2,"kxy":2,"kz":2,"l":[4,21,22,26],"label":[4,18,24],"landa":26,"last":[17,19],"later":4,"latest":21,"latex":21,"layer":[2,20,22],"leakag":25,"left":[2,4,13],"length":2,"librari":21,"lim":26,"limipr":26,"limit":[2,26],"line":[2,3,4,13,18,21],"linear":[2,26],"link":[0,21],"lint":21,"linux":20,"list":[13,15,18,19],"literatur":26,"load_pars":[5,6,7],"local":3,"locat":[1,2,4,11,12,18,22,26],"log":26,"look":[3,26],"lot":26,"lower":2,"m":[2,4,21,22,26],"machin":2,"maco":[3,20],"macport":21,"mactex":21,"main":[1,3,5,6,7],"maintain":3,"make":[3,15,21],"make_arrai":[5,16,19],"mako":[1,15],"mamba":21,"manag":[18,21],"manage_nam":[5,16,17,19],"managua_r":26,"mani":2,"mantain":3,"manual":2,"manuscript":4,"map":[4,11,12,13,17,18,22],"mapboundari":[5,8],"mapp":4,"mapping_properti":[5,8,12],"mapproperti":[5,8],"maps2d":[5,16],"marb\u00e1n":26,"mark":22,"master":21,"match":[25,26],"max":[2,18,26],"maximum":[2,26],"md":2,"merg":3,"metric":22,"micp":20,"microbi":25,"microsystem":25,"middel":4,"middl":[2,4],"might":[3,21,25,26],"min":[2,26],"miniforg":21,"minimum":4,"miss":[3,4],"mkdir":21,"model":[1,2,9,13,14,15,17,19,20,22,24,25,26],"modif":22,"modifi":[9,10,11,12,13,14,15,17,18,19,21,24],"modul":[1,20,21,23,25],"more":[0,3,4],"mpi":21,"mpirun":[2,26],"mt":2,"mult":9,"multipli":[2,9],"mypi":3,"n":[2,4,13,15,22],"name":[2,4,9,10,14,15,17,18,19,22],"ndeck":18,"necessari":[4,15],"need":[3,21,22,26],"neighbour":13,"new":[0,3,4,10],"newton":[2,26],"newtoniterationcount":26,"nfol":18,"nice":[3,21,22],"nkrn":2,"nkrw":2,"nnc":13,"non":[2,20],"none":[7,9,10,14,15,17,18,22],"norwai":0,"norwegian":26,"notat":15,"now":[2,4],"np":[2,26],"npen":2,"npoint":2,"nqua":18,"nquan":18,"nrst":18,"num":2,"number":[0,2,9,13,18,22,26],"numpi":15,"nwell":18,"nx":22,"ny":22,"o":[4,22,24],"observ":2,"offset":[4,13,22],"offshor":26,"one":[2,4,24],"ones":26,"onli":[2,4,19,21,22],"open":[2,25],"openbla":21,"oper":[2,22],"opernum":[4,24],"opernum_exprecc":[4,24],"opm":[1,2,3,14,15,18,19,20,25,26],"opmn":18,"optim":[4,26],"optimal_solut":26,"option":[2,7,21,22],"order":2,"org":[21,26],"orginin":26,"origen":2,"origin":26,"our":[3,4],"out":[17,19,25],"output":[2,15,18,19,20,22],"over":[2,13],"over_time_dist":[5,16,18],"over_time_max_differ":[5,16,18],"over_time_sensor":[5,16,18],"overlap":[4,13,24],"overpr":26,"overpressur":26,"overview":[2,20],"own":3,"p":[4,13,22,26],"packag":[1,3,4,20,23],"page":[3,4,20],"paper":26,"paper_2025":4,"parallel":26,"paramet":[10,20],"part":4,"partit":22,"path":[2,3,21,22],"path_to_the_regional_model":4,"path_to_the_site_model":4,"pc":2,"pcap":2,"pen":2,"per":[2,4,22],"period":2,"perm":[2,26],"permeabl":26,"phi":2,"pi":2,"pip":[3,4,21,26],"pleas":[0,3],"plopm":[4,20,24,26],"plot":[5,8,14,15,16,17,19,22,24],"plot_result":[5,16,18],"plotting_set":[5,16,18],"plume":4,"png":[1,4,25],"pofff":20,"point":[2,15,18,22],"pore":[2,4,11,26],"poro":26,"porv":[2,26],"porv_project":[5,8,11],"porv_regional_segment":[5,8,11],"porvproj":[2,4],"posit":[2,5,12,13,16,18],"positions_refer":[5,8,12],"positions_region":[5,8,12],"positions_rot":[5,8,12],"positions_sit":[5,8,12],"possibl":[2,3],"postprocess":[4,22,24,26],"powerpoint":26,"pr":3,"practic":2,"pre":[2,4,11],"precipit":25,"prefer":3,"prefix":15,"preprocess":[10,22,24],"prerequisit":21,"pres2p":2,"prescrib":4,"pressur":[1,2,4,11,13,18,22,24,26],"presur":2,"previou":[3,4,21],"print":[21,22],"problem":20,"proce":[2,4],"proceed":26,"process":[1,10,13],"process_input":[5,8,10],"process_tun":[5,8,10],"prod":2,"produc":[2,4],"project":[0,1,2,4,11,13,18,21,22,25],"project_pressur":[5,8,13],"prompt":26,"properti":[2,22,26],"pull":[0,3],"push":3,"pushd":3,"pv":[2,11,26],"pwd":21,"py":[4,24,26],"pycopm":[2,3,4,20,26],"pylint":3,"pymm":20,"pyopmnearwel":20,"pyopmspe11":[3,20],"pytest":[3,4],"python":[3,20,25,26],"python3":[21,26],"quantiti":[12,17,18,19],"quick":25,"quotat":22,"r":[2,3,4,21,26],"rais":[0,3],"rate":[2,18],"re":[17,18,19],"read":[5,11,16],"reading_simul":[5,16,19],"recommend":21,"record":2,"rectangl":[4,22],"refer":[1,2,4,12,14,15,17,18,22,24],"reference_x_n":2,"reference_y_n":2,"reference_z_n":2,"refin":[2,4,11],"reg":[11,13],"reg_sit_given_deck":[5,8],"regard":[2,4],"region":[1,2,4,9,11,13,14,18,22,24],"regional_bctyp":2,"regional_dim":2,"regional_sit":22,"regional_x_n":2,"regional_y_n":2,"regional_z_n":2,"regul":4,"regular":20,"rel":2,"relat":[3,15,20,24],"relax":[2,26],"releas":21,"remedi":25,"remov":26,"repit":15,"replac":3,"repo":[3,21],"report":[4,13,20,22],"repositori":[3,21],"reproduc":26,"request":[0,3],"requier":[4,12],"requir":[2,3,10,21],"requiri":10,"rerun":4,"research":0,"reservoir":[4,12,15,17,18,20],"residu":2,"resinsight":[2,4,24,26],"resourc":26,"respect":[2,4],"rest":26,"restart":[2,13],"result":[4,20,24,26],"return":[7,9,10,11,12,13,14,15,17,18,19],"review":3,"rg":26,"right":[2,13],"rise":3,"rock":[20,22],"rock_comp":2,"rotat":[4,12,22],"rotate_grid":[5,8,12],"routin":[1,15,18],"row":2,"rpr":4,"rst":[2,26],"rule":20,"run":[1,2,3,4,5,8,15,21,22,24,26],"run_model":[5,8,14],"safu":2,"salin":2,"same":[2,4,26],"sand":2,"sandv":26,"sandwich":4,"sat":2,"satur":[2,4,18],"save":[4,15,24,26],"schedul":[2,4,11,18,22],"screenshot":[2,24],"script":[1,3,7,11,13,17,18,19,21],"search":20,"second":2,"section":[2,4,22],"see":[2,3,4,21,22,24],"seek":20,"select":[4,24],"send":3,"sensor":[2,4,18,26],"sensor_coord":2,"set":[2,4,10,12,18,21,22,26],"set1_r":4,"setuptool":21,"sga":4,"sh":21,"share":2,"shell":0,"should":[21,26],"show":[1,2,4,24],"shut":2,"side":[2,11,13,22],"similar":26,"similarli":2,"simillarli":2,"simpl":4,"simpler":2,"simplic":4,"simplifi":22,"simul":[1,3,4,5,8,14,17,19,20,21,22,24,25],"sin":2,"sinc":[2,26],"singl":3,"sintef":26,"site":[1,2,4,9,11,12,13,14,17,18,22,24],"site_bctyp":2,"site_clos":[4,24],"site_contour":[5,8,13],"site_loc":2,"six":[2,3],"size":[2,4],"skip":[21,22,26],"sni":2,"so":21,"softwar":20,"solut":2,"solver":[24,26],"some":[4,15,24,25],"soon":3,"sourc":[3,20,25],"space":22,"spars":21,"spatial":13,"spe":2,"spe11":25,"specif":21,"speed":2,"squash":3,"src":3,"stage":[4,22],"start":[4,13],"statfjord":26,"static":[3,4],"step":[2,3,13,17,21,22,26],"storag":[15,22],"str":[9,10,13,14,15,17,18,19],"string":2,"studi":[2,4,14,25,26],"style":18,"subfig":[4,26],"subfold":[22,24],"submit":26,"submodel":4,"submodul":[1,5,23],"subpackag":[1,20,23],"subsystem":21,"succe":3,"suit":21,"summari":18,"summary_plot":[5,16,18],"summary_sit":[5,16,18],"support":[2,20,21,22,26],"suptitl":[4,26],"surfac":[2,17,18],"sw":2,"swi":2,"system":[2,3],"t":[2,22,26],"tag":21,"taho":21,"tailor":25,"take":26,"tcc":20,"telescop":22,"temperatur":2,"templat":15,"temporal_interpol":[5,8,13],"temporal_interpolation_flux":[5,8,11],"temporal_interpolation_pressur":[5,8,11],"term":[3,4],"termin":[4,21],"test":[3,4,21,22],"test_2_generic_deck":4,"test_4_site_region":4,"test_generic_deck":24,"than":[0,3],"thei":4,"them":[0,2,22],"thi":[2,3,4,9,21,22,24,26],"thick":[2,13],"those":26,"three":[2,4],"threshold":2,"time":[2,11,13,17,22,26],"timestep":22,"toler":26,"toml":[2,4,10,22],"tool":[0,3,4,21,22,25,26],"top":[2,4,17,18],"total":26,"tracer":24,"tran":[2,26],"translat":26,"transmiss":26,"troll":26,"true":[2,19,26],"try":[3,21],"tsmaxz":2,"tug":21,"tune":[2,10],"turn":21,"tutori":[3,21],"two":[2,4,19,22],"txt":[3,21],"type":[4,21,25],"u":22,"ubuntu":[3,21],"until":2,"up":2,"updat":[9,21,22],"upgrad":21,"upper":2,"uprad":21,"us":[0,2,3,4,9,15,18,19,21,22,24,25,26],"user":[2,3,21],"util":[1,5,23],"utilii":[9,10,11,12,13,14,15],"v":[4,26],"v2":21,"v2025":21,"valid":22,"valu":[2,4,10,11,13,15,22,26],"variabl":[2,3,4,15],"veloc":4,"venv":21,"version":[5,21,26],"vertic":13,"vexprecc":21,"via":[2,20,21,26],"virtual":21,"visit":3,"visual":[1,2,4,5,23,24],"volum":[2,4,11,26],"vtk":25,"w":[2,4,22,26],"wa":[4,26],"warn":22,"water":[2,4],"we":[2,3,4,26],"weight":26,"welcom":[0,3],"well":[3,4,12,18,20,22,25,26],"well_coord":2,"wells_sit":[5,16,18],"wet":2,"wheel":21,"when":26,"where":[2,4,22],"which":[2,4,21,22,26],"while":[2,4,21,26],"whole":22,"width":2,"window":20,"without":[2,15,24],"work":[3,21],"world":[20,24],"would":22,"write":[2,4,9,13,15,21,22],"write_fil":[5,8,13,15],"write_fold":[5,8,15],"write_folder_it":[5,8,9],"write_grid":[5,8,15],"write_properti":[5,8,15],"writefil":[5,8],"written":[4,22,26],"wsl":21,"www":21,"x":[2,4,9,13,15,18,26],"xf":2,"xformat":[4,26],"xi":2,"xlnum":[4,26],"xunit":[4,26],"xy":[13,22],"xypolygon":4,"y":[2,4,9,13,18,26],"ye":4,"year":26,"yf":2,"yformat":[4,26],"yi":2,"ylnum":[4,26],"yml":[3,21,26],"you":[3,4,21,26],"your":[2,3,21,26],"yournam":3,"yunit":[4,26],"z":[2,4,11,13,18,22,26],"z_xy":2,"zag":2,"zf":2,"zi":2,"zig":2,"zone":22},"titles":["About expreccs","expreccs Python API","Configuration file","Contributing","Examples","expreccs package","expreccs.core package","expreccs.core.expreccs module","expreccs.utils package","expreccs.utils.backcoupling module","expreccs.utils.inputvalues module","expreccs.utils.mapboundaries module","expreccs.utils.mapproperties module","expreccs.utils.reg_sit_given_decks module","expreccs.utils.runs module","expreccs.utils.writefile module","expreccs.visualization package","expreccs.visualization.maps2d module","expreccs.visualization.plotting module","expreccs.visualization.reading module","Welcome to the expreccs\u2019s documentation!","Installation","Introduction","expreccs","Output folder","Related","TCCS-13"],"titleterms":{"":20,"13":26,"about":0,"ad":25,"api":1,"backcoupl":9,"boundari":4,"build":21,"concept":22,"configur":[2,4,24],"content":[5,6,8,16],"contribut":3,"core":[6,7],"deck":[4,24],"document":20,"exampl":4,"exprecc":[0,1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,23],"file":[2,4,24],"flow":[4,21,24],"folder":24,"ground":3,"hello":4,"indic":20,"inputvalu":10,"instal":21,"introduct":22,"issu":3,"layer":4,"linux":21,"maco":21,"mapboundari":11,"mapproperti":12,"maps2d":17,"micp":25,"model":4,"modul":[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],"non":4,"opm":[4,21,24],"output":24,"overview":22,"packag":[5,6,8,16,21],"paramet":2,"plopm":25,"plot":18,"pofff":25,"problem":3,"pycopm":25,"pymm":25,"pyopmnearwel":25,"pyopmspe11":25,"python":[1,21],"read":19,"reg_sit_given_deck":13,"regular":4,"relat":[2,25],"report":3,"reservoir":2,"result":2,"rock":2,"rule":3,"run":14,"seek":3,"simul":2,"softwar":3,"sourc":21,"submodul":[6,8,16],"subpackag":5,"support":3,"tabl":20,"tcc":26,"util":[8,9,10,11,12,13,14,15],"via":[4,24],"visual":[16,17,18,19],"welcom":20,"well":2,"window":21,"world":4,"writefil":15}}) \ No newline at end of file diff --git a/docs/tccs-13.html b/docs/tccs-13.html index 8f73864..aae07d7 100644 --- a/docs/tccs-13.html +++ b/docs/tccs-13.html @@ -96,13 +96,13 @@

TCCS-13

Warning

You should not run the ORIGINAL.DATA file before adapting it with the actual Troll aquifer model, since it has a lot of active cells.

-

For the first figures, plopm and pycopm are used, which can be installed by:

+

For the first figures, plopm and pycopm are used, which can be installed by:

pip install git+https://github.com/cssr-tools/plopm.git
 pip install git+https://github.com/cssr-tools/pycopm.git
 

To run the optimization, Everest is needed, -which is installed via ert when pycopm is installed with the command above.

+which is installed via ert when pycopm is installed with the command above.

Note

Python 3.14 was not supported for ert at the time this was written, then you need Python 3.12 or 3.13.

diff --git a/docs/text/installation.rst b/docs/text/installation.rst index cd1ef51..783711c 100644 --- a/docs/text/installation.rst +++ b/docs/text/installation.rst @@ -52,7 +52,7 @@ You also need to install: .. tip:: See the `CI.yml `_ script - for installation of OPM Flow (binary packages) and the expreccs package in Ubuntu. + for installation of OPM Flow (binary packages), LaTeX (optional) libraries, and the expreccs package in Ubuntu 24.04 and Python 3.11. Source build in Linux/Windows +++++++++++++++++++++++++++++ @@ -136,5 +136,4 @@ then building OPM Flow can be achieved with the following bash lines: This builds OPM Flow, and it exports the path to the flow executable (i.e., executing in the terminal **which flow** should print the path). -For macOS, the LaTeX dependency can be installed from https://www.tug.org/mactex/. If after installation you still face an error due to LaTeX -when executing expreccs, then add the flag **-latex 0** to expreccs. +For macOS, the (optional but recommended) LaTeX dependency can be installed from https://www.tug.org/mactex/. diff --git a/docs/text/introduction.rst b/docs/text/introduction.rst index d014dd4..2927f31 100644 --- a/docs/text/introduction.rst +++ b/docs/text/introduction.rst @@ -42,7 +42,6 @@ where -f Frequency to evaluate the boundary pressures on the site between report steps in the site. Write an array, e.g., '2,7,3', to set the frequency in each site report step ('1' by default). -a Exponential 'a' coefficient for the telescopic time-discretization for the given frequency '-f'. Write an array, e.g., '2.2,0,3.1', to set the coefficient in each site report step ('3.2' by default, use 0 for an equidistance partition). -w Set to 1 to print warnings ('0' by default). --l Set to 0 to not use LaTeX formatting ('1' by default). -e Set to 0 to write the pressure increase on the site bc from the regional values ('1' by default, i.e., the pressure values on the boundaries correspond to the explicit values on the regional simulations). -z Set to 1 to project the regional pressures per fipnum zones, i.e., the pressure maps to the site bcs are written for equal fipnum numbers in the whole xy layer ('0' by default, i.e., the projections include the z location offset between regional and site models). -s Set to 0 to not create the subfolders preprocessing, output, and postprocessing, i.e., to write all generated files in the output directory ('1' by default). diff --git a/docs/text/tccs-13.rst b/docs/text/tccs-13.rst index bd4d331..49eccb2 100644 --- a/docs/text/tccs-13.rst +++ b/docs/text/tccs-13.rst @@ -16,7 +16,7 @@ and adapt those files to the ones in the `tccs-13 folder `_ and `pycopm `_ are used, which can be installed by: +For the first figures, `plopm `_ and `pycopm `_ are used, which can be installed by: .. code-block:: bash @@ -24,7 +24,7 @@ For the first figures, `plopm `_ and `p pip install git+https://github.com/cssr-tools/pycopm.git To run the optimization, `Everest `_ is needed, -which is installed via `ert `_ when `pycopm `_ is installed with the command above. +which is installed via `ert `_ when pycopm is installed with the command above. .. note:: diff --git a/src/expreccs/core/expreccs.py b/src/expreccs/core/expreccs.py index db3dc64..c16df2b 100644 --- a/src/expreccs/core/expreccs.py +++ b/src/expreccs/core/expreccs.py @@ -6,6 +6,7 @@ import os import sys +import shutil import argparse import warnings from expreccs.utils.inputvalues import process_input @@ -40,7 +41,6 @@ def expreccs(): dic["acoeff"] = (cmdargs["acoeff"].strip()).split( "," ) # Coefficient telescopic partition - dic["latex"] = int(cmdargs["latex"]) # LaTeX formatting dic["boundaries"] = (cmdargs["boundaries"].strip())[1:-1].split(",") # Boundaries dic["boundaries"] = [int(val) for val in dic["boundaries"]] dic["compare"] = cmdargs["compare"] @@ -120,6 +120,13 @@ def expreccs(): # Generate some useful plots after the studies if dic["plot"] != "no": + if shutil.which("latex") == "None": + print( + "\nLaTeX is recommended for the figures to show the " + "nice fonts and given formats. You can install it by " + "following the instructions in the expreccs's " + "documentation." + ) if not dic["subfolders"]: print( "\nThe generation of plots requires the subfolder structure, " @@ -213,12 +220,6 @@ def load_parser(): default=0, help="Set to 1 to print warnings ('0' by default).", ) - parser.add_argument( - "-l", - "--latex", - default=1, - help="Set to 0 to not use LaTeX formatting (1' by default).", - ) parser.add_argument( "-e", "--explicit", diff --git a/src/expreccs/templates/decks/site.mako b/src/expreccs/templates/decks/site.mako index 0999580..dbf0b3a 100644 --- a/src/expreccs/templates/decks/site.mako +++ b/src/expreccs/templates/decks/site.mako @@ -169,17 +169,17 @@ BCCON EDIT ---------------------------------------------------------------------------- OPERATE -PORV 1 ${dic['site_num_cells'][0]} 1 1 2* ADDX PORV ${dic["site_porv"][0]/(dic['site_num_cells'][0]*sum(dic["siteka"]))} / -PORV ${dic['site_num_cells'][0]} ${dic['site_num_cells'][0]} 1 ${dic['site_num_cells'][1]} 2* ADDX PORV ${dic["site_porv"][1]/(dic['site_num_cells'][1]*sum(dic["siteka"]))} / -PORV 1 ${dic['site_num_cells'][0]} ${dic['site_num_cells'][1]} ${dic['site_num_cells'][1]} 2* ADDX PORV ${dic["site_porv"][2]/(dic['site_num_cells'][0]*sum(dic["siteka"]))} / -PORV 1 1 1 ${dic['site_num_cells'][1]} 2* ADDX PORV ${dic["site_porv"][3]/(dic['site_num_cells'][1]*sum(dic["siteka"]))} / +PORV 1 ${dic['site_num_cells'][0]} 1 1 2* ADDX PORV ${dic["site_porv"][0]/(dic['site_num_cells'][0]*np.sum(dic["siteka"]))} / +PORV ${dic['site_num_cells'][0]} ${dic['site_num_cells'][0]} 1 ${dic['site_num_cells'][1]} 2* ADDX PORV ${dic["site_porv"][1]/(dic['site_num_cells'][1]*np.sum(dic["siteka"]))} / +PORV 1 ${dic['site_num_cells'][0]} ${dic['site_num_cells'][1]} ${dic['site_num_cells'][1]} 2* ADDX PORV ${dic["site_porv"][2]/(dic['site_num_cells'][0]*np.sum(dic["siteka"]))} / +PORV 1 1 1 ${dic['site_num_cells'][1]} 2* ADDX PORV ${dic["site_porv"][3]/(dic['site_num_cells'][1]*np.sum(dic["siteka"]))} / / % elif dic['site_bctype'][0] == 'porvproj': ---------------------------------------------------------------------------- EDIT ---------------------------------------------------------------------------- OPERATE -% if sum(dic["siteka"]) == dic["site_num_cells"][2]: +% if np.sum(dic["siteka"]) == dic["site_num_cells"][2]: PORV 1 ${dic['site_num_cells'][0]} 1 1 2* ADDX PORV ${dic["pv_bottom"]/(dic['site_num_cells'][0]*dic['site_num_cells'][2])} / PORV ${dic['site_num_cells'][0]} ${dic['site_num_cells'][0]} 1 ${dic['site_num_cells'][1]} 2* ADDX PORV ${dic["pv_right"]/(dic['site_num_cells'][1]*dic['site_num_cells'][2])} / PORV 1 ${dic['site_num_cells'][0]} ${dic['site_num_cells'][1]} ${dic['site_num_cells'][1]} 2* ADDX PORV ${dic["pv_top"]/(dic['site_num_cells'][0]*dic['site_num_cells'][2])} / @@ -187,10 +187,10 @@ PORV 1 1 1 ${dic['site_num_cells'][1]} 2* ADDX PORV ${dic["pv_left"]/(dic['site_ % else: % for k in range(dic["site_num_cells"][2]): % if dic["siteka"][k]: -PORV 1 ${dic['site_num_cells'][0]} 1 1 ${k+1} ${k+1} ADDX PORV ${dic["pv_bottom"]/(dic['site_num_cells'][0]*sum(dic["siteka"]))} / -PORV ${dic['site_num_cells'][0]} ${dic['site_num_cells'][0]} 1 ${dic['site_num_cells'][1]} ${k+1} ${k+1} ADDX PORV ${dic["pv_right"]/(dic['site_num_cells'][1]*sum(dic["siteka"]))} / -PORV 1 ${dic['site_num_cells'][0]} ${dic['site_num_cells'][1]} ${dic['site_num_cells'][1]} ${k+1} ${k+1} ADDX PORV ${dic["pv_top"]/(dic['site_num_cells'][0]*sum(dic["siteka"]))} / -PORV 1 1 1 ${dic['site_num_cells'][1]} ${k+1} ${k+1} ADDX PORV ${dic["pv_left"]/(dic['site_num_cells'][1]*sum(dic["siteka"]))} / +PORV 1 ${dic['site_num_cells'][0]} 1 1 ${k+1} ${k+1} ADDX PORV ${dic["pv_bottom"]/(dic['site_num_cells'][0]*np.sum(dic["siteka"]))} / +PORV ${dic['site_num_cells'][0]} ${dic['site_num_cells'][0]} 1 ${dic['site_num_cells'][1]} ${k+1} ${k+1} ADDX PORV ${dic["pv_right"]/(dic['site_num_cells'][1]*np.sum(dic["siteka"]))} / +PORV 1 ${dic['site_num_cells'][0]} ${dic['site_num_cells'][1]} ${dic['site_num_cells'][1]} ${k+1} ${k+1} ADDX PORV ${dic["pv_top"]/(dic['site_num_cells'][0]*np.sum(dic["siteka"]))} / +PORV 1 1 1 ${dic['site_num_cells'][1]} ${k+1} ${k+1} ADDX PORV ${dic["pv_left"]/(dic['site_num_cells'][1]*np.sum(dic["siteka"]))} / % endif % endfor % endif diff --git a/src/expreccs/utils/inputvalues.py b/src/expreccs/utils/inputvalues.py index ff112d7..c6a544b 100644 --- a/src/expreccs/utils/inputvalues.py +++ b/src/expreccs/utils/inputvalues.py @@ -8,6 +8,7 @@ import sys import tomllib import subprocess +import numpy as np def process_input(dic, in_file): @@ -34,9 +35,9 @@ def process_input(dic, in_file): dic["reference_dims"] = dic["regional_dims"] for res in ["regional", "reference"]: dic[f"{res}_num_cells"] = [ - sum(dic[f"{res}_x_n"]), - sum(dic[f"{res}_y_n"]), - sum(dic[f"{res}_z_n"]), + np.sum(dic[f"{res}_x_n"]), + np.sum(dic[f"{res}_y_n"]), + np.sum(dic[f"{res}_z_n"]), ] dic["ntabs"] = dic["satnum"] if dic["hysteresis"]: diff --git a/src/expreccs/utils/mapboundaries.py b/src/expreccs/utils/mapboundaries.py index 1d4d9f5..b1cc180 100644 --- a/src/expreccs/utils/mapboundaries.py +++ b/src/expreccs/utils/mapboundaries.py @@ -124,24 +124,24 @@ def porv_projections(dic): opernum = np.array(ini["OPERNUM"]) mask = porv > 0 dic["pv_bottom"] = ( - porv[mask][opernum == 2].sum() - + 0.5 * porv[mask][opernum == 9].sum() - + 0.5 * porv[mask][opernum == 6].sum() + np.sum(porv[mask][opernum == 2]) + + 0.5 * np.sum(porv[mask][opernum == 9]) + + 0.5 * np.sum(porv[mask][opernum == 6]) ) dic["pv_right"] = ( - porv[mask][opernum == 3].sum() - + 0.5 * porv[mask][opernum == 6].sum() - + 0.5 * porv[mask][opernum == 7].sum() + np.sum(porv[mask][opernum == 3]) + + 0.5 * np.sum(porv[mask][opernum == 6]) + + 0.5 * np.sum(porv[mask][opernum == 7]) ) dic["pv_top"] = ( - porv[mask][opernum == 4].sum() - + 0.5 * porv[mask][opernum == 7].sum() - + 0.5 * porv[mask][opernum == 8].sum() + np.sum(porv[mask][opernum == 4]) + + 0.5 * np.sum(porv[mask][opernum == 7]) + + 0.5 * np.sum(porv[mask][opernum == 8]) ) dic["pv_left"] = ( - porv[mask][opernum == 5].sum() - + 0.5 * porv[mask][opernum == 8].sum() - + 0.5 * porv[mask][opernum == 9].sum() + np.sum(porv[mask][opernum == 5]) + + 0.5 * np.sum(porv[mask][opernum == 8]) + + 0.5 * np.sum(porv[mask][opernum == 9]) ) diff --git a/src/expreccs/utils/mapproperties.py b/src/expreccs/utils/mapproperties.py index 9438931..45995fa 100644 --- a/src/expreccs/utils/mapproperties.py +++ b/src/expreccs/utils/mapproperties.py @@ -39,7 +39,7 @@ def mapping_properties(dic): ): dic[f"{res}_{name}"].append( ((k + 1.0) / num) * dic["thickness"][j] - + sum(dic["thickness"][:j]) + + np.sum(dic["thickness"][:j]) ) else: dic[f"{res}_{name}"].append( @@ -57,7 +57,7 @@ def mapping_properties(dic): dic[f"{res}_num_cells"][i] = len(dic[f"{res}_{name}"]) - 1 dic[f"{res}_layers"] = np.zeros(dic[f"{res}_num_cells"][2], int) for i, _ in enumerate(dic["thickness"]): - dic[f"{res}_layers"] += dic[f"{res}_zmz_mid"] > sum( + dic[f"{res}_layers"] += dic[f"{res}_zmz_mid"] > np.sum( dic["thickness"][: i + 1] ) for res in ["site"]: @@ -74,13 +74,13 @@ def mapping_properties(dic): dic[f"{res}_layers"] = np.zeros(dic[f"{res}_num_cells"][2], int) dic[f"{res}_zmaps"] = np.zeros(dic[f"{res}_num_cells"][2], int) for i, _ in enumerate(dic["thickness"]): - dic[f"{res}_layers"] += dic[f"{res}_zmz_mid"] > sum( + dic[f"{res}_layers"] += dic[f"{res}_zmz_mid"] > np.sum( dic["thickness"][: i + 1] ) dic[f"{res}ka"] = [True] * dic[f"{res}_num_cells"][2] for i in range(dic[f"{res}_num_cells"][2]): dic[f"{res}_zmaps"][i] = pd.Series( - abs(dic["regional_zmz_mid"] - dic["site_zmz_mid"][i]) + np.abs(dic["regional_zmz_mid"] - dic["site_zmz_mid"][i]) ).argmin() dic[f"{res}ka"][i] = dic["rock"][int(dic[f"{res}_layers"][i])][2] > 0 positions_reference(dic) @@ -164,7 +164,7 @@ def positions_regional(dic): indx += 1 if ( indc > 0 - and min( + and np.min( int(val) for val in dic["regional_fipnum"][-dic["regional_num_cells"][0] :] ) @@ -190,7 +190,7 @@ def positions_regional(dic): dic["asright"] = False if dic["site_corners"][1][0] == -1: if ( - min( + np.min( int(val) for val in dic["regional_fipnum"][-dic["regional_num_cells"][0] :] ) @@ -217,22 +217,22 @@ def positions_regional(dic): ): midpoints = dic[f"regional_{cord}_mid"] dic["regional_wellijk"][j].append( - pd.Series(abs(well_coord - midpoints)).argmin() + 1 + pd.Series(np.abs(well_coord - midpoints)).argmin() + 1 ) for i, cord in enumerate(["xmx", "ymy", "zmz"]): midpoints = dic[f"regional_{cord}_mid"] if i < 2: dic["regional_fault"][i] = pd.Series( - abs(dic["fault_regional"][i] - midpoints) + np.abs(dic["fault_regional"][i] - midpoints) ).argmin() dic["regional_site_fault"][0][i] = pd.Series( - abs(dic["fault_site"][0][i] - midpoints) + np.abs(dic["fault_site"][0][i] - midpoints) ).argmin() dic["regional_site_fault"][1][i] = pd.Series( - abs(dic["fault_site"][1][i] - midpoints) + np.abs(dic["fault_site"][1][i] - midpoints) ).argmin() dic["regional_sensor"][i] = pd.Series( - abs(dic["sensor_coords"][i] - midpoints) + np.abs(dic["sensor_coords"][i] - midpoints) ).argmin() @@ -261,8 +261,8 @@ def positions_rotation(dic): ): dic["site_wellijk"].append([]) w_ij = pd.Series( - abs(dic["well_coords"][j][0] - dic["site_xc"]) - + abs(dic["well_coords"][j][1] - dic["site_yc"]) + np.abs(dic["well_coords"][j][0] - dic["site_xc"]) + + np.abs(dic["well_coords"][j][1] - dic["site_yc"]) ).argmin() w_j = np.floor(w_ij / dic["site_num_cells"][0]) w_i = 1 + dic["site_num_cells"][0] - w_ij + (w_j) * dic["site_num_cells"][0] @@ -273,19 +273,19 @@ def positions_rotation(dic): ): midpoints = dic[f"site_{cord}_mid"] dic["site_wellijk"][j].append( - pd.Series(abs(well_coord - midpoints)).argmin() + 1 + pd.Series(np.abs(well_coord - midpoints)).argmin() + 1 ) for k, cord in enumerate(["xmx", "ymy", "zmz"]): midpoints = dic[f"site_{cord}_mid"] if k < 2: dic["site_fault"][0][k] = pd.Series( - abs(dic["fault_site"][0][k] - midpoints) + np.abs(dic["fault_site"][0][k] - midpoints) ).argmin() dic["site_fault"][1][k] = pd.Series( - abs(dic["fault_site"][1][k] - midpoints) + np.abs(dic["fault_site"][1][k] - midpoints) ).argmin() dic["site_sensor"][k] = pd.Series( - abs(dic["sensor_coords"][k] - midpoints) + np.abs(dic["sensor_coords"][k] - midpoints) ).argmin() @@ -318,19 +318,19 @@ def positions_site(dic): ): midpoints = dic[f"site_{cord}_mid"] dic["site_wellijk"][j].append( - pd.Series(abs(well_coord - midpoints)).argmin() + 1 + pd.Series(np.abs(well_coord - midpoints)).argmin() + 1 ) for k, cord in enumerate(["xmx", "ymy", "zmz"]): midpoints = dic[f"site_{cord}_mid"] if k < 2: dic["site_fault"][0][k] = pd.Series( - abs(dic["fault_site"][0][k] - midpoints) + np.abs(dic["fault_site"][0][k] - midpoints) ).argmin() dic["site_fault"][1][k] = pd.Series( - abs(dic["fault_site"][1][k] - midpoints) + np.abs(dic["fault_site"][1][k] - midpoints) ).argmin() dic["site_sensor"][k] = pd.Series( - abs(dic["sensor_coords"][k] - midpoints) + np.abs(dic["sensor_coords"][k] - midpoints) ).argmin() @@ -369,20 +369,20 @@ def positions_reference(dic): ): midpoints = dic[f"reference_{cord}_mid"] dic["reference_wellijk"][j].append( - pd.Series(abs(well_coord - midpoints)).argmin() + 1 + pd.Series(np.abs(well_coord - midpoints)).argmin() + 1 ) for i, cord in enumerate(["xmx", "ymy", "zmz"]): midpoints = dic[f"reference_{cord}_mid"] if i < 2: dic["reference_fault"][i] = pd.Series( - abs(dic["fault_regional"][i] - midpoints) + np.abs(dic["fault_regional"][i] - midpoints) ).argmin() dic["reference_site_fault"][0][i] = pd.Series( - abs(dic["fault_site"][0][i] - midpoints) + np.abs(dic["fault_site"][0][i] - midpoints) ).argmin() dic["reference_site_fault"][1][i] = pd.Series( - abs(dic["fault_site"][1][i] - midpoints) + np.abs(dic["fault_site"][1][i] - midpoints) ).argmin() dic["reference_sensor"][i] = pd.Series( - abs(dic["sensor_coords"][i] - midpoints) + np.abs(dic["sensor_coords"][i] - midpoints) ).argmin() diff --git a/src/expreccs/utils/reg_sit_given_decks.py b/src/expreccs/utils/reg_sit_given_decks.py index b1b2e0d..1f856df 100644 --- a/src/expreccs/utils/reg_sit_given_decks.py +++ b/src/expreccs/utils/reg_sit_given_decks.py @@ -79,7 +79,7 @@ def create_deck(dic): dic["acoeff"] = np.array([float(dic["acoeff"][0])] * (len(dic["isdays"]) - 1)) else: dic["acoeff"] = np.array([float(val) for val in dic["acoeff"]]) - if max(dic["freq"]) <= 0: + if np.max(dic["freq"]) <= 0: dic["sdays"] = [] dic["sopn"] = ["0"] * ( dic["sgrid"].dimension[0] @@ -88,7 +88,7 @@ def create_deck(dic): ) if not os.path.exists(f"{dic['fol']}"): os.system(f"mkdir {dic['fol']}") - if not os.path.exists(f"{dic['fol']}/bc") and max(dic["freq"]) > 0: + if not os.path.exists(f"{dic['fol']}/bc") and np.max(dic["freq"]) > 0: os.system(f"mkdir {dic['fol']}/bc") find_ij_orientation(dic) if dic["nonregular"]: @@ -188,11 +188,11 @@ def create_deck(dic): if n != dic["ksfips"][int(edit[5]) - 1]: n = dic["ksfips"][int(edit[5]) - 1] whr = fipr == n - if sum(whr) > 0: + if np.sum(whr) > 0: interp = LinearNDInterpolator( list(zip(x_i[whr], y_i[whr], z_i[whr])), z_p[whr] ) - if sum(whr) == 0: + if np.sum(whr) == 0: if i == 0: dic["sopn"][ dic["sgrid"].global_index( @@ -302,7 +302,9 @@ def get_xymaps(dic, coords): act = np.array(dic["rinit"]["PORV"]) > 0 for coord in coords: aind = int( - np.argmin(abs(c_x - coord[0]) + abs(c_y - coord[1]) + abs(c_z - coord[2])) + np.argmin( + np.abs(c_x - coord[0]) + np.abs(c_y - coord[1]) + np.abs(c_z - coord[2]) + ) ) ijk = dic["rgrid"].ijk_from_active_index(aind) ind = dic["rgrid"].global_index(ijk[0], ijk[1], ijk[2]) @@ -401,7 +403,7 @@ def get_xymaps(dic, coords): inds.append(tmp) fipr.append(dic["rfip"][tmp]) if dic["zones"] and z_i: - dic["rtmin"] = min(z_i) + dic["rtmin"] = np.min(z_i) return np.array(x_i), np.array(y_i), np.array(z_i), inds, np.array(fipr), offset @@ -649,7 +651,7 @@ def handle_grid_coord(dic): point = Point(xyz[0], xyz[1]) if poly.contains(point): ind = pd.Series( - abs(c_x[-1] - s_x) + abs(c_y[-1] - s_y) + np.abs(c_x[-1] - s_x) + np.abs(c_y[-1] - s_y) ).argmin() ijk = dic["sgrid"].ijk_from_active_index(ind) z_t = np.mean( @@ -900,7 +902,7 @@ def check_intersection(dic, ind, gind, i, n): x_p = xyz[0] y_p = xyz[1] l_p[1] = 1 - if sum(l_p) == 2: + if np.sum(l_p) == 2: xy = [x_l, y_l, x_p, y_p] lines.append(LineString([(xy[0], xy[1]), (xy[2], xy[3])])) elif l_p[1] == 1: @@ -979,14 +981,14 @@ def find_regional_cells(dic): ) c_x[whr], c_y[whr], c_z[whr] = np.inf, np.inf, np.inf ind = pd.Series( - (abs(c_x - x_c) + abs(c_y - y_c) + abs(c_z - z_c)) + (np.abs(c_x - x_c) + np.abs(c_y - y_c) + np.abs(c_z - z_c)) ).argmin() else: ind = pd.Series( ( - abs(dic["c_x"] - x_c) - + abs(dic["c_y"] - y_c) - + abs(dic["c_z"] - z_c) + np.abs(dic["c_x"] - x_c) + + np.abs(dic["c_y"] - y_c) + + np.abs(dic["c_z"] - z_c) ) ).argmin() count += 1 @@ -1104,7 +1106,7 @@ def temporal_interpolation(dic): dic (dict): Modified global dictionary """ - if max(dic["freq"]) > 0: + if np.max(dic["freq"]) > 0: dic["ddays"] = dic["sdays"][1:] - dic["sdays"][:-1] idays = [] for i, day in enumerate(dic["sdays"][:-1]): @@ -1200,8 +1202,8 @@ def project_pressures(dic, i): else: whs = dic[f"sf{p}"] == n d_t = np.round( - min(dic[f"rt{p}"][whr]) - - min(dic[f"st{p}"][whs]), + np.min(dic[f"rt{p}"][whr]) + - np.min(dic[f"st{p}"][whs]), 2, ) interp = LinearNDInterpolator( @@ -1320,7 +1322,7 @@ def write_files(dic): if 0 < nrwo.find("\\t"): nrwo = nrwo.replace("\\t", " ") lol.append(nrwo) - if lol[-1] == "GRID" and max(dic["freq"]) > 0: + if lol[-1] == "GRID" and np.max(dic["freq"]) > 0: lol.append("INCLUDE") lol.append("'BCCON.INC' /") if lol[-1] == "REGIONS": @@ -1334,7 +1336,7 @@ def write_files(dic): for i, row in enumerate(lol): edit = row.split() if i < len(lol) - 1: - if lol[i + 1] == "TSTEP" and max(dic["freq"]) > 0: + if lol[i + 1] == "TSTEP" and np.max(dic["freq"]) > 0: rep = lol[i + 2].split("*") rep = int(rep[0]) if len(rep) > 1 else 1 file.write(row) @@ -1358,7 +1360,7 @@ def write_files(dic): if tstep == 0: file.write(row) git = "--This file was generated by expreccs https://github.com/cssr-tools/expreccs" - if max(dic["freq"]) > 0: + if np.max(dic["freq"]) > 0: dic["sbound"].insert(0, "BCCON") dic["sbound"].insert(0, git) dic["sbound"].insert(0, "--Copyright (C) 2025 NORCE Research AS") diff --git a/src/expreccs/visualization/maps2d.py b/src/expreccs/visualization/maps2d.py index c0f542e..3c68c8e 100644 --- a/src/expreccs/visualization/maps2d.py +++ b/src/expreccs/visualization/maps2d.py @@ -58,15 +58,15 @@ def final_time_maps(dic): ) axis.set_xticks( np.linspace( - 0 * 5 + dic[f"{fol}/{dic['name']}_xcor"].min() / 1000.0, - 0 * 10 + dic[f"{fol}/{dic['name']}_xcor"].max() / 1000.0, + 0 * 5 + np.min(dic[f"{fol}/{dic['name']}_xcor"]) / 1000.0, + 0 * 10 + np.max(dic[f"{fol}/{dic['name']}_xcor"]) / 1000.0, 6, ) ) axis.set_yticks( np.linspace( - 0 * 5 + dic[f"{fol}/{dic['name']}_ycor"].min() / 1000.0, - 0 * 10 + dic[f"{fol}/{dic['name']}_ycor"].max() / 1000.0, + 0 * 5 + np.min(dic[f"{fol}/{dic['name']}_ycor"]) / 1000.0, + 0 * 10 + np.max(dic[f"{fol}/{dic['name']}_ycor"]) / 1000.0, 6, ) ) @@ -74,8 +74,8 @@ def final_time_maps(dic): # axis.set_title(f"REFERENCE (Case 4)") # axis.set_title("REGIONAL (Cases 1, 2, and 3)") # axis.set_title(f"REGIONAL: {dic['lfolders'][nfol]} (Case 2)") - maxp = dic[f"{fol}/{res}_{quantity}_plot"].max() - minp = dic[f"{fol}/{res}_{quantity}_plot"].min() + maxp = np.max(dic[f"{fol}/{res}_{quantity}_plot"]) + minp = np.min(dic[f"{fol}/{res}_{quantity}_plot"]) # minp, maxp = -0.55, 0.43 axis.axis("scaled") axis.set_xlabel("Easting [km]") @@ -174,24 +174,24 @@ def final_time_maps_difference(dic): ) axis.axis( [ - dic[f"{fol}/{dic['name']}_xcor"].min() / 1000.0, - dic[f"{fol}/{dic['name']}_xcor"].max() / 1000.0, - dic[f"{fol}/{dic['name']}_ycor"].min() / 1000.0, - dic[f"{fol}/{dic['name']}_ycor"].max() / 1000.0, + np.min(dic[f"{fol}/{dic['name']}_xcor"]) / 1000.0, + np.max(dic[f"{fol}/{dic['name']}_xcor"]) / 1000.0, + np.min(dic[f"{fol}/{dic['name']}_ycor"]) / 1000.0, + np.max(dic[f"{fol}/{dic['name']}_ycor"]) / 1000.0, ] ) axis.axis("scaled") axis.set_xticks( np.linspace( - dic[f"{fol}/{dic['name']}_xcor"].min() / 1000.0, - dic[f"{fol}/{dic['name']}_xcor"].max() / 1000.0, + np.min(dic[f"{fol}/{dic['name']}_xcor"]) / 1000.0, + np.max(dic[f"{fol}/{dic['name']}_xcor"]) / 1000.0, 6, ) ) axis.set_yticks( np.linspace( - dic[f"{fol}/{dic['name']}_ycor"].min() / 1000.0, - dic[f"{fol}/{dic['name']}_ycor"].max() / 1000.0, + np.min(dic[f"{fol}/{dic['name']}_ycor"]) / 1000.0, + np.max(dic[f"{fol}/{dic['name']}_ycor"]) / 1000.0, 6, ) ) @@ -200,13 +200,13 @@ def final_time_maps_difference(dic): axis.set_title( r"SITE $\sum$|REF-" + f"{dic[f'l{res}']}" - + f"|={abs(dic[f'{fol}/{res}_difference_{quantity}_plot']).sum():.2E}" + + f"|={np.abs(np.sum(dic[f'{fol}/{res}_difference_{quantity}_plot'])):.2E}" ) # axis.spines['left'].set_color('white') # axis.yaxis.label.set_color('white') # axis.tick_params(axis='y', colors='white') - maxp = dic[f"{fol}/{res}_difference_{quantity}_plot"].max() - minp = dic[f"{fol}/{res}_difference_{quantity}_plot"].min() + maxp = np.max(dic[f"{fol}/{res}_difference_{quantity}_plot"]) + minp = np.min(dic[f"{fol}/{res}_difference_{quantity}_plot"]) # minp, maxp = -0.27, 0.27 divider = make_axes_locatable(axis) cax = divider.append_axes("right", size="5%", pad=1e-3) @@ -296,8 +296,8 @@ def geological_maps(dic): cmap="jet", ) axis.set_title(dic[f"l{res}"] + f" {quan}") - maxp = dic[f"{fol}/{res}_{quan}_plot"].max() - minp = dic[f"{fol}/{res}_{quan}_plot"].min() + maxp = np.max(dic[f"{fol}/{res}_{quan}_plot"]) + minp = np.min(dic[f"{fol}/{res}_{quan}_plot"]) # minp, maxp = -0.27, 0.27 divider = make_axes_locatable(axis) cax = divider.append_axes("right", size="5%", pad=1e-3) diff --git a/src/expreccs/visualization/plotting.py b/src/expreccs/visualization/plotting.py index a9e7abc..b363c6e 100644 --- a/src/expreccs/visualization/plotting.py +++ b/src/expreccs/visualization/plotting.py @@ -7,6 +7,7 @@ """ import os +import shutil import numpy as np import matplotlib import matplotlib.pyplot as plt @@ -39,7 +40,7 @@ def plot_results(dic): matplotlib.rc("font", **font) plt.rcParams.update( { - "text.usetex": dic["latex"], + "text.usetex": shutil.which("latex") != "None", "font.family": "monospace", "legend.columnspacing": 0.9, "legend.handlelength": 2.2, @@ -532,7 +533,7 @@ def over_time_distance(dic): dic[f"{fol}/site_boxf"][0] - dic["dx_half_size"][-1], ] ): - closest_distance[i] = min( + closest_distance[i] = np.min( np.array([abs(row[0] - border) for row in points]) ) for i, border in enumerate( @@ -541,11 +542,11 @@ def over_time_distance(dic): (dic[f"{fol}/site_boxf"][1] - dic["dy_half_size"][-1]), ] ): - closest_distance[i + 2] = min( + closest_distance[i + 2] = np.min( np.array([abs(row[1] - border) for row in points]) ) dic[f"{fol}/{res}_indicator_plot"].append( - closest_distance.min() / 1000.0 + np.min(closest_distance) / 1000.0 ) else: dic[f"{fol}/{res}_indicator_plot"].append( @@ -759,7 +760,7 @@ def over_time_max_difference(dic, nqua, quantity): dic[f"{fol}/{res}_difference_{quantity}"] = [] dic[f"{fol}/{res}_maximum_{quantity}"] = [] for nrst in range(dic[f"{fol}/{res}_num_rst"]): - quant = abs( + quant = np.abs( np.array(dic[f"{fol}/reference_{quantity}_array"][nrst])[ dic[f"{fol}/reference_fipn"] == 1 ] @@ -775,13 +776,13 @@ def over_time_max_difference(dic, nqua, quantity): * (len(dic[f"{fol}/site_xmx"]) - 1) + k ] = 0 - dic[f"{fol}/{res}_difference_{quantity}"].append(max(quant)) + dic[f"{fol}/{res}_difference_{quantity}"].append(np.max(quant)) dic[f"{fol}/{res}_maximum_{quantity}"].append( - max(dic[f"{fol}/{res}_{quantity}_array"][nrst]) + np.max(dic[f"{fol}/{res}_{quantity}_array"][nrst]) ) if j == 0: dic[f"reference_maximum_{quantity}"].append( - max( + np.max( dic[f"{fol}/reference_{quantity}_array"][nrst][ dic[f"{fol}/reference_fipn"] == 1 ] @@ -790,7 +791,7 @@ def over_time_max_difference(dic, nqua, quantity): handle_labels_difference(dic, res, j, nqua, nfol) dic["axis"][nqua].set_title( r"$\max|$REF-SITE|, $\max$(REF)=" - + f"{np.array(dic[f'reference_maximum_{quantity}']).max():.2E}" + + f"{np.max(dic[f'reference_maximum_{quantity}']):.2E}" ) dic["axis"][nqua].set_ylabel(dic["units"][nqua]) dic["axis"][nqua].set_xlabel("Time") @@ -902,7 +903,7 @@ def handle_labels_difference(dic, res, j, nqua, nfol): dic[f"l{res}"] + f" ({dic['lfolders'][nfol]})" + r", $\max$=" - + f"{np.array(dic[f'{fol}/{res}_maximum_{quantity}']).max():.2E}" + + f"{np.max(dic[f'{fol}/{res}_maximum_{quantity}']):.2E}" ) dic["axis"][nqua].step( dic[f"{fol}/{res}_dates"], @@ -915,7 +916,7 @@ def handle_labels_difference(dic, res, j, nqua, nfol): label = ( dic[f"l{res}"] + r", $\max$=" - + f"{np.array(dic[f'{fol}/{res}_maximum_{quantity}']).max():.2E}" + + f"{np.max(dic[f'{fol}/{res}_maximum_{quantity}']):.2E}" ) dic["axis"][nqua].step( dic[f"{fol}/{res}_dates"], diff --git a/src/expreccs/visualization/reading.py b/src/expreccs/visualization/reading.py index e62b84d..541418c 100644 --- a/src/expreccs/visualization/reading.py +++ b/src/expreccs/visualization/reading.py @@ -91,7 +91,7 @@ def reading_simulations(dic, doplot=True): # pylint: disable=R0915, R0912 for seconds in dic[f"{fol}/{res}_smsp_dates"] ] dic[f"{fol}/{res}_smsp_rst"] = [ - pd.Series(abs(dic[f"{fol}/{res}_smsp_seconds"] - time)).argmin() + pd.Series(np.abs(dic[f"{fol}/{res}_smsp_seconds"] - time)).argmin() for time in dic[f"{fol}/{res}_rst_seconds"] ] dic[f"{fol}/{res}_sensorijk"] = []