A simple C++ library that helps interpoling points.
This simple C++ library provides functors that are able to interpolate values between other values using Lagrange polynomes. 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/p0l
- A few examples.
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:
v0l example (interpolation within a legacy vtk file):
- v0l must be installed
The examples assume the following directory tree structure:
..
├── .
│ │── p0l
│ │── m0sh
│ └── (v0l)
└── thirdparty
└── eigen
One should either install this dependencies accordingly, or adapt their path in the CMakeList.txt file of the examples.
Start by cloning this repository.
$ git clone https://github.com/C0PEP0D/p0l.git
Running an example:
$ cd examples/mesh
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./mesh
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.