Python / Mesh / fc_oogmsh package
The

Python package make it possible to generate mesh files from
.geo file by using
gmsh.
It’s also possible with the
ooGmsh class to read the mesh file and to store its contains in more
user-friendly form. This package must be regarded as a very simple interface between
gmsh files and
Python. So you are free to create any data structure or object you want from an
ooGmsh object.
Requirements
This package needs
- gmsh, A three-dimensional finite element mesh generator with built-in pre- and post-processing
facilities to be installed.
- Python 2 or 3
Current development release
|
|
|
|
|
Version | date | archives | User’s Guide |
|
|
|
|
0.1.0 | May 10, 2019 | (28 Ko)
| (2266 Ko)
|
|
|
|
|
|
This package was tested under
|
|
|
OS | Python | gmsh |
|
|
|
|
|
|
CentOS 7.6 | python.org 2.7.16, 3.5.7, 3.6.8, 3.7.3 | 4.3.0, 4.2.3, 4.1.5, 4.0.7, 3.0.6 |
|
|
|
Debian 9.9 | python.org 2.7.16, 3.5.7, 3.6.8, 3.7.3 | 4.3.0, 4.2.3, 4.1.5, 4.0.7, 3.0.6 |
|
|
|
Ubuntu 18.04 LTS | python.org 2.7.16, 3.5.7, 3.6.8, 3.7.3 | 4.3.0, 4.2.3, 4.1.5, 4.0.7, 3.0.6 |
|
|
|
OpenSuse 15.0 | python.org 3.5.7, 3.6.8, 3.7.3 | 4.3.0, 4.2.3, 4.1.5, 4.0.7, 3.0.6 |
|
|
|
Fedora 29 | python.org 2.7.16, 3.5.7, 3.6.8, 3.7.3 | 4.3.0, 4.2.3, 4.1.5, 4.0.7, 3.0.6 |
|
|
|
|
|
|
MacOS Mojave 10.14.4 | python.org : 3.5.4, 3.6.8, 3.7.2 | 4.3.0, 4.2.3, 4.1.5, 4.0.7, 3.0.6 |
|
|
|
|
|
|
Windows 10 (1809) | python.org : 3.6.8, 3.7.3 | 4.3.0, 4.2.3, 4.1.5, 4.0.7, 3.0.6 |
|
|
|
|
Installation under Linux
For Python 3 installation, pip3 must be used instead of pip.
To enable the graphic tools one has to install at least one of these packages. For example, to use the
fc-matplotlib4mesh package :
$ pip install --user fc_oogmsh[matplotlib4mesh]
One can also install the two packages fc-matplotlib4mesh and fc-mayavi4mesh :
$ pip install --user fc_oogmsh[matplotlib4mesh,mayavi4mesh]
Configuration
By default, the gmsh binary supposed to be in your path. To specify a specific location one can use the
fc_oogmsh.sys.configure function
Python Console
import fc_oogmsh
fc_oogmsh.sys.configure(gmsh_bin=’<PATH_TO_GMSH>/gmsh’)
where <PATH_TO_GMSH> is the path to the gmsh binary file.
Version history
- 0.1.0 (May 10, 2019) : Uses MSH file format version 2.0, 4.0 or 4.1.
- 0.0.6 (October 20, 2017) : Compatibility with gmsh >= 4.0.0 (force .msh file to be 2.0 version :
must be improved in future release)
- 0.0.4 (May 10, 2017) : Adding sys.get_geodirs function and cleaning parts of code
- 0.0.3 (April 22, 2017) : Adding dictionay to describe gmsh mesh elements and renaming class
ooMs -> class Elt
- 0.0.2 (March 6, 2017) : Adding geodir directory directly in the package with some .geo files.
- 0.0.1 (March 6, 2017) : first version for Linux.
Old development release
|
|
|
|
|
Version | date | archives | User’s Guide |
|
|
|
|
0.0.6 | October 20, 2018 | (21 Ko)
| (616 Ko)
|
|
|
|
|
0.0.4 | May 10, 2017 | (16 Ko)
| (362 Ko)
|
|
|
|
|
0.0.3 | April 22, 2017 | (17 Ko)
| (362 Ko)
|
|
|
|
|
0.0.2 | March 6, 2017 | (15 Ko)
| (348 Ko)
|
|
|
|
|
0.0.1 | March 6, 2017 | (6 Ko)
| (348 Ko)
|
|
|
|
|
|