A simple C++ library that helps describing meshs.
This simple C++ library provides mesh structures to describe space. Simple examples are provided and should be enough to explain how to use this library.
This repository contains:
- The software itself provided as a header only library in the directory include/m0sh
- A few examples.
This library currently supports the following meshs:
- regular mesh (structured uniform mesh)
- unregular mesh (structured non uniform mesh)
- sub structured mesh
This library has been produced during my PhD thesis and as part as the European Research Council project: C0PEP0D This library is used as part of SHELD0N, a lagrangian particle advection software.
- CMake
v?
or higher must be installed - a c++14 compliant compiler, such as gcc
v9
or higher must be installed. For Ubuntu users: ppa.
Examples:
- Eigen must be installed
The examples assume the following directory tree structure:
..
├── .
│ └── m0sh
└── thirdparty
└── eigen
One should either install eigen accordingly, or adapt Eigen path in the CMakeList.txt file of the examples.
Start by cloning this repository.
$ git clone https://github.com/C0PEP0D/m0sh.git
Running an example:
$ cd examples/regular
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./regular
A simple pull should be enough.
$ git pull
Rémi Monthiller - @rmonthil - remi.monthiller@gmail.com
Feel free to dive in! Open an issue or submit PRs.