Here are some examples using ooGmsh2 object :
Here are some examples using ooGmsh4 object :
Graphical representations are done with the fc_graphics4mesh toolbox.
This toolbox needs
This toolbox was tested on various OS with gmsh (versions 4.5.2, 4.4.1, 4.3.0, 4.2.3, 4.1.5, 4.0.7, 3.0.6 and 2.16.0) and Matlab releases :
Operating system | 2017a | 2017b | 2018a | 2018b | 2019a |
CentOS 7.7.1908 | ✓ | ✓ | ✓ | ✓ | ✓ |
Debian 9.11 | ✓ | ✓ | ✓ | ✓ | ✓ |
Fedora 29 | ✓ | ✓ | ✓ | ✓ | ✓ |
OpenSUSE Leap 15.0 | ✓ | ✓ | ✓ | ✓ | ✓ |
Ubuntu 18.04.3 LTS | ✓ | ✓ | ✓ | ✓ | ✓ |
MacOS High Sierra 10.13.6 | ✓ | ✓ | ✓ | ✓ | ✓ |
MacOS Mojave 10.14.4 | ✓ | ✓ | ✓ | ✓ | ✓ |
MacOS Catalina 10.15.2 | ✓ | ✓ | ✓ | ✓ | ✓ |
Windows 10 (1909) | ✓ | ✓ | ✓ | ✓ | ✓ |
It is not compatible with Matlab releases prior to R2015b.
For automatic installation, one has to get/download the install file mfc_oogmsh_install.m Thereafter, one run it under Matlab. This command download, extract and configure the fc-oogmsh toolbox and all the required toolboxes in the current directory.
By default, the gmsh binary is supposed to be located in
To specify an other location one can do
>> mfc_oogmsh_install(’gmsh_bin’, GMSH)
>> fc_oogmsh.configure(’gmsh_bin’,’~/gmsh-4.2.2/bin/gmsh’)
For example, to install this toolbox in ~/Matlab directory, one have to copy the file mfc_oogmsh_install.m in the ~/Matlab directory. Then in a Matlab terminal run the following commands
>> cd ~/Matlab
>> mfc_oogmsh_install
There is the output of the mfc_oogmsh_install command on a Linux computer :
Parts of the <fc-oogmsh> Matlab toolbox.
Copyright (C) 2017-2020 F. Cuvelier
1- Downloading and extracting the toolboxes
2- Setting the <fc-oogmsh> toolbox
Write in ~/Matlab/fc-oogmsh-full/fc_oogmsh-0.2.2/configure_loc.m ...
3- Using toolboxes :
-> fc-tools : 0.0.30
-> fc-bench : 0.1.2
-> fc-amat : 0.1.2
-> fc-meshtools : 0.1.3
-> fc-graphics4mesh : 0.1.1
with fc-oogmsh : 0.2.2
*** Using instructions
To use the <fc-oogmsh> toolbox:
addpath(’~/Matlab/fc-oogmsh-full/fc_oogmsh-0.2.2’)
fc_oogmsh.init()
See ~/Matlab/mfc_oogmsh_set.m
The complete toolbox (i.e. with all the other needed toolboxes) is stored in the directory
>> addpath(’~/Matlab/fc-oogmsh-full/fc-oogmsh-0.2.2’)
>> fc_oogmsh.init()
If it’s the first time the fc_oogmsh.init() function is used, then its output is
Try to use default parameters!
Use fc_tools.configure to configure.
Write in ~/Matlab/fc-oogmsh-full/fc_tools-0.0.30/configure_loc.m ...
Try to use default parameters!
Use fc_bench.configure to configure.
Write in ~/Matlab/fc-oogmsh-full/fc_bench-0.1.2/configure_loc.m ...
Try to use default parameters!
Use fc_amat.configure to configure.
Write in ~/Matlab/fc-oogmsh-full/fc_amat-0.1.2/configure_loc.m ...
Try to use default parameters!
Use fc_meshtools.configure to configure.
Write in ~/Matlab/fc-oogmsh-full/fc_meshtools-0.1.3/configure_loc.m ...
Try to use default parameters!
Use fc_graphics4mesh.configure to configure.
Write in ~/Matlab/fc-oogmsh-full/fc_graphics4mesh-0.1.1/configure_loc.m ...
Using fc_oogmsh[0.2.2] with fc_tools[0.0.30], fc_bench[0.1.2], fc_amat[0.1.2], fc_meshtools[0.1.3], fc_graphics4mesh[0.1.1].
Configured to use gmsh 4.5.1 with default MSH file format version 4.1
Using fc_oogmsh[0.2.2] with fc_tools[0.0.30], fc_bench[0.1.2], fc_amat[0.1.2], fc_meshtools[0.1.3], fc_graphics4mesh[0.1.1].
Configured to use gmsh 4.5.1 with default MSH file format version 4.1
For uninstalling, one just has to delete directory :
| ||||
Version | date | archives | install | |
0.2.2 | February 17, 2020 | |||
0.2.1 | January 30, 2020 | |||
0.1.0 | March 24, 2019 | |||
0.0.19 | September 17, 2018 | |||
0.0.17 | December 13, 2017 | |||
0.0.16 | November 22, 2017 | |||
0.0.15 | October 31, 2017 | |||
0.0.14 | February 5, 2017 | |||
0.0.13 | February 1, 2017 | |||
0.0.12 | December 27, 2016 | |||
0.0.11 | December 23, 2016 | |||
0.0.10 | December 20, 2016 | |||