Gmsh backend integration for MRST
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gmsh4mrst-1.0.0.tar.gz
.
File metadata
- Download URL: gmsh4mrst-1.0.0.tar.gz
- Upload date:
- Size: 28.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25fdd4fa6c1ed6420ca136c7357453248faaae2dca53b4fb04c7b2addc3c4d0 |
|
MD5 | 4e42fb810b8eb9a3dabadc13f4acc5d6 |
|
BLAKE2b-256 | 53c540ae78c803f9de98bd8b758d91b6208f2b325a53e8865d7e2847e05474ce |
File details
Details for the file gmsh4mrst-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: gmsh4mrst-1.0.0-py3-none-any.whl
- Upload date:
- Size: 41.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a4358ed55b7a5baf22be5f0c24630175b531cb0b73862d34b2ee4db095d836c |
|
MD5 | 3c3026abfa85c7469dc6cd94308a45bf |
|
BLAKE2b-256 | ca91a0000352e681be648065244778d2458a859e7bd8a4ddd24e96562c6753b1 |