![]() |
![]() |
A mesh file converter : cmesh
The program cmesh converts mesh files to and from OFELI XML mesh file format. The command line of the program is:
cmesh --from <ofeli|em|bamg|gambit|gmsh|netgen|tetgen|matlab|triangle> --to <ofeli|gpl|gmsh|tec|vtk|matlab> -i <string> [-o <string>] [-n <int>] [--version] [-h]
where:
--from <ofeli|em|bamg|gambit|gmsh|netgen|tetgen|matlab|triangle> (required)
Available input formats:
ofeli | OFELI mesh file (*.m) |
em | EasyMesh files (*.s *.e *.n) |
bamg | BAMG file (*.bamg) |
gambit | Gambit Neutral file (*.neu) |
gmsh | Gmsh file (*.msh) |
netgen | Netgen file (*.vol) |
tetgen | Tetgen files (*.node and *.ele) |
matlab | Matlab file (*-matlab.m) |
triangle | Triangle files (*.node and *.ele) |
--to <ofeli|amd|gpl|gmsh|tec|vtk|matlab> (required)
Available output formats:
ofeli | OFELI mesh file (*.m) |
em | EasyMesh files (*.s *.e *.n) |
bamg | BAMG file (*.bamg) |
gambit | Gambit Neutral file (*.neu) |
gmsh | Gmsh file (*.msh) |
netgen | Netgen file (*.vol) |
tetgen | Tetgen files (*.node and *.ele) |
matlab | Matlab file (*-matlab.m) |
triangle | Triangle files (*.node and *.ele) |
-i <string>, --input <string>
(required) Mesh Input File
-o <string>, --output <string>
Mesh Output File
-n <int>, --nb_dof <int>
Nb. of degrees of freedom per node
--version
Displays version information and exits.
-h, --help
Displays usage information and exits.
Here, in the invoked programs and file formats are the following:
ofeli is the actual XML format defined in OFELI
EasyMesh is a free program that generates two dimensional, unstructured, Delaunay
and constrained Delaunay triangulations in general domains. It can be downloaded from the site:
http://www-dinma.univ.trieste.it/nirftc/research/easymesh/Default.htm
Gnuplot is a command-line driven program for producing 2D and 3D plots. It is under
the GNU General Public License. Available information can be found in the site:
www.gnuplot.info/
BAMG is a 2-D mesh generator. It allows to construct adapted meshes from a given
metric. It was developed at INRIA, France. Available information can be found in the site :
www-rocq1.inria.fr/gamma/cdrom/www/bamg/eng.htm
Gambit is a commercial mesh generator. Available information can be
found in the site:
http://fluent.com/software/gambit/
Gmsh is a free three-dimensional finite element mesh generator with built-in pre- and post-processing
facilities. It can be downloaded from the site:
www.geuz.org/gmsh/
Tecplot is high quality post graphical commercial processing program developed by
Amtec. Available information can be found in the site:
www.tecplot.com
Matlab is a language of scientific computing including visualization. It is developed
by MathWorks. Available information can be found in the site :
www.mathworks.com/products/matlab/
VTK is an open source library of graphical processing. It is developed
by kitware. Graphical postprocessing can be obtained by software
MayaVi or Paraview
for instance.
The optional argument is an integer that defines the (constant) number of degrees of freedom per node.
This information is indeed not always available from mesh generators and is needed in MDF format.
Its default value is 1.
A field file converter : cfield The program cfield converts input and output field used by
OFELI in FFI format
to other formats.
The command line of the program is: where:
(required) Available output formats:
cfield -f <gmsh|gpl|tec|vtk> -m <string> -i <string> [-o <string>] [--version] [-h]
-f <gmsh|gpl|tec|vtk>, --format <gmsh|gpl|tec|vtk>
gmsh
Gmsh Postprocessing File (*.pos)
gpl
Gnuplot File (*-gnuplot.dat)
tec
Tecplot file (*-tecplot.dat)
vtk
vtk file (*.vtk)
-m <string>, --mesh <string>
(required) Mesh file name -i
(required) Input field file name -o
Output field file name
--versionDisplays version information and exits.
-h, --helpDisplays usage information and exits.
![]() |
![]() |