Skip to main content

gmsh4mrst

Automatically create Gmsh meshes for use in MRST.

gmsh4mrst is created to bridge the gap between Python package Gmsh and MATLAB module MRST, and was developed as part of my Bachelor's thesis during spring 2022.

Citation

If you end up using gmsh4mrst in any research, I would love to hear about it. Feel free to cite the bachelor thesis introducing the software as well: Berg, Andreas B. (2022). Combining Gmsh and MRST - Developing software for more efficient grid creation in two dimensions

The thesis can be found here.

Installation

The Python part of the module is available on PyPi.

The MATLAB part of the module must be manually added to your MATLAB Path.

Requirements

In order to use the Python part of the module, simply install the package (pip install gmsh4mrst).

In order to use the MATLAB part of the module, ensure MRST 2022a is on your MATLAB Path, with module gmsh active, and install the Python part of the module. Ensure that your default Python (i.e. the Python that comes up when using the command python) has gmsh4mrst installed, and is one of the Python versions compitable with MATLAB (i.e. Python 3.8 or Python 3.9 when using MATLAB 2022a).

Common issues

MATLAB

SEGFAULT

This sometimes happens when calling Python from MATLAB. One thing that has previously worked to fix this is ensuring Python is run Out-of-process, rather than In-process. This can be ensured by running pyenv("ExecutionMode","OutOfProcess") from within MATLAB. Note that this must be done before running any Python code from MATLAB, so may require a restart of MATLAB.

Metadata

Release files for gmsh4mrst 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gmsh4mrst 1.0.0
File Size Uploaded
gmsh4mrst-1.0.0.tar.gz 28.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gmsh4mrst 1.0.0
File Interpreter ABI Platform
gmsh4mrst-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 70.2 kB

Release files / gmsh4mrst-1.0.0.tar.gz

Download URL gmsh4mrst-1.0.0.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c25fdd4fa6c1ed6420ca136c7357453248faaae2dca53b4fb04c7b2addc3c4d0
BLAKE2b-256 checksum
How to use checksums
53c540ae78c803f9de98bd8b758d91b6208f2b325a53e8865d7e2847e05474ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.12

Release files / gmsh4mrst-1.0.0-py3-none-any.whl

Download URL gmsh4mrst-1.0.0-py3-none-any.whl
Size 41.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a4358ed55b7a5baf22be5f0c24630175b531cb0b73862d34b2ee4db095d836c
BLAKE2b-256 checksum
How to use checksums
ca91a0000352e681be648065244778d2458a859e7bd8a4ddd24e96562c6753b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.12

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page