Python / Mesh / fc_oogmsh package
The
fc_oogmsh 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.0.4 | May 10, 2017 | (16 Ko) | (362 Ko) |
|
|
|
|
|
|
|
|
|
|
This toolbox was tested under
|
|
|
|
OS | Python | gmsh |
|
|
|
Ubuntu 14.04 LTS (64bit) | 2.7.6, 3.6.0 | 2.16.0 (64bit) |
|
|
|
|
Installation under Linux
For Python 3 installation, pip3 must be used instead of pip.
Installation from archive under Linux
Save the required archive in a folder.
- For an installation which isolated to the current user, one can do :
$ pip install <PATH_TO_FOLDER>/fc_oogmsh-<VERSION>.tar.gz --user
where <PATH_TO_FOLDER> will be replaced by the path to the saved archive and <VERSION> by the
version of the archive.
- For an installation for all users, one can do :
$ sudo pip install <PATH_TO_FOLDER>/fc_oogmsh-<VERSION>.tar.gz
For Python 3 installation, pip3 must be used instead of pip.
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.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.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) |
|
|
|
|
|