Skip to content

A command line tool and a python package to manipulate hydrodynamics meshes

License

Notifications You must be signed in to change notification settings

k0l0v0r0t/meshmagick

 
 

Repository files navigation

Meshmagick

NEW IN v3.4: It is now possible to load last .msh file format version (4.1) of GMSH generated mesh files. Compatibility with format version 2.1 is still ensured.

Meshmagick is a command line utility as well as a python module for the manipulation of meshes encountered in the hydrodynamics community.

Its primary goal was to be a conversion tool between major file formats for hydrodynamic computations tools (Nemoh, Wamit, Hydrostar or Diodore) and visualization tools (stl, Tecplot, Paraview). It will be particularly useful for code to code comparisons or benchmarking.

Meshmagick also comes with several mesh manipulation capabilities: translation, rotation, scaling, clipping by a plane, symmetry, normals flipping, normals healing (making them consistent across the mesh and outgoing), cleaning (duplicate nodes merging...).

Meshmagick provides useful options for hydrostatics computations. It can solve for hydrostatics equilibrium for a given mass, center of gravity or both and provide the clipped mesh to be used by BEM software as well as the hydrostatics parameters (stiffness matrix, position of the center of buoyancy, displacement, draft...). Inertial properties of meshes may also be computed, based on assumptions.

Meshmagick is primarily a command line utility for everyday hydrodynamicists. However, it also comes with a package that can be imported in a python script and give the full access to the command line options, programatically.

Note

Meshmagick is the property of Ecole Centrale de Nantes and is maintained by François Rongère <francois .rongere@dice-engineering>. It is released under the GNU GPLv3 open source licence (see LICENCE file).

GitHub Repository

https://github.com/LHEEA/meshmagick

Documentation

https://lheea.github.io/meshmagick

Getting Meshmagick

Getting the latest version:

pip install https://github.com/LHEEA/meshmagick/archive/master.zip

About

A command line tool and a python package to manipulate hydrodynamics meshes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Other 0.2%